Skip to content

Commit

Permalink
Changed script structure for better integration with Overleaf.
Browse files Browse the repository at this point in the history
Instead of generating multiple preambles and uncommenting the right one, you tell the script which preamble to generate and it is always written to the same file. This makes it cleaner to version that single file (although it is still auto-generated), instead of the whole set of preambles as was the case previously.
  • Loading branch information
sylvainhalle committed Dec 9, 2018
1 parent 59f304a commit 7f6197a
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 68 deletions.
4 changes: 0 additions & 4 deletions Source/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@

# ...and this LabPal plots file if you use LabPal
!labpal-plots.pdf

# Don't version auto-generated LaTeX files
preamble*.inc.tex
postamble*.inc.tex
36 changes: 7 additions & 29 deletions Source/paper.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% ***************************************************************************
%% ***************************************************************************
%% My paper
%%
%% Authors: Emmett Brown, Marty McFly, Biff Tannen
Expand All @@ -9,23 +9,12 @@
%%
%% This paper is an instance of the PaperShell template. For more
%% information, please visit https://github.com/sylvainhalle/PaperShell
%% ***************************************************************************
%% ***************************************************************************
%% ---------------------------
%% Author preamble. Uncomment the one corresponding to the
%% stylesheet you want. **Don't forget to also uncomment the proper
%% line for the postamble at the end!!**
%% Author preamble. The contents of this file change depending on the
%% paper class you choose.
%% ---------------------------
%\input{preamble-aaai.inc.tex}
%\input{preamble-acm.inc.tex}
\input{preamble-acm-journal.inc.tex}
%\input{preamble-easychair.inc.tex}
%\input{preamble-elsarticle.inc.tex}
%\input{preamble-ieee.inc.tex}
%\input{preamble-ieee-journal.inc.tex}
%\input{preamble-lipics.inc.tex}
%\input{preamble-lncs.inc.tex}
%\input{preamble-stvr.inc.tex}
%\input{preamble-svjour.inc.tex}
\input{preamble.inc.tex}

%% ---------------------------
%% If you wish to include additional packages, define new environments or
Expand Down Expand Up @@ -64,20 +53,9 @@ \section{Donec id eros non nisl pharetra} %% {{{
%% }}} --- Section

%% ---------------------------
%% Bibliography. Uncomment the one corresponding to the
%% stylesheet you want.
%% Bibliography and postamble
%% ---------------------------
%\input{postamble-aaai.inc.tex}
%\input{postamble-acm.inc.tex}
\input{postamble-acm-journal.inc.tex}
%\input{postamble-easychair.inc.tex}
%\input{postamble-elsarticle.inc.tex}
%\input{postamble-ieee.inc.tex}
%\input{postamble-ieee-journal.inc.tex}
%\input{postamble-lipics.inc.tex}
%\input{postamble-lncs.inc.tex}
%\input{postamble-stvr.inc.tex}
%\input{postamble-svjour.inc.tex}
\input{postamble.inc.tex}

\end{document}

Expand Down
Loading

0 comments on commit 7f6197a

Please sign in to comment.