one LaTeX source file to produce two different pdf files:

Ron RJF Fehd ron.fehd.macro.maven at gmail.com
Tue Jul 19 17:28:03 CEST 2022


I have several files for this trick

%name: doc-new-if.tex
\newif\ifModeSmall  \ModeSmallfalse

%name: my-doc-out-small.tex
\documentclass{article}
\input{doc-new-if}
\ModeSmalltrue
\input{my-doc-main}

%name: my-doc-out-large.tex
\documentclass{article}
\input{doc-new-if}
\input{my-doc-main}

%name: my-doc-main.tex
\title{x}
\author{y}
%...
%usepackage{???}
\begin{document}
\maketitle
\ifModeSmall
      % true
\else % false
\fi   % end: ModeSmall
\end{document}
hth

-- 
Ron Fehd  {SAS} macro maven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20220719/b66c75f8/attachment.html>


More information about the texhax mailing list.