Re: package mdframed –> boxes su due pagine

#78209
Up
0
Down
::

cris77″ post=77321Buongiorno,
ho un problema a gestire dei mdframed che spaziano su due pagine.

Questo il codice per il package mdframed nel preambolo del mio documento-madre:

`\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
{\begin{mdframed}[linewidth=2,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`

Questo il testo nel documento .tex:

`\begin{citazione}
\hrulefill~ Niklas (mayor)~\theexample~\hrulefill\par
\begin{multicols}{2}
\noindent
\textit{Ich habe nicht gemeint, dass es jetzt schon soweit ist. Dazu praktiziert man das [das politische Gewicht] in Moment auch noch zu wenig, aber ich glaube es nicht, dass wir so in dieser Form wie es jetzt besteht überhaupt kein politisches Gewicht haben. [\dots] Wir, in kleinste Erfahrung [von sechs Gemeinden, die eine Region aufgebaut haben], haben auch unser politisches Gewicht in die Waagschale werfen können. Darum wäre verfänglich zu sagen, dass eine Allianz von mehr als 200 Gemeinden kein politisches Gewicht hätten, das glaube ich nicht. (Niklas, Bürgermeister)}
\columnbreak

\noindent
I did not say that it is already like that. At the moment, we still exert [this political weight] too little, but I do not think that in this form as it is now we do not have any political weight. [\dots] Our small experience [of six municipalities which joined in a regional administration] shows that we could already increase our political weight thanks to that. For that reason, I do not think that an alliance composed by more than 200 municipalities does not have any political weight. (Niklas, mayor)
\end{multicols}
\end{citazione}`

Questo il risultato nel pdf:
[attachment=426]Capturedecran2012-09-08a14.49.28.jpg[/attachment]

Ora, io non vorrei ci fosse così tanto spazio nella parte inferiore della prima pagina e soprattutto non vorrei che il “box” si divida lasciando solo una linea sulla prima pagina…
Si può risolvere questo problema, sapendo che il box non può essere spostato, ma deve proprio trovarsi lì?
(e sapendo che ci sono tanti box: sono tutte le citazioni delle interviste che ho effettuato durante la tesi)

Grazie,
Cristina

Metterei tutto dentro l’ambiente citazione:

`\documentclass{article}
\usepackage{mdframed,multicol,xcolor}
\newcounter{citazione}
\newenvironment{citazione}[1]
{\begin{mdframed}[%
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}%
\parindent=0pt
\begin{multicols}{2}[\hrulefill~#1~\hrulefill]
}
{\par\end{multicols}\noindent\hrulefill\par\end{mdframed}}
\begin{document}
\begin{citazione}{Niklas (mayor)}
\textit{Ich habe nicht gemeint, dass es jetzt schon soweit ist. Dazu praktiziert man das
[das politische Gewicht] in Moment auch noch zu wenig, aber ich glaube es nicht, dass
wir so in dieser Form wie es jetzt besteht überhaupt kein politisches Gewicht haben. [\dots]
Wir, in kleinste Erfahrung [von sechs Gemeinden, die eine Region aufgebaut haben], haben
auch unser politisches Gewicht in die Waagschale werfen können. Darum wäre verfänglich
zu sagen, dass eine Allianz von mehr als 200 Gemeinden kein politisches Gewicht hätten,
das glaube ich nicht. (Niklas, Bürgermeister)}
\columnbreak

I did not say that it is already like that. At the moment, we still exert [this political
weight] too little, but I do not think that in this form as it is now we do not have any
political weight. [\dots] Our small experience [of six municipalities which joined in a
regional administration] shows that we could already increase our political weight thanks to
that. For that reason, I do not think that an alliance composed by more than 200
municipalities does not have any political weight. (Niklas, mayor)
\end{citazione}
\end{document}`
Ho eliminato [tt]linewidth=2[/tt] che non ha senso.

Ciao
Enrico

Go to top