Correction problème avec classe article
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 6 May 2022 01:20:31 +0000 (21:20 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 6 May 2022 02:14:30 +0000 (22:14 -0400)
gtx2tex.pl

index 01bf47e..3c2f7b6 100644 (file)
@@ -591,6 +591,11 @@ sub latex_header {
 "
     }
 
+    print TEX "
+        \\usepackage{setspace}
+        \\usepackage{titlesec}
+    ";
+
     if ( $document_class eq "book" ){
         print TEX "
         \\title{$title}
@@ -600,8 +605,7 @@ sub latex_header {
         \\makeindex
         \\usepackage{fancyhdr}
         \\pagestyle{myheadings}
-        \\usepackage{setspace}
-        \\usepackage{titlesec}
+
         %%\\titleformat{command}[shape{format}{label}{sep}{before-code}[after-code]
         \\titleformat{\\section}{\\centering}{}{0em}{\\bf\\large}
         "