I am trying to output some information to an auxiliary file using \write and among other things I have authors names that often include accented letters. If I use the string explicitly the accented letters are expanded into TeX commands, but I can solve this by using \unexpanded. However, if the string is contained in a variable, and I use \unexpanded, I get the name of the variable instead of its content. The command \unexpanded works fine again if the variable is a command parameter, for example #1.
I don't have an understanding of expansion that is clear enough to sort this out, so any help is appreciated. All I want to do is to write the content of a variable holding a string with accented letters to the text file.
Here is a minimal example:
LaTeX forum ⇒ Text Formatting ⇒ Write accented characters to file using \write
Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
2 posts • Page 1 of 1
Who is online
Users browsing this forum: Stefan Kottwitz and 5 guests