Grossissement de la taille des accords
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 7 Dec 2021 03:34:21 +0000 (22:34 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2022 22:14:43 +0000 (17:14 -0500)
gtx2tex.pl

index 9379053..adb82aa 100644 (file)
@@ -485,6 +485,7 @@ sub latex_header {
         \\makeindex
         \\usepackage{fancyhdr}
         \\pagestyle{fancy}
+        \\usepackage{setspace}
         "
     }else{
         print TEX "
@@ -516,6 +517,11 @@ sub latex_header {
                                                     \\newcommand{\\gtxchordsize}{\\footnotesize}
     \\setlength{\\parindent}{0pt}
 
+    % Modification pour augmenter la taille des accords.
+                                                    \\onehalfspacing
+                                                    %%\\doublespacing
+                                                    \\setstretch{1.8}
+
     %------PostScript-Header für die Chord-Songs------
                                                     %\\special{header=$libpath/chord-common.ps}
 
@@ -525,9 +531,11 @@ sub latex_header {
     \\newcommand{\\gtxchord}[2]{\\sbox{\\gtxchordbox}{#1}\\sbox{\\textbox}{#2}%
     \\ifthenelse{\\lengthtest{\\wd\\textbox>\\wd\\gtxchordbox}}%
     {%
-         \\raisebox{2ex}[2ex][2.5ex]{\\makebox[0pt][l]{\\scriptsize\\bf#1}}#2%
+         % Boîte pour les accords (plus gros)
+         \\raisebox{2.5ex}[2ex][2.5ex]{\\makebox[0pt][l]{\\small\\bf#1}}#2%
                                      }{%
-                                           \\raisebox{2ex}[2ex][2.5ex]{\\makebox[0pt][l]{\\scriptsize\\bf#1}}\\makebox[\\wd\\gtxchordbox+0.5em][l]{#2}%
+                                           % Boîte pour les accords (plus gros)
+                                           \\raisebox{2.5ex}[2ex][2.5ex]{\\makebox[0pt][l]{\\small\\bf#1}}\\makebox[\\wd\\gtxchordbox+0.5em][l]{#2}%
                                                                        }%
                                        }%