I have very long source text. I want to create two outputs:
All text
Only small pieces of this source text, selected by condition command
MWE (precisely: not working)
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\newif\ifPIECES
\PIECEStrue
\section{Lorem ipsum dolor}
\lipsum[1]
\ifPIECES This is first small piece. I want this piece in two outputs.
When PIECES is folse, I want all source text. \else\fi
\lipsum[2]
\ifPIECES This is second small piece. \else\fi
\lipsum[3]
\ifPIECES This is third small piece. \else\fi
\lipsum[4]
\end{document}
How I should define LaTeX command? I am nowbe in programming, as you see.
ifPIECES elsestatement. – yannisl Dec 17 '13 at 14:09