From 2530f4c08624910e00204831a297288f010efd0f Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Fri, 3 Dec 2021 15:20:06 -0500 Subject: [PATCH] =?utf8?q?Diminution=20espace=20apr=C3=A8s=20le=20titre?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- gtx2tex.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtx2tex.pl b/gtx2tex.pl index 2190f08..c59bb27 100644 --- a/gtx2tex.pl +++ b/gtx2tex.pl @@ -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 " -- 2.20.1