Skip to content
Snippets Groups Projects
Commit 84b8b0c3 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

add \externalReferent commant for outside refs

parent a825eb92
Branches
Tags
No related merge requests found
......@@ -8,6 +8,7 @@
[ ! -e main.tex ] && [ -e config/main.tex ] && \
cp config/main.tex . && \
ln -s config/autocompile.sh . && \
ln -s config/latexmkrc . && \
ln -s config/.gitignore .
git gc --auto
......
......@@ -30,7 +30,7 @@
\RequirePackage{colortbl}
\RequirePackage[poster]{tcolorbox}
\tcbuselibrary{breakable,raster}
%\tcbset{enhanced, attach boxed title to top center={yshift*=-3mm},drop shadow east,colback=white,arc=6mm,outer arc=1mm}
%\tcbset{enhanced, attach boxed title to top center={yshift*=-3mm},drop shadow east,callback=white,arc=6mm,outer arc=1mm}
\tcbset{enhanced, drop shadow east,
colframe=black,colbacktitle=black!5!white,
......@@ -47,11 +47,29 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
}
}
\RequirePackage{xr-hyper}
\RequirePackage[
pdfstartpage=2,
bookmarks=true]%
{hyperref}
%%%%%%%%%% Allow for external referencing
\newcommand*{\externalReferent}[1]{
\newtoggle{#1}
\IfFileExists{../#1/main.tex}{
\makeatletter
\@addtofilelist{../#1/main.tex}
\@addtofilelist{../#1/main.aux}%
\makeatother
\externaldocument{../#1/main}%
\settoggle{#1}{true}
}%
{\typeout{No file #1.}
\settoggle{#1}{false}
}
}
%%%%%%%%%% Section Headers %%%%%%%%%%
......
add_cus_dep( 'tex', 'aux', 0, 'makeexternaldocument' );
sub makeexternaldocument {
if (!($root_filename eq $_[0]))
{
system( "latexmk -cd -pdf \"$_[0]\"" );
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment