4

Possible Duplicate:
Quotation with double quote and O results in Ö

I'm having a problem to write this in LaTeX: "real-world" objects. My code is this

``real$-$world" objects

But this gives me "realwordöbjects" ... I tried \glqq and \grqq but that's not really what I want. \" didn't work either.

4
  • ` real$-$world" objects ` works for me. So does ` real{$-$}world" objects` . Please provide a MWE (minimal working example) showing your problem. Nov 18 '12 at 16:45
  • 3
    Why do you use a minus $-$, instead of a hyphen -? It is “real-world” rather than “real−world”.
    – Caramdir
    Nov 18 '12 at 16:46
  • 1
    I used - at first but it didn't seem to work for a strange reason, it works now lol..
    – Aaron
    Nov 18 '12 at 16:50
  • 2
    Do you know package csquotes? Try texdoc csquotes to learn more about it ...
    – Mensch
    Nov 18 '12 at 16:53
8

You should use two ' signs instead of one " sign. The latter is an active character in many babel languages, and "o produces ö. (Also, instead of switching to math mode to produce a minus sign, simply use a hyphen.)

\documentclass{article}

\usepackage[english,dutch]{babel}

\begin{document}

``real-world" objects

``real-world'' objects

\end{document}

enter image description here

0

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