2

I'm using my own macro to enqoute some parts of my text. When using the itemize or enumerate environments at the end of my quote, the double quote charaters end up in a new line, whereas I'd like to have them at the end of the last item of the list. The same happens if I just put quotation marks around the environment directly. I tried using the inline option of enumitem in conjunction with the starred versions of the environments, however, I'll lose the correct indentation of long entries and the line breaks.

This is what I get:

"This is my enumeration:

  1. Test

"

This is what I want:

"This is my enumeration:

  1. Test"

MWE:

\documentclass[12pt,a4paper,twoside,openany,fleqn]{book}

\usepackage[inline]{enumitem}
\usepackage[ngerman]{babel}
\usepackage{lipsum}

\begin{document}

\newcommand{\myEnquote}[1]{\glqq#1\grqq}

\myEnquote{Hello World!}

\myEnquote{%
This is my enumeration:
    \begin{enumerate}
        \item Test
    \end{enumerate}
}

"`This is my enumeration:
\begin{enumerate}
    \item Test
\end{enumerate}"'

"`This is my enumeration:
\begin{enumerate}
    \item \lipsum[1]
\end{enumerate}"'

"`This is my enumeration:\\
\begin{enumerate*}
    \item \lipsum[1]
\end{enumerate*}"'

\end{document}
2

I do not think that you will have such quotes that often, so I think redefining the enumerate environment does not make sense. The problem here, as you have most certainly noted, is that you have to put quotes on two levels. One in front of your text and one after the item inside the enumerate.

For this rare case, I would just obey your predefined command and set the \grqq manually.

I deleted your defined command, as the great package csquotes is doing that job for you very well. I would definitely recommend to read its documentation and to use it from now on. I inserted some nice auto-quotes for you.

The last question could be: Why is that kind of quoting not supported. Well, in my eyes it looks really bad. It is difficult to understand the quotation, when done over several levels. If possible, I would write one more sentence after the enumeration and close the quotation after that. But as I have to assume, that you are not freely able to quote as long as you want, I am demonstrating the \blockquote in my MWE. I think, this is the much better choice. Long quotations should get indented and not surrounded by quote marks. That is much easier to understand. The last example shows a block quote with the direct mentioning of its author.

% arara: pdflatex

\documentclass[12pt,a4paper,twoside,openany,fleqn]{book}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\usepackage[german=quotes]{csquotes}
\MakeAutoQuote{<}{>}

\begin{document}    
    <Hello World! <And a nested quote.>>

    \glqq{}This is my enumeration:
        \begin{enumerate}
            \item Test\grqq
        \end{enumerate}

    \glqq{}This is my enumeration:
        \begin{enumerate}
            \item blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup blablup\grqq
        \end{enumerate}

    \blockquote{This is my enumeration:
        \begin{enumerate}
            \item \blindtext
        \end{enumerate}}
    \blindtext
    \blockquote[The author]{This is my enumeration:
        \begin{enumerate}
            \item \blindtext
        \end{enumerate}}
\end{document}

enter image description here

  • Thank you for your answer. However, I do have several cases where I need such quotes. For example, I have a table, in which I show several quotes from different authors. I use a macro to define the row layout/format with parameters, so that I can use that macro and just enter the information for that specific row. If I then want to change the layout/formatting, I just need to change the macro. Putting the quotes directly INTO the enumerate environment would mean I'd need to create this part of the layout/formatting every time I add a new row. Chang of style would mean changing several places. – ThomasD Jul 30 '14 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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