From c1fd27d9c4e7fe4c2dac2e2e3716797a4eb95458 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 16 Nov 2021 23:10:16 -0500 Subject: [PATCH] =?utf8?q?Ajout=20option=20pour=20caract=C3=A8res=20gras?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- gtx2tex.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtx2tex.pl b/gtx2tex.pl index d4bfed5..d87bad0 100644 --- a/gtx2tex.pl +++ b/gtx2tex.pl @@ -30,6 +30,7 @@ GetOptions( "output=s" => \$output, "verbose" => \$verbose, "italian" => \$italian, "uppercase" => \$uppercase, + "bold" => \$bold, ); $usage = "This is gtx2tex 2.8 @@ -41,6 +42,7 @@ options: output option a tex file is created --italian changes chord output to italian notation (La, Si, Do, Re, Mi, Fa, Sol) +--bold make all lyrics in bold --uppercase make all lyrics uppercase"; if ( ! $ARGV[0] ){ @@ -305,6 +307,11 @@ sub directive{ } print TEX "%\n%----- New Song -----\n"; print TEX "\\newpage\\addcontentsline{toc}{section}{$_}\n"; + + if ( $bold ) { + print TEX "\\bfseries\n"; + } + if ( $output eq "pdf" ) { print TEX "\\pdfdest name {$_} fith \\pdfoutline goto name {$_} {$_}" } print TEX "\\begin{center} \\section*{$_}\\end{center}\n"; $define=""; -- 2.20.1