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:
- Test
"
This is what I want:
"This is my enumeration:
- 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}