Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! Undefined control sequence. l.24 \epstopdfDeclareGraphicsRule {.ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER... #67

Open
hongyi-zhao opened this issue May 28, 2023 · 0 comments

Comments

@hongyi-zhao
Copy link

Use the following setting in LaTeX source code:

\usepackage{graphicx,epstopdf}
\epstopdfsetup{update,suffix=}
\DeclareGraphicsExtensions{.ps, .eps}
\epstopdfDeclareGraphicsRule{.ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER #1 \OutputFile}

xenops will trigger the following error:

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=latex)
 \write18 enabled.
entering extended mode
(/tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-04-20>
(/opt/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/opt/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/color.sty
(/opt/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics-def/dvips.def)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/dvipsnam.def)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/opt/texlive/2023/texmf-dist/tex/latex/base/fontenc.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/base/inputenc.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/tools/xspace.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
(/opt/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/opt/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf.sty
(/opt/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/grfext/grfext.sty
(/opt/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/opt/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(/opt/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/opt/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty

Package epstopdf Warning: Drivers other than `pdftex' and `luatex' are not supp
orted.

))
! Undefined control sequence.
l.24 \epstopdfDeclareGraphicsRule
                                 {.ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER...


! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.24 \epstopdfDeclareGraphicsRule{.
                                   ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER...

! You can't use `macro parameter character #' in horizontal mode.
l.24 ...s}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER #
                                                  1 \OutputFile}
! Undefined control sequence.
l.24 ...{ps2pdf -dEPSCrop -dNOSAFER #1 \OutputFile
                                                  }
(/opt/texlive/2023/texmf-dist/tex/latex/mathtools/mathtools.sty
(/opt/texlive/2023/texmf-dist/tex/latex/tools/calc.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/mathtools/mhsetup.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/amsmath/amsmath.sty
Overfull \hbox (48.79529pt too wide) in paragraph at lines 24--94
[]\T1/cmr/m/n/10 .pspdf.pdfps2pdf -dEPSCrop -dNOSAFER 1                        
                                                             
For additional information on amsmath, use the `?' option.
(/opt/texlive/2023/texmf-dist/tex/latex/amsmath/amstext.sty
(/opt/texlive/2023/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/amsmath/amsopn.sty)))
(/opt/texlive/2023/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/opt/texlive/2023/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/algorithms/algorithm.sty
(/opt/texlive/2023/texmf-dist/tex/latex/float/float.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/base/ifthen.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/algorithmicx/algpseudocode.sty
(/opt/texlive/2023/texmf-dist/tex/latex/algorithmicx/algorithmicx.sty
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
)
Document Style - pseudocode environments for use with the `algorithmicx' style
) (/opt/texlive/2023/texmf-dist/tex/latex/tools/array.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/tools/bm.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/multirow/multirow.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/wasysym/wasysym.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/hyperref.sty
(/opt/texlive/2023/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/nameref.sty
(/opt/texlive/2023/texmf-dist/tex/latex/refcount/refcount.sty)
(/opt/texlive/2023/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/opt/texlive/2023/texmf-dist/tex/generic/intcalc/intcalc.sty)
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/puenc.def)
(/opt/texlive/2023/texmf-dist/tex/latex/url/url.sty)
(/opt/texlive/2023/texmf-dist/tex/generic/bitset/bitset.sty
(/opt/texlive/2023/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/hdvips.def
(/opt/texlive/2023/texmf-dist/tex/latex/hyperref/pdfmark.def
(/opt/texlive/2023/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(/opt/texlive/2023/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(/opt/texlive/2023/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))))
! Undefined control sequence.
l.51 \journalcode
                 {A}              % Indicate the journal to which submitted

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.51 \journalcode{A
                   }              % Indicate the journal to which submitted
(/opt/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(/tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.aux)
(/tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.out)
(/tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.out)
(/opt/texlive/2023/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/opt/texlive/2023/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/opt/texlive/2023/texmf-dist/tex/latex/wasysym/uwasy.fd) [1]
(/tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.aux) )
(see the transcript file for additional information)
Output written on /tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.dvi (1 p
age, 3028 bytes).
Transcript written on /tmp/xenops/01bd7056e3973c0da91cb0ca155c6b0b53435446.log.
@hongyi-zhao hongyi-zhao changed the title ! Undefined control sequence. l.24 \epstopdfDeclareGraphicsRule {.ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER... ! Undefined control sequence. l.24 \epstopdfDeclareGraphicsRule {.ps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dNOSAFER... May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant