Skip to content

Commit

Permalink
Conditional iffing is too complex
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Moia committed Jan 18, 2024
1 parent b45a74d commit 806fb26
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
\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}

%--------------------------------------------
Expand Down

0 comments on commit 806fb26

Please sign in to comment.