[OS X TeX] Interaction of plain TeX, \magnification, landscape and color

Bruno Voisin bvoisin at mac.com
Wed Sep 20 12:18:49 CEST 2006


Le 20 sept. 06 à 12:10, Bruno Voisin a écrit :

> Just today I have received off-list a request for help from  
> somebody attempting to produce landscape color slides at  
> \magnification 2400, in plain TeX and using the miniltx interface  
> to the LaTeX graphicx and color packages (from /usr/local/teTeX/ 
> share/texmf.tetex/tex/plain/graphics/).

I have forgotten to cc the original poster, in case he's not a member  
of this list and people would want to communicate with him directly.  
That's now done.

Bruno Voisin

> I have obtained a working solution using dvips, but with pdfTeX I  
> keep getting an error when loading the color package:
>
>> This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
>> \write18 enabled.
>> entering extended mode
>> (./basil.tex (/usr/local/teTeX/share/texmf.tetex/tex/latex/ 
>> oberdiek/ifpdf.sty)
>> (/usr/local/teTeX/share/texmf.gwtex/tex/generic/config/ 
>> pdftexconfig.tex)
>> (./graphicxland.tex
>> (/usr/local/teTeX/share/texmf.tetex/tex/latex/oberdiek/ifpdf.sty)
>> (/usr/local/teTeX/share/texmf.tetex/tex/plain/graphics/miniltx.tex)
>> (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/graphicx.sty
>> (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/keyval.sty)
>> (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/graphics.sty
>> (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/trig.sty)
>> (/usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/ 
>> graphics.cfg)
>> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/pdftex.def
>> (/usr/local/teTeX/share/texmf.tetex/tex/context/base/supp-pdf.tex
>> (/usr/local/teTeX/share/texmf.tetex/tex/context/base/supp-mis.tex
>> loading : Context Support Macros / Miscellaneous (2004.10.26)
>> )
>> loading : Context Support Macros / PDF (2004.03.26)
>> ))))) (./color.tex
>> (/usr/local/teTeX/share/texmf.tetex/tex/latex/oberdiek/ifpdf.sty)
>> (/usr/local/teTeX/share/texmf.tetex/tex/plain/graphics/miniltx.tex)
>> (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/color.sty
>> ! Undefined control sequence.
>> <argument> \@notdefinable
>>
>> \@secondoftwo #1#2->#2
>>
>> l.77 ...nextchar[\@undeclaredcolor\@declaredcolor}
>>
>> ? x
>> No pages of output.
>> Transcript written on basil.log.
>
> This may be caused by the fact that I have the LaTeX Updater i- 
> Package installed, so that the most recent LaTeX version in  
> texmf.local is used instead is the older one in texmf.tetex with  
> which miniltx has been designed to work. Optimizations are also  
> certainly to be looked for, so that miniltx.tex and ifpdf.sty are  
> only loaded once for example.
>
> I don't have time to look further into this, but I'm posting the  
> problem here in case people would be interested to investigate  
> further.
>
> BTW, to Jonathan Kew: it appears in the log above, and I verified  
> using kpsewhich, that the version of graphics.cfg customized for  
> XeTeX is used when running pdfTeX:
>
> $ kpsewhich --progname=pdflatex graphics.cfg
> /usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg
> $ kpsewhich --progname=pdftex graphics.cfg
> /usr/local/teTeX/share/texmf.local/tex/xelatex/graphics/graphics.cfg
>
> I think it's harmless, given the customization only adds XeTeX to  
> the list of automatically recognized drivers but doesn't break  
> anything for pdfTeX and dvips. But should texmf.cnf be changed, or  
> the location of the modified graphics.cfg altered, in order for it  
> not to be found when running pdfTeX?
>
> Following are the files sent by the original poster, and the  
> modified version that works with dvips but not pdfTeX.
>
> Bruno Voisin
>
>
> %%%%%%%% Original files
>
> =====Le fichier graphicxland
>
> % Plain TeX interface to graphicx package.
> % David Carlisle
> % Slight changes made by Richard Koch
>
> \newif\ifpdf
> \ifx\pdfoutput\undefined
> \pdffalse % we are not running PDFLaTeX
> \else
> \pdfoutput=1 % we are running PDFLaTeX
> \pdftrue
> \fi
>
>
> \input miniltx
>
> \def\paperheight{21truecm}
> \def\paperwidth{29.7truecm}
> \def\AtEndOfPackage{}
> \def\@ifpackageloaded#1{}
>
> \ifpdf
> \def\Gin at driver{pdftex.def}
> \else
> \def\Gin at driver{dvips.def}
> \fi
>
> \input graphicx.sty
>
>
> \resetatcatcode
>
> =====le fichier color (mais j'ai essayé des variantes, comme par  
> exemple définir le même driver que dans graphicxland ou même  
> incorporer juste l'appel de color.sty dans graphicxland, avant ou  
> après l'appel a graphicx.sty)
>
> % Plain TeX interface to color package.
> % David Carlisle
>
> \input miniltx
> \makeatletter
> \def\Gin at driver{dvips.def}
> \input color.sty
>
> \resetatcatcode
>
>
>
> =====un bout de mon fichier TeX
>
> \magnification=2400
> \vsize=17truecm \hsize=25truecm
> \baselineskip=1truecm
> \parindent=0truecm
> \nopagenumbers
> \hfuzz=1truecm
> \font\scap=cmcsc10
>
>
> \input pdftexconfig
> \hsize=297truemm
> \advance\hsize by -5truecm
> \vsize=210truemm
> \advance\vsize by -5truecm
>
> \input graphicxland
> \input color
>
> {\color{red}
> H\'enon-Heiles Hamiltonian
> $$H={1\over 2}\bigl(p_x^2+p_y^2\bigr)+y^3+kyx^2$$
>
> Three integrable cases (from Painlev\'e analysis)
> \bigskip
> $V = y^3 + 3 x^2y$  (separable  in $x\pm y$)
> \bigskip	
> $V = y^3 + {1\over 2}yx^2$
> \medskip
> Invariant  $p_x(xp_y-yp_x)+x^2y^2/2+x^4/8$
> \bigskip
> $V = y^3 + {3\over 16}yx^2$
> \medskip
> Invariant $p_x^4+3yx^2p_x^2/4-x^3p_xp_y/4-3x^4y^2/64-x^6/128$
> }
> =====
>
>
> %%%%%%%% Modified files
>
> =====Le fichier graphicxland
>
> % Plain TeX interface to graphicx package.
> % David Carlisle
> % Slight changes made by Richard Koch
>
> \input ifpdf.sty
>
> \input miniltx
>
> \def\paperheight{21truecm}
> \def\paperwidth{29.7truecm}
> \def\AtEndOfPackage{}
> \def\@ifpackageloaded#1{}
>
> \ifpdf
> \def\Gin at driver{pdftex.def}
> \else
> \def\Gin at driver{dvips.def}
> \fi
>
> \input graphicx.sty
> %\input /usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/ 
> graphicx.sty
>
> \resetatcatcode
>
> =====le fichier color
>
> % Plain TeX interface to color package.
> % David Carlisle
>
> \input ifpdf.sty
>
> \input miniltx
>
> \makeatletter
> \ifpdf
> \def\Gin at driver{pdftex.def}
> \else
> \def\Gin at driver{dvips.def}
> \fi
>
> \input color.sty
> %\input /usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/ 
> color.sty
>
> \resetatcatcode
>
> =====un bout de mon fichier TeX
>
> \magnification=2400
> \baselineskip=1truecm
> \parindent=0truecm
> \nopagenumbers
> \hfuzz=1truecm
> \font\scap=cmcsc10
>
> \input ifpdf.sty
> \ifpdf
>   \input pdftexconfig
> \fi
>
> \hsize=297truemm
> \advance\hsize by -5truecm
> \vsize=210truemm
> \advance\vsize by -5truecm
> \ifpdf
>   \pdfpagewidth=297mm
>   \pdfpageheight=210mm
> \else
>   \special{papersize=297mm,210mm}
> \fi
>
> \input graphicxland
> \input color
>
> {\color{red}
> H\'enon-Heiles Hamiltonian
> $$H={1\over 2}\bigl(p_x^2+p_y^2\bigr)+y^3+kyx^2$$
>
> Three integrable cases (from Painlev\'e analysis)
> \bigskip
> $V = y^3 + 3 x^2y$  (separable  in $x\pm y$)
> \bigskip	
> $V = y^3 + {1\over 2}yx^2$
> \medskip
> Invariant  $p_x(xp_y-yp_x)+x^2y^2/2+x^4/8$
> \bigskip
> $V = y^3 + {3\over 16}yx^2$
> \medskip
> Invariant $p_x^4+3yx^2p_x^2/4-x^3p_xp_y/4-3x^4y^2/64-x^6/128$
> }
>
> \bye
>
> =====------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list