# LaTeX：修正向后引号

Mukesh Chapagain 2016-06-06 00:00:00    Mukesh Chapagain笔记

 1 2 Your word'    = for single quote Your words'' = for double quotes

 1 2 \enquote{Your words}  = for single quote \enquote*{Your words} = for double quotes

 1 2 3 4 5 6 7 8 9 10 11 12 13 \documentclass{article} \usepackage[british]{babel} \usepackage{csquotes}   \begin{document}   This will not work: "General quotation mark"   (generates backward quotation mark at the beginning) \\   This will work: \enquote{Hello Single World} and \enquote*{Testing Double}   \end{document}

# LaTeX: Fix for Backward Quotation Mark

Mukesh Chapagain 2016-06-06 00:00:00

In LaTeX, if you write quotation (punctuation) mark in normal way then you will get into problem. Normally we write word with quotation as: “Your words”. This is displayed as ”Your words” in LaTeX (both opening and closing quote facing the same side).

The proper way of writing quotation in LaTeX is:

 1 2 Your word'    = for single quote Your words'' = for double quotes

You can also use csquotes package for this purpose.

 1 2 \enquote{Your words}  = for single quote \enquote*{Your words} = for double quotes

Note: The quotation facility is context sensitive. Single quote and Double quote will toggle if you use ‘english’ (american) as option for the babel package. I have used ‘british’ option for babel package.

Here is the sample document code using csquotes package.

 1 2 3 4 5 6 7 8 9 10 11 12 13 \documentclass{article} \usepackage[british]{babel} \usepackage{csquotes}   \begin{document}   This will not work: "General quotation mark"   (generates backward quotation mark at the beginning) \\   This will work: \enquote{Hello Single World} and \enquote*{Testing Double}   \end{document}

Output:

Hope this helps.
Thanks.