Opened 12 years ago

Closed 11 years ago

#5626 closed defect (duplicate)

when %latex goes bad in the notebook, it doesn't display the debug/error log anymore

Reported by: was Owned by: boothby
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


A user posted this:


I try the following in my first cell in a new notebook with sage-3.4
and the latest Ubuntu 64bit os.

Try this: $$x^2=-1$$.

An error occured.
Error latexing slide.

(new cell)

Thats all I get.  I don't get any other latex log output, and it
doesn't write any sage*.dvi files.  I've noticed in the sage-support

Then I responded to explicitly pass in the debug option and ...

On Sat, Mar 28, 2009 at 6:55 PM, J Elaych <> wrote:
>> What happens if you type this at the command line:
>> sage: sage.misc.latex.Latex().eval('Try this: $$x^2=-1$$.',0,0,debug=True)
>> William
> Awesome, thanks.   Latex wasn't finding 'fullpage.sty' so I installed
> 'dblatex' via
> Ubuntu, which in turn installed tons of latex packages, including ../
> preprint/fullpage.sty.
> I see that you have helped other people find fullpage.sty before, but
> the real
> help for me was the pointer to the sage.misc.latex.Latex().eval()
> command.
> Thanks again,

It's a bug that you didn't get a traceback in the first place.  It's possible thatthis bug was maybe introduced by John Palmieri in this patch:

But it could have also been introduced in a subsequent patch...

 -- William

Change History (2)

comment:1 Changed 11 years ago by acleone

  • Report Upstream set to N/A
  • Work issues set to Close/Mark as fixed?

This seems to be fixed for me, can someone else test this?

To test - rename a necessary .sty file:

$ cd /usr/share/texmf-texlive/tex/latex/amsmath
$ sudo mv amsmath.sty amsmath.sty.BLAH

Then trying to execute:

Try this: $$x^2=-1$$.


An error occurred.
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex
2009.12.24)  18 JAN 2010 18:08
entering extended mode
 %&-line parsing enabled.
**\nonstopmode \input{sage31.tex}
(./sage31.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)

! LaTeX Error: File `amsmath.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
l.2 \usepackage
*** (cannot \read from terminal in nonstop modes)

Here is how much of TeX's memory you used:
 200 strings out of 95087
 2124 string characters out of 1183277
 46102 words of memory out of 1500000
 3462 multiletter control sequences out of 10000+50000
 3640 words of font info for 14 fonts, out of 1200000 for 2000
 28 hyphenation exceptions out of 8191
 24i,0n,17p,186b,36s stack positions out of
No pages of output.


Don't forget to rename amsmath.sty back after testing.

comment:2 Changed 11 years ago by timdumol

  • Milestone changed from sage-4.3.1 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from new to closed
  • Work issues Close/Mark as fixed? deleted
Note: See TracTickets for help on using tickets.