[RISOLTO] Formule nei titoli

  • Creatore
    Topic
  • #55113
    Up
    0
    Down
    ::


    Ciao a tutti.
    Ho bisogno di inserire delle formule nei titoli delle mie sezioni (article).
    Di solito i warning dovuti a cose del tipo
    \section{$$} li ignoravo e andava tutto bene ora però non mi compila l’indice…
    `

    \subsection{$\C^{*}-\{0\}$}
    ciao
    \subsection{$\C^{*}/\langle{\varphi^{n}:n\in\Z}\rangle$}
    ciao
    \subsection{$\C^{*}/<\bar{\varphi}^{n}:n\in\Z>$}
    ciao
    \subsection{$\C^{*}/<-\bar{\varphi}^{n}:n\in\Z>$}
    `

    se però commento la seconda subsection allora i warning restano ma mi compila e mi mostra l’indice, così come se tolgo \langle ed \rangle. lasciando invece tutto così mi stampa tutto tranne l’indice che proprio non lo fa (prima compilazione si blocca, alla seconda stampa senza indice) credo sia un problema generale quindi non penso serva l’esempio che ho fatto io, in caso lo posto subito (non lo faccio per non appesantire)
    l’errore sta nel fatto che ci sono i dollari (quelli sono i motivi dei warning) ma senza non posso scrivere equazioni.. come posso risolvere?
    grazie mille a tutti.
    ps il “tale che” è fatto coi due punti e non con la barra perché anche \vert mi dava errore 🙂

    pps: forse serve una precisazione…nel preambolo, tra le altre cose c’è
    `
    \newcommand{\C}{\mathbb{C}}
    \newcommand{\Z}{\mathbb{Z}}
    `

Visualizzazione 9 filoni di risposte
  • Autore
    Risposte
    • #55114
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Domanda: hai per caso caricato anche il pacchetto hyperref?

        In questo caso NON puoi mettere formule nei titoli se non aggirando pesantemente il problema.

        In realtà il problema è un altro: di solito non si mettono formule nei titoli; si tratta di una cosa eccezionalissima e rarissima e non si usa con hyperref.

        La soluzione tipograficamente corretta consiste nello scrivere una breve frase che abbia lo stesso significato qualitativo delle formula.

        Non ho idea di che cosa significhi $\C^{*}-\{0\}$, per esempio, ma io mettendo parole a caso scriverei: Differenza fra il coniugato del campo complesso e l’insieme vuoto” (Ripeto sono parole a caso, perché non ho la più vaga idea di che cosa possano rappresentare i tuoi simboli).

      • #55115
        Up
        0
        Down
        ::

        Ciao a tutti.
        Ho bisogno di inserire delle formule nei titoli delle mie sezioni (article).
        Di solito i warning dovuti a cose del tipo
        \section{$$} li ignoravo e andava tutto bene ora però non mi compila l’indice…
        `

        \subsection{$\C^{*}-\{0\}$}
        ciao
        \subsection{$\C^{*}/\langle{\varphi^{n}:n\in\Z}\rangle$}
        ciao
        \subsection{$\C^{*}/<\bar{\varphi}^{n}:n\in\Z>$}
        ciao
        \subsection{$\C^{*}/<-\bar{\varphi}^{n}:n\in\Z>$}
        `

        se però commento la seconda subsection allora i warning restano ma mi compila e mi mostra l’indice, così come se tolgo \langle ed \rangle. lasciando invece tutto così mi stampa tutto tranne l’indice che proprio non lo fa (prima compilazione si blocca, alla seconda stampa senza indice) credo sia un problema generale quindi non penso serva l’esempio che ho fatto io, in caso lo posto subito (non lo faccio per non appesantire)
        l’errore sta nel fatto che ci sono i dollari (quelli sono i motivi dei warning) ma senza non posso scrivere equazioni.. come posso risolvere?
        grazie mille a tutti.
        ps il “tale che” è fatto coi due punti e non con la barra perché anche \vert mi dava errore 🙂

        pps: forse serve una precisazione…nel preambolo, tra le altre cose c’è
        `
        \newcommand{\C}{\mathbb{C}}
        \newcommand{\Z}{\mathbb{Z}}
        `

        Non ottengo alcun errore.

        È sbagliato usare < per la parentesi ad angolo, il simbolo giusto è \langle, con il compagno \rangle; se vuoi la barra per "tale che" usa \mid. Esempio minimo compilabile, per favore. Ciao Enrico

      • #55116
        Up
        0
        Down
        ::


        `

        \usepackage[colorlinks,hyperindex,pdftex,bookmarks]{hyperref} %,linkcolor=black,citecolor=black
        `

        E’ un esercizio con 4 punti da consegnare: un po’ di pagine carine che mi ha chiesto il professore di fare. alla fine mi piaceva l’idea di mettere nell’indice i 4 punti dell’esercizio e quelli proprio non ha senso scriverli a parole:

        `
        begin{document}

        \maketitle %stampa titolo\autore\(data)
        \tableofcontents %indice

        %\frontmatter %non numera i capitoli e numera le pagine con numeri romani minuscoli;
        %\mainmatter %numera i capitoli e le pagine con numeri arabi (riprende da 1);
        %\backmatter %non numera i capitoli e continua la numerazione araba delle pagine dal materiale principale.
        %\appendix, cambia i numeri dei capitoli (o dei paragrafi, se la classe impostata è article) in lettere.

        %\part{} %c'è anche nell'article
        %\chapter{} %capitolo:pagina nuova!! non c'è nell'article
        %\section[]{} %le quadre si possono omettere se uguale alle graffe
        %\section*{}
        %phantomsection %per evitare possibili errori nei collegamenti ipertestuali
        %\addcontentsline{toc}{section}{
        } %non numerati (e non nell'indice a meno che si usi \addcontentsline)
        %\subsection{}

        \section{Esercizi}
        Calcolare il gruppo fondamentale degli spazi seguenti:
        \input{esercizi/Esercizio1}
        \input{esercizi/Esercizio2}
        \input{esercizi/Esercizio3}
        \input{esercizi/Esercizio4}

        \end{document}
        `

        Esercizio1:
        `
        \subsection{$\C^{*}:=\C-\{0\}$}

        `

        Esercizio2:
        `
        \subsection[$\C^{*}/<\varphi^{n}:n\in\Z}>$]{$\C^{*}/G$, dove $G$ è il gruppo $\{\varphi^{n}\vert n\in\Z\}$ generato dall'omeomorfismo $\varphi(z)=2z$}

        `

        Esercizio3:
        `
        \subsection{$\C^{*}/<\bar{\varphi}^{n}:n\in\Z>$}

        `

        Esercizio4:
        `
        \subsection{$\C^{*}/<-\bar{\varphi}^{n}:n\in\Z>$}

        `

        il secondo esercizio è quello che da problemi (ma sarebbe così che mi interesserebbe impostare anche gli altri…)

      • #55117
        Up
        0
        Down
        ::


        ora lo produco e ve lo mando (< e > sono brutte e sbagliate anche per me le ho messe temporanee perché \langle ecc. mi davano errore!! ed è proprio quello che cercabvo di risolvere, ora provo a cosituire un esempio minimo!!)

      • #55118
        Up
        0
        Down
        ::


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

      • #55119
        Up
        0
        Down
        ::

        `

        \usepackage[colorlinks,hyperindex,pdftex,bookmarks]{hyperref} %,linkcolor=black,citecolor=black
        `

        Eccolo lì. Vuoi le formule matematiche nei segnalibri? Non puoi. Al massimo puoi scriverci una versione semplificata con \texorpdfstring:
        `\subsection{\texorpdfstring{}{}`
        Ciao
        Enrico

      • #55120
        Up
        0
        Down
        ::


        `\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>
        Babel and 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.`

      • #55121
        Up
        0
        Down
        ::

        `\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.

        Per non generare i bookmarks va data l’opzione “bookmarks=false”; tuttavia alcuni comandi infastidiscono lo stesso hyperref; sono \langle e \rangle che, nell’argomento opzionale di \subsection (o nell’argomento obbligatorio se non c’è quello opzionale) vanno preceduti con \protect:
        `\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$}`
        Già che ci sei togli anche l’inutile (e dannosa) opzione “pdftex” e adopera il corretto comando \mid invece di \vert.

        Ciao
        Enrico

      • #55122
        Up
        0
        Down
        ::


        Risolto,perfetto! Grazie. Per curiosità cos’è e come faccio a sapere quando “qualcosa” infastidisce “qualcuno”? cosa fa di preciso e quando posso e\o devo usare \protect?
        Grazie mille ancora!! Non so come fai (-:

      • #55123
        Up
        0
        Down
        ::

        Risolto,perfetto! Grazie. Per curiosità cos’è e come faccio a sapere quando “qualcosa” infastidisce “qualcuno”? cosa fa di preciso e quando posso e\o devo usare \protect?
        Grazie mille ancora!! Non so come fai (-:

        Il messaggio di errore, quando ho messo bookmarks=false, diceva qualcosa a proposito di \delimiter e i soli comandi che hanno a che fare con \delimiter sono \langle e \rangle.

        Come faccio? Circa 25 anni di TeX. 🙂

        Ciao
        Enrico

    Visualizzazione 9 filoni di risposte
    • Devi essere connesso per rispondere a questo topic.

    Go to top