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>
Babel
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>
Babel
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)