Risposte nei forum create
-
AutoreRisposte
-
::
Ho provato a compilare il codice: funziona perfettamente. Fossi in Henryss, coglierei l’occasione per aggiorne la sua distribuzione LaTeX.
Ciao,
L.Ho aggiornato la mia distribuzione qualche giorno fa con l’update wizard di miktex (uso windows). Però evidentemente non tutto è aggiornato (ad esempio anche topcoman non si era aggiornato).
Ma allora disinstallo miktex e lo reinstallo nuovamente?
::A me non capita. Aggiungi \listfiles prima di \documentclass e riporta il risultato: capirai subito quale. Così si possono controllare le versioni dei vari pacchetti.
Ciao
Ecco qua:
`*File List*
toptesi.cls 2006/04/04 v.4.00.02 Class for typesetting university theses
report.cls 2005/09/16 v1.4f Standard LaTeX document class
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
babel.sty 2005/05/21 v3.8g The Babel package
bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
english.ldf 2005/03/30 v3.3o English support from the babel system
italian.ldf 2005/02/05 v1.2q Italian support from the babel system
toptesi.sty 2006/08/22 v.4.00.03 Extension for toptesi.cls
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2005/12/29 v1.2 MiKTeX 'graphics' configuration
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
topfront.sty 2006/09/04 v.4.00.04 Title page for TOPtesi
toptesi.cfg
topcoman.sty 2006/12/15 v.4.01 Additional commands for the TOPtesi bundle
inputenc.sty 2006/05/05 v1.1b Input encoding file
ansinew.def 2006/05/05 v1.1b Input encoding file
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
syntonly.sty 1999/09/17 v2.1e Standard LaTeX2e package
verbatim.sty 2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
longtable.sty 2004/02/01 v4.11 Multi-page Table package (DPC)
caption.sty 2007/04/16 v3.0q Customising captions (AR)
caption3.sty 2007/04/11 v3.0q caption3 kernel (AR)
float.sty 2001/11/08 v1.3d Float enhancements (AL)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2005/12/29 v1.1 MiKTeX 'color' configuration
framed.sty 2003/07/21 v 0.8a: framed or shaded text with page breaks
lgrcmr.fd 2001/01/30 v2.2e Greek Computer Modern
***********`Grazie per l’aiuto…
::In realtà hai omesso l’errore più importante e fatale:
`! LaTeX Error: Missing \begin{document}.See the LaTeX manual or LaTeX Companion for explanation.
Type Hfor immediate help.
…l.44
\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp}}`
Temo che abbiamo trovato un bug in toptesi, precisamente in topcoman.sty.Se infatti aggiungi, subito prima di \usepackage{verbatim}, il seguente incantesimo
`{\obeyspaces\global\let =\space}`
l’errore sparisce. Riporterò a chi di dovere.Ciao
EnricoAggiungendo all’esempio minimale la stringa indicata, qualcosa si ottiene. Restano però i seguenti errori e warnings:
`! Undefined control sequence.
\sf@size l.31 \end{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.! Missing number, treated as zero.
p
l.31 \end{document}A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <0> not available
(Font) size <5> substituted on input line 31.[1
] (tesi.aux)
LaTeX Font Warning: Size substitutions with differences
(Font) up to 5.0pt have occurred.`P.s:in effetti mi sono dimenticato quell’errore fondamentale, che compariva molto prima nel file .log…scusate…
::`\documentclass{article}
\usepackage{xcolor,framed}
\usepackage{lipsum}
\usepackage{verbatim}
\definecolor{shadecolor}{gray}{0.9}
\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}\begin{document}
\lipsum[1]
\begin{comment}
\lipsum[2]
\end{comment}\lipsum[3]
\end{document} `
Per far sparire tutte le note dal pdf finale, ti basta commentare
`\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}
`
e ricompilare.Ciao,
L.Niente da fare, non funziona…
Un esempio minimale è:`
\documentclass[12pt,a4paper,draft]{toptesi}
\usepackage[ansinew]{inputenc}
\usepackage{graphicx}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{syntonly}
\usepackage{verbatim}
\usepackage{longtable}
\usepackage[font=normalsize]{caption}
\usepackage{float}
\usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
\usepackage{xcolor,framed}
\definecolor{shadecolor}{gray}{0.9}
\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}
\raggedbottom\italiano
\begin{document}
Questo non è commentato
\begin{comment}
Questo dovrebbe esserlo
\end{comment}E questo nuovamente no.
\end{document}
`e gli errori sono:
`
! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.! Undefined control sequence.
\Hy@colorlink l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.! Undefined control sequence.
\pdfmark@ …type \space pdfmark}\Hy@endcolorlink
\fi \fi \fi
l.20 \begin{document}The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
`P.s:Mi scuso se non ho risposto prima ma non avevo il computer a disposizione…
14 Luglio 2007 alle 17:49 in risposta a: come imporre la non sillabazione di parole col trattino?? #16095::http://skim-app.sourceforge.net/
Su Mac esiste Skim, che permette di inserire delle note “tipo post-it” nel pdf finale. Le note risaltano e, al bisogno, è immediato eliminarle. Su PC esisterà sicuramente qualcosa di analogo.
Ciao,
L.Su pc si possono inserire delle note direttamente dal adobe acrobat che occorre anche per vedere il file pdf. Il problema è che io le volevo inserire da latex mentre scrivevo il testo, altrimenti se le devo inserire direttamente nel pdf finale quando ricompilo spariscono!
::
Ok, aggiornando solo topcoman.sty (manualmente, perchè con la funzione update di miktex non appariva), tutto va a posto.L’ “unico” problema sono i 43 warnings del pacchetto hyperref:
`
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@size' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@baselineskip' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@linespread' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\baselinestretch' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 26. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\font@name' on input line 26.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\OT1/cmr/m/n/12' on input line 26.Overfull \vbox (2.1694pt too high) has occurred while \output is active []
[1
]
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@size' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@baselineskip' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@linespread' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\baselinestretch' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\font@name' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\OT1/cmr/m/n/12' on input line 29.[2
] (LaTeX1.toc)
\tf@toc=\write4Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@size' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\afterassignment' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@baselineskip' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\f@linespread' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\baselinestretch' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\-command' on input line 29. Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\font@name' on input line 29.Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\OT1/cmr/m/n/12' on input line 29.`Credo siano dovute alle nuove definizioni contenute in topcoman, poichè qualcosa di simile mi succedeva anche con il comando che mi aveva passato egreg9 (visibile nel solito link)
::A me il seguente codice
`\documentclass[12pt,a4paper]{toptesi}
\usepackage{toptesi}
\usepackage[italian]{babel}
\usepackage[ansinew]{inputenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{amsmath}
\usepackage{syntonly}
\usepackage{float}
\usepackage[font=normalsize]{caption}
\usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}\ateneo{Politecnico di Torino}
\facolta{Ingegneria}
\corsodilaurea{Ingegneria …}
\logosede{LogoPolito}
%\TesiDiLaurea{Tesi di Laurea}
\titolo{Titolo}
\relatore{Prof….}
\secondorelatore{Ing. …}
\candidato{Io}\sedutadilaurea{… 2007}
\italiano
\begin{document}
\frontespizio
\sommario
Ecco qua il mio sommario
\indici\end{document}`
non dà alcun errore. Claudio Beccari ha caricato su CTAN una versione corretta di topcoman.sty, vedi se poteva dipendere da quello (non credo). Il pacchetto hyperref va sempre (o quasi) caricato per ultimo (ma non avevo errori nemmeno con la tua versione).Ciao
EnricoNiente da fare, a me da la pagina del sommario sbagliata (problema (1)), e per giunta scritta in lettere minuscole. Ho provato ad aggiornare il pacchetto Toptesi, ma la versione più recente che risulta sul CTAN di uniroma2 risale al febbraio 2007 ed è già aggiornata.
Inoltre,compilando esattamente il codice sopra, mi da anche i seguenti due warning (problema (2)):
`LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
(Font) using `OT1/cmr/bx/n' instead on input line 4.)
\tf@toc=\write4
[3] (LaTeX2.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
`Non capisco a quali font si riferisce!!!
Aggiungo infine che, per risolvere il problema (1), ho provato il codice consigliato da egreg9 nel link che ho già postato, ma mi crea i problemi che ho già descritto (http://www.guit.sssup.it/phpbb/viewtopic.php?t=2886)…
Insomma, un disastro!
::Fossi in te, cercherei di risolvere il “conflitto” con toptesi: “egreg9” conosce molto bene quel pacchetto (oddio, in effetti li conosce molto bene tutti…), vedrai che ne vieni a capo.
Ok, allora spero che egreg9 abbia voglia di darmi una mano. Nello precedente post che ho linkato (mammamia com’è brutto..ma come si può dire altrimenti?) alla fine si era finiti un pò OT, ma spero di riuscire a risolvere..
9 Luglio 2007 alle 20:39 in risposta a: [OK]Capoverso con spaziatura arbitraria-Pacchetto Toptesi #15903::Uno dei motivi per cui è meglio non usare quel comando è che, con \raggedbottom attivo, due pagine affiancate possono essere di altezze diverse (soprattutto se sono presenti note a piè pagina): molto sgradevole.
Ok, lo terrò presente soprattutto nel caso debba stampare la tesi fronte-retro.
Grazie mille per l’aiuto,Ciao,
Enrico
9 Luglio 2007 alle 20:05 in risposta a: [OK]Capoverso con spaziatura arbitraria-Pacchetto Toptesi #15901::
Ok, credo che usero \raggedbottom anche se non perfettamente ortodosso. A dire il vero, non capisco perchè non va usato, perchè provando a compilare il documento con questo e senza, mi sembra meglio usarlo (benchè io non sia un esperto di tipografia e dunque magari non riesco a cogliere alcuni dettagli.)Solo un ultimo accertamento:il comando \raggedbottom, mantiene solo l’interlinea fissa o ha anche altri effetti collaterali?
-
AutoreRisposte