Après installation récente de TeX Live, j'ai testé un fichier contenant du code pstricks :

  • sous TeXmaker avec options LaTeX sortie DVI puis dvips... tout va bien
  • sous emacs + AucTeX ça beugue.

Quelqu'un a-t-il une piste pour ?

P.S. 1 - le log obtenu sous emacs :

Ouvrir dans l'éditeur Overleaf
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2019.8.5)  6 AUG 2019 10:25
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**1006.3153_copie2.tex
(./1006.3153_copie2.tex
LaTeX2e <2009/09/24>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(/usr/share/texmf/tex/latex/latex_Tosh/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf/tex/latex/latex_Tosh/base/size12.clo
File: size12.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/share/texmf/tex/latex/latex_Tosh/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/latex_Tosh/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01

(/usr/share/texmf/tex/latex/latex_Tosh/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen103
))
(/usr/share/texmf/tex/latex/latex_Tosh/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
)
(/usr/share/texmf/tex/latex/latex_Tosh/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count87
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count90
\DOTSCASE@=\count91
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count92
\c@MaxMatrixCols=\count93
\dotsspace@=\muskip10
\c@parentequation=\count94
\dspbrk@lvl=\count95
\tag@help=\toks15
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/usr/share/texmf/tex/latex/latex_Tosh/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 96.
)
(/usr/share/texmf/tex/latex/latex_Tosh/pstricks/pstricks.sty
Package: pstricks 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)

(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

(/usr/share/texmf/tex/latex/latex_Tosh/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks19
\XKV@tempa@toks=\toks20

(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count99
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count100
\pstFP@xia=\count101
\pstFP@xib=\count102
\pstFP@xfa=\count103
\pstFP@xfb=\count104
\pstFP@rega=\count105
\pstFP@regb=\count106
\pstFP@regs=\count107
\pstFP@times=\count108
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks21
\pgfutil@tempdima=\dimen112
\pgfutil@tempdimb=\dimen113

(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t
ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks22
\pgfkeys@temptoks=\toks23

(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t
ex
\pgfkeys@tmptoks=\toks24
)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex
\pgf@x=\dimen114
\pgf@xa=\dimen115
\pgf@xb=\dimen116
\pgf@xc=\dimen117
\pgf@y=\dimen118
\pgf@ya=\dimen119
\pgf@yb=\dimen120
\pgf@yc=\dimen121
\c@pgf@counta=\count109
\c@pgf@countb=\count110
\c@pgf@countc=\count111
\c@pgf@countd=\count112
\pgfutil@tempcnta=\count113
\pgfutil@tempcntb=\count114
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen122
\pgfmath@count=\count115
\pgfmath@box=\box28
\pgfmath@toks=\toks25
\pgfmath@stack@operand=\toks26
\pgfmath@stack@operation=\toks27
)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet
ric.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod
e.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison
.code.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code
.tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.
tex)
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari
thmetics.code.tex)))
(/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count116
))
\pgffor@iter=\dimen123
\pgffor@skip=\dimen124
\pgffor@stack=\toks28
\pgffor@toks=\toks29
)
\psLoopIndex=\count117

`PSTricks' v2.82  <2018/01/06> (tvz,hv)
\pst@dima=\dimen125
\pst@dimb=\dimen126
\pst@dimc=\dimen127
\pst@dimd=\dimen128
\pst@dimg=\dimen129
\pst@dimh=\dimen130
\pst@dimm=\dimen131
\pst@dimn=\dimen132
\pst@dimo=\dimen133
\pst@dimp=\dimen134
\pst@hbox=\box29
\pst@ibox=\box30
\pst@boxg=\box31
\pst@cnta=\count118
\pst@cntb=\count119
\pst@cntc=\count120
\pst@cntd=\count121
\pst@cntg=\count122
\pst@cnth=\count123
\pst@cntm=\count124
\pst@cntn=\count125
\pst@cnto=\count126
\pst@cntp=\count127
\@zero=\count128
\pst@toks=\toks30

(/usr/share/texmf/tex/latex/xetex-pstricks/pstricks/xelatex/xetex-pstricks/pstr
icks.con
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg))
\psunit=\dimen135
\psxunit=\dimen136
\psyunit=\dimen137
\pst@C@@rType=\count129
\pslinewidth=\dimen138
\psk@startLW=\dimen139
\psk@endLW=\dimen140
\pst@customdefs=\toks31
\pslinearc=\dimen141
\pst@symbolStep=\dimen142
\pst@symbolWidth=\dimen143
\pst@symbolLinewidth=\dimen144

/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex:2817: Undefined
 control sequence.
l.2817 \ifpst@psfonts

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex:2819: Extra \el
se.
l.2819 \else

I'm ignoring this; it doesn't match any \if.

/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex:2821: Extra \fi
.
l.2821 \fi

I'm ignoring this; it doesn't match any \if.

\everypsbox=\toks32
\psframesep=\dimen145
\pslabelsep=\dimen146
\sh@wgridXunit=\dimen147
\sh@wgridYunit=\dimen148
\pst@shift=\dimen149

(/usr/share/texmf/tex/latex/xetex-pstricks/pstricks/xelatex/xetex-pstricks/pstr
icks.con
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg
Using PSTricks configuration for XeTeX+xdvipdfmx
)))
File: pstricks.tex 2018/01/06 v2.82 `PSTricks' (tvz,hv)
 (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)

(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.

(/usr/share/texmf/tex/latex/latex_Tosh/pdftex-def/pdftex.def
File: pdftex.def 2009/08/25 v0.04m Graphics/color for pdfTeX
\Gread@gobject=\count130
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
))
No file 1006.3153_copie2.aux.
\openout1 = `1006.3153_copie2.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count131
\scratchdimen=\dimen150
\scratchbox=\box32
\nofMPsegments=\count132
\nofMParguments=\count133
\everyMPshowfont=\toks33
\MPscratchCnt=\count134
\MPscratchDim=\dimen151
\MPnumerator=\count135
\makeMPintoPDFobject=\count136
\everyMPtoPDFconversion=\toks34
)
LaTeX Font Info:    Try loading font information for U+msa on input line 23.
 (/usr/share/texmf/tex/latex/latex_Tosh/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
LaTeX Font Info:    Try loading font information for U+msb on input line 23.

(/usr/share/texmf/tex/latex/latex_Tosh/amsfonts/umsb.fd
File: umsb.fd 2009/06/22 v3.00 AMS symbols B
)

LaTeX Warning: Citation `br1' on page 1 undefined on input line 36.

LaTeX Warning: Citation `dick1' on page 1 undefined on input line 36.

LaTeX Warning: Citation `guy' on page 1 undefined on input line 37.

LaTeX Warning: Citation `leech1' on page 1 undefined on input line 37.

LaTeX Warning: Citation `luijk' on page 1 undefined on input line 37.

LaTeX Warning: Citation `sawreit' on page 1 undefined on input line 39.

LaTeX Warning: Citation `kumm' on page 1 undefined on input line 42.

[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!

Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]

LaTeX Warning: Citation `siltate' on page 2 undefined on input line 73.

LaTeX Warning: Citation `mord' on page 2 undefined on input line 75.

[2]

LaTeX Warning: Citation `bgz' on page 3 undefined on input line 104.

[3] [4] [5] [6] [7]
./1006.3153_copie2.tex:311: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.311 \pscircle(4,4){3}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:311: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.311 \pscircle(4,4){3}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:312: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.312 \pspolygon(
                 1.6,2.3)(6.5,2.3)(6,6.2)(3,6.8)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:313: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.313 \psline
             [linestyle=dashed](1.6,2.3)(6,6.2)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:313: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.313 \psline[linestyle=dashed](
                                1.6,2.3)(6,6.2)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:314: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.314 \psline
             [linestyle=dashed](6.5,2.3)(3,6.8)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:314: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.314 \psline[linestyle=dashed](
                                6.5,2.3)(3,6.8)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./1006.3153_copie2.tex:315: Undefined control sequence.
\c@lor@to@ps ...name c@lor@ps@#1\endcsname #2 \@@

l.315

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

LaTeX Warning: Citation `schub' on page 8 undefined on input line 332.

LaTeX Warning: Citation `sast1' on page 8 undefined on input line 333.

LaTeX Warning: Citation `sast2' on page 8 undefined on input line 333.

LaTeX Warning: Citation `sast1' on page 8 undefined on input line 334.

LaTeX Warning: Citation `sast2' on page 8 undefined on input line 334.

[8
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!] [9] [10] [11] [12] [13] [14] [15] [16]
Missing character: There is no  in font cmr12!
Missing character: There is no   in font cmr12!

Underfull \hbox (badness 1430) in paragraph at lines 716--717
[]\OT1/cmr/m/n/12 H. Schu-bert, \OT1/cmr/m/it/12 Die Ganz-zahligkeit in der Al-
ge-brais-chen Ge-ome-trie\OT1/cmr/m/n/12 ,
 []

[17] (./1006.3153_copie2.aux)

LaTeX Warning: There were undefined references.

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 ) 
Here is how much of TeX's memory you used:
 8458 strings out of 493060
 147823 string characters out of 6135477
 208944 words of memory out of 5000000
 11869 multiletter control sequences out of 15000+600000
 13051 words of font info for 50 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 36i,8n,40p,396b,238s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi8.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fonts/
type1/public/amsfonts/cm/cmr17.pfb></usr/share/texlive/texmf-dist/fonts/type1/p
ublic/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/am
sfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
/cm/cmti12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/latxf
ont/line10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/symbo
ls/msam10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/symbol
s/msbm10.pfb>
Output written on 1006.3153_copie2.pdf (17 pages, 187742 bytes).
PDF statistics:
 111 PDF objects out of 1000 (max. 8388607)
 78 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

P.S. 2 - si je lance tlmgr -gui, j'obtiens :

Ouvrir dans l'éditeur Overleaf
  Sorry, no translations available for fr_FR (nor fr); falling back to English.
    Make sure that you have the package "texlive-msg-translations" installed.
    (If you'd like to help translate the installer's messages, please see
    http://tug.org/texlive/doc.html#install-tl-xlate for information.)

Loading local TeX Live database
  (/home/jacob/texmf/tlpkg/texlive.tlpdb)
This may take some time, please be patient ...
Cannot determine type of tlpdb from /home/jacob/texmf!
cannot setup TLPDB in /home/jacob/texmf at /usr/bin/tlmgr line 6424.
Compilation failed in require at /usr/bin/tlmgr line 5000.

Posée 06 Aoû '19, 15:29

BogueDan's gravatar image

BogueDan
5123
Taux d'acceptation : 0%

Modifiée 07 Aoû '19, 03:33

Pathe's gravatar image

Pathe ♦♦
7.4k29196245

1

Le fichier .log de emacs indique qu’il utilise pdflatex et ne pas latex. Peut être ajouter (setq TeX-PDF-via-dvips-ps2pdf t) au fichier .emacs pourrait aider (proposé dans https://tex.stackexchange.com/a/279651/36296 ) ?

(06 Aoû '19, 16:24) samcarter samcarter's gravatar image
1

@samcarter : le lien date de 2014. Avec une installation qui n'est pas à jour, ça doit marcher mais maintenant c'est TeX-PDF-via-DVI à qui l'on peut donner la valeur « nil » , « Dvips » ou « Dvipdfmx » selon le mode désiré.

Et garder le mode TeX-PDF TeX-PDF-via-dvips-ps2pdf est obsolète depuis la version 11.90 d'AUCTeX.

La version actuelle est 12.1.2.

Je préfère ne pas effectuer ce paramétrage en dur dans le fichier d'initialisation, car pour les fichiers qui ne nécessitent pas ce mode, le fichier log est plus directement accessible.

(06 Aoû '19, 20:11) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

@Jean-jacques Rétorré Vous avez raison ! Je ne connaissais pas les Local Variables, c'est mieux pour un seul document.

(06 Aoû '19, 20:38) samcarter samcarter's gravatar image

@samcarter C'est du Emacs assez élémentaire et ça permet de s'affranchir de configurations « en dur ». (info "(emacs)Local Variables in Files"). J'ai cru comprendre que les éditeurs orientés LaTeX ont adopté un principe comparable, mais sans doute pas aussi sophistiqué. C'est pratique aussi quand on veut compiler avec -shell-escape ou utiliser un moteur autre que le moteur tex par défaut.

(06 Aoû '19, 22:28) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

@Jean-jacques Rétorré Oui, ce semble être similaire aux « magic comments » qu'ont a en plusieurs éditeurs de LaTeX

(06 Aoû '19, 22:36) samcarter samcarter's gravatar image

Ce sont plutôt les éditeurs de LaTeX qui se sont inspirés d'Emacs. Les "variables de fichier" Emacs sont beaucoup plus puissantes, elles peuvent contenir du code Elisp et de ce fait exécuter des actions jusqu'aux plus complexes.

(07 Aoû '20, 13:02) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image
Affichage de 5 parmi 6 Afficher 1 commentaire(s) en plus

Mise à jour :

Depuis la version 12.3 il n'y a plus aucune configuration nécessaire pour compiler en pdf un document contenant du code pstricks (à condition que \include{pstricks} figure explicitement (ou quelques autres packages pst-*, mais pas pst-all ) Si vous voulez compiler en PDF il ne faut surtout ne pas le désactiver le mode PDF (par défaut). La seule différence est que la compilation génère plusieurs fichiers log successifs et qu'en cas de besoin il faudra choisir celui qui vous intéresse « manuellement ».

Pour ceux dont pas la version d'AUCTeX n'est pas à jour:

Il faut affecter la valeur « Dvips » à TeX-PDF-from-DVI tout en gardant TeX-PDF-mode avec une valeur positive. Voir (info "(auctex) Options for TeX Processors").

Personnellement je le fais sous forme de variables de fichier générés par l'extension template. Il y a d'autres solutions, c'est une affaire de goût. Faire attention à ce que le mécanisme des styles d'AUCTeX ne désactive pas TeX-PDF-mode (AMHA c'est un petit bug Si l'on n'utilise pas une variable de fichier, il faudrait modifier pstricks.el )

 %%% Local Variables:
 %%% mode: latex
 %%% coding: utf-8
 %%% TeX-PDF-mode: t
 %%% TeX-engine: default 
 %%% TeX-PDF-from-DVI: "Dvips"
 %%% End:
Lien permanent

Publiée 06 Aoû '19, 17:26

Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

Jean-jacques Rétorré
55615
Taux d'acceptation : 44%

Modifiée 18 Mar '21, 15:04

Merci pour les réponses. Je traduis à mon petit niveau, j'ajoute: (setq TeX-PDF-mode t) (setq TeX-PDF-from-DVI "Dvips") à mon .emacs? C'est bien ça?

(06 Aoû '19, 22:16) BogueDan BogueDan's gravatar image
1

ça marchera, bien sûr, mais la configuration sera fixée pour toutes les compilations, y comprises celles qui n'impliquent pas pstricks. Ce n'est pas bien compliqué d'ajouter les variables de fichier. La commande M-x add-file-local-variable le fait. On peut aussi préparer un fichier qui contient la configuration désirée et l'incorporer à tout fichier qui le nécessite par C-x i, ou utiliser un système de templates. template, yasnippet ou autre.

(07 Aoû '19, 03:06) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image
1

@BogueDan : attention ! Votre réponse était un commentaire plutôt qu'une réponse et a été convertie comme tel.

Par ailleurs, n'hésitez pas à signaler que la réponse proposée résout le problème : pour ce faire, veuillez cocher la boîte ad hoc sise à gauche de ladite réponse.

(07 Aoû '19, 07:48) Pathe ♦♦ Pathe's gravatar image

Je suppose que ce n'est pas ce qu'il fallait faire puisqu'après cette modification du .emacs et test j'obtiens comme début de fichier log: "This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2019.8.5) 7 AUG 2019 10:13 entering extended mode "

(07 Aoû '19, 15:15) BogueDan BogueDan's gravatar image

Je ne vois pas ce qui te fais penser que ce n'est pas ce qu'il faudrait faire. Ce message me paraît tout à fait normal.

(07 Aoû '19, 18:08) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

@Jean-jacques Rétorré Je pensais que ce début signalait une compilation avec pdfLatex, non? En fait c'est de plus en plus obscur:l'intitulé de mon post est faux. En fait certains codes pstricks passent très bien d'autres non QUE J'AJOUTE OU NON les deux lignes suggérées. Je n'y comprends goutte.

(07 Aoû '19, 22:16) BogueDan BogueDan's gravatar image
1

@BogueDan Attention ! Attention ! Cette réponse était à nouveau un commentaire plutôt qu'une réponse et a encore été convertie comme tel, ce qui a provoqué la réitération du présent message.

(07 Aoû '19, 23:48) Pathe ♦♦ Pathe's gravatar image
1

@boguedan Le problème vient peut-être du mécanisme de style de AUCTeX qui se déclenche à la lecture des usepackage. Dès qu'il trouve quelque chose en rapport avec pstricks, il désactive TeX-PDF-mode. Ceci qui déclenche une erreur car sa valeur doit être t. En cas de problème persistant, fournir un ECM.

(09 Aoû '19, 13:53) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

La modeline doit afficher LaTeX/P (autres indicateurs éventuellement)

(09 Aoû '19, 19:04) Jean-jacques Rétorré Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image
Affichage de 5 parmi 9 Afficher 4 commentaire(s) en plus

J'ai signalé le problème du fichier de style pstricks.el au mainteneur d'AUCTeX Ikumi Keita. Celui-ci devrait être modifié lors de la prochaine mise à jour. Personnellement, j'ai remplacé la ligne 784 du fichier ~/.emacs.d/elpa/auctex-12.2.4/style/pstricks.el

Ouvrir dans l'éditeur Overleaf
(TeX-PDF-mode-off)

par

Ouvrir dans l'éditeur Overleaf
(setq TeX-PDF-from-DVI "Dvips")
  (message "TeX-PDF-from-DVI : Dvips")

Comme ceci

Ouvrir dans l'éditeur Overleaf
(TeX-add-style-hook
 "pstricks"
 (lambda ()
   (unless (or (member "pst-pdf" TeX-active-styles)
               (eq TeX-engine 'xetex))
    ;; ---(TeX-PDF-mode-off)
    ;; +++
    (setq TeX-PDF-from-DVI "Dvips")
    (message "TeX-PDF-from-DVI : Dvips")
    ;; end +++
    )

N'oubliez pas de compiler le fichier pstricks.el en pstricks.elc.

Avec cette modification, le mode de compilation TeX-PDF-mode doit être activé (indicateur LaTeX/P sur la ligne de mode). Si TeX-PDF-mode est le mode par défaut, il n'y a donc strictement aucune modification à apporter pour déclencher la compilation dvi-dvips-ps2pdf et l'affichage du PDF par C-c C-a. À ma connaissance c'est une configuration unique parmi les éditeurs orientés LaTeX et les autres feraient bien de s'en inspirer.

Beaucoup de débutants (ou non !) sont découragés d'utiliser pstricks à cause de l'obligation de devoir changer la commande de compilation. C'est un peu dommage pour pstricks.

Juste une remarque : le mécanisme de style pstricks se déclenche automatiquement lorsque la déclaration du package pstricks est lue dans le fichier source ainsi que quelques autres fichiers faisant appel à pstricks, mais pas tous (en particulier pst-all) Il faut alors faire appel explicitement à pstricks.

Si pour une raison ou une autre le mécanisme des fichiers de style n'a pas été déclenché, on peut le forcer par TeX-normal-mode (C-c C-n).

Lien permanent
Cette réponse est marquée comme « Wiki ».

Publiée 07 Aoû '20, 12:57

Jean-jacques%20R%C3%A9torr%C3%A9's gravatar image

Jean-jacques Rétorré
55615
Taux d'acceptation : 44%

Modifiée 07 Aoû '20, 13:55

Votre réponse
(dés)activer l'aperçu

Suivre cette question

Par courriel :

Une fois que vous serez enregistré, vous pourrez souscrire à n'importe quelle mise à jour ici

Par flux RSS :

Réponses

Réponses et commentaires

Bases de Markdown

  • *italique* ou _italique_
  • **gras** ou __gras__
  • Lien ::[texte](http://url.com/ "Titre ")
  • Image : ?![alt texte](/path/img.jpg "Titre ")
  • Liste numérotée : 1. Foo 2. Bar
  • Pour ajouter un passage à la ligne, ajoutez deux espaces à l'endroit où vous souhaitez que la ligne commence.
  • Les balises HTML de base sont également prises en charge.