From 830a17801f99f383e01c6aa85e97d615b04773b9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Fri, 3 Dec 2021 13:41:10 -0500 Subject: [PATCH] =?utf8?q?Sous-titre=20en=20petits=20caract=C3=A8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- gtx2tex.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gtx2tex.pl b/gtx2tex.pl index 0744e01..1a562bc 100644 --- a/gtx2tex.pl +++ b/gtx2tex.pl @@ -331,8 +331,20 @@ sub directive{ $verbose && print TEX "\\typeout{$song_title}"; }elsif ( /{subtitle:|{st:/ ) { s/(\{.*:)(.+)(\})/\2/; + print TEX "\\index{$_!$song_title}"; + print TEX "\\normalfont\n"; + print TEX "\\footnotesize\n"; print TEX "\\begin{center}$_\\end{center}\n"; + print TEX "\\normalsize\n"; + + if ( $bold ) { + print TEX "\\bfseries\n"; + } + else + { + print TEX "\\normalfont\n"; + } }elsif ( /{margin:|{m:/ ) { s/(\{.*:)(.+)(\})/\2/; print TEX "\\marginpar{$_}\n"; -- 2.20.1