Skip to content

Instantly share code, notes, and snippets.

@wynro
Last active April 27, 2017 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wynro/42ae8db93c4b5225d1d1e8e1a068e786 to your computer and use it in GitHub Desktop.
Save wynro/42ae8db93c4b5225d1d1e8e1a068e786 to your computer and use it in GitHub Desktop.
\documentclass[11pt,a4paper]{article}
% Declare the new flag
\newif\ifspanish
% To set the flag, now you use:
% \spanishtrue
% \spanishfalse
% To check the value, the construct is
% \ifspanish
% Value if true
% \else
% Value if false
% \fi
% Of course, the \else clause can be deleted as needed
\begin{document}
\spanishtrue
\ifspanish
Esto esta en Español
\else
Esto, sin embargo en ingles
\fi
\spanishfalse
\ifspanish
Esto esta en Español
\else
Esto, sin embargo, en ingles
\fi
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment