Last active
April 27, 2017 11:47
-
-
Save wynro/42ae8db93c4b5225d1d1e8e1a068e786 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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