I'm writing a document in Danish using the
memoir LaTeX class.
In Danish we have two different systems for placing commas in a text; one system uses many commas, the other system uses fewer commas. I want my document to be able to generate both.
The simple solution is to introduce an
\optionalcomma command, and then define it as either
depending on what output I want.
However, placing innumerable
\optionalcomma commands in the text, makes it harder for me, the author, to read.
So I wondered, is it possible to have a very unobtrusive way of writing the optional comma. Is there, for example, a way to use a double comma (or some other "small footprint" command) for an optional comma?
This would enable me to write this in my LaTeX file:
Han så,, at jeg kom, og at jeg var glad.
and with minimal changes to the LaTeX file have it produce either this output:
Han så, at jeg kom, og at jeg var glad.
Han så at jeg kom, og at jeg var glad.