Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sphinx]

Sphinx is a documentation generator which converts reStructuredText files into several formats, including HTML, LaTeX, PDF, EPub and man.

1
vote
1answer
67 views

Broken build if a too big picture is included in a framed environment, how to insert “horizontal slices” rather?

This produces about 5000 pages before crashing: \documentclass{article} \usepackage{framed} \usepackage{graphicx} \begin{document} \begin{framed} \noindent\includegraphics[height=35cm]{example-...
0
votes
1answer
191 views

Custom color for LaTeX output in Sphinx documentation package

I am trying to customize the color of the LaTeX inline formula when using Sphinx documentation package, and html output. The details: I have a file called func.rst, which includes the following line:...
0
votes
0answers
654 views

Convert Sphinx Documents from Latex to Pdf

I just converted my Sphinx documents to latex using the command: sphinx-build -b latex /home/cecl_modeldevelopment/docs/ build/latex. My folder latex contains: (/tmp/w546901/temp_sam_3) -bash-4.1$ ...
-1
votes
2answers
209 views

How do you set max row height in tabulary

Ok, so I'm working with a sphinx-generated latex document and I'm trying to fix some of the rather ugly code - and generated output. I've got a table that doesn't split when it gets to the end of the ...
0
votes
1answer
187 views

Custom command to configure table style

I'm using sphinx to generate our company manuals. In our legacy manuals we have a certain table style, that we would like to keep. The table style consists of tables having a header with dark green ...
0
votes
0answers
394 views

Error while generating make latexpdf with sphinx

I am currently using Sphinx 1.4.9 for document creation. While giving make latexpdf, I get the following error: (/usr/share/texmf/tex/latex/upquote/upquote.sty) (/usr/share/texmf/tex/latex/float/...
1
vote
1answer
150 views

add single kanji characters

I am a little lost adding a few (<10) kanji characters to my document. I am using current sphinx and mactex installations. The document builds fine using DeclareUnicodeCharacter statements in the ...
0
votes
1answer
344 views

Add page break after tableofcontent via preamble?

Is it possible to add a page break after the table of contents in the preamble rather than inline in the .tex file? This question is somewhat related to the other one I asked here, though since it's ...
2
votes
1answer
262 views

Include title page in numbering via preamble settings only?

I'm trying to make my title page count as "Page 1" in my PDF, but I have the restriction that (I think) I can only make a change to the preamble section of my .tex file. My scenario is that I'm using ...
0
votes
0answers
202 views

how do I use YaHei Consolas Hybrid font for Chinese text?

I'm using sphinx to generate documentations. and use xelatex to produce pdf. I set my font via fontpkg':'\\usepackage{YaHei Consolas Hybrid},But I hope englisn and number in the text use Arial font ,...
1
vote
1answer
362 views

What is the purpose of sphinx.sty and sphinxmanual.cls

I use sphinx to generate my PDFs, and I do not know what is the purpose of sphinx.sty and sphinxmanual.cls? Can I modify the two files?
1
vote
0answers
291 views

Use sphinx to convert Latex,How to set the tableheader color?

I use sphinx to generate pdf, But I want to set the tableheader color? How to set? The tables it produces via latex are pretty ugly, so I'd like to give them some global styling. What I'd like to ...
0
votes
1answer
174 views

Failing to translate the Number of the chapter with Babel [closed]

I'm using sphinx and latex to generate my documentation. I need to translate the document in another language and I use tha package babel (added to the conf.py file). While babel translates ...
1
vote
1answer
442 views

Delete **Contents:** in index of pdf generated with python-spihnx

I have a project created with python-sphinx and I use latexpdf to compile the final pdf. In the final pdf created, in the index it is visible a Contents: string that I would like to delete. The only ...
3
votes
2answers
1k views

Override table in sphinx

I'm using sphinx to generate documentations. The tables it produces via latex are pretty ugly, so I'd like to give them some global styling. What I'd like to achieve is Always 100% width A header row ...
2
votes
1answer
658 views

Include Sphinx-generated documentation in master file

I'm currently working on a project (for university) that will be documented with LaTeX. About one third of the documentation will be about a python module that I've written. I'm looking for a clean ...
1
vote
1answer
2k views

Argument of \@item has an extra }

I get the error ! Argument of \@item has an extra }. <inserted text> \par l.135 \emph{class} \bfcode{C}} when translating a LaTeX file generated by Sphinx documentation ...
1
vote
0answers
322 views

Setting default image dpi using sphinx and texi2pdf

In QGIS project, we are using Sphinx to create our documentation as HTML and PDF. We are having a bit of a problem with figures as they show a bit blurry in PDF. I found out that the reason is ...
3
votes
2answers
489 views

Tikz + Verbatim + Sphinx , output drawn twice with slight offset. Works great Tikz + Verbatim

I'm working on a piece of software that outputs IPython Notebooks as tex documents. One of my requirements is to be able to draw code input output blocks that look like the Notebook's UI. Disclaimer:...
4
votes
1answer
420 views

Including .tex files that need a different style file than the main text

EDIT: Substantial edit of the original version has been done to clarify the question. Background I've written two small python package manuals with sphinx (http://sphinx-doc.org/) a program that ...
3
votes
2answers
2k views

Writing conditional equations with braces in sphinx

I want to write conditional statement with one-sided curly brackets in Sphinx as shown below: In Latex, the best I could do is given below: \[ x = \begin{cases} \begin{split} d&...
2
votes
1answer
827 views

error on generating pdf by Latex with CJK support

After adding unicode characters to \title{} micro: \title{标题} the following error occurs when running make all-pdf with a .tex file: Writing index file mybook.idx No file mybook.aux. (/usr/share/...
3
votes
1answer
1k views

How to modify the default LaTeX package parameters of Sphinx?

I want to generate pdf by using Sphinx. Sphinx generates pdf through LaTeX. But I have to add unicode=true to package hyperref of LaTeX: \usepackage[unicode=true]{hyperref} But Sphinx has generated ...
3
votes
1answer
202 views

Inter-word spacing issue with long code tags

I'm having an issue with the Sphinx Documentation Generator, you may be asking what this has to do with LaTeX. Well, we were hoping to use it for our specification documentation which needs to be ...
2
votes
2answers
2k views

Sphinx: Overriding the document class

I am using Sphinx to generate multi-output documents (Epub, HTML, LaTeX). How can I change the use documentclass? The following snippet should (in my opinion) override the used class but results in ...
4
votes
1answer
2k views

Changing fonts for heads and subheads in Sphinx LaTeX

In pdf export the AvantGarde font is used a lot for heads and subheads. I would like to use a modern font like Helvetica. Is it possible to just exchange AvantGarde with Helvetica. If possible I ...
13
votes
2answers
6k views

Set standard default scaling of \includegraphics

I am using Sphinx and the plantuml package to include UML diagrams. The plantuml package for Sphinx generates the following LaTeX code: \includegraphics{%s} Anyways - the diagrams are to big, so ...
1
vote
1answer
1k views

Override global page style? [duplicate]

Possible Duplicate: Change paper size in mid-document How can I use default \documentclass[a4paper] styles in Title page, index pages, header and footer - but the text itself as if I were ...
6
votes
1answer
4k views

How to make latex recognize tick and cross symbols

I'm looking for a way of making latex recognize the tick and cross symbols as apposed to having to use commands in latex code to make these symbols. Is there anything you can add in the preamble that ...
1
vote
1answer
1k views

Sphinx in-line math equation alignment

As suggested by the answer to my question here, I am using the Sphinx tool in order to multi-target PDF and HTML output. For HTML, I'm using the pngmath extension. The vertical alignment of inline ...
8
votes
3answers
3k views

How to use Unicode characters with Sphinx rst documents and properly generate PDF files?

I discovered that if I use some Unicode characters inside .rst files, I will loose them when I convert the documentation to pdf using Sphinx. Example chars: "șț". When I run make latexpdf I get a ...