9

I would like to create a document with nonstandard quotation environment.

enter image description here

The goal is that on odd pages quotations have to be indent on the left, and on even pages in opposite way (indent on the right).

EDIT:

The Thomas F. Sturm's solution works well, but there is a problem with footnotes inside the myquotation box (see my question). Do you have another idea how to solve this task?

6

Something like that?

\documentclass[a4paper,12pt]{article}
\usepackage{lipsum,changepage}
\usepackage{parskip}
\usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry}
\usepackage[most]{tcolorbox}

\newtcolorbox{myquotation}{%
  blank,breakable,parbox=false,check odd page,left=2cm,
  toggle left and right}

\begin{document}

\lipsum[1-4]

\begin{myquotation}
\lipsum[1-4]
\end{myquotation}

\lipsum[1-2]

\end{document}

enter image description here

| improve this answer | |
  • 1
    Hehe! I was doing almost the exact same thing! – Gonzalo Medina Jul 16 '13 at 13:53
  • Should not csquotes be preferred here? – pluton Jul 16 '13 at 14:00
  • 1
    @GonzaloMedina Seldom enough that I am faster than you ;-) – Thomas F. Sturm Jul 16 '13 at 14:26
  • @pluton I cannot say if csquotes has such a feature. It has a lot of features, but I could not find this one on a quick scan over the documentation. – Thomas F. Sturm Jul 16 '13 at 14:34
  • can't that widow be avoided, please? – barbara beeton Jul 16 '13 at 18:51

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.