From a45a212558db91463b4c86a90ecd6d85e7b4f573 Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Sun, 4 Aug 2024 00:08:38 +0200 Subject: [PATCH] Use helvetica (SansSerif font) and scale font-size up. --- INSTALL | 6 +++++- src/formats/songbook_p.tex | 8 ++++++-- src/latex/songbook2tex.py | 2 +- src/latex/songs2tex.py | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/INSTALL b/INSTALL index 2c094815..6fb658bd 100644 --- a/INSTALL +++ b/INSTALL @@ -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 @@ -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: diff --git a/src/formats/songbook_p.tex b/src/formats/songbook_p.tex index 3a3fcf9d..3f21a6b2 100644 --- a/src/formats/songbook_p.tex +++ b/src/formats/songbook_p.tex @@ -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} diff --git a/src/latex/songbook2tex.py b/src/latex/songbook2tex.py index c349bfed..bf769ceb 100644 --- a/src/latex/songbook2tex.py +++ b/src/latex/songbook2tex.py @@ -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 "") diff --git a/src/latex/songs2tex.py b/src/latex/songs2tex.py index 94aa4677..9c87620b 100644 --- a/src/latex/songs2tex.py +++ b/src/latex/songs2tex.py @@ -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])