General ⇒ How to give IF ELSE conditions for packages
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: How to give IF ELSE conditions for packages
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