Explorar el Código

Merge branch 'bibfixes' into 'master'

Fixes for bibliographies

See merge request coresec/phdthesistemplate!2
Daniel Gruss hace 6 meses
padre
commit
922e6e3375
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 1 3
      main.tex.php
  2. 3 1
      thesiscomposer.php

+ 1 - 3
main.tex.php

@@ -153,7 +153,7 @@ if (isset($options["--cv"]))
 
 During my thesis, I contributed to <?php echo $num_publications ?> publications in conference proceedings, <?php echo $num_publications_in_thesis ?> of which are included in this thesis as shown below.
 
-\newrefcontext[sorting=ydnt]
+\newrefcontext[sorting=nty]
 
 <?php echo $sloppy_begin; ?>
 
@@ -184,7 +184,6 @@ foreach ($papers as $p => $f)
 echo '
 
   \bgroup
-  \begin{refsection}
   \pgfplotsset{
     table/search path={'.$p.'/},
   }
@@ -196,7 +195,6 @@ elseif (isset($options['--use-include']))
 else
   echo '  \input{'.$p.'/'.$f.'}';
 echo '
-  \end{refsection}
   \egroup
   
   \newpage

+ 3 - 1
thesiscomposer.php

@@ -485,7 +485,8 @@ TODO
 
 
 \\newpage
-\\newrefcontext[sorting=ydnt]
+\begin{refsection}
+\\newrefcontext[sorting=nty]
 \begin{center}
 {\Large \bfseries
 
@@ -656,6 +657,7 @@ END;
         $tex = handle_appendix($tex);
       if (!str_starts_with($tex,"\\makeatletter\n\def\\relativepath{\\import@path}\n\\makeatother\n"))
         $tex = "\\makeatletter\n\def\\relativepath{\\import@path}\n\\makeatother\n" . $tex;
+      $tex .= "\n\end{refsection}";
       $tex .= "\n\graphicspath{}";
       file_put_contents($file,$tex);
     }