TeX errors building the documentation

Xcas devel: interface utilisateur/user interface

Modérateur : xcasadmin

infinity0
Messages : 36
Inscription : dim. févr. 05, 2017 5:46 pm

TeX errors building the documentation

Message par infinity0 » jeu. août 02, 2018 4:49 am

Hi, I'm having problems building the documentation, using the latest TeX and HeVeA (2.30) packages from Debian unstable.

Code : Tout sélectionner

Running hevea -fix algo
[..]
Fixpoint reached in 2 step(s)
Now, I am running imagen for you
RESOLUTION: 100
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
[..]
! Illegal parameter number in definition of \loadgiacscriptend.
<to be read again> 
                   +
l.430 }
Later:

Code : Tout sélectionner

TEXINPUTS=.:$TEXINPUTS hevea -fix cascmd_en.tex 
[..]
! LaTeX Error: Cannot determine size of graphic in xcas-open.png (no BoundingBo
x).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.370   \includeimage{xcas-open.png}
                                    
? 
Type <return> to proceed, S to scroll future error messages,
Also:

Code : Tout sélectionner

! Undefined control sequence.
l.17290 ...},\mathrm{y0}],k,n \rightarrow \product
                                                  \left(\frac{x-j}{k-j},j,0,...
These errors can be ignored temporarily during the build but then algo.pdf is not created, which causes a fatal failure later.

I am using xcas version 1.4.9-69

infinity0
Messages : 36
Inscription : dim. févr. 05, 2017 5:46 pm

Re: TeX errors building the documentation

Message par infinity0 » jeu. août 02, 2018 7:30 am

Looks like "Undefined control sequence" is due to our hevea 2.30 generating "\product" instead of "\prod" and patching this away with a quick sed expression fixes this particular problem.

Will try to chase down the other errors...

infinity0
Messages : 36
Inscription : dim. févr. 05, 2017 5:46 pm

Re: TeX errors building the documentation

Message par infinity0 » jeu. août 02, 2018 8:03 am

For the "no BoundingBox" error, the fix is to replace

Code : Tout sélectionner

\usepackage{graphicx}
with

Code : Tout sélectionner

\usepackage[dvipdfmx]{graphicx} \usepackage{bmpsize}
as described here https://tex.stackexchange.com/questions ... of-graphic

parisse
Messages : 5731
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: TeX errors building the documentation

Message par parisse » ven. août 03, 2018 7:03 am

Seems to work here too. I have added \newcommand{\product}{\prod} in algo.tex, then icas algo.tex works fine on my box.

Répondre