Do you have an idea how I could make a conditional code inclusion?
Something like that:
#define DETAIL ON if (DETAIL=ON) % in such case we include all the calculation details { blablabla blabla }
Bastien
#define DETAIL ON if (DETAIL=ON) % in such case we include all the calculation details { blablabla blabla }
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
etoolbox
package, do you need an example ?Code: Select all
\documentclass{article}
\usepackage{etoolbox}
\newbool{myboolean}
\boolfalse{myboolean}
%\booltrue{myboolean}
\ifbool{myboolean}{
% if
}{
% else
}
\begin{document}
\ifbool{myboolean}{
Text : boolean is true
}{
Text : boolean is false
}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis