Errore con hyperref

  • Creatore
    Topic
  • #83103
    Up
    0
    Down
    ::


    Scusate, ultimamente sto avendo diversi problemi e devo ricorrere spesso all’aiuto del forum.
    Caricando nel preambolo il pacchetto hyperref con l’opzione hidelinks:
    `\usepackage[hidelinks]{hyperref}`
    e inserendo nel testo un link in questo modo:
    `\href{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}`
    quando compilo ottengo un messaggio di errore di questo tipo:
    `! Undefined control sequence.
    \hyper@link@ [#1]#2#3#4->\ltx@ifempty
    {#4}{\Hy@Warning {Suppressing empty li…
    l.25 …ive-easing-and-america-s-economic-rebound}
    .
    ? `
    A una breve ricerca in rete non ho trovato nulla di simile, qualcuno saprebbe aiutarmi?

    P.S. Facendo dei tentativi ho scoperto che se rimuovo il link la compilazione si completa anche se nel testo ci sono altri collegamenti interni (note a pié di pagina, riferimenti bibtex).

Visualizzazione 4 filoni di risposte
  • Autore
    Risposte
    • #83104
      Up
      0
      Down
      ::

      poxx” post=82443Scusate, ultimamente sto avendo diversi problemi e devo ricorrere spesso all’aiuto del forum.
      Caricando nel preambolo il pacchetto hyperref con l’opzione hidelinks:
      `\usepackage[hidelinks]{hyperref}`
      e inserendo nel testo un link in questo modo:
      `\href{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}`
      quando compilo ottengo un messaggio di errore di questo tipo:
      `! Undefined control sequence.
      \hyper@link@ [#1]#2#3#4->\ltx@ifempty
      {#4}{\Hy@Warning {Suppressing empty li…
      l.25 …ive-easing-and-america-s-economic-rebound}
      .
      ? `
      A una breve ricerca in rete non ho trovato nulla di simile, qualcuno saprebbe aiutarmi?

      P.S. Facendo dei tentativi ho scoperto che se rimuovo il link la compilazione si completa anche se nel testo ci sono altri collegamenti interni (note a pié di pagina, riferimenti bibtex).

      Esempio minimo completo, per favore.

      Ciao
      Enrico

    • #83105
      Up
      0
      Down
      ::

      egreg9″ post=82449

      Scusate, ultimamente sto avendo diversi problemi e devo ricorrere spesso all’aiuto del forum.
      Caricando nel preambolo il pacchetto hyperref con l’opzione hidelinks:
      `\usepackage[hidelinks]{hyperref}`
      e inserendo nel testo un link in questo modo:
      `\href{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}`
      quando compilo ottengo un messaggio di errore di questo tipo:
      `! Undefined control sequence.
      \hyper@link@ [#1]#2#3#4->\ltx@ifempty
      {#4}{\Hy@Warning {Suppressing empty li…
      l.25 …ive-easing-and-america-s-economic-rebound}
      .
      ? `
      A una breve ricerca in rete non ho trovato nulla di simile, qualcuno saprebbe aiutarmi?

      P.S. Facendo dei tentativi ho scoperto che se rimuovo il link la compilazione si completa anche se nel testo ci sono altri collegamenti interni (note a pié di pagina, riferimenti bibtex).

      Esempio minimo completo, per favore.

      Ciao
      Enrico

      Non c’è molto altro, ti ricopio l’intero preambolo:
      `\documentclass[11pt,a4paper,oneside]{article}
      \let\oldfootnotesize\footnotesize
      \renewcommand*{\footnotesize}{\oldfootnotesize\normalsize}
      \usepackage{amsfonts}
      \usepackage{amsmath}
      \usepackage{amssymb}
      \usepackage{MnSymbol}
      \usepackage{mathbbol}
      \newcommand{\notop}{\mathord{\sim}}
      \usepackage[british,english]{babel}
      \usepackage[T1]{fontenc}
      \usepackage[utf8]{inputenc}
      \usepackage[babel]{csquotes}
      \usepackage[backend=bibtex,style=authoryear,sorting=nyt,useprefix]{biblatex}
      \usepackage{setspace}
      \usepackage[medium]{titlesec}
      \usepackage[hidelinks]{hyperref}
      \let\oldquote\quote
      \renewcommand\quote{\par\singlespacing\footnotesize\oldquote}
      \title{}
      \author{}
      \date{}
      \bibliography{references}`
      Subito dopo inizia \begin{document}, e già nella prima frase di testo devo inserire il collegamento che, così come riportato sopra, è:
      `\href{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}`
      Quando compilo mi dà quell’errore, ma ovviamente se elimino quel \href si risolve.

    • #83106
      Up
      0
      Down
      ::


      Non ho alcun errore. Prova a minimizzare il preambolo finché il problema rimane; propendo per qualche problema di versione.

      Ciao
      Enrico

    • #83107
      Up
      0
      Down
      ::

      egreg9″ post=82460Non ho alcun errore. Prova a minimizzare il preambolo finché il problema rimane; propendo per qualche problema di versione.

      Ciao
      Enrico

      Ho seguito il tuo consiglio, ho creato un altro documento che nel preambolo contenesse solo \usepackage[hidelinks]hyperref e nel documento solo la prima frase, quella con il link incriminato. Purtroppo il problema permane. Ho provato anche ad aggiornare i pacchetti, senza successo.

    • #83108
      Up
      0
      Down
      ::

      poxx” post=82468

      Non ho alcun errore. Prova a minimizzare il preambolo finché il problema rimane; propendo per qualche problema di versione.

      Ciao
      Enrico

      Ho seguito il tuo consiglio, ho creato un altro documento che nel preambolo contenesse solo \usepackage[hidelinks]hyperref e nel documento solo la prima frase, quella con il link incriminato. Purtroppo il problema permane. Ho provato anche ad aggiornare i pacchetti, senza successo.

      Allora, il file
      `\listfiles
      \documentclass{article}
      \usepackage[hidelinks]{hyperref}
      \begin{document}
      \href{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}{http://www.project-syndicate.org/commentary/quantitative-easing-and-america-s-economic-rebound}
      \end{document}`
      produce il seguente log:
      `This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) (format=pdflatex 2013.1.23) 22 FEB 2013 15:55
      entering extended mode
      restricted \write18 enabled.
      %&-line parsing enabled.
      **poxx.tex
      (./poxx.tex
      LaTeX2e <2011/06/27>
      Babel and hyphenation patterns for english, dumylang, nohyphenation, ge
      rman-x-2012-05-30, ngerman-x-2012-05-30, 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, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
      ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
      rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
      kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
      polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s
      lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
      welsh, loaded.
      (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
      Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
      (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo
      File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
      )
      \c@part=\count79
      \c@section=\count80
      \c@subsection=\count81
      \c@subsubsection=\count82
      \c@paragraph=\count83
      \c@subparagraph=\count84
      \c@figure=\count85
      \c@table=\count86
      \abovecaptionskip=\skip41
      \belowcaptionskip=\skip42
      \bibindent=\dimen102
      )
      (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hyperref.sty
      Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX

      (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
      Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)

      (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
      Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
      Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)
      Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
      Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
      Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
      Package ifluatex Info: LuaTeX not detected.
      Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
      Package ifvtex Info: VTeX not detected.
      Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)
      Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
      Package ifpdf Info: pdfTeX in PDF mode is detected.
      Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
      Package etexcmds Info: Could not find \expanded.
      (etexcmds) That can mean that you are not using pdfTeX 1.50 or
      (etexcmds) that some package has redefined \expanded.
      (etexcmds) In the latter case, load this package earlier.
      Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
      Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
      Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
      )
      Package pdftexcmds Info: LuaTeX not detected.
      Package pdftexcmds Info: \pdf@primitive is available.
      Package pdftexcmds Info: \pdf@ifprimitive is available.
      Package pdftexcmds Info: \pdfdraftmode found.
      Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
      Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO
      )
      Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)
      Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)
      )
      Package hobsub Info: Skipping package `hobsub' (already loaded).
      Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
      Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)
      Package: xcolor-patch 2011/01/30 xcolor patch
      Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)
      Package atveryend Info: \enddocument detected (standard20110627).
      Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)
      Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)
      Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
      )
      (/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty
      Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
      \KV@toks@=\toks14
      )
      (/usr/local/texlive/2012/texmf-dist/tex/generic/ifxetex/ifxetex.sty
      Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
      )
      (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/auxhook.sty
      Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)
      )
      (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/kvoptions.sty
      Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
      )
      \@linkdim=\dimen103
      \Hy@linkcounter=\count87
      \Hy@pagecounter=\count88

      (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/pd1enc.def
      File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
      )
      \Hy@SavedSpaceFactor=\count89

      (/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/hyperref.cfg
      File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
      )
      Package hyperref Info: Hyper figures OFF on input line 4443.
      Package hyperref Info: Link nesting OFF on input line 4448.
      Package hyperref Info: Hyper index ON on input line 4451.
      Package hyperref Info: Plain pages OFF on input line 4458.
      Package hyperref Info: Backreferencing OFF on input line 4463.
      Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
      Package hyperref Info: Bookmarks ON on input line 4688.
      \c@Hy@tempcnt=\count90

      (/usr/local/texlive/2012/texmf-dist/tex/latex/url/url.sty
      \Urlmuskip=\muskip10
      Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
      )
      LaTeX Info: Redefining \url on input line 5041.
      \XeTeXLinkMargin=\dimen104
      \Fld@menulength=\count91
      \Field@Width=\dimen105
      \Fld@charsize=\dimen106
      Package hyperref Info: Hyper figures OFF on input line 6295.
      Package hyperref Info: Link nesting OFF on input line 6300.
      Package hyperref Info: Hyper index ON on input line 6303.
      Package hyperref Info: backreferencing OFF on input line 6310.
      Package hyperref Info: Link coloring OFF on input line 6315.
      Package hyperref Info: Link coloring with OCG OFF on input line 6320.
      Package hyperref Info: PDF/A mode OFF on input line 6325.
      LaTeX Info: Redefining \ref on input line 6365.
      LaTeX Info: Redefining \pageref on input line 6369.
      \Hy@abspage=\count92
      \c@Item=\count93
      \c@Hfootnote=\count94
      )

      Package hyperref Message: Driver (autodetected): hpdftex.

      (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/hpdftex.def
      File: hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
      \Fld@listcount=\count95
      \c@bookmark@seq@number=\count96

      (/usr/local/texlive/2012/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
      Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
      Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
      82.
      )
      \Hy@SectionHShift=\skip43
      )
      (./poxx.aux)
      \openout1 = `poxx.aux'.

      LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 4.
      LaTeX Font Info: … okay on input line 4.
      \AtBeginShipoutBox=\box26
      Package hyperref Info: Link coloring OFF on input line 4.
      (/usr/local/texlive/2012/texmf-dist/tex/latex/hyperref/nameref.sty
      Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section
      (/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/gettitlestring.sty
      Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)
      )
      \c@section@level=\count97
      )
      LaTeX Info: Redefining \ref on input line 4.
      LaTeX Info: Redefining \pageref on input line 4.
      LaTeX Info: Redefining \nameref on input line 4.

      (./poxx.out) (./poxx.out)
      \@outlinefile=\write3
      \openout3 = `poxx.out'.

      Package atveryend Info: Empty hook `BeforeClearDocument' on input line 6.

      Overfull \hbox (24.38962pt too wide) in paragraph at lines 5–6
      [][]\OT1/cmr/m/n/10 http://www.project-syndicate.org/commentary/quantitative-ea
      sing-and-america-
      []

      [1

      {/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
      Package atveryend Info: Empty hook `AfterLastShipout' on input line 6.

      (./poxx.aux)
      Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 6.

      *File List*
      article.cls 2007/10/19 v1.4h Standard LaTeX document class
      size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
      hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX
      hobsub-hyperref.sty 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
      hobsub-generic.sty 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
      hobsub.sty 2012/05/28 v1.13 Construct package bundles (HO)
      infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
      ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
      ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
      ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
      intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)
      ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
      etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
      kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
      kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
      pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
      pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
      bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)
      bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)
      uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)
      letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
      hopatch.sty 2012/05/28 v1.2 Wrapper for package hooks (HO)
      xcolor-patch.sty 2011/01/30 xcolor patch
      atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)
      atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)
      refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)
      hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
      keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
      ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
      auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
      kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
      pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
      hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
      url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
      hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
      rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
      nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section
      gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
      poxx.out
      poxx.out
      ***********

      Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 6.
      Package rerunfilecheck Info: File `poxx.out' has not changed.
      (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
      Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 6.
      )
      Here is how much of TeX's memory you used:
      4205 strings out of 493488
      63423 string characters out of 3141326
      136384 words of memory out of 3000000
      7544 multiletter control sequences out of 15000+200000
      3640 words of font info for 14 fonts, out of 3000000 for 9000
      957 hyphenation exceptions out of 8191
      29i,4n,23p,227b,317s stack positions out of 5000i,500n,10000p,200000b,50000s

      Output written on poxx.pdf (1 page, 15701 bytes).
      PDF statistics:
      19 PDF objects out of 1000 (max. 8388607)
      14 compressed objects within 1 object stream
      2 named destinations out of 1000 (max. 500000)
      1 words of extra memory for PDF output out of 10000 (max. 10000000)`
      Come vedi, nessun errore. Controlla l’elenco dei pacchetti.

      Ciao
      Enrico

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

Go to top