kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
228 stars 37 forks source link

cadabra2.2.1 failed with win10 #104

Closed zhaozhh closed 2 years ago

zhaozhh commented 6 years ago

Dear Kpeeters, On my computer anaconda 5.1 and texlive2017 were installed.

After runing cadabra2.2.1, I recived the following error message:

Generic typesetting error; LaTeX failed. Please report a bug.

! Emergency stop.
<*> s7p8.3.tex

No pages of output.
Transcript written on texput.log.
latex: unrecognized option `--quiet'
. See s7p8.3.tex to debug this.

TEXINPUTS = C:\Program Files\Cadabra2/share/cadabra2/latex/:
TMPDIR = C:\Users\DPZX\AppData\Local\Temp\

The content of texput file in path C:\Users\DPZX\AppData\Local\Temp\ is


This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX) (preloaded format=latex 2018.5.4)  18 MAY 2018 07:33
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**s7p8.3.tex

! Emergency stop.
<*> s7p8.3.tex

Here is how much of TeX's memory you used:
 3 strings out of 492996
 108 string characters out of 6136429
 54071 words of memory out of 5000000
 3658 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,80000s

No pages of output.

Zhen-Hua Zhao

kpeeters commented 6 years ago

It looks like your LaTeX does not like the '--quiet' option. I'll need to turn this off and make a new installer, will get back to you next week.

zhaozhh commented 6 years ago

There is no problem for my Latex to run "pdflatex xxx.tex --quiet. "

kpeeters commented 6 years ago

But cadabra runs latex --quiet, not pdflatex --quiet.

kpeeters commented 6 years ago

(the reason being that we need a dvi file, not a pdf file).

zhaozhh commented 6 years ago

Yes, there is problem when runing "latex xxx.tex --quiet. "

zhaozhh commented 6 years ago

Cadabra run fine after changing my tex into Miktex

kpeeters commented 6 years ago

Ok, that's good to hear. I will still change the invocation of latex to pdflatex in a future version to get compatibility with other tex installations. Thanks for raising the issue.

zhaozhh commented 6 years ago

And cadabra runing fine also with python-3.6.5-amd64 download from https://www.python.org/ Xelatex maybe is better than pdflatex if the user is Chinese , Japanese or Korean.

kpeeters commented 6 years ago

The best is probably to make this configurable by the user for now. I know next to nothing about practical problems you run into when writing Chinese/Japanese/Korean in TeX, so it will take some iterations to get this right.

zhaozhh commented 6 years ago

\usepackage[slantfont,boldfont]{xeCJK} \setCJKmainfont{Source Han Sans CN Regular} Put above two line into a tex file can make me to use Chinese with xelatex. But I wonder using xelatex or pdflatex maybe lower the speed of Cadabra.

zhaozhh commented 6 years ago

Its really confused me, after I opened my computer in this morning and ran cadabra2, I recived the following message: Generic typesetting error; LaTeX failed. Please report a bug. Even I uninstalled the Antivirus and reinstalled Cadabra2, I also received above message. My computer installed with python-3.6.5-amd64 and Miktex 2.9 .

nmoynihan commented 4 years ago

I'm still getting this error in version 2.2.7 (using TexLive 2019 on Windows 10). Has any progress been made?

This is the error I get:

No pages of output. Transcript written on texput.log. pdflatex: unrecognized option `--quiet' . See s44s.2.tex to debug this.

JHKim26 commented 3 years ago

Me too. I also have this error in version 2.2.7, Windows 10. Changing my tex into MiKTeX does not solve the problem, either. For example, in the Poincare example (https://cadabra.science/notebooks/poincare_algebra.html), every line that involves "\commutator" evokes this error. Has any progress been made?

Generic typesetting error; LaTeX failed. Please report a bug.

! Emergency stop. <*> sbd8.0.tex

No pages of output. Transcript written on texput.log. pdflatex: unrecognized option `--quiet' . See sbd8.0.tex to debug this.

kpeeters commented 2 years ago

The issue with --quiet was resolved a while ago, so I am closing this ticket. If anyone still encounters latex problems, please open a new issue.