WeBWorK Problems

PGML accented characters?

PGML accented characters?

by Michele Titcombe -
Number of replies: 3
Is there a way to put accented characters in text in PGML?

For example, I would like to put the acute accent on the final e in the first name of Rene Descartes.

In LaTeX, I would use... Ren\'e Descartes
In html, I would use... René Descartes
Inside BEGIN_PGML ... END_PGML, what could I use?

Thank you.
In reply to Michele Titcombe

Re: PGML accented characters?

by Geoff Cox -
Perhaps not the most elegant solution, but you could use

Ren[`\acute{\text{e}}`] Descartes

if you don't mind mixing the latex font with the default webwork font
In reply to Michele Titcombe

Re: PGML accented characters?

by F. Heiderich -
If you can, you may also consider to use the new UTF-8 support in WeBWorK. Using it, you can just write "René Descartes" in your UTF-8 encoded .pg file. There is no need for special commands anymore. Accents should render fine in HTML and in the LaTeX output. It is available in the following pull request:

https://github.com/openwebwork/webwork2/pull/800

Be warned that this is not yet part of WeBWorK 2.13. So use it at your own risk. We would appreciate your feedback.