If you have text containing reserved TeX characters and want the text to appear literally in your document, you have to escape the reserved charaters to prevent LaTeX from interpreting them. The following functions take care of that (Menu: Idefix)
Paste to LaTeX: Takes the text from the clipboard and escapes reserved characters prior to pasting into the editor.
Convert to LaTeX: Escapes the reserved characters in the current selection.
For example: "Less than 10% of computer users know the meaning of $PATH." will be converted to "Less than 10\% of computer users know the meaning of \$PATH."
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not decided. This is a very basic feature. It's easy to handle, as long as there is no ambiguity, i.e. the has to be a general rule "replace char by char sequence".
Currently we do only replace the reserved characters:
done: hg 5040 (7c6b1bbaba3e)
Escaping reserved characters
If you have text containing reserved TeX characters and want the text to appear literally in your document, you have to escape the reserved charaters to prevent LaTeX from interpreting them. The following functions take care of that (Menu: Idefix)
For example: "Less than 10% of computer users know the meaning of $PATH." will be converted to "Less than 10\% of computer users know the meaning of \$PATH."
Many thanks!
Would it be a reasonable feature request that garbage characters (even in UTF-8 encoding), such as "°" or invisible spaces would be taken in account?
I'm not decided. This is a very basic feature. It's easy to handle, as long as there is no ambiguity, i.e. the has to be a general rule "replace char by char sequence".
Currently we do only replace the reserved characters:
Note: just changed the replacement for
\to\textbackslash{}according tohttp://en.wikibooks.org/wiki/LaTeX/Basics#Reserved_Characters (hg 5041 (b55b93fa4167)).
We are not aiming at a replacement for every possible problematic char. But the replacements that we do have to be correct under all circumstances.
I would be ok to add more replacements if they follow the above rule. In particular