Skip to content

Commit

Permalink
Attempt at conditional iffing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Moia committed Jan 18, 2024
1 parent d8ae9d9 commit b45a74d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 9 deletions.
Binary file modified compiled/main.pdf
Binary file not shown.
Binary file modified compiled/main_linenum_trackchanges.pdf
Binary file not shown.
64 changes: 55 additions & 9 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
\ifx\condition\undefined
\immediate\write18{
echo pdflatex
−−jobname=main
"\gdef\condition{0}\input\jobname"}
\immediate\write18{
pdflatex
−−jobname=main_trackchanges
"\gdef\string\condition{1}
\string\input\space\jobname"}
\immediate\write18{
pdflatex
−−jobname=main_linenum
"\gdef\string\condition{2}
\string\input\space\jobname"}
\immediate\write18{
pdflatex
−−jobname=main_linenum_trackchanges
"\gdef\string\condition{3}
\string\input\space\jobname"}
\immediate\write18{
pdflatex
−−jobname=main_textonly
"\gdef\string\condition{4}
\string\input\space\jobname"}
\immediate\write18{
pdflatex
−−jobname=main_textonly_trackchanges
"\gdef\string\condition{4}
\string\input\space\jobname"}
\expandafter\stop
\fi

\documentclass[12pt,a4paper,onecolumn]{article}

%--------------------------------------------
% Input and language
%--------------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish,german,british]{babel}
\usepackage[spanish,british]{babel}

%--------------------------------------------
% AMA-style
Expand Down Expand Up @@ -91,14 +124,27 @@
%--------------------------------------------
% Formatting for submission to AN
%--------------------------------------------
\usepackage[nolists,markers,figuresonly]{endfloat}
\renewcommand{\processdelayedfloats}{}

% \usepackage{lineno}
% \linenumbers

% \usepackage[authormarkup=none,defaultcolor=orange]{changes}
\usepackage[final]{changes}
\ifcase\condition % main
\usepackage[final]{changes}
\or % main_trackchanges
\usepackage[authormarkup=none,defaultcolor=orange]{changes}
\or % main_linenum
\usepackage{lineno}
\linenumbers
\usepackage[final]{changes}
\or % main_linenum_trackchanges
\usepackage{lineno}
\linenumbers
\usepackage[authormarkup=none,defaultcolor=orange]{changes}
\or % main_textonly
\usepackage[nolists,markers,figuresonly]{endfloat}
\renewcommand{\processdelayedfloats}{}
\usepackage[final]{changes}
\or % main_textonly_trackchanges
\usepackage[nolists,markers,figuresonly]{endfloat}
\renewcommand{\processdelayedfloats}{}
\usepackage[authormarkup=none,defaultcolor=orange]{changes}
\fi


\title{Proceedings of the OHBM Brainhack 2022}
Expand Down

0 comments on commit b45a74d

Please sign in to comment.