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 would like to get this result:

enter image description here

I currently use this piece to get the result:

\glqq{\textit{Analysis II}}\grqq{}

Can I create a single command like the following to get the desired result?

\quoteitalic{Analysis II}
share|improve this question
    
\glqq should be also used as \glqq{} or \glqq\textit{#1} because it doesn't have a parameter. –  Qrrbrbirlbel Jul 25 '12 at 18:46

2 Answers 2

up vote 2 down vote accepted

When dealing with quotes the csquotes package is most convenient. Then you won’t have to use \glqq and \grqq at all. The basic usage would be:

\documentclass{article}
\usepackage{csquotes}

\begin{document}
\enquote{\textit{Analysis II}}
\end{document}

Of course you can make your italic quotes into a custom macro with

\newcommand\iquote[1]{\enquote{\textit{#1}}}

and use it as \iquote{Analysis II}. Personally I like to use unicode quotation marks. To enable them use \MakeAutoQuote{“}{”} and apply them as “\textit{Analysis II}”. This way no custom macro is necessary. (When using PdfLaTeX, add \usepackage[utf8]{inputenc}.)

csquotes allows you to have language-specific quotes without changing the quotation itself. Furthermore you can nest those quotes, e.g.

Professor: “Use the book “\textit{Analysis II}” as a reference.”

would show as

example for nested quotes with csquotes

when using the default language setting.

share|improve this answer
1  
Another advantage is that you cannot forget only one quote. –  moose Nov 6 at 8:45

You can use:

 \newcommand{\quoteitalic}[1]{\glqq\textit{#1}\grqq}

enter image description here

Notes:

  • As Qrrbrbirlbel commented, \glqq does not have a parameter, so I have corrected the definition of the \quoteitalic macro.

Code:

\documentclass{article}
\usepackage[english]{babel}

\newcommand{\quoteitalic}[1]{\glqq\textit{#1}\grqq}

\begin{document}
\glqq{\textit{Analysis II}}\grqq{}

\quoteitalic{Analysis II}
\end{document}
share|improve this answer

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.