LaTeX forum ⇒ Conversion ToolsProbleme de compilation

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Abdo
Posts: 3
Joined: Tue Sep 13, 2022 10:31 pm

Probleme de compilation

Postby Abdo » Tue Sep 13, 2022 10:46 pm

Bonsoir,
J'ai un probleme de compilation lorsque je clique sur PDFTeXiFy j'ai obtenu la faute suivante

[color=#BFFF40][color=#BF40FF][color=#400000]Command Line: pdflatex.exe --interaction=errorstopmode "Calcul integral.tex"
Startup Folder: C:\Users\compu techno\Desktop\Tout 2\abdo\La Tex\Besancon 2022 - 2023\SE\Suites Numeriques

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode
("Calcul integral.tex"
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\book.cls"
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\bk12.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latin1.def"))
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files\MiKTeX 2.9\tex\latex\arabi\bblopts.cfg")
("C:\Program Files\MiKTeX 2.9\tex\generic\babel-french\frenchb.ldf"
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def")))
("C:\Program Files\MiKTeX 2.9\tex\latex\carlisle\scalefnt.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\verbatim.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ifthen.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\textcomp.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ts1enc.def"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\pdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))))
("C:\Program Files\MiKTeX 2.9\tex\latex\psfrag\psfrag.sty")

! LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.14 \documentclass[10pt]{
article}
?
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\basiclayer\pgf.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\utilities\pgfrcs.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-common-lists.te
x")) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-latex.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\ms\everyshi.sty"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfrcs.code.tex"))
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\basiclayer\pgfcore.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\systemlayer\pgfsys.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeysfiltered.code.te
x")) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgf.cfg")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys-pdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys-common-pdf.def
")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsyssoftpath.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsysprotocol.code.t
ex")) ("C:\Program Files\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\color.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcore.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathcalc.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathutil.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathparser.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.basic.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.trigonometr
ic.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.random.code
.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.comparison.
code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.base.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.round.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.misc.code.t
ex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.integerarit
hmetics.code.tex")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfloat.code.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepoints.code.tex
")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathconstruct.c
ode.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathusage.code.
tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorescopes.code.tex
")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoregraphicstate.co
de.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoretransformations
.code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorequick.code.tex"
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreobjects.code.te
x")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathprocessing.
code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorearrows.code.tex
")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreshade.code.tex"
) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreimage.code.te
x"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreexternal.code.t
ex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorelayers.code.tex
")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoretransparency.co
de.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepatterns.code.t
ex")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\modules\pgfmoduleshapes.code.tex"
) ("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\modules\pgfmoduleplot.code.tex"
)
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\compatibility\pgfcomp-version-0-65.
sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\compatibility\pgfcomp-version-1-18.
sty")) ("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\frontendlayer\tikz.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\utilities\pgffor.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\utilities\pgfkeys.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex"))
("C:\Program Files\MiKTeX 2.9\tex\latex\pgf\math\pgfmath.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgffor.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex")))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\frontendlayer\tikz\tikz.code.tex"

("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\libraries\pgflibraryplothandlers.
code.tex")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\modules\pgfmodulematrix.code.tex"
)
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\frontendlayer\tikz\libraries\tikz
librarytopaths.code.tex")))
("C:\Program Files\MiKTeX 2.9\tex\latex\jknappen\mathrsfs.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\frontendlayer\tikz\libraries\tikz
libraryarrows.code.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\libraries\pgflibraryarrows.code.t
ex")) ("C:\Program Files\MiKTeX 2.9\tex\latex\pst-plot\pst-plot.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pstricks\pstricks.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pstricks.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\pst-xkey.tex"
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"))))
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pst-fp.tex"
`pst-fp' v0.05, 2010/01/17 (hv))
("C:\Program Files\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex")
`PSTricks' v2.73a <2017/05/22> (tvz)
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pstricks.con"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pst-fp.tex"))
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\pst-xkey.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\multido\multido.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\multido\multido.tex"
v1.42, 2010/05/14 <tvz>))
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-plot\pst-plot.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-tools\pst-tools.tex"
`PST-tools' v0.07, 2017/08/23 (hv))
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks-add\pstricks-add.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-node\pst-node.tex"
v1.39, 2017/01/20)
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-arrow\pst-arrow.tex"
`pst-arrow' v0.01, 2016/09/01 (dr,hv))
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-3d\pst-3d.tex"
`PST-3d' v1.11, 2010/02/14 (tvz))
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-math\pst-math.tex"
`pst-math' v0.63 , (CJ,hv)) `pstricks-add' v3.83a, 2017/08/24 (dr,hv))
v1.79, 2017/05/22 (tvz,hv)))
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\array.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\pst-node\pst-node.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-node\pst-node.tex"))
("C:\Program Files\MiKTeX 2.9\tex\latex\pstricks\pstcol.sty"

Package pstcol Warning: ************************************
(pstcol) The package `pstcol' is obsolet!
(pstcol) You should use `pstricks' directly:
(pstcol) \usepackage{pstricks}
(pstcol) ************************************.

) ("C:\Program Files\MiKTeX 2.9\tex\latex\pst-3d\pst-3d.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-3d\pst-3d.tex"))
("C:\Program Files\MiKTeX 2.9\tex\latex\pst-eucl\pst-eucl.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\pst-tools\pst-tools.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-tools\pst-tools.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-eucl\pst-eucl.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\pst-arrow\pst-arrow.tex")
`PST-Euclide v1.56, 2017/04/18 (dr,hv)
This version uses the pst-xkey package for managing parameters
Please read the doc, some macros have a new syntax
use option old for upward compatibility))
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\calc.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")

! Package hyperref Error: Wrong DVI mode driver option `dvips',
(hyperref) because pdfTeX or LuaTeX is running in PDF mode.

See the hyperref package documentation for explanation.
Type H <return> for immediate help.
...

l.4374 \ProcessKeyvalOptions{Hyp}

?

! Package hyperref Error: Wrong DVI mode driver option `ps2pdf',
(hyperref) because pdfTeX or LuaTeX is running in PDF mode.

See the hyperref package documentation for explanation.
Type H <return> for immediate help.
...

l.4374 \ProcessKeyvalOptions{Hyp}

?
("C:\Program Files\MiKTeX 2.9\tex\latex\url\url.sty"))

Package hyperref Message: Driver (autodetected): hpdftex.

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amscls\amsthm.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\pifont.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upzd.fd")
("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\upsy.fd"))
("C:\Program Files\MiKTeX 2.9\tex\latex\fancyhdr\fancyhdr.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\latex\tocloft\tocloft.sty")
("Calcul integral.aux") ("C:\Program Files\MiKTeX 2.9\tex\latex\base\ts1cmr.fd"
) ("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
) ("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\epstopdf-base.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\grfext.sty"))
ABD: EveryShipout initializing macros
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))
("Calcul integral.out") ("Calcul integral.out"
! I can't write on file `"Calcul integral.pdf"'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
! I can't write on file `.pdf'.
Please type another file name for output:
[/color][/color][/color]

et cela avec tous les documents que j'ai ecrit en Latex depuis des annees.
C'est la premiere fois que je rencontre ce probleme de compilation meme hier tout ca marche bien je ne sais comment resoudre ce probleme quelqu'un peut m'aider (j'utilise MiKTeX 2.9 et PDFelement & Professional)
Merci d'avance

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
MjK
Posts: 68
Joined: Fri Jan 28, 2022 6:09 pm

Probleme de compilation

Postby MjK » Wed Sep 14, 2022 9:05 am

I don't understand French. Please use English.

I seems, that there are two \documentclass commands in your Calcul integral.tex. The second one is \documentclass[10pt]{article} in line 14. The first one must be somewhere before line 14 and loads class book instead of article. You have to remove the second one and maybe change the first one, depending on the class you want to use.

And is seems, that you are loading package hyperref with option dvips. It could also be, that you are using option dvips as global option of \documentclass. But because you are using pdflatex this option is wrong. Note: It is not recommended to use backend options like dvips or pdftex for any package. Almost all packages can detect the correct engine and automatically use the correct backend. Adding options like pdfmark, hypertex etc. could make sense in some rare cases. Average users and beginners usually have more harm then benefit in using them.

BTW: Please also tag terminal output or log-file content as code. This makes it better readable (and scrollable). See my signature for more information about this and about how to help us to help you by adding a minimal working example.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.

Abdo
Posts: 3
Joined: Tue Sep 13, 2022 10:31 pm

Probleme de compilation

Postby Abdo » Wed Sep 14, 2022 1:35 pm

hi
i have a hunderd's of document in latex form and suddenly 2 days before i can't compile any document to .pdf i don't know the reason and what's happened because i have nothing do.
when i compile any file with miktex to transform it to pdf form i obtain this

! I can't write on file `.pdf'.
Please type another file name for output:


i have the same problem for all my document
Thanks in advance


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 2 guests