Risposte nei forum create
-
AutoreRisposte
-
30 Settembre 2011 alle 17:20 in risposta a: [RISOLTO] Sillabazione parole composte in XeLaTeX #64374::
OldClaudio” post=63411Enrico, colgo l’occasione per chiedere notizie dell’estensione di gloss-hyph-it.tex che avevi predisposto su mia richiesta e che contiene il famoso carattere attivo ” che dispiace a molti, ma che con polyglossia può essere attivato di default oppure lasciato inerte,
Il problema di Doc sarebbe risolto con l’uso di ” nel punto della cesura e sarebbe molto più comodo da usare rispetto a \breakafterhyphen.
Tuttavia, tenuto conto delle difficoltà di polyglossia (Charette ha gettato la spugna e si sta cercando un nuovo manutentore) la cosa non è più orgente; noi italiani del GuIT potremmo mettere a disposizione quella versione non ufficiale per chi ne desidera fare uso.
La questione delle scorciatoie è un po’ più complessa. Aspetterei di vedere chi prende la responsabilità di Polyglossia.
Ciao
Enrico
30 Settembre 2011 alle 16:01 in risposta a: [RISOLTO] Sillabazione parole composte in XeLaTeX #64371::Doc” post=63405Ciao a tutti, ho fatto varie ricerche, sia su google sia su questo forum, trovando alcune notizie confuse sulla questione in oggetto, ma comunque non risolutive.
Appunto, ho notato grosse difficoltà ad ottenere la sillabazione di una parola lunga composta e dunque munita di trattino. Polyglossia, a quanto ho visto, prevede dei comandini appositi per lingue come il tedesco, ma naturalmente non c’è nulla per l’italiano.
Carico i seguenti pacchetti:
`\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmonofont{CMU Typewriter Text}\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage{latin}
\setotherlanguage[variant=polytonic]{greek}`Le uniche soluzioni funzionali da me trovate, tra mille tentativi, sono state:
- Aggiungere il trattino a mano con \- nel punto opportuno
- Modificare la frase, in modo da far scivolare la parola incriminata all’interno del rigo
In tutti gli altri modi, la parolona composta tendeva a sforare nel margine.
Inutile dire che ho alla fine preferito il metodo 2, risolvendo il problema specifico alla base! 😛
Tuttavia, se mi dovesse ricapitare….Ciao a tutti e grazie mille anticipate,
DomenicoNo, polyglossia non prevede le scorciatoie alla babel per l’italiano. Puoi definire
`\newcommand\breakafterhyphen}{-\hskip{0pt}}`
e in “impero austro\breafterhyphen ungarico” TeX potrà sillabare “ungarico”. Scegli un nome più breve, se ti pare. 🙂Ciao
Enrico
30 Settembre 2011 alle 13:41 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #6433730 Settembre 2011 alle 13:18 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #64336::Dork” post=63393Grazie mille, è incredibile ora funziona grazie infinite!
Sei per caso riuscito a vedere anche il problema con il listings? Ho provato a eseguire il tup .sty e non da né warning ne altro l’unica cosa mi dava erano una marea di bad hbox ma con
`\begin{lstlisting}[basicstyle=\footnotesize,firstnumber=0,frame=trBL,linewidth=\linewidth,caption={MdT somma},label{MdT:som}]
&!\showtm
\runtm!&
\end{lstlisting}`ho risolto. Il problema della prima riga, che è totalmente in più (io l’ho numerata con zero così la prima della MdT è 1) però resta: lei è in più e tutte le altre sotto di lei sono sfasate verso destra uscendo dai margini (con basicstyle=\footnotesize,linewidth=\linewidth evito i bad box ma lo sfasamento e la cornice tutta rotta, nel senso che ogni riga ha il suo pezzettino a margine di cornice, restano)
Versione riveduta e corretta:
`%=============================================================================
% Turing — (turing.sty) Style file
% A LaTeX class for defining and using Turing machines.
% Author: Mark Schaefer (mark.schaefer@informatik.uni-augsburg.de)
% University of Augsburg, Germany
%
% Copyright (c) 2006 Mark Schaefer
% All rights reserved.
%
% Permission is hereby granted, without written agreement and without
% license or royalty fees, to use, copy, modify, and distribute this
% software and its documentation for any purpose, provided that the
% above copyright notice and the following two paragraphs appear in
% all copies of this software.
%
% IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
% SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
% THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED
% OF THE POSSIBILITY OF SUCH DAMAGE.
%
% THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
% AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
% ON AN “AS IS” BASIS, AND THE AUTHOR HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
%
%==============================================================================
% This package allows the definition, simulation and graphical display of
% deterministic Turing machines. For the time being this manual assumes that
% the reader is familiar with this concept.
%
% One can initialise a new Turing machine by \newtm(band content).
% The band entries have to be separated by a ',', after the rightmost entry,
% no ',' is allowed. start and stop denote states of the Turing machine
% (obviously, THE start and THE stop state). In general states and band entries
% can be arbitrary strings, where '-' is used as blank, special characters have
% to be escaped, e.g. as \# Don't use '=' for states or entries.
%
% For example: \newtm(-,1,0,1,0,\#,1,0,1,-)
%
% The next-state function is defined by \turingrules{rule1,rule2,…,ruleN}, as
% for the band entries, rules are separated by ',' and again after the last
% rule, no ',' is allowed. % Rules have the form
% (old_state, current_entry, new_state, new_entry, (L|H|R)}.
%
% For example: \turingrules{(q0,0,q0,1,R),(q0,1,q0,0,R),(q0,-,stop,-,H)}
%
% Note that the next-state function does not have to be complete; an error
% message is generated if an entry is not found while the old state of the
% Turing machine is preserved.
%
% A graphical representation is generated by \showtm, the following state is
% generated by \nextstep. Once, the stop-state is reached, \nextstep will have
% no effect.
%
% For convenience, there are the following three commands:
%
% – \stepandshow: makes a step and shows the next state, this is repeated times,
% e.g. \stepandshow{100}
% – \loopstep: same as \stepandshow , but the intermediate results are not printed
%
% – \runtm : same as \stepandshow, but the Turing machine stops automatically, if
% the stop state was reached
% Caution! The Turing machine may run forever, and so will latex.
%
% Have a look at the output of TeX, error messages will be reported there.
%==============================================================================\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{turing}[2006/02/17]
\message{This is Turing-Tex.}\def\tm@newworld{=}
\def\tm@blank{-}\def\newtm<#1,#2>(#3){%
\xdef\tm@tm{(=,)(#1)(#3,=,)}%
\xdef\tm@stopstate{#2}%
\xdef\tm@stopreached{no}%
}\def\turingrules#1{%
\xdef\tm@rules{#1,(,,,,),}%
}\def\tm@findstate(#1,#2)(#3)(#4,#5,#6);{%
\xdef\tm@farleft{#2}%
\xdef\tm@left{#1}%
\xdef\tm@state{#3}%
\xdef\tm@value{#4}%
\xdef\tm@right{#5}%
\xdef\tm@farright{#6}%
}\newif\iftm@norulegiven
\newif\iftm@norulefound\def\tm@findrule{%
\tm@norulegivenfalse
\tm@norulefoundtrue
\xdef\tm@remrules{\tm@rules}%
\loop
\expandafter\tm@findr\tm@remrules;%
\iftm@norulefound
\repeat
}\def\tm@findr(#1,#2,#3,#4,#5),#6;{%
\edef\tm@stpe{#1}%
\edef\tm@stpv{#2}%
\ifx\tm@state\tm@stpe
\ifx\tm@value\tm@stpv
\tm@norulefoundfalse
\xdef\tm@newstate{#3}%
\xdef\tm@newvalue{#4}%
\xdef\tm@direction{#5}%
\fi
\fi
\xdef\tm@remrules{#6}%
\ifx\@empty\tm@remrules
\tm@norulefoundfalse
\tm@norulegiventrue
\fi
}\def\tm@nextstep{%
\expandafter\tm@findstate\tm@tm;%
\tm@findrule
\ifx\tm@newstate\tm@stopstate\xdef\tm@stopreached{yes}\fi
\iftm@norulegiven
\ifx\tm@state\tm@stopstate
\message{Turing machine reached stop state.}%
\else
\message{Rule not found for (state,value) (\tm@state,\tm@value)}%
\fi
\else
\def\tm@leftm{L}%
\def\tm@rightm{R}%
\def\tm@middlem{H}%
\if\tm@direction\tm@leftm
\if\tm@left\tm@newworld
\xdef\tm@tm{(=,\tm@farleft)(\tm@newstate)(-,\tm@newvalue,\tm@right,\tm@farright)}%
\else
\xdef\tm@tm{(\tm@farleft)(\tm@newstate)(\tm@left,\tm@newvalue,\tm@right,\tm@farright)}%
\fi
\else\if\tm@direction\tm@rightm
\if\tm@right\tm@newworld
\xdef\tm@tm{(\tm@newvalue,\tm@left,\tm@farleft)(\tm@newstate)(-,=,\tm@farright)}%
\else
\xdef\tm@tm{(\tm@newvalue,\tm@left,\tm@farleft)(\tm@newstate)(\tm@right,\tm@farright)}%
\fi
\else\if\tm@direction\tm@middlem
\xdef\tm@tm{(\tm@left,\tm@farleft)(\tm@newstate)(\tm@newvalue,\tm@right,\tm@farright)}%
\fi\fi\fi
\fi
}\def\tm@spec#1{\vbox{
\hbox to 1em {\vrule height0.1em depth0.2em\hss#1\hss\vrule height0.1em}\hrule}}
\def\tm@speca#1{\vbox{\hrule
\hbox to 1em {\vrule height0.8em depth0.2em\hss#1\hss\vrule height0.8em}\hrule}}\newif\iftm@tmfull
\newif\iftm@nextvalue\def\showtm{%
\xdef\tm@result{}%
\expandafter\tm@findstate\tm@tm;%
\tm@tmfulltrue
\edef\tm@remtm{\tm@left,\tm@farleft}%
\loop
\expandafter\tm@mkleft\tm@remtm;
\iftm@tmfull
\repeat
\if\tm@value\tm@blank
\xdef\tm@result{\tm@result\tm@speca{}\ }%
\else
\xdef\tm@result{\tm@result\tm@speca{\tm@value}\ }%
\fi
\tm@tmfulltrue
\edef\tm@remtm{\tm@right,\tm@farright}%
\loop
\expandafter\tm@mkright\tm@remtm;%
\iftm@tmfull
\repeat
\mbox{}\tm@result\hskip3em(\tm@state)\par
}\def\tm@mkleft#1,#2;{%
\edef\tm@next{#1}%
\if\tm@next\tm@newworld
\xdef\tm@result{\tm@spec{}\ \tm@result}%
\else\if\tm@next\tm@blank
\xdef\tm@result{\tm@result\tm@spec{}\ }%
\else
\xdef\tm@result{\tm@spec{#1}\ \tm@result}%
\fi\fi
\edef\tm@remtm{#2}%
\ifx\@empty\tm@remtm
\tm@tmfullfalse
\fi
}\def\tm@mkright#1,#2;{%
\edef\tm@next{#1}%
\if\tm@next\tm@newworld
\xdef\tm@result{\tm@result\tm@spec{}\ }%
\else\if\tm@next\tm@blank
\xdef\tm@result{\tm@result\tm@spec{}\ }%
\else
\xdef\tm@result{\tm@result\tm@spec{#1}\ }%
\fi\fi
\edef\tm@remtm{#2}%
\ifx\@empty\tm@remtm
\tm@tmfullfalse
\fi
}\newcount\tm@tmit
\def\stepandshow#1{%
\tm@tmit=#1
\loop
{\tm@nextstep\showtm}%
\advance\tm@tmit by -1
\ifnum\tm@tmit>0
\repeat
}\long\def\runtm{%
\loop
{\tm@nextstep\showtm}%
\def\tm@next{no}%
\ifx\tm@next\tm@stopreached
\repeat
}\def\loopstep#1{%
\tm@tmit=#1
\loop
{\tm@nextstep}
\advance\tm@tmit by -1
\ifnum\tm@tmit>0
\repeat
}\endinput`
Adesso la riga in più non c’è. Il problema è la cornice tratteggiata dovuta al fatto che le righe sono troppo profonde:
`\begin{lstlisting}[basicstyle=\linespread{1.4}\footnotesize\ttfamily,%firstnumber=0,
frame=trBL,linewidth=\linewidth,caption={MdT somma},label={MdT:som}]`
Ciao
Enrico
30 Settembre 2011 alle 10:48 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #64334::
Errore drammatico commesso dagli autori del pacchetto: ridefinire \value.Cambia tutti i \value in \Value e, già che ci sei, \left in \Left e \right in \Right. Ahimè, è scritto con i piedi.
Meglio ancora, sostituisci con
`%=============================================================================
% Turing — (turing.sty) Style file
% A LaTeX class for defining and using Turing machines.
% Author: Mark Schaefer (mark.schaefer@informatik.uni-augsburg.de)
% University of Augsburg, Germany
%
% Copyright (c) 2006 Mark Schaefer
% All rights reserved.
%
% Permission is hereby granted, without written agreement and without
% license or royalty fees, to use, copy, modify, and distribute this
% software and its documentation for any purpose, provided that the
% above copyright notice and the following two paragraphs appear in
% all copies of this software.
%
% IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
% SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
% THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED
% OF THE POSSIBILITY OF SUCH DAMAGE.
%
% THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
% AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
% ON AN “AS IS” BASIS, AND THE AUTHOR HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
%
%==============================================================================
% This package allows the definition, simulation and graphical display of
% deterministic Turing machines. For the time being this manual assumes that
% the reader is familiar with this concept.
%
% One can initialise a new Turing machine by \newtm(band content).
% The band entries have to be separated by a ',', after the rightmost entry,
% no ',' is allowed. start and stop denote states of the Turing machine
% (obviously, THE start and THE stop state). In general states and band entries
% can be arbitrary strings, where '-' is used as blank, special characters have
% to be escaped, e.g. as \# Don't use '=' for states or entries.
%
% For example: \newtm(-,1,0,1,0,\#,1,0,1,-)
%
% The next-state function is defined by \turingrules{rule1,rule2,…,ruleN}, as
% for the band entries, rules are separated by ',' and again after the last
% rule, no ',' is allowed. % Rules have the form
% (old_state, current_entry, new_state, new_entry, (L|H|R)}.
%
% For example: \turingrules{(q0,0,q0,1,R),(q0,1,q0,0,R),(q0,-,stop,-,H)}
%
% Note that the next-state function does not have to be complete; an error
% message is generated if an entry is not found while the old state of the
% Turing machine is preserved.
%
% A graphical representation is generated by \showtm, the following state is
% generated by \nextstep. Once, the stop-state is reached, \nextstep will have
% no effect.
%
% For convenience, there are the following three commands:
%
% – \stepandshow: makes a step and shows the next state, this is repeated times,
% e.g. \stepandshow{100}
% – \loopstep: same as \stepandshow , but the intermediate results are not printed
%
% – \runtm : same as \stepandshow, but the Turing machine stops automatically, if
% the stop state was reached
% Caution! The Turing machine may run forever, and so will latex.
%
% Have a look at the output of TeX, error messages will be reported there.
%==============================================================================\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{turing}[2006/02/17]
\message{This is Turing-Tex.}\def\tm@newworld{=}
\def\tm@blank{-}\def\newtm<#1,#2>(#3){
\xdef\tm@tm{(=,)(#1)(#3,=,)}
\xdef\tm@stopstate{#2}
\xdef\tm@stopreached{no}
}\def\turingrules#1{
\xdef\tm@rules{#1,(,,,,),}
}\def\tm@findstate(#1,#2)(#3)(#4,#5,#6);{
\xdef\tm@farleft{#2}
\xdef\tm@left{#1}
\xdef\tm@state{#3}
\xdef\tm@value{#4}
\xdef\tm@right{#5}
\xdef\tm@farright{#6}
}\newif\iftm@norulegiven
\newif\iftm@norulefound\def\tm@findrule{
\tm@norulegivenfalse
\tm@norulefoundtrue
\xdef\tm@remrules{\tm@rules}
\loop
\expandafter\tm@findr\tm@remrules;
\iftm@norulefound
\repeat
}\def\tm@findr(#1,#2,#3,#4,#5),#6;{
\edef\tm@stpe{#1}
\edef\tm@stpv{#2}
\ifx\tm@state\tm@stpe
\ifx\tm@value\tm@stpv
\tm@norulefoundfalse
\xdef\tm@newstate{#3}
\xdef\tm@newvalue{#4}
\xdef\tm@direction{#5}
\fi
\fi\xdef\tm@remrules{#6}
\ifx\@empty\tm@remrules
\tm@norulefoundfalse
\tm@norulegiventrue
\fi
}\def\tm@nextstep{
\expandafter\tm@findstate\tm@tm;
\tm@findrule\ifx\tm@newstate\tm@stopstate\xdef\tm@stopreached{yes}\fi
\iftm@norulegiven
\ifx\tm@state\tm@stopstate
\message{Turing machine reached stop state.}
\else
\message{Rule not found for (state,value) (\tm@state,\tm@value)}
\fi
\else
\def\tm@leftm{L}
\def\tm@rightm{R}
\def\tm@middlem{H}\if\tm@direction\tm@leftm
\if\tm@left\tm@newworld
\xdef\tm@tm{(=,\tm@farleft)(\tm@newstate)(-,\tm@newvalue,\tm@right,\tm@farright)}
\else
\xdef\tm@tm{(\tm@farleft)(\tm@newstate)(\tm@left,\tm@newvalue,\tm@right,\tm@farright)}
\fi
\else\if\tm@direction\tm@rightm
\if\tm@right\tm@newworld
\xdef\tm@tm{(\tm@newvalue,\tm@left,\tm@farleft)(\tm@newstate)(-,=,\tm@farright)}
\else
\xdef\tm@tm{(\tm@newvalue,\tm@left,\tm@farleft)(\tm@newstate)(\tm@right,\tm@farright)}
\fi
\else\if\tm@direction\tm@middlem
\xdef\tm@tm{(\tm@left,\tm@farleft)(\tm@newstate)(\tm@newvalue,\tm@right,\tm@farright)}
\fi\fi\fi\fi
}\def\tm@spec#1{\vbox{\hbox to 1em {\vrule height0.1em depth0.2em\hfill#1\hfill{}\vrule height0.1em}\hrule}}
\def\tm@speca#1{\vbox{\hrule\hbox to 1em {\vrule height0.8em depth0.2em\hfill#1\hfill{}\vrule height0.8em}\hrule}}\newif\iftm@tmfull
\newif\iftm@nextvalue\def\showtm{
\xdef\tm@result{}\expandafter\tm@findstate\tm@tm;
\tm@tmfulltrue
\edef\tm@remtm{\tm@left,\tm@farleft}
\loop
\expandafter\tm@mkleft\tm@remtm;
\iftm@tmfull
\repeat\if\tm@value\tm@blank
\xdef\tm@result{\tm@result\tm@speca{}\ }
\else
\xdef\tm@result{\tm@result\tm@speca{\tm@value}\ }
\fi\tm@tmfulltrue
\edef\tm@remtm{\tm@right,\tm@farright}
\loop
\expandafter\tm@mkright\tm@remtm;
\iftm@tmfull
\repeat\mbox{}\tm@result\hskip3em(\tm@state)
}\def\tm@mkleft#1,#2;{
\edef\tm@next{#1}
\if\tm@next\tm@newworld
\xdef\tm@result{\tm@spec{}\ \tm@result}
\else\if\tm@next\tm@blank
\xdef\tm@result{\tm@result\tm@spec{}\ }
\else
\xdef\tm@result{\tm@spec{#1}\ \tm@result}
\fi\fi
\edef\tm@remtm{#2}
\ifx\@empty\tm@remtm
\tm@tmfullfalse
\fi
}\def\tm@mkright#1,#2;{
\edef\tm@next{#1}
\if\tm@next\tm@newworld
\xdef\tm@result{\tm@result\tm@spec{}\ }
\else\if\tm@next\tm@blank
\xdef\tm@result{\tm@result\tm@spec{}\ }
\else
\xdef\tm@result{\tm@result\tm@spec{#1}\ }
\fi\fi
\edef\tm@remtm{#2}
\ifx\@empty\tm@remtm
\tm@tmfullfalse
\fi
}\newcount\tm@tmit
\def\stepandshow#1{%
\tm@tmit=#1
\loop
{\tm@nextstep\showtm}
\advance\tm@tmit by -1
\ifnum\tm@tmit>0
\repeat
}\long\def\runtm{%
\loop
{\tm@nextstep\showtm}
\def\tm@next{no}
\ifx\tm@next\tm@stopreached
\repeat
}\def\loopstep#1{%
\tm@tmit=#1
\loop
{\tm@nextstep}
\advance\tm@tmit by -1
\ifnum\tm@tmit>0
\repeat
}\endinput`
Ho corretto un paio di stupidaggini e, soprattutto, usato comandi “interni” con @ in modo che non sovrascrivano comandi importanti; \value è essenziale in LaTeX, \left e \right sono due primitive piuttosto utili. Chissà a che cosa pensavano.Ciao
Enrico
::l3on4rdo” post=63339Ciao a tutti.
Devo urgentemente consegnare un lavoro entro l’altroieri 🙁 !!!
… ma mi sto impiccando a capire come mai il codice latex:`
\begin{equation}
\phi_{SD} =
\begin{cases}
\infty , & \text{se $|r| < r_o$,} \\ 0 , & \text{se $|r| > r_o$.}
\end{cases}
\end{equation}`non mi produce il giusto output (giusto secondo quello che vorrei io, ovviamente).
Non mi sembra molto difficile l’uso dell’ambiente cases, ma non riesco a visualizzare il classico sistema con due casi, ma mi viene tutto su una riga 🙂Vi ringrazio in anticipo 🙂
ciaoHai anche un messaggio di errore, suppongo.
Devi caricare il pacchetto amsmath.
Ciao
Enrico
28 Settembre 2011 alle 12:03 in risposta a: [Risolto] Ridefinire pag inizio capitolo in classe book #58743::rick187″ post=63330Ciao a tutti,
ho cercato nel forum ma non ho trovato nulla. Ho bisogno di inserire nel testo una formula piuttosto larga che supera, anche se di poco, la larghezza del paragrafo. Vorrei sapere se esiste un modo per controllare in automaticamente la spaziatura orizzontale e la larghezza del carattere per fa sì che la formula non sia più larga del testo. Per ora l’unica soluzione che ho trovato è quella di eliminare manualmente alcuni spazi orrizzontali utilizzando \!.
Ridurre il corpo o annullare le spaziature è escluso, in linea generale. Puoi riportarla qui?
Ciao
Enrico
::tobaz” post=63324Giorno,
sono all’ultimo capitolo della tesi, che prevede una quantità importante di immagini dovute ai risultati ottenuti. Ho sempre lasciato scegliere a Latex dove posizionare le immagini perchè mi fido 😀 ma in questo caso vorrei ottenere una distribuzione del tipo:`
\section{1}
immagini 1
\section{2}
immagini 2
`Il punto è questo, usando i vari comandi \clearpage o \Floatbarrier come indicato nell’Arte ottengo il risultato voluto, c’è un però. Ad esempio nella prima sezione ci sono sette immagini e la settima è su una pagina a se, la section successiva inizia nella pagina seguente. Presumo che come al solito sono in torto e che questa sia la via tipografica migliore, però non si potrebbe lasciare l’immagine in alto nella pagina e poi iniziare la nuova section nella stessa pagina?
Denghiu
Prova mettendo \clearpage prima della sesta e dando l’opzione [t] alla settima.
Ciao
Enrico
::dearick” post=63322Salve a tutti,
in un file tex trovato in rete ho letto i due seguenti comandi:
\newboolean{standalone}
\setboolean{standalone}{false}a cosa servono?
Se si carica il pacchetto xifthen (anche ifthen, ma l’altro è meglio), questo modo di procedere è (quasi) equivalente a
`\newif\ifstandalone
\standalonefalse`
Il “quasi” è perché \newboolean{standalone} esegue il controllo che \ifstandalone non sia già definito, cosa che \newif non fa.Di per sé non fanno niente: definisci un condizionale per poterlo usare in seguito. La seconda riga è inutile, in realtà, perché quando si definisce un nuovo condizionale LaTeX lo imposta sempre a “falso”.
Ciao
Enrico
::
Non confondere l’indice con i segnalibri (bookmarks) di hyperref. Per l’indice (ammesso che tu davvero voglia dividere in parti una tesi) basta un
`\addtocontents{toc}{\protect\addvspace{\bigskipamount}}`
prima dei capitoli conclusivi, che darebbe lo stacco sufficiente a distinguerli.Per i segnalibri è conveniente caricare il pacchetto bookmark (dopo hyperref, è una delle poche eccezioni) e scrivere, sempre prima del capitolo conclusivo
`\bookmarksetup{startatroot}`
Ciao
Enrico
::Andrea.LM” post=63297Risolto togliendo l’opzione draft (sulla quale mi informerò meglio perchè non mi è chiara la sua funzione a sto punto).
L’opzione draft per la classe ha il semplice effetto di abilitare la stampa dei rettangoli neri che segnalano “Overfull \hbox”. Tuttavia, essendo un’opzione globale, come tutte quelle date alla classe, viene passata anche a tutti i pacchetti caricati; se un pacchetto non la conosce come propria opzione, la ignora, altrimenti la attiva.
Così, per esempio, microtype viene disattivato; questo si può correggere con \usepackage[final]{microtype}. Analogamente, graphicx non caricherà effettivamente le immagini e al loro posto inserirà un rettangolo vuoto con le dimensioni dell’immagine in cui inserirà il nome del file esterno. Per varioref l’effetto è di trasformare i messaggi di errore in semplici avvisi. Il problema è con hyperref, in cui l’opzione draft disabilita tutto.
Meglio dunque evitare quell’opzione globale e metterla solo ai pacchetti in cui è utile durante la composizione del documento. Se vuoi i rettangoli neri, basta dire nel preambolo
`\setlength{\overfullrule}{5pt}`
Ciao
Enrico
-
AutoreRisposte
