Can anyone let me know how to give if else conditions for packages?
For example, in my application I use \usepackage[OT1,T1]{fontenc}, but this fontenc does not support for Vietnam. So I need to use \usepackage[T5]{fontenc} for Vietnam.
I tried by giving
\ifx\Vietnam\undefined
\usepackage[OT1,T1]{fontenc}
\else
\usepackage[T5]{fontenc}
\fi
But this does not works.
Thanks.
General ⇒ How to give IF ELSE conditions for packages
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: How to give IF ELSE conditions for packages
Try using the ifthen package:
http://tug.ctan.org/tex-archive/help/Ca ... fthen.html
You can define a boolean value (for Vietnam, in your case) and then
conditionally include the lines you want. If you need an example,
let me know.
Adrian
http://tug.ctan.org/tex-archive/help/Ca ... fthen.html
You can define a boolean value (for Vietnam, in your case) and then
conditionally include the lines you want. If you need an example,
let me know.
Adrian