[OS X TeX] hyperref error?

David Arnold dwarnold45 at suddenlink.net
Fri May 27 00:57:17 CEST 2011


All,

The file:

\documentclass[12pt]{article}

\usepackage{pst-pdf}
\usepackage{hyperref}

\listfiles

\begin{document}
Test
\end{document}

Does compile on our macbooks when we use latex. But we have hyperref v6.81z on our macbooks. On our linux machine, we have hyperref 6.82g. Is that the problem?

D.


On May 26, 2011, at 3:39 PM, David Arnold wrote:

> Herbert, Here is part of the script we use on our system, which has some metapost, pstricks, and tikz graphics used in its files:
> 
> if ($os eq 'osx') {
>    print "\nStarting gen_questions.pl ...\n";
>    system "$macbin/gen_questions.pl $testbank --preview=$macqinclude $secondarg";
>    print "\nStarting latex ...\n";
>    system "latex --shell-escape $testbank-preview.tex";
>    system "dvips -o $testbank-preview-pics.ps $testbank-preview.dvi";
>    system "ps2pdf -dAutoRotatePages=/None $testbank-preview-pics.ps $testbank-preview-pics.pdf";
>    system "pdflatex  --shell-escape $testbank-preview.tex";
>    system "rm $testbank-preview.dvi $testbank-preview-pics.ps $testbank-preview.aux q1111-*.*";
> 
> David
> 
> On May 26, 2011, at 3:29 PM, Herbert Schulz wrote:
> 
>> 
>> On May 26, 2011, at 5:25 PM, David Arnold wrote:
>> 
>>> Peter, Herbert, et al,
>>> 
>>> OK. The test file still is:
>>> 
>>> \documentclass[12pt]{article}
>>> 
>>> \usepackage{pst-pdf}
>>> \usepackage{hyperref}
>>> 
>>> \listfiles
>>> 
>>> \begin{document}
>>> Test
>>> \end{document}
>>> 
>>> And yes, we are compiling with latex. If this were just one file we were worried about, no problem. However, we have a whole database of files on our Optimath system here at school that depend upon being first compile with latex (followed by some further commands), so we need to get past this first step:
>>> 
>>> And the error message still is:
>>> 
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
>>> ! Undefined control sequence.
>>> l.3814 \@PackageInfoNoLine
>>>                       {etexcmds}{%
>>> ?
>>> 
>>> The listfiles command produced:
>>> 
>>> File List*
>>> article.cls    2007/10/19 v1.4h Standard LaTeX document class
>>> size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
>>> pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
>>> graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
>>> keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
>>> graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
>>> trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
>>> graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
>>> pdftex.def    2011/05/18 v0.06c Graphics/color for pdfTeX
>>> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
>>> ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
>>> pstricks.sty    2011/04/23 v0.50 LaTeX wrapper for `PSTricks' (RN,HV)
>>> ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
>>> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>>> pstricks.tex    2011/04/23 v2.20 `PSTricks' (tvz,hv)
>>> pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>>> xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>>> xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
>>> pst-fp.tex    2011/04/23 v2.20 `PST-fp' (hv)
>>> xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
>>> color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
>>> preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)
>>> dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
>>> environ.sty    2008/06/18 v0.2 A new way to define environments
>>> hyperref.sty    2011/04/17 v6.82g Hypertext links for LaTeX
>>> hobsub-hyperref.sty    2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)
>>> hobsub-generic.sty    2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)
>>> hobsub.sty    2011/04/23 v1.4 Subsetting bundle oberdiek (HO)
>>> ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
>>> intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)
>>> etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)
>>> kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)
>>> kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)
>>> pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
>>> pdfescape.sty    2011/04/04 v1.12 Provides string conversions (HO)
>>> bigintcalc.sty    2011/01/30 v1.2 Expandable big integer calculations (HO)
>>> bitset.sty    2011/01/30 v1.1 Data type bit set (HO)
>>> uniquecounter.sty    2011/01/30 v1.2 Provides unlimited unique counter (HO)
>>> letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
>>> hopatch.sty    2011/01/30 v1.0 Wrapper for package hooks (HO)
>>> xcolor-patch.sty    2011/01/30 xcolor patch
>>> atveryend.sty    2011/04/23 v1.7 Hooks at very end of document (HO)
>>> atbegshi.sty    2011/01/30 v1.15 At begin shipout hook (HO)
>>> refcount.sty    2010/12/01 v3.2 Data extraction from references (HO)
>>> hycolor.sty    2011/01/30 v1.7 Color options of hyperref/bookmark (HO)
>>> ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
>>> kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)
>>> pd1enc.def    2011/04/17 v6.82g 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    2011/04/17 v6.82g Hyperref driver for pdfTeX
>>> rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
>>> supp-pdf.mkii
>>> nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section
>>> gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
>>> mytest.out
>>> mytest.out
>>> 
>>> Finally, if we switch the package loading, the file compiles.
>>> 
>>> \documentclass[12pt]{article}
>>> 
>>> \usepackage{hyperref}
>>> \usepackage{pst-pdf}
>>> 
>>> \listfiles
>>> 
>>> \begin{document}
>>> Test
>>> \end{document}
>>> 
>>> However, we fear this switching because of the hundreds of other files that might go wrong.
>>> 
>>> Finally, we tried tlmgr update --list [pst-pdf], but got the message:
>>> 
>>> tlmgr: [pst-pdf] mentioned, but neither new nor forcibly removed
>>> tlmgr: no updates available.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On May 26, 2011, at 8:50 AM, Herbert Schulz wrote:
>>> 
>>>> 
>>>> On May 26, 2011, at 9:48 AM, Peter Dyballa wrote:
>>>> 
>>>>> 
>>>>> Am 26.05.2011 um 13:57 schrieb Herbert Schulz:
>>>>> 
>>>>>> I just realized that the problem is probably that the person was trying to compile the file with latex rather than pdflatex.
>>>>> 
>>>>> 
>>>>> In that case I get this message earlier:
>>>>> 
>>>>> 	! Package pdftex.def Error: PDF mode expected, but DVI mode detected!
>>>>> 	(pdftex.def)                If you are using `latex', then call `pdflatex'.
>>>>> 	(pdftex.def)                Otherwise check and correct the driver options.
>>>>> 	(pdftex.def)                Error recovery by switching to PDF mode.
>>>>> 	
>>>>> 	See the pdftex.def package documentation for explanation.
>>>>> 	Type  H <return>  for immediate help.
>>>>> 	 ...n>  for immediate help\@err@
>>>>> 	
>>>>> 	l.430   }\@ehc
>>>>> 
>>>>> This should make clear what is wrong... (also assuming that the first error has to be resolved because this first error can provoke all the others)
>>>>> 
>>>>> --
>>>>> Greetings
>>>>> 
>>>>> Pete
>>>>> 
>>>>> To most people solutions mean finding the answers. But to chemists solutions
>>>>> are things that are still all mixed up.
>>>> 
>>>> Howdy,
>>>> 
>>>> I get the same error as was originally noted when I attempt to compile with latex rather than pdflatex.
>>>> 
>>>> Good Luck,
>>>> 
>>>> Herb Schulz
>>>> (herbs at wideopenwest dot com)
>>>> 
>> 
>> Howdy,
>> 
>> WHY are you using the pst-pdf package if you are going to compile with latex rather than pdflatex? That package is meant to be a wrapper for pstricks WHEN USING pdflatex. It is NOT NEEDED (not its wrappers) if you are using latex to compile.
>> 
>> Good Luck,
>> 
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>> 
>> 
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list