Latex
Conditions
Latex.Conditions History
Hide minor edits - Show changes to output
January 26, 2010, at 06:52 PM
by
- Changed line 5 from:
Getting back to the genuine Tex commands is a more robust solution.
to:
Getting back to the genuine Tex commands appears a more robust solution.
January 26, 2010, at 06:52 PM
by
- Changed lines 3-5 from:
The @@\ifthenelse@@ instruction provided by the @@ifthen@@ package is a solution to deal with conditions but it is quite sensitive and does not stand verbatim environment or @@\verb@@ command.
Getting back to genuine Tex commands is a more robust solution.
Getting back to genuine Tex commands is a more robust solution.
to:
The @@\ifthenelse@@ instruction provided by the @@ifthen@@ package is a solution to deal with conditions but it is quite sensitive and does not stand @@verbatim@@ environment nor @@\verb@@ command.
Getting back to the genuine Tex commands is a more robust solution.
Getting back to the genuine Tex commands is a more robust solution.
January 26, 2010, at 06:51 PM
by
- January 26, 2010, at 06:51 PM
by
- Changed line 1 from:
Within a LaTeX document, it is possible to include conditions regarding the compilation of specific portions of the text.
to:
Within a LaTeX document, conditions regarding the compilation of specific portions of the text could be included
January 26, 2010, at 06:50 PM
by
- Added lines 1-27:
Within a LaTeX document, it is possible to include conditions regarding the compilation of specific portions of the text.
The @@\ifthenelse@@ instruction provided by the @@ifthen@@ package is a solution to deal with conditions but it is quite sensitive and does not stand verbatim environment or @@\verb@@ command.
Getting back to genuine Tex commands is a more robust solution.
Exemple :
[@
% define a condition
\newif\ifmycondition
\myconditiontrue
% define mycondition as true
% \myconditionfalse
% define mycondition as false
\ifmycondition
% if mycondition is true print this :
hello my condition is true
\else
% if mycondition is false print this :
hello my condition is false
\fi
@]
There is not need to declare any special package
The @@\ifthenelse@@ instruction provided by the @@ifthen@@ package is a solution to deal with conditions but it is quite sensitive and does not stand verbatim environment or @@\verb@@ command.
Getting back to genuine Tex commands is a more robust solution.
Exemple :
[@
% define a condition
\newif\ifmycondition
\myconditiontrue
% define mycondition as true
% \myconditionfalse
% define mycondition as false
\ifmycondition
% if mycondition is true print this :
hello my condition is true
\else
% if mycondition is false print this :
hello my condition is false
\fi
@]
There is not need to declare any special package