3

How to typeset French quotation marks in plain TeX?

<<~This is the {\LaTeX} way.~>>

I might need to use European Computer Modern (or Latin Modern?) but I'm not sure how to do so.

1
  • If I try to use those LaTeX ligatures in a TeX file, I end up with inverted exclamation marks (which is the expected behaviour).
    – Laravel
    Aug 20 at 11:13
9

enter image description here


\font\rm=ecrm1000 \rm

<<~This is the {\TeX} way.~>>

\bye
4
  • 1
    That was easier than what I thought, thanks
    – Laravel
    Aug 20 at 11:26
  • 1
    On the other hand, something like \'equipe would no longer really work.
    – egreg
    Aug 20 at 11:31
  • 3
    @egreg true but if someone chooses to use plain tex they presumably know how to set up document commands such as accents. It's only possible to answer the questions as asked, not define an entire format suitable for document production in an answer here. Aug 20 at 11:35
  • 1
    équipe would work just fine with a latin-1 file encoding
    – Laravel
    Aug 21 at 16:49
7

You can use opmac (the documentation is quite scanty, though).

\input opmac
\input t1code
\csaccents

\fontfam[LM Fonts]

<<~\'equipe~>>

\bye

enter image description here

2

If you feel like using L2FSS, you may try

\input plnfss
%\input t1lm.pfd % optional
\usefont{T1}{lmr}{m}{n}

<<~This is the plnfss way.~>>

\bye

If your document is Latin1 encoded, you may type accented letters directly; otherwise, for UTF8, add

\newcount\n
\catcode`\^^c3=\active
\def^^c3#1{\n=`#1\advance\n by 64 \char\n}

and you'll get the right glyph in your document.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.