Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malin Freeborn
core
Commits
84b8b0c3
Commit
84b8b0c3
authored
4 years ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
add \externalReferent commant for outside refs
parent
a825eb92
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autocompile.sh
+1
-0
1 addition, 0 deletions
autocompile.sh
bind.sty
+19
-1
19 additions, 1 deletion
bind.sty
latexmkrc
+8
-0
8 additions, 0 deletions
latexmkrc
with
28 additions
and
1 deletion
autocompile.sh
+
1
−
0
View file @
84b8b0c3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
bind.sty
+
19
−
1
View file @
84b8b0c3
...
...
@@ -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,c
o
lback=white,arc=6mm,outer arc=1mm}
%\tcbset{enhanced, attach boxed title to top center={yshift*=-3mm},drop shadow east,c
al
lback=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 %%%%%%%%%%
...
...
This diff is collapsed.
Click to expand it.
latexmkrc
0 → 100644
+
8
−
0
View file @
84b8b0c3
add_cus_dep( 'tex', 'aux', 0, 'makeexternaldocument' );
sub makeexternaldocument {
if (!($root_filename eq $_[0]))
{
system( "latexmk -cd -pdf \"$_[0]\"" );
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment