It appears that some abbreviation inherited from Latin, e.g., i.e., have different inter-space prescription in different languages for different reasons (good and bad ones). No space space in English, tiny space in German, a regular space in French. Is there a language-independent command we can use which will get this right just as, e.g., \chaptername gets the names of chapters right? If not, what is the best way to implement in [La]TeX our own ad hoc command ?
Asked
Active
Viewed 573 times
6
1 Answers
7
babel (which is the standard multi-language managment system in pdfLaTeX) provides an interface to implement those kinds of rules. Add definitions into the language specific \extras, e.g.
\addto\extrasenglish{\def\ie{i.e.\@}}
\addto\extrasgerman{\def\ie{i.\,e.\@}}%or maybe d.\,h. instead of i.\,e.
\addto\extrasngerman{\def\ie{i.\,e.\@}}%or maybe d.\,h. instead of i.\,e.
\addto\extrasfrench{\def\ie{i.~e.\@}}
\addto\extrasspanish{\def\ie{v.~g.\@}}
for latin "i.e." and call \ie, of course, in your manuscript when you want to use this particular abbreviation.
Ruben
- 13,448
-
In Spanish i.e. should be used as in french (
i.~e.), but is not very common, so{\em id~est}oresto~escould be better, whereas e.g. is not used at all. The equivalent should bev.~ g.(latin verbi gratia or Spanish verbigracia) orp.~ ej.( por ejemplo ). – Fran Aug 21 '15 at 11:28 -
@Fran Are the explicite two spaces in your last two examples on purpose? – Johannes_B Aug 21 '15 at 11:42
-
-
Another way: You can define language’s versions inside the command definition like this. But I think that Ruben’s solution is the best. – fauve Aug 21 '15 at 17:12
id est, so there are some reasons for the space. But the formi.e.is preferred. – Przemysław Scherwentke Aug 20 '15 at 02:30limit off-topic? It is off-topic unless it is about TeX or friends, which it isn't, so it is ;). – cfr Aug 20 '15 at 02:54e. g.will have whitespace after the e, bute.g.does not. – Aug 20 '15 at 05:16e.\,g., prescribes a small space in between [Duden, Richtlinien für den Schriftsatz]. – AlexG Aug 20 '15 at 07:20\,. Does La(TeX) automatically ensures this or do we have to put the abbreviation into\mbox? – AlexG Aug 20 '15 at 12:07babel?) formatting is implemented. You'd have to look under the hood. – Aug 20 '15 at 16:40\newcommand{\eg}{e.\,g.}. Even better:\newcommand{\eg}{for example}– musarithmia Aug 20 '15 at 22:37babel's\addto\captions<language>{\def\<abbrvname>{<abbrvformatted>}}(example:\addto\captionsgerman{\def\ie{d.\,h.}}). Moreover, this could be enhanced by theabbrevspackage from the frankenstein bundle or simply theacronymspackage orabbr(and oldish hybrid package that also works in Plain). – Ruben Aug 20 '15 at 22:46\addto\extras<language>, probably. – egreg Aug 21 '15 at 07:58z\,B.needs a thin space. On the other hand, abbreviations of that kind are allowed, but discouraged as everybody expands the letters to the words anyway. Same goes ford\,h.(das heißt) and others, but not for acronyms like CD or LASER or NATO. – Johannes_B Aug 21 '15 at 09:55