Skip to content

Commit

Permalink
Use helvetica (SansSerif font) and scale font-size up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptabor committed Aug 3, 2024
1 parent d40454d commit a45a212
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Install mactex: https://www.tug.org/mactex/mactex-download.html

sudo tlmgr update --self
sudo tlmgr install ucs
sudo tlmgr install polski xstring pbox varwidth ec qrcode
sudo tlmgr install polski xstring pbox varwidth ec qrcode helvetic


#
mktextfm ecssdc10
Expand All @@ -26,6 +27,9 @@ mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ecbx1000
mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ecrm1095
mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ectt2488

mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ectt3583
mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ectt1728


installing on Linux:

Expand Down
8 changes: 6 additions & 2 deletions src/formats/songbook_p.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@
urlcolor=black
}

\renewcommand{\familydefault}{\sfdefault}
\usepackage{helvet}


%\geometry{scale={0.90,0.80},pdftex} \addtolength{\headheight}{2pc}
\geometry{scale={0.95,0.85},pdftex,top={1cm}}
\addtolength{\headheight}{2pc}
\geometry{scale={0.95,0.85},pdftex,top={3ex}}
\addtolength{\headheight}{5ex}

\setboolean{PrintChordsOn}{true}
\setboolean{PrintChordsBehind}{true}
Expand Down
2 changes: 1 addition & 1 deletion src/latex/songbook2tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_ready_tex(songbook, papersize):

content = (content
.replace(":paper:", "paper" + papersize)
.replace(":fontsize:", "10pt" if papersize == "a4" else "11pt")
.replace(":fontsize:", "19pt" if papersize == "a4" else "14pt")
.replace(":title:", str2tex(songbook.title()))
.replace(":subtitle:", str2tex(songbook.subtitle()))
.replace(":place:", str2tex(songbook.place() + ", ") if songbook.place() else "")
Expand Down
2 changes: 1 addition & 1 deletion src/latex/songs2tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_ready_tex(songbook, source, papersize, title_of_songbook=None):
content = (content
.replace(":title:", title_of_songbook)
.replace(":paper:", "paper"+ papersize)
.replace(":fontsize:", "10pt" if papersize=="a4" else "11pt"))
.replace(":fontsize:", "19pt" if papersize=="a4" else "14pt"))

content += "".join([s2t.song2tex(file) for file in source])

Expand Down

0 comments on commit a45a212

Please sign in to comment.