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 am editing my Latex code using MS Word. Before you get any ideas (I know it's weird) please refer How to run Latex from Word?

Having found myself in this unusual predicament, I also have to use double quotes quite often. So what is ’’ becomes ’’ which is correct, but what I really want is ''. To make it clear, I am trying to end the double quotes with the aforementioned two characters, but word modifies the standard apostrophe.

So is there a different way to double quote a "phrase" in Latex? I was looking for something similar to \dbquote{phrase}.

P.S.: Needless to add, the modification that MS Word does on '' results in an incorrect output. For example, "phrase" is rendered with just the initial double quotes like "phrase.

share|improve this question
2  
Take a look a the csquotes package. That should provide exactly what you want. –  Benedikt Bauer Sep 30 '12 at 18:06
1  
On a side note: Can't you configure the AutoCorrect options in a way that typing "phrase" becomes “phrase”? –  Qrrbrbirlbel Sep 30 '12 at 18:15
    
@BenediktBauer Thanks! @ Qrrb No how the quotes appear is not the issue, is just that the ending quotes don't appear at all, is my issue. –  Shashank Sawant Sep 30 '12 at 18:19
    
@ShashankSawant Nonetheless, I'd turn those nasty AutoCorrect things off. But that's just me. –  Qrrbrbirlbel Sep 30 '12 at 18:26
    
@ShashankSawant it is not that crazy to edit LaTeX documents in Word. I do it sometimes too, but my reason might be different: I have to convert Word articles of other people into LaTeX, and adding LaTeX markup directly into the document is then the easiest way. –  tohecz Sep 30 '12 at 18:46
add comment

2 Answers 2

up vote 6 down vote accepted

LaTeX provides:

  • \textquotedblleft for ,
  • \textquotedblright for ,
  • \textquoteleft for and
  • \textquoteright for .

You can define your own macro:

\newcommand\dblquote[1]{\textquotedblleft #1\textquotedblright}
\newcommand\sglquote[1]{\textquoteleft #1\textquoteright}

Or you use the csquotes package that provides

\enquote{Phrase\enquote{inner quote}}
share|improve this answer
    
Trying it right away. –  Shashank Sawant Sep 30 '12 at 18:14
add comment

You can switch off the auto-correct of quotes, and then you can use the key on the left from key 1 for the starting quotes, and the key on the right from key L for the ending quote.

Another option is to use \usepackage[utf8]{inputenc}, which should correctly display the quotes if the appropriate fonts are loaded (surely \usepackage[T1]{fontenc} should be enough, I'm even not sure if it's necessary).

share|improve this answer
add comment

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.