I am authoring problems in Spanish and I would like to use accents inside the pg code and watch them in the hardcopy. If I write, for example, Matemáticas, I have not problems in the html output, but in the PDF I obtain Matemticas.
I have been using
$Matematicas=MODES(TeX=>"{Matem\'aticas}",HTML=>"Matemáticas");
to obtain the desired output. But then I have to construct a dictionary of all accented words and the code looks less readable.
I tried adding the line
\usepackage[latin1]{inputenc}
in the hardcopyPreamble.tex file, but the output is then
Matemáticas
both in the PDF and the TEX files.
Does anybody know how I can add accented words and obtain the desired output in the PDF file?
Thanks.