소스 검색

Fix self-citing papers

Begin new refsections _after_ the Publication Data, where the paper is
supposed to be referenced by a \fullcite.

Do so by removing the corresponding \begin and \end from the main
template and making thesiscomposer emit the corresponding commands
inside the individual paper files.
Stefan Gast 6 달 전
부모
커밋
e64e492212
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 2
      main.tex.php
  2. 3 1
      thesiscomposer.php

+ 0 - 2
main.tex.php

@@ -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);
     }