0

I'd like to type some text in english or other language depending on an option passed to \documentclass. The idea is to implement a very crude "localization" macro (called \localize, for instance) like:

\documentclass[11pt,catalan]{article}
% 'catalan' option is passed automatically to babel if present
\usepackage{babel}
\newcommand{\localize}[2]{(pseudocode) if 'catalan' defined then #1 else #2}
...
\begin{document}
  \localize{Text en català}{English Text}
\end{document}

I've been playing with \@classoptionslist, as suggested by this question, but with no success.

0 Answers0