Risposte nei forum create
-
AutoreRisposte
-
::
Dork” post=67542
(quindi potrebbe essere un problema di come il MatLab salva i file…io il post lo inoltro comunque sia per sapere se non posso risolvere il problema da LaTeX sia perché, in caso contrario, potreste rispondermi come risolverlo :-))Pensandoci bene il MatLab riapre il file correttamente con gli accenti ben visualizzati, quindi vuol dire che l’editor che ho usato per aprirlo io (TextEdit) lo decodificava male ma il file è correttamente interpretabile (in un qualche modo) quindi dovrebbe essere possibile importarlo correttamente in LaTeX…
::egreg9″ post=66935Dovrebbe essere sufficiente definirsi un nuovo ambiente listing:
`\lstnewenvironment{Output}[1][]
{\renewcommand{\lstlistingname}{Output}\lstset{#1}}
{}`
e poi, nel documento,
`\begin{Output}[float=htb,frame=trBL,caption={LaSolitaCaption_ChePeròVorreiIniziasseConOUTPUT_n.m+1:},label={output:buttafuori},numbers=none]
…
\end{Output}`
Ciao
EnricoLo chiamavono egreg9 ma in realtaà dietro si nasconde Merlino 🙂
semplice ed efficace! Mitico!
Grazie mille 🙂
::
Non avevo attivato la segnalazione di risposta e mi sono accorto solo ora…comunque…eccolopreambolo “utile” (ho saltato le varie righe commentate e i newcommand per le lettere degli insiemi numerici)
`\documentclass[12pt,
a4paper,twoside,openright, %openright per capitoli sempre a dx;
notitlepage,
fleqn ,
%draft
]{report}\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}
\usepackage[english,italian]{babel}
\usepackage[babel]{csquotes}
\usepackage{emptypage}
\usepackage{indentfirst}
\usepackage[binding=7mm]{layaureo}
\usepackage{microtype}
\usepackage{pdfpages} %per includere i pdf\usepackage{makeidx}
\usepackage[useprefix,
style=alphabetic,
babel=hyphen,
backref,
backend=bibtex8,
hyperref,
]{biblatex}
\bibliography{Bibliografia}\usepackage{graphicx}
\usepackage{amsmath,amssymb,amsthm,
%mathrsfs,
MnSymbol,
amscd}\usepackage{xspace} %con \xspace si ottiene uno spazio solo se dopo non c'è un segno di interpunzione ovvero dove serve, se serve
\usepackage{afterpage} %\afterpage{} esegue appena la pagina corrente è stata composta
\usepackage{lipsum} %\lipsum[n] genera n paragrafi di testo finto
\usepackage{footnote} %abilita piè di pagina \footnote{} (DOPO il punto fermo!)\usepackage{listings}
\usepackage{color}
\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\lstset{
backgroundcolor=\color{lbcolor},
tabsize=4,
rulecolor=,
language=Matlab,
basicstyle=\scriptsize,
upquote=true,
aboveskip={1.5\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
breaklines=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
numbers=left,
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
escapeinside={&!}{!&}
}\addto\captionsitalian{%
\renewcommand{\lstlistingname}{Codice}}
\addto\captionsitalian{%
\renewcommand{\lstlistlistingname}{Elenco dei codici}}\graphicspath{{./figure/}} %indirizzo immagini
\usepackage[italian]{varioref}
\usepackage[colorlinks,hyperindex,citecolor=black,bookmarks=false,hyperfootnotes=true]{hyperref} %linkcolor=black
\hypersetup{
pdftitle={MioTitolo},
pdfauthor={Corrado Lanera},
pdfsubject={MioSoggetto}
pdfkeywords={MieChiavi}}
\makeatletter
\AtBeginDocument{
\def\vr@f#1{%
\leavevmode\unskip\vref@space
\begingroup
% \let\T@pageref\@pagerefstar
\hyperref[{#1}]{\ref*{#1}}%
\vpageref[\unskip]{#1}%
\endgroup
}
}
\makeatother\newcommand{\listati}{../MatLab/completi}
`
Poi per richiamare gli indici generali e il resto del “main” (sempre l’essenziale)
`\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%*********************************************************************************************************************************************************************
\input{MaterialeInizialeFinale/Titolo}
\clearpage\input{MaterialeInizialeFinale/Colophon}
%\cleardoublepage\input{MaterialeInizialeFinale/Dedica}
\cleardoublepage\input{MaterialeInizialeFinale/Sommario+Abstract}
\tableofcontents
%*********************************************************************************************************************************************************************
\cleardoublepage\input{Capitoli/Introduzione}
\cleardoublepage\input{Capitoli/Prerequisiti}
\cleardoublepage\input{Capitoli/Main}
\cleardoublepage\input{Capitoli/Appendici}
%*********************************************************************************************************************************************************************
\input{MaterialeInizialeFinale/Bibliografia}
\lstlistoflistings
\addcontentsline{toc}{chapter}{\lstlistlistingname}
\listoffigures
\addcontentsline{toc}{chapter}{\listfigurename}
%\listoftables
\input{MaterialeInizialeFinale/Indiceanalitico}
%*********************************************************************************************************************************************************************
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%`
L’indice analitico è composto così:
`\cleardoublepage
\addcontentsline{toc}{chapter}{\indexname}
\printindex`
Dopodiché basta credo..per richiamare i files dei codici inserisco:
`\lstinputlisting{\listati/pasticcio.m}
`
mentre per gli output copio brutalmente col mela-c la parte del workspace di MatLab che mi interessa e la insersco così:
`\begin{lstlisting}[float=htb,frame=trBL,caption={LaSolitaCaption_ChePeròVorreiIniziasseConOUTPUT_n.m+1:},label={output:buttafuori},numbers=none]
\end{lstlistings}
`
in generale è così, modulo che a volte metto la p nel float, a volte lo tolgo proprio… (ah..il \nextpage{} mi sa che non riesco a farlo funzionare molto bene…oltre che mi sburta in avanti tutti i codici e spesso li costringe ad ammassarsi a fine capitolo in un unica parte solo per loro..orribile..mi ha anche fatto iniziare un capitolo nuovo nella facciata sinistra…in ogni modo visto che sono riuscito a farne a meno..non lo uso e non mi preoccupo).
Ecco io alla fine non vorrei due liste di codici una per gli “output” e una per i “codice” ma la stessa lista “lista dei codici” bella così com’è ora, con numerazioni progressive normali. Solo che vorrei che nei codici che voglio sopra ci fosse la scritta CODICE e negli altri OUTPUT, il resto tutto uguale…un po’ come ho fatto per togliere i numeri..cambia solo che lì non ci sono i numeri, e basta.
Scusate..non mi rendo conto se sono un po’ logorroico o se non arrivo ancora a spiegarmi bene..sarà l’ora…vabbé io intanto inoltro la risposta in caso domani fatemi sapere (ho messo la spunta alla notifica :-))
grazi mille davvero
buona notte.
::egreg9″ post=66826Se vuoi riscrivere la routine di output, accomodati. 🙂 🙂 🙂
…e perché mai…
…è bellissima così com’è!!! 🙂ps.: visto che girando per il forum ho appena (tre minuti fa) scoperto una cosa che hai fatto tu qualche natale fa (i link di varioref colorati e cliccabili solo nei numeri e non anche nelle parole ) colgo l’occasione per fare a te (e a tutti) tanti auguri 🙂
grazie ancora!!
::egreg9″ post=66819
Se non vuoi inserire sempre il percorso, usa
`\lstinputlisting[…]{\listati/nome.m}`Direi fantastico, grazie. Non avevo mai pensato ad un utilizzo di \newcommand come questo. Direi che questo problema è egreg-iamente risolto 🙂 grazie!
A riguardo del secondo credo che la soluzione di OldClaudio
OldClaudio” post=66820Gli oggetti flottanti, qualunque cosa contengano non possono venire spezzati fra più pagine; nel tuo caso, però direi che te la cavi egregiamente se carichi il pacchetto afterpage ne usi il comando \afterpage così:
\afterpage{\lstinputlisting{…}sia un ottimo compromesso (grazie anche per l’implicita correzione fluttuanti-flottanti :-))
Invece, curiosità,
egreg9″ post=66819“float” e “più pagine” è contraddittorio.
in che senso? Cioè chiedere a LaTeX di decidere di mettere un oggetto nel posto che ritiene migliore lasciandogli anche la libertà di spezzarlo dove meglio crede non ha senso (perché prevederebbe una conoscenza del contenuto dell’oggetto da spezzare che LaTeX non ha)? Presenta troppe variabili in gioco? Oppure è “contraddittorio” per qualche altro motivo? (ovvio che è solo una curiosità dato che le opzioni “tolgo il float e lo faccio iniziare dove voglio io e che si spezzi pure a fine pagina” oppure “\afterpage{…} e inizi da pagina nuova, eventualmente spezzandoti se arrivi in fondo” sono più che sufficienti per me :-))
Intanto segnalo il problema, visto che sono ampiamente soddisfatto, come risolto!
ps: grazie OldClaudio per le segnalazioni sul mio preambolo, ho già spostato hyperref e poi controllerò con calma tutto quello che mi è davvero necessario (mi ero fatto un pacchettino prefinito per le relazioni :-)) e i pacchetti che richiamano altri pacchetti (andrò a spulciare le guide così ci capirò ancora di più :-)!!)
Come sempre, GRAZIE.
Corrado.
::
L’autore non ha ancora risposto, in compenso ho trovato qualche altro problema…
Mi servirebbe mostrare (semplicemente) la mdt in una configurazione che non si a la prima e quindi con la testina non all’inizio e uno stato non quello iniziale. La soluzione che3 ho trovato (e in parte funziona) è la seguente`\newtm
(\#,$w_1$,-,-,-,$w_N$,$u_1$,-,-,-,-,$u_M$,-)
\turingrules{%
(s,\#,s,\#,R),%
(s,$w_1$,s,$w_1$,R),%
(s,-,s,-,R),%
(s,$w_N$,q,$w_N$,H)%
}
\begingroup\setlength{\parindent}{0pt}
\begin{lstlisting}[numbers=none,float=htbp,basicstyle=\linespread{1.4}\ttfamily,
frame=trBL,linewidth=\linewidth,caption={MdT: configurazione},label=mdt:config]
&!\loopstep{6}
\showtm
!&
\end{lstlisting}
\endgroup
`ora, a parte che devo usare \loopstep{} perchè \nextstep pare non funzionare, il risultato è che la visualizzazione del nastro dentro la cella del listings è giustificata a destra, contrariamente a tutte le altre che lo sono a sinistra. Inoltre nel caso della sequenza \showtm \runtm la prima stringa resta comunque indentata un po’ sulla destra rispetto alle altre, nonostante il bordo della listings sia perfetto.
Se riuscite a risolvere anche questo grazie mille 🙂
2 Ottobre 2011 alle 10:59 in risposta a: [RISOLOTO]Stessa equazione in punti diversi della tesi #64407::egreg9″ post=63454
Ciao,
nella tesi ho delle equazioni che richiamo più volte perché dopo 50 pagine penso che sia più conveniente riscriverle anziché fare riferimento alla pagina dove sono scritte la prima volta.
Come faccio a conservare lo stesso numero dell’equazione?
Assumendo che tu usi amsmath:
`\begin{equation}
1+1=2
\label{importante}
\end{equation}
…
\begin{equation}
1+1=2
\tag{importante}
\end{equation}`
Ciao
Enricoa me così la numerazione dell’equazione risulta “(importante)” e non il numero di “importante”. Ho risolto così:
`\begin{equation}
1+1=2
\label{importante}
\end{equation}
…
\begin{equation}
1+1=2
\tag{\ref{importante}}
\end{equation}`da cosa potrebbe dipendere?
30 Settembre 2011 alle 21:00 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #64340::
Di seguito riporto la e-mail che, come suggerito saggiamente da Egreg,ho scritto all’autore del pacchetto. Sarò felice di riportare anche la sua eventuale risposta. (Spero che il mio inglese non faccia troppa pena).Hello, I downloaded your turing.sty package for LaTeX.
I had need to use it in a document with hyperref and listings packages included and I noticed that there was some problems:
1-with hyperref package your package didn’t work;
2-with listings there was an added blank line at the beginning of the printed code and, from the second, all the others were indented at right
3-the squared code (using listings-frame) was fragmented at every (vertical) line.I wrote on the forum of GuIT (http://www.guitex.org/home/), the italian group of LaTeX users, searching a solution and Egreg solve all the problems!
The changes consist in this:
-Added prefix `tm@` at macros "private"
-removed blank lines where there should be;
-putted % where it could be added a spurious space;
– changed the routine of press: the end of the paragraph not before but after.in this manner, with the code I report under, it work at all.
I searched for a package like this and in my (and Egreg too) opinion your package is very useful package, and we suggest you to make it public (a correct version) on CTAN.
In any case I thank you very much.
With regards.
Corrado Lanera.
In attachment your (corrected) turing.sty
Part of my code:
`%***************
\newtm(1,0,1,1,0,1,0,1,\#,1,0,1,1,0,1)
\turingrules{%
(next,0,next,0,R),%
(next,1,next,1,R),%
(next,0',next,0',R),%
(next,1',next,1',R),%
(next,\#,next,\#,R),%
(next,-,check,-,L),%
%
(check,0,prepadd0,-,L),%
(check,1,prepadd1,-,L),%
(check,\#,cleanup,-,L),%
%
(prepadd0,0,prepadd0,0,L),%
(prepadd0,1,prepadd0,1,L),%
(prepadd0,\#,add0,\#,L),%
(add0,0',add0,0',L),%
(add0,1',add0,1',L),%
(add0,-,next,0',R),%
(add0,0,next,0',R),%
(add0,1,next,1',R),%
%
(prepadd1,0,prepadd1,0,L),%
(prepadd1,1,prepadd1,1,L),%
(prepadd1,\#,add1,\#,L),%
(add1,0',add1,0',L),%
(add1,1',add1,1',L),%
(add1,0,next,1',R),%
(add1,1,propadd1,0',L),%
(add1,-,next,1',R),%
(propadd1,0,next,1,R),%
(propadd1,1,propadd1,0,L),%
(propadd1,-,next,1,R),%
%
(cleanup,0,cleanup,0,L),%
(cleanup,1,cleanup,1,L),%
(cleanup,0',cleanup,0,L),%
(cleanup,1',cleanup,1,L),%
(cleanup,-,stop,-,H)%
}\begingroup\setlength{\parindent}{0pt}
\begin{lstlisting}[basicstyle=\footnotesize\linespread{1.4}\ttfamily,
frame=trBL,linewidth=\linewidth,caption={MdT somma},label={MdT:som}]
&!\showtm
\runtm!&
\end{lstlisting}
\endgroup
%****************`
30 Settembre 2011 alle 19:33 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #6433830 Settembre 2011 alle 11:44 in risposta a: Pacchetto Macchine di Turing Vs Hyperref e Listings #64335::
Grazie 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)
::
Grazie mille, così ho risolto (si vede che il vecchio file lo avevo compilato con il TeXniccenter e credo lo faccia in automatico visto che non lo facevo..) ho capito 🙂 è come per la bibliografia (mela-T,mela-shift-B,mela-shift-I,mela-T,mela-T)!
grazie mille!!
ps..dubbio:se faccio i mini indici dopo un capitolo normale devo mettere`\chapter{Modelli di calcolo}
\label{cap:mod}
\minitoc
\mtcskip
`se su un capitolo asteriscato allora è
`\chapter*{Introduzione}
\adjustmtc
\phantomsection
\addcontentsline{toc}{chapter}{Introduzione}
\label{cap:intro}`ma se è un capitolo normale che non voglio abbia il mini indice (tipo un appendice)? basta che non scrivo nulla?!
e i warnings che continua a darmi li ignoro?
`Package minitoc(hints) Warning: W0030
(minitoc(hints)) — The \part command is altered
(minitoc(hints)) after minitoc.Package minitoc(hints) Warning: W0023
(minitoc(hints)) — It may be the consequence
(minitoc(hints)) of loading the “hyperref'' package.Package minitoc(hints) Warning: W0028
(minitoc(hints)) — The \chapter command is altered
(minitoc(hints)) after minitoc.Package minitoc(hints) Warning: W0023
(minitoc(hints)) — It may be the consequence
(minitoc(hints)) of loading the “hyperref'' package.`Grazie ancora!! Ciao ciao.
::
`\documentclass[a4paper,11pt,oneside,notitlepage]{article}\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}
\usepackage[italian]{babel}\usepackage{amsmath,amsfonts,amssymb,amsthm,mathrsfs}
\usepackage[colorlinks,hyperindex,pdftex]{hyperref}\newcommand{\Z}{\mathbb{Z}}
\newcommand{\C}{\mathbb{C}}\begin{document}
\tableofcontents
\section{Esercizi}
Calcolare il gruppo fondamentale degli spazi seguenti:\subsection[$\C^{*}/\langle\varphi^{n}\mid n\in\Z\rangle$]{$\C^{*}/G$, dove $G$ è il gruppo $\{\varphi^{n}\vert n\in\Z\}$ generato dall'omeomorfismo $\varphi(z)=2z$}
ciao
\end{document}`il problema non cambia togliendo i bookmarks: non crea l’indice.. e solito errore.
`This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.
entering extended mode
(./emcp.tex
LaTeX2e <2009/09/24>
Babeland hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spani
sh, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/applemac.def))
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/italian.ldf
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bitset.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bigintcalc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/atbegshi.sty))Package hyperref Message: Driver: hpdftex.
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/atveryend.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/uniquecounter.sty)))
(./emcp.aux) (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/refcount.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./emcp.out) (./emcp.out)Package hyperref Warning: old toc file detected, not used; run LaTeX again.
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/ursfs.fd)Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\varphi' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\mid' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\in' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.[1{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./emcp.aux)Package rerunfilecheck Warning: File `emcp.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.){/usr/local/texlive/2010/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}
< /usr/local/texlive/2010/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi8.pfb>
Output written on emcp.pdf (1 page, 82884 bytes).
SyncTeX written on emcp.synctex.gz
Transcript written on emcp.log.`
::
questo funziona:
`
\documentclass[a4paper,11pt,oneside,notitlepage]{article}\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}
\usepackage[italian]{babel}\usepackage{amsmath,amsfonts,amssymb,amsthm,mathrsfs}
\usepackage[colorlinks,hyperindex,pdftex,bookmarks]{hyperref}\newcommand{\Z}{\mathbb{Z}}
\newcommand{\C}{\mathbb{C}}\begin{document}
\tableofcontents
\section{Esercizi}
Calcolare il gruppo fondamentale degli spazi seguenti:\subsection[$\C^{*}/\lvert\varphi^{n}\mid n\in\Z\rvert$]{$\C^{*}/G$, dove $G$ è il gruppo $\{\varphi^{n}\vert n\in\Z\}$ generato dall'omeomorfismo $\varphi(z)=2z$}
ciao
\end{document}
`
e la console produce questo:
`
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.
entering extended mode
(./emcp.tex
LaTeX2e <2009/09/24>
Babeland hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spani
sh, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/applemac.def))
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/italian.ldf
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bitset.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bigintcalc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/atbegshi.sty))Package hyperref Message: Driver: hpdftex.
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/atveryend.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/uniquecounter.sty)))
(./emcp.aux) (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/refcount.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./emcp.out) (./emcp.out) (./emcp.toc
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/ursfs.fd))Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\varphi' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\mid' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\in' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.[1{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./emcp.aux) ){/usr/local/texlive/2010/texmf-dist/fonts/enc/dvips/cm-super/cm-s
uper-t1.enc}
Output written on emcp.pdf (1 page, 106623 bytes).
SyncTeX written on emcp.synctex.gz
Transcript written on emcp.log.
`
Questo NO!:`
\documentclass[a4paper,11pt,oneside,notitlepage]{article}\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}
\usepackage[italian]{babel}\usepackage{amsmath,amsfonts,amssymb,amsthm,mathrsfs}
\usepackage[colorlinks,hyperindex,pdftex,bookmarks]{hyperref}\newcommand{\Z}{\mathbb{Z}}
\newcommand{\C}{\mathbb{C}}\begin{document}
\tableofcontents
\section{Esercizi}
Calcolare il gruppo fondamentale degli spazi seguenti:\subsection[$\C^{*}/\langle\varphi^{n}\mid n\in\Z\rangle$]{$\C^{*}/G$, dove $G$ è il gruppo $\{\varphi^{n}\vert n\in\Z\}$ generato dall'omeomorfismo $\varphi(z)=2z$}
ciao
\end{document}
`e la console produce questo:
`
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.
entering extended mode
(./emcp.tex
LaTeX2e <2009/09/24>
Babeland hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spani
sh, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/applemac.def))
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/italian.ldf
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bitset.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bigintcalc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/atbegshi.sty))Package hyperref Message: Driver: hpdftex.
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/atveryend.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/uniquecounter.sty)))
(./emcp.aux) (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/refcount.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./emcp.out) (./emcp.out)Package hyperref Warning: old toc file detected, not used; run LaTeX again.
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/jknapltx/ursfs.fd)Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\varphi' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `superscript' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\mid' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\in' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\delimiter' on input line 21.Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `math shift' on input line 21.[1{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./emcp.aux)Package rerunfilecheck Warning: File `emcp.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.){/usr/local/texlive/2010/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}
< /usr/local/texlive/2010/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi8.pfb>
Output written on emcp.pdf (1 page, 82884 bytes).
SyncTeX written on emcp.synctex.gz
Transcript written on emcp.log.
`Nel secondo caso comunque il pdf viene prodotto ma completamente senza indice senza indice (nel mio caso che c’erano anche altre subsection l’indice spariva del tutto comunque e non solo la voce relativa a questo esercizio ma il pdf era prodotto comunque)
-
AutoreRisposte