2

French quotes can easily be obtained using \og and \fg commands. Although this is perfectly fine, it's not very intuitive to use them when typing.

Is there a way to make latex automatically converting odd " quotes to \og and even " quotes to \fg, using some \renewcommand magic or something in the like ?

Bregalad
  • 123
  • Why not using directly « and » unicode chars? – Rmano Apr 18 '16 at 15:46
  • @Rmano They are not available on my keyboard, so opening the unicode text char and copying them is even more than using \og and \fg in my opinion. – Bregalad Apr 18 '16 at 15:46
  • 1
    Isn't this automatically achieved with csquotes package? –  Apr 18 '16 at 15:52
  • I use extensively the compose key for this kind of tasks, together with this answer: http://tex.stackexchange.com/a/304643/38080 — I strongly advise it (« for me is compose,<,< — really fast, especially if you define CapsLock, the Most Absurd Key(™), as a Compose...) – Rmano Apr 18 '16 at 15:57
  • \usepackage{newunicodechar} \newunicodechar{“}{«} \newunicodechar{”}{»} – Manuel Apr 18 '16 at 16:05
  • May I suggest to install the « Galéron keyboard driver », available here? It gives an easy access to « French », “American” and ‘British quotes’, accented capital letters, &c. – Bernard Apr 18 '16 at 16:27
  • @Bernard Je viens de suisse, donc je n'ai pas un clavier AZERTY, et ce ne serait en aucun cas possible pour moi de m'adapter à un clavier différent du QWERTZ. – Bregalad Apr 24 '16 at 16:56
  • @Bregalad: J'aurais pensé qu'en Suisse romande, on utilisait un clavier azerty (ou une variante, comme nos amis belges)… Et le Bépo ? – Bernard Apr 24 '16 at 17:20

1 Answers1

4

You can use following definition:

\catcode`\"=13
\def"{\begingroup\og \def"{\fg\endgroup}}

Aha "test" more "once".
wipet
  • 74,238