Hi,
when writing in languages using accents (e.g. italian) one frequently types `e or `o (or "u etc). The LaTeX bundle has the annoying habit of doubling the ticks or backticks (or the double quotes) even immediately following a backslash \
This seems inappropriate; the sequences `' and "" have no use I presume. Is it possible to keep the doubling of ticks except when immediately following a backslash? I know I can disable the doubling completely, but I would like to keep it in other cases.
Thanks, Piero
Piero D'Ancona <pierodancona@...> writes:
Hi,
when writing in languages using accents (e.g. italian) one frequently types `e or `o (or "u etc). The LaTeX bundle has the annoying habit of doubling the ticks or backticks (or the double quotes) even immediately following a backslash \
This seems inappropriate; the sequences `' and "" have no use I presume. Is it possible to keep the doubling of ticks except when immediately following a backslash? I know I can disable the doubling completely, but I would like to keep it in other cases.
Thanks, Piero
Hi,
This does not answer your question but why not use “\usepackage[utf8]{inputenc}” and type your accented characters directly ?
On 4. Oct 2006, at 02:11, Piero D'Ancona wrote:
[...] Is it possible to keep the doubling of ticks except when immediately following a backslash? I know I can disable the doubling completely, but I would like to keep it in other cases.
With a bit of work, you can do this for most cases, yes.
The preference to disable the auto-paired characters accepts a scope selector, so what you need to do is provide it a scope selector which matches only the caret when immediately after an escape character.
This is where things are currently not ideal, because you need to a) edit the LaTeX language grammar to markup these locations, and b) since the scope of the is the character to the right of the caret, you actually need to (also) match the character following the escape -- I would imagine that in most cases that character would be a whitespace character (potentially a newline), so it should be possible.
I think we could make the changes in the default LaTeX bundle. Like the other poster, I would however also suggest just using real accented characters :)
Thank you for your indications. Two comments:
1) Clealry I prefer to leave the official bundle untouched and add every modification in a personal bundle. It is a bit awkward to change scope selectors on a local basis, so I would really like to follow the standard (and convince Allan to change the standards if he thinks fit :). But I can leave with double ticks, maybe I'll add a command to insert single ticks...
2) I do not like accented utf characters. Since my file is chock full of \commands anyway, the improvement in readability is very minor. On the other hand, frequently something wrong occurs when reading the file with a bad setting, or exchanging it with a colleague using Windows 95 (serious) etc etc. If I were not happy with ascii I would be using Office (not too serious).
Piero
... I forgot to mention: I use a US keyboard, like ~70% of the scientific community even in accented countries. So for me inserting an accented character is actually less convenient than the TeX macro
Piero