On the question Is it possible to keep my translation together with original text? one of its answers use a if then else:
\documentclass{article}
\newif\ifenglish
\englishtrue % Will show English text only
%\englishfalse % Will show Portuguese text only
\begin{document}
The technology.
\ifenglish
\else
AAAAAAAAAAAAA
\fi
\end{document}
I would like to do \ifnot but throws the error:
D:\test2.tex:11: Undefined control sequence. [\ifnotenglish]
D:\test2.tex:12: Extra \else. [\else]
D:\test2.tex:14: Extra \fi. [\fi]
\unless\ifenglish– Robert Aug 12 '17 at 18:28\def\ifnot{\unless}...? – marsupilam Aug 12 '17 at 19:03\if...– David Carlisle Aug 12 '17 at 19:48\ifnotis not defined, then ! – marsupilam Aug 12 '17 at 20:32\newif\ifnotenglishrather than\newif\ifenglish– David Carlisle Aug 12 '17 at 20:51