Risposte nei forum create
-
AutoreRisposte
-
::
ivan” post=81315
e il fatto che quando il testo inscatolato va su un’altra pagina mdframed non mette il bordo in basso nella prima pagina né in alto nella seconda,
Questo è il comportamento corretto.
Sicuramente hai ragione che tipograficamente è più corretto così, ma in realtà sto riportando un testo inscatolato preso da un altro articolo dove, quando il testo va su più pagine, l’effetto è di avere una scatola separata per ogni pagina, ossia con tutti e quattro i bordi su ogni pagina. Preferirei poter riprodurre lo stesso effetto. In teoria dovrebbe essere possibile specificando tra le opzioni everyline=true, ma mi dà un errore:
`! Package keyval Error: everyline undefined.`ivan” post=81315
per qualche strana ragione mi lascia una pagina vuota tra la prima e la seconda pagina, per poi continuare invece senza pagine bianche tra la seconda e la terza, anche se il testo inscatolato si estende fino alla terza pagina.
Questo è strano. S può sapere cosa stai facendo di preciso?
Quello che sto facendo è inserire nell’appendice di un articolo una lista di descrizioni prese da un altro articolo, che però vorrei mantenere inscatolata per conservare l’effetto “box di approfondimento”. Peraltro, prima di lasciare la pagina vuota di cui parlavo, interrompe la pagina precedente con relativa scatola a metà, e quando riprende due pagine dopo la scatola ha il bordo superiore, che in teoria, stando a quanto dicevi sopra, non dovrebbe avere.
Ecco il codice:
`\documentclass[11pt,a4paper,oneside]{article}
\usepackage{mdframed}
\usepackage{enumitem}
\newcounter{descriptcount}
\renewcommand*\thedescriptcount{\arabic{descriptcount}.}
\newcounter{descriptcountbis}
\renewcommand*\thedescriptcountbis{\Alph{descriptcountbis}.}…
\begin{document}
…
\appendix
\renewcommand\thesection{Appendix:}
\begin{mdframed}[leftmargin=-20pt,rightmargin=-20pt]
\section{\mbox{Nussbaum's Central Human Capabilities}}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcount}\thedescriptcount~]
\item[Life.] Being able to live to the end of a human life of normal length; not dying prematurely, or before one's life is so reduced as to be not worth living.
\item[Bodily Health.] Being able to have good health, including reproductive health; to be adequately nourished; to have adequate shelter.
\item[Bodily Integrity.] Being able to move freely from place to place; to be secure against violent assault, including sexual assault and domestic violence; having opportunities for sexual satisfaction and for choice in matters of reproduction.
\item[Senses, Imagination, and Thought.] Being able to use the senses, to imagine, think, and reason—and to do these things in a ‘‘truly human'' way, a way informed and cultivated by an adequate education, including, but by no means limited to, literacy and basic mathematical and scientific training. Being able to use imagination and thought in connection with experiencing and producing works and events of one's own choice, religious, literary, musical, and so forth. Being able to use one's mind in ways protected by guarantees of freedom of expression with respect to both political and artistic speech, and freedom of religious exercise. Being able to have pleasurable experiences and to avoid non-beneficial pain.
\item[Emotions.] Being able to have attachments to things and people outside ourselves; to love those who love and care for us, to grieve at their absence; in general, to love, to grieve, to experience longing, gratitude, and justified anger. Not having one's emotional development blighted by fear and anxiety. (Supporting this capability means supporting forms of human association that
can be shown to be crucial in their development.)
\item[Practical Reason.] Being able to form a conception of the good and to engage in critical reflection about the planning of one's life. (This entails protection for the liberty of conscience and religious observance.)
\item[Affiliation.]\mbox{}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcountbis}\thedescriptcountbis~]
\item Being able to live with and toward others, to recognize and show concern for other human beings, to engage in various forms of social interaction; to be able to imagine the situation of another. (Protecting this capability means protecting institutions that constitute and nourish such forms of affiliation, and also protecting the freedom of assembly and political speech.)
\item Having the social bases of self-respect and non-humiliation; being able to be treated as a dignified being whose worth is equal to that of others. This entails provisions of non-discrimination on the basis of race, sex, sexual orientation, ethnicity, caste, religion, and national origin.
\end{description}
\item[Other Species.] Being able to live with concern for and in relation to animals, plants, and the world of nature.
\item[Play.] Being able to laugh, to play, to enjoy recreational activities.
\item[Control Over One's Environment.]\mbox{}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcountbis}\thedescriptcountbis~]
\item[Political.] Being able to participate effectively in political choices that govern one's life; having the right of political participation, protection of free speech and association.
\item[Material.] Being able to hold property (both land and movable goods), and having property rights on an equal basis with others; having the right to seek employment on an equal basis with others; having the freedom from unwarranted search and seizure. In work, being able to work as a human being, exercising practical reason and entering into meaningful relationships of mutual
recognition with other workers. (Nussbaum 2001, 87–88)
\end{description}
\end{description}
\end{mdframed}…
\end{document}
`
::ivan” post=81315
e il fatto che quando il testo inscatolato va su un’altra pagina mdframed non mette il bordo in basso nella prima pagina né in alto nella seconda,
Questo è il comportamento corretto.
Sicuramente hai ragione che tipograficamente è più corretto così, ma in realtà sto riportando un testo inscatolato preso da un altro articolo dove, quando il testo va su più pagine, l’effetto è di avere una scatola separata per ogni pagina, ossia con tutti e quattro i bordi su ogni pagina. Preferirei poter riprodurre lo stesso effetto.
ivan” post=81315
per qualche strana ragione mi lascia una pagina vuota tra la prima e la seconda pagina, per poi continuare invece senza pagine bianche tra la seconda e la terza, anche se il testo inscatolato si estende fino alla terza pagina.
Questo è strano. S può sapere cosa stai facendo di preciso?
Quello che sto facendo è inserire nell’appendice di un articolo una lista di descrizioni prese da un altro articolo, che però vorrei mantenere inscatolata per conservare l’effetto “box di approfondimento”. Ecco il codice:
`\documentclass[11pt,a4paper,oneside]{article}
\usepackage{framed}
\usepackage{enumitem}
\newcounter{descriptcount}
\renewcommand*\thedescriptcount{\arabic{descriptcount}.}
\newcounter{descriptcountbis}
\renewcommand*\thedescriptcountbis{\Alph{descriptcountbis}.}…
\begin{document}
…
\appendix
\renewcommand\thesection{Appendix:}
\begin{framed}
\section{\mbox{Nussbaum's Central Human Capabilities}}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcount}\thedescriptcount~]
\item[Life.] Being able to live to the end of a human life of normal length; not dying prematurely, or before one's life is so reduced as to be not worth living.
\item[Bodily Health.] Being able to have good health, including reproductive health; to be adequately nourished; to have adequate shelter.
\item[Bodily Integrity.] Being able to move freely from place to place; to be secure against violent assault, including sexual assault and domestic violence; having opportunities for sexual satisfaction and for choice in matters of reproduction.
\item[Senses, Imagination, and Thought.] Being able to use the senses, to imagine, think, and reason—and to do these things in a ‘‘truly human'' way, a way informed and cultivated by an adequate education, including, but by no means limited to, literacy and basic mathematical and scientific training. Being able to use imagination and thought in connection with experiencing and producing works and events of one's own choice, religious, literary, musical, and so forth. Being able to use one's mind in ways protected by guarantees of freedom of expression with respect to both political and artistic speech, and freedom of religious exercise. Being able to have pleasurable experiences and to avoid non-beneficial pain.
\item[Emotions.] Being able to have attachments to things and people outside ourselves; to love those who love and care for us, to grieve at their absence; in general, to love, to grieve, to experience longing, gratitude, and justified anger. Not having one's emotional development blighted by fear and anxiety. (Supporting this capability means supporting forms of human association that
can be shown to be crucial in their development.)
\item[Practical Reason.] Being able to form a conception of the good and to engage in critical reflection about the planning of one's life. (This entails protection for the liberty of conscience and religious observance.)
\item[Affiliation.]\mbox{}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcountbis}\thedescriptcountbis~]
\item Being able to live with and toward others, to recognize and show concern for other human beings, to engage in various forms of social interaction; to be able to imagine the situation of another. (Protecting this capability means protecting institutions that constitute and nourish such forms of affiliation, and also protecting the freedom of assembly and political speech.)
\item Having the social bases of self-respect and non-humiliation; being able to be treated as a dignified being whose worth is equal to that of others. This entails provisions of non-discrimination on the basis of race, sex, sexual orientation, ethnicity, caste, religion, and national origin.
\end{description}
\item[Other Species.] Being able to live with concern for and in relation to animals, plants, and the world of nature.
\item[Play.] Being able to laugh, to play, to enjoy recreational activities.
\item[Control Over One's Environment.]\mbox{}
\begin{description}[before={\setcounter{descriptcount}{0}},font=\bfseries\stepcounter{descriptcountbis}\thedescriptcountbis~]
\item[Political.] Being able to participate effectively in political choices that govern one's life; having the right of political participation, protection of free speech and association.
\item[Material.] Being able to hold property (both land and movable goods), and having property rights on an equal basis with others; having the right to seek employment on an equal basis with others; having the freedom from unwarranted search and seizure. In work, being able to work as a human being, exercising practical reason and entering into meaningful relationships of mutual
recognition with other workers. (Nussbaum 2001, 87–88)
\end{description}
\end{description}
\end{framed}…
\end{document}
`
::
In effetti ho già tentato mdframed, ma ha alcuni spiacevoli effetti collaterali. Tralasciando la dimensione del bordo (che è più spesso) e il fatto che quando il testo inscatolato va su un’altra pagina mdframed non mette il bordo in basso nella prima pagina né in alto nella seconda, per qualche strana ragione mi lascia una pagina vuota tra la prima e la seconda pagina, per poi continuare invece senza pagine bianche tra la seconda e la terza, anche se il testo inscatolato si estende fino alla terza pagina.ùInoltre, con mdframed ho impostato il leftmargin e il rightmargin a -20pt per fare combaciare il testo con la larghezza ordinaria, ma ho il sospetto che così siano misure a occhio, non ho la certezza che siano quelle corrette.
::egreg9″ post=80439
Salve a tutti,
mi trovo ad avere la didascalia di un immagine di questo tipo:
`
\documentclass[11pt,a4paper,oneside]{article}
\usepackage[isu]{caption}
\usepackage{graphicx}
\captionsetup{font=footnotesize,labelfont={sf,bf}}
…
\begin{document}
…
\begin{figure}[!h]\centering
\includegraphics[width=%
\columnwidth]{spandrel}
\caption{One of the four spandrels of St.\ Mark's Cathedral in Venice.\\
Top:\ seated evangelist.\\
Bottom:\ personification of one of the four Biblical rivers (Tigris, Euphrates, Indus and Nile) pouring water from a pitcher into the narrowing space below his feet.}
\label{fig:spandrel}
\end{figure}
\end{document}
`Il risultato che vorrei ottenere è che il testo che segue la parola “Bottom :” nel caption scorra tutto alla destra della parola, come in una definizione, rientrando della giusta distanza quando il testo va a capo in automatico.
Il fatto che il tutto si trovi all’interno del caption sembra però rendere le cose più difficili poiché, quando cerco di definire un ambiente, come conferma il manuale del pacchetto, esce un avviso di errore:
`! Argument of \@caption has an extra }.`Si aggiunga anche che ho messo l’opzione isu caricando il pacchetto caption, che fa scorrere già l’intera didascalia alla destra della dicitura “Figure 1”.
Qualcuno sa aiutarmi?Grazie
Puoi cercare di essere più preciso? Non ho affatto capito che cosa vorresti ottenere. E se è quello che penso, evita: l’effetto scalinata è pessimo. Sai come farei?
`One of the four spandrels of St.\ Mark's Cathedral in Venice. \emph{Top}: seated
evangelist. \emph{Bottom}: personification of one of the four Biblical rivers (Tigris, Euphrates,
Indus and Nile) pouring water from a pitcher into the narrowing space below his feet.`Ciao
EnricoNon saprei nemmeno io come spiegarmi bene. Simulandolo con un editor di testo, l’effetto che vorrei ottenere è più o meno questo:

::egreg9″ post=79186
Salve a tutti,
avrei bisogno di ridimensionare il testo contenuto in \section riducendolo esattamente alla grandezza di quello di \subsection. La ragione è prettamente estetica: utilizzando la classe article, il testo della prima sezione è talmente grande da risaltare persino rispetto al titolo dell’articolo.
Il problema mi sembrava di semplice soluzione, ma né il .pdf di istruzioni di titlesec né quello di sectsty sembrano essere d’aiuto, perciò mi rivolgo a voi.
Grazie in anticipo.
P.S. Non uso nessuna \subsection all’interno dell’articolo, per cui il problema di potenziali confusioni non si pone.
Con sectsty
`\usepackage{sectsty}
\sectionfont{\large}`
Con titlesec
`\usepackage[small]{titlesec}`
Ciao
EnricoOttimo, grazie, avevo visto le opzioni large e small ma non sapevo che corrispondessero alla dimensione della subsection, come invece effettivamente è.
::
Ho rigenerato il database dei nomi da Start > Programmi > MiKTeX 2.8 > Maintenance > Settings > General > Refresh FNDB, ma ancora non è servito a nulla.
Precisamente a cosa ti riferivi con:la cartella in cui si trova il sorgente LaTeX che fa uso del pacchetto KMcalc.sty. Una modalità “locale”
?
-
AutoreRisposte
