-
Notifications
You must be signed in to change notification settings - Fork 1
Adjust reference font size #686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adjust these numbers to get the desired font size for references, then merge this commit.
|
@Deadpikle Changing the |
They are the same font. Same sort of deal on m.egwritings.org. See preview of this font on Google Fonts:
Couple different solutions for references:
\usepackage{fontspec}
...
\newfontfamily\refdigits{Libertinus Serif}[Scale=1.1]
# 3b) {\refdigits ...} for slightly scaled english numbers
add_spans_from_pattern(r"\{\\refdigits [0-9.]*\}")This gives you something like this:
You can also fix some of the other English references in this rather bruteforce way:
\usepackage{fontspec}
...
`\newfontfamily\smallerscale{Libertinus Serif}[Scale=0.9]`
def convert_text_references(text: str) -> str:
arr = ["TKJV", "TH1940", "TNCV", "NTV", "THSV", "THA-ER", "LCV", "KV", "TH1971", "LO1972", "version", "Adventist"]
for x in arr:
paraX = "(" + x + ")"
if (paraX in text):
text = text.replace(paraX, "{\\smallerscale " + paraX + "}")
else:
text = text.replace(x, "{\\smallerscale " + x + "}")
return text
Gives you something like this, which looks nice: Keep in mind that this may or may not adjust spacing and line breaks as it is a font size change. You could do something similar for English Bible refs. You would simply need to add the additional words to the array to get them converted...or similar. I'll go ahead and commit the above code so you can see it, but I'm not committed to it. I don't like the idea of a hardcoded English word list. But it's fast, easy, and not complicated, which at this point in the game is what is neeed. |
d35a0e4 to
7efd534
Compare
This reverts commit 87b6f1b.
|
Uhhhh apparently I just force pushed somehow, which was not my intention...sorry. Will message you. |



Adjust these numbers (see commit) to get the desired font size for references, then merge this commit. You don't have to stick with what I used. But use this PR to know where to change that information.
EDIT: Will have a solution for intro font sizes "soon".
Part of #683