Opened 12 years ago

Closed 12 years ago

# Error building the PDF reference manual

Reported by: Owned by: Mitesh Patel Andrey Novoseltsev blocker sage-4.5.2 documentation Andrey Novoseltsev, Volker Braun, David Loeffler sage-4.5.2.alpha1 Andrey Novoseltsev John Palmieri N/A

### Description

Building the PDF reference manual for the forthcoming Sage 4.5.2.alpha0 on sage.math, I get

[4610] [4611]
Underfull \hbox (badness 10000) in paragraph at lines 373276--373277

[4612] [4613] [4614] [4615] [4616] [4617] [4618]
(/usr/share/texmf-texlive/tex/latex/ucs/data/uni-4.def)
! Undefined control sequence.
\u-default-1065 #1->\CYRSHCH

l.373945 ...@PYGaB["]@PYGaB[Щ@_45]@PYGaB["]@rb[])

?


The problem may be in schemes/generic/toric_variety.py (cf. #8988).

### comment:1 Changed 12 years ago by Mitesh Patel

Here is the full pdflatex log.

### comment:2 Changed 12 years ago by Andrey Novoseltsev

Owner: changed from Minh Van Nguyen to Andrey Novoseltsev

I'll fix this. It is a cool non-alphanumeric symbol "Щ" that cannot be used as a variable name...

### comment:3 follow-up:  4 Changed 12 years ago by Mitesh Patel

Out of curiosity: Does it help to replace r""" with ur""" for the relevant docstring?

### comment:4 in reply to:  3 Changed 12 years ago by Andrey Novoseltsev

Authors: → Andrey Novoseltsev new → needs_review

Out of curiosity: Does it help to replace r""" with ur""" for the relevant docstring?

I don't know, but I think using "@" here as an example of an unacceptable character is more robust and appropriate.

I apologize for the caused problem.

### comment:5 Changed 12 years ago by Mitesh Patel

No need to apologize!

### comment:6 Changed 12 years ago by Andrey Novoseltsev

Status: needs_review → needs_work

I am still getting an error, although a different one. I am not sure if it is related since I didn't have a pdf version before. Working...

### comment:7 Changed 12 years ago by Andrey Novoseltsev

Status: needs_work → needs_review

OK, looks like a false alarm. I have done the following:

• Removed doc/output in a sage-4.5.1 installation.
• Built PDF-documentation without any patches applied.
• Applied all merged toric patches and the patch on this ticket.
• Build PDF-documentation again. Is seems to be OK in the sense that I got back to the shell prompt, there is a big PDF file in output, and I can see the modified example there just fine.