diff --git a/layout.sty b/layout.sty index f3a4a706d4ba6aedcc76e9cf1d8ba21de340a9f7..6cd647d94b4d0137b333e8eacc26c752f47db269 100644 --- a/layout.sty +++ b/layout.sty @@ -144,17 +144,15 @@ bookmarks=true]% \newcommand*{\externalReferent}[1]{ \newtoggle{#1} - \iftoggle{verbose}{ - \IfFileExists{../#1/main.aux}{ - \@addtofilelist{../#1/main.tex} - \@addtofilelist{../#1/main.aux}% - \externaldocument{../#1/main}% + \IfFileExists{../#1/#1.aux}{ + \@addtofilelist{../#1/#1.tex} + \@addtofilelist{../#1/#1.aux}% + \externaldocument{../#1/#1}% \settoggle{#1}{true} }% {\typeout{No file #1.} \settoggle{#1}{false} } - }{} } % Argument 1: The target git directory (e.g. 'core')