- Questo topic ha 20 risposte, 4 partecipanti ed è stato aggiornato l'ultima volta 13 anni, 11 mesi fa da
OldClaudio.
-
CreatoreTopic
-
8 Settembre 2012 alle 10:58 #78208::
Buongiorno,
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
Attachments:
You must be logged in to view attached files. -
CreatoreTopic
-
AutoreRisposte
-
-
8 Settembre 2012 alle 18:38 #78209::
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,
CristinaMetterei 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)}
\columnbreakI 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
-
9 Settembre 2012 alle 3:19 #78210::
Ciao Enrico, grazie!Se faccio come dici, ossia metto questo nel documento-madre:
`%box per citazioni
\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}}`E questo quando cito:
`
\begin{citazione}{Niklas (mayor)}
\noindent
\textit{Eine Ursache ist einfach die digitale Kommunikationsmöglichkeit, die sind in den 90er Jahre einfach nicht geboren worden, die hat’s immer schon gegeben, aber die ist dann für jedermann zugänglich geworden. Und auch zu einem Preis, der nicht so sehr wehgetan hat. Also es ist einfach, dass tausende Menschen untereinander sich vernetzten können ohne grosse finanzielle Investitionen und man hat auch gemerkt einfach durch das World Wide Web, dass es einfach sehr einfach ist auszutauschen und dass man dort sehr viel Input holen kann. Und ich glaube schon, dass es eine Ursache sein könnte, warum genau in den 90er Jahren stattgefunden hat. (Niklas, Bürgermeister)}
\columnbreak\noindent
One reason is certainly the advent of digital communication. It was, of course, not invented in the 1990s, it existed already, but at that moment it became available to everybody, and at an affordable price. This means, simply, that thousands of people could be linked to each other without big financial investments; and we observed that through the World Wide Web it was really easy to exchange and it was easy to get a lot of information. And I think that this could be one of the reasons for why exactly everything started in the 1990s. (Niklas, mayor)
\end{citazione}`Questo è il risultato in pdf:
[attachment=428]Capturedecran2012-09-09a07.14.08.jpg[/attachment]
🙁
Sbaglio qualcosa?
Cristina
Attachments:
You must be logged in to view attached files. -
9 Settembre 2012 alle 8:39 #78211::
No, non sbagli niente, sei solo sfortunata. Ovviamente inserire grossi pezzi di testo indivisibile è un problema. Puoi provare con il pacchetto needspace, inserendo`\needspace{3\baselineskip}`
prima di [tt]\begin{mdframed}[/tt] nella definizione dell’ambiente [tt]citazione[/tt].
Ciao
Enrico
-
9 Settembre 2012 alle 8:55 #78212::
Mmhhh… direi che non funge!Questo è il mio nuovo codice:
`%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
\needspace{3\baselineskip}
{\begin{mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`E questo il risultato:
[attachment=429]Capturedecran2012-09-09a12.51.14.jpg[/attachment]
E in più mi aggiunge una pagina all’inizio del documento con una grande riga nera:
[attachment=430]Capturedecran2012-09-09a12.52.07.jpg[/attachment]
🙁
Altri suggerimenti?
Cristina
Attachments:
You must be logged in to view attached files. -
10 Settembre 2012 alle 5:28 #78213::
cris77″ post=77343
`\newenvironment{citazione}
\needspace{3\baselineskip}
{\begin{mdframed}[linewidth=1.5,`Però così hai lasciato quel needspace fuori dalla definizione dell’ambiente. Deve stare dentro a una delle due coppie di graffe che definiscono i comandi di apertura e di chiusura dell’ambiente. Non garantisco cambi qualcosa, ma questo va corretto!
Fran
-
10 Settembre 2012 alle 5:49 #78214::
Ciao Fran!Anche se lo metto dentro (che erroraccio da parte mia!) non cambia niente, anzi…
Questo è il risultato, con uno strano “3” che appare, probabilmente dovuto al 3 in questo comando `\needspace{3\baselineskip}` (o sbaglio?):
[attachment=433]Capturedecran2012-09-10a09.43.47.jpg[/attachment]
Questo è ciò che ho messo nel preambolo:
`
%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
{\needspace{3\baselineskip}
\begin{mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`Con questo comando: `\needspace{3\baselineskip}` fra le parentesi graffe!
Cristina
Attachments:
You must be logged in to view attached files. -
10 Settembre 2012 alle 6:08 #78215::
Mi piace lavorare con esempi minimi compilabili…
`\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mdframed}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{needspace}
\usepackage{xcolor}
\newcounter{citazione}
\newenvironment{citazione}
{\needspace{3\baselineskip}
\begin{mdframed}[linewidth=2,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}
\begin{document}
\lipsum[1-4]
%\needspace{3\baselineskip}
\begin{citazione}
\hrulefill~ Niklas (mayor)~\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}
\end{document}`
Qui \needspace non fa nulla (né se messo nella definizione dell’ambiente, né se messo prima di aprire l’ambiente). Ma non mi saltano fuori numeri indesiderati.
Come diceva Enrico è questione di sfortuna, credo che la soluzione migliore sia la modifica manuale: aggiungi una riga al testo in modo che tutta al cornice cada in una nuova pagina, metti un \pagebreak… insomma, quanto descritto nel capitolo sulla revisione finale nell’Arte. Tutto questo solo alla fine di tutto, quando sarai certa di non dover inserire altro testo, tabelle e figure che potrebbero stravolgere l’impaginazione.Fran
-
10 Settembre 2012 alle 6:12 #78216
-
10 Settembre 2012 alle 6:16 #78217
-
10 Settembre 2012 alle 6:22 #78218::
Scrivendo quindi (giusto?):`%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
\begin{
\par
\needspace{3\baselineskip}
mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`Il risultato è questo:
[attachment=434]Capturedecran2012-09-10a10.17.58.jpg[/attachment]
🙁
Attachments:
You must be logged in to view attached files. -
10 Settembre 2012 alle 6:30 #78219::
Aggiungendo `\par` al codice (è giusto?) non cambia granché…🙁
`%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
{
\par
\needspace{3\baselineskip}
\begin{mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`Risultato pdf:
[attachment=435]Capturedecran2012-09-10a10.26.58.jpg[/attachment]E c’è ancora quel “3” un po’ strano…
Cristina
Attachments:
You must be logged in to view attached files. -
10 Settembre 2012 alle 6:39 #78220::
Credo che il problema stia nella combinazione multicol+mdframed (ho fatto delle prove senza multicol e tutto va come deve). Il problema è già stato posto e la risposta di Marco Daniel è eloquente 🙁
http://tex.stackexchange.com/questions/58147/two-columns-within-mdframed-frameFran
-
10 Settembre 2012 alle 7:25 #78221
-
10 Settembre 2012 alle 11:39 #78222::
Sembra una saga infinita, mannaggia!Questo è il mio preambolo completo:
` %******************************************%
% %
% Modello di tesi di laurea o di dottorato %
% di Lorenzo Pantieri © %
% %
% versione: 4 luglio 2012 %
% %
%******************************************%% I seguenti commenti speciali impostano:
% 1. utf8 come codifica di input,
% 2. PDFLaTeX come motore di composizione;
% 3. Tesi.tex come documento principale;
% 4. il controllo ortografico italiano per l'editor.% !TEX encoding = UTF-8
% !TEX TS-program = pdflatex
% !TEX root = Tesi.tex
% !TEX spellcheck = it-IT\documentclass[10pt,% % corpo del font principale
a4paper,% % carta A4
twoside,openright,% % fronte-retro
% oneside,openany,% % solo fronte
titlepage,% % frontespizio
headinclude,,footinclude,% % testatina e piede di pagina
BCOR5mm,% % rilegatura di 5 mm
cleardoublepage=empty,% % pagine vuote senza testatina e piede di pagina
tablecaptionabove,% % didascalie in cima alle tabelle
]{scrreprt} % classe report di KOMA-Script;\newcommand{\myName}{Cristina Del Biaggio} % autore
\newcommand{\myTitle}{Linking up the Alps} % titolo
\newcommand{\mySubtitle}{How networks of local political actors build the pan-Alpine region} % sottotitolo
\newcommand{\myDegree}{PhD thesis} % tipo di tesi
\newcommand{\myUni}{University of Geneva, Switzerland} % università
\newcommand{\myFaculty}{Facolty of Social and Economic Sciences} % facoltà
\newcommand{\myDepartment}{Dipartment of geography} % dipartimento
\newcommand{\myProf}{Bernard Debarbieux, Juliet Fall} % relatore
\newcommand{\myJury}{Luiza Bialasiewicz, Jouni Häkli}
\newcommand{\myLocation}{Geneva} % dove
\newcommand{\myTime}{September 2012} % quando\usepackage[T1]{fontenc} % codifica dei font:
% NOTA BENE! richiede una distribuzione *completa* di LaTeX,
% per esempio TeXLive o MiKTeX *complete*\usepackage[utf8]{inputenc} % codifica di input; anche [latin1] va bene
% NOTA BENE! va accordata con le preferenze dell'editor\usepackage{multicol}
\usepackage{caption}
\captionsetup{tableposition=top,figureposition=bottom,font=small}\usepackage[french, italian, german, english]{babel} % per scrivere in italiano e in inglese;
% l'ultima lingua (l'inglese) è predefinita\usepackage[suftesi]{frontespizio} % frontespizo
% per includerlo nel documento bisogna:
% 1. compilare una prima volta Tesi.tex;
% 2. compilare a parte Tesi-frn.tex, generato dalla compilazione precedente;
% 3. compilare ancora Tesi.tex.\usepackage{indentfirst} % rientra il primo paragrafo di ogni sezione
\usepackage{graphicx} % immagini
\usepackage{listings} % codici
\usepackage[font=small]{quoting} % citazioni
\usepackage{amsmath,amssymb,amsthm} % matematica
\usepackage{varioref}
\usepackage[tight,english]{minitoc} % per fare i miniindici
\usepackage{chngpage,calc} % per impostare i margini del frontespizio
\usepackage{subfig} % sottofigure, sottotabelle
\usepackage{eurosym} % il simbolo dell'euro\usepackage{mparhack,fixltx2e,relsize} % finezze tipografiche
%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
{[tt]\par\needspace{10\baselineskip}
\begin{mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}\usepackage{rotating} %permette di ruotare una tabella
\usepackage[table]{xcolor} %permette di colorare una tabella
\usepackage{longtable} %oermette di fare tabelle lunghe
\usepackage{ragged2e} %per le tabelle\usepackage{tabularx} %per le tabelle (introduce colonna X)
\usepackage{natbib}
\usepackage[style=philosophy-classic]{biblatex}
\bibliography{Ma_Biblio} % la base di dati di biblatex%per avere le citazioni (Pincopallino, 2007: 34):
\makeatletter
\renewcommand*{\postnotedelim}{\addcolon\space}
\DefineBibliographyStrings{italian}{%
page = {},
pages = {}}\addto\DeclareBibliographyStrings{page = {{page}{:}}, pages = {{pages}{:}},}
\usepackage{subfig} % sottofigure, sottotabelle
\usepackage{lipsum} % testo fittizio
\usepackage{eurosym} % simbolo dell'euro
\usepackage[colorlinks]{hyperref} %di regola va caricato per ultimo
%attenzione, se si vuole stampare, evitare di mettere i link in
%colore, perché altrimenti sarebbero
%difficilmente leggibili, lasciarli in nero: \usepackage{hyperref}\usepackage[eulerchapternumbers,% % numeri dei capitoli nel font Euler
subfig,% % se si usa il pacchetto subfig
beramono,% % Bera Mono come font a spaziatura fissa
eulermath,% % AMS Euler come font per la matematica
pdfspacing,% % migliora il riempimento di riga
listings,% % codici
% parts,% % da decommentare in un documento diviso in parti
]{classicthesis} % stile ClassicThesis\usepackage{arsclassica} % modifica alcuni aspetti di ClassicThesis
\usepackage{bookmark} % segnalibri
\usepackage{lettrine}
\input{impostazioni-tesi} % file con le impostazioni personali
%per risolvere il problema dei titolo su due righe:
\newcommand\formatchapter[1]{%
\vbox to \ht\strutbox{
\setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }
\advance\hsize-\wd0 \advance\hsize-10pt\raggedright
\spacedallcaps{#1}\vss}}
\titleformat{\chapter}[block]
{\normalfont\Large\sffamily}
{\textcolor{halfgray}{\chapterNumber\thechapter}
\hspace{10pt}\vline\ }{10pt}
{\formatchapter}\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex} %per aggiungere spazio fra un paragrafo e un altro
\listfiles
\begin{document}
\pagenumbering{roman}
\pagestyle{plain}
%******************************************************************
% Materiale iniziale
%******************************************************************
\input{MaterialeInizialeFinale/Frontespizio}
\input{MaterialeInizialeFinale/Colophon}
\input{MaterialeInizialeFinale/Indici}
\input{MaterialeInizialeFinale/Sommario+Abstract}
\input{MaterialeInizialeFinale/Ringraziamenti}
\input{MaterialeInizialeFinale/Preliminary_words}
\pagestyle{scrheadings}
\cleardoublepage
%******************************************************************
% Materiale principale
%******************************************************************
\pagenumbering{arabic}
\input{Capitoli/Example}
\input{Capitoli/Introduction}
\input{Capitoli/Theoretical_framework}
\input{Capitoli/Methodology}
\input{Capitoli/Actors}
\input{Capitoli/Objectivation}
\input{Capitoli/Networking}
\input{Capitoli/Significance}\appendix
\input{Capitoli/Dolor}
% *****************************************************************
% Materiale finale
%******************************************************************
\input{MaterialeInizialeFinale/Bibliografia}
\input{MaterialeInizialeFinale/Dichiarazione}
\end{document}`Questo il risultato pdf in una delle pagine in cui la citazione viene spezzata (vedi che c’è un 10 e un tt che appaiono?):
[attachment=436]Capturedecran2012-09-10a15.33.42.jpg[/attachment]
Questo problema e il problema delle citazioni (http://www.guitex.org/home/en/forum/5-tex-e-latex/77015-citazioni-bibliografiche-usando-biblatex#77275) sono i due più grandi problemi che incontro nel “rash” di fine tesi!
Grazie e saluti dalla Svizzera,
Cristina
Attachments:
You must be logged in to view attached files. -
10 Settembre 2012 alle 11:56 #78223::
Quel [tt] è un pezzo di codice del forum che doveva servire a scrivere il testo che lo seguiva in carattere “typewriter” non devi scriverlo nel tuo documento. 🙂
Per il resto… non ti so dire. Il mio esempio minimo compilabile del messaggio precedente ti dà lo stesso errore? (compare il misterioso “10”?)Fran
-
10 Settembre 2012 alle 12:30 #78224::
Anche senza “tt” non cambia niente, con questo codice (senza tt e nella parentesi graffa il famoso “needspace” preceduto da “par”):`
%box per citazioni
\usepackage{mdframed}
\newcounter{citazione}
\newenvironment{citazione}
{\par\needspace{10\baselineskip}
\begin{mdframed}[linewidth=1.5,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}`… il risultato è lo stesso…
Non ho provato l’esempio minimo, ma è vero che io devo risolvere il problema nel mio documento “massimo”
;oTu hai usato lo stesso codice come qui sopra per il tuo esempio minimo?
Cristina
-
10 Settembre 2012 alle 12:44 #78225
-
18 Settembre 2012 alle 13:25 #78226::
Grazie Fran!Ho provato a compilare il tuo esempio minimo con il codice che hai suggerito:
`\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mdframed}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{needspace}
\usepackage{xcolor}
\newcounter{citazione}
\newenvironment{citazione}
{\needspace{3\baselineskip}
\begin{mdframed}[linewidth=2,
backgroundcolor=black!15,
skipbelow=\baselineskip,
skipabove=\baselineskip, everyline = true]
\refstepcounter{citazione}
}
{\par\noindent\hrulefill\par\end{mdframed}}
\begin{document}
\lipsum[1-4]
%\needspace{3\baselineskip}
\begin{citazione}
\hrulefill~ Niklas (mayor)~\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}
\end{document}`Ma il documento non viene compilato!
🙁
Mi sa che farò le manipolazioni manualmente alla fine!
Cristina
-
18 Settembre 2012 alle 16:08 #78227
-
18 Settembre 2012 alle 16:20 #78228
-
-
AutoreRisposte
- Devi essere connesso per rispondere a questo topic.