Diminution espace après le titre
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 3 Dec 2021 20:20:06 +0000 (15:20 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2022 22:14:43 +0000 (17:14 -0500)
gtx2tex.pl

index 2190f08..c59bb27 100644 (file)
@@ -328,6 +328,9 @@ sub directive{
             $song_title = uc($song_title);
         }
 
+        # \titlespacing{command}{left}{before-sep}{after-sep}[right-sep]
+        print TEX "\\titlespacing{\\section}{0em}{0em}{-0.6cm}\n";
+
         print TEX "\\begin{center} \\section*{$song_title}\\end{center}\n";
         $define="";
         print TEX "\\index{$song_title}";
@@ -578,6 +581,9 @@ sub latex_header {
         \\usepackage{fancyhdr}
         \\pagestyle{myheadings}
         \\usepackage{setspace}
+        \\usepackage{titlesec}
+        %%\\titleformat{command}[shape{format}{label}{sep}{before-code}[after-code]
+        \\titleformat{\\section}{\\centering}{}{0em}{\\bf\\large}
         "
     }else{
         print TEX "