Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need the characters «» in my LaTeX document. I'm writing in English though, and I don't want to use Babel. I have the following hack but I'd like a better way:

\newcommand{\q}[1]{{%
\font\larm = larm1000%
\larm%
\char 190}{#1}{%
\font\larm = larm1000%
\larm%
\char 191}}
share|improve this question

4 Answers 4

up vote 27 down vote accepted

There are several ways to do this:

  • With standard methods, you will find \guillemotleft and \guillemotright. For this you need \usepackage[T1]{fontenc} (which is recommended anyways).
  • Using the language switching capabilities of babel, e.g. \foreignlanguage.
  • Using csquotes and its \foreignquote command.

Personally, I would recommend the third option.

share|improve this answer
7  
I'd probably favour csquotes, as it means you keep the semantics of the mark-up and can reuse the source in other places more readily. –  Joseph Wright Sep 2 '10 at 18:34
3  
Unfortunately it is indeed spelled incorrectly. It should be guillemetleft and guillemetright (with an "e"). A guillemot with an "o" is a seabird :-) But I think we're stuck with it. –  Peter Flynn Jan 19 '12 at 10:48

There's also a convenient way to do it with Latin Modern:

\documentclass{article}

\usepackage{lmodern}

\begin{document}

<<Quoted text>>.

\end{document}
share|improve this answer
    
Nice and intuitive! –  Hendrik Vogt Mar 8 '11 at 15:59
    
Tried inside a knitr document. and this was the only way that really worked for me. I must admit I am surprised cause the other answers looked sound, too. However thanks Andrey! –  hans0l0 Dec 19 '12 at 9:45
    
Does not work for me. I use koma-script book with babel –  lalebarde May 6 at 15:03

You could type it directly if you use an utf8 encoding :

\documentclass{minimal}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
«for exemple»
\end{document}

But, the spacing isn't — at least for french typography — correct

share|improve this answer

I find this way is very convenient:

package: \usepackage[frenchb]{babel}

in text: \og text \fg{}

share|improve this answer
1  
This is indeed the correct way when using French with babel. –  egreg Oct 31 at 20:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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