Re: [sphinx-users] sphinx (python) pdf generator

2016-10-14 Thread Minkai Li
I have seen the latex commands ,But I can not solve the issue. How can I do 
?

在 2016年10月14日星期五 UTC+8上午3:37:50,gsavix写道:
>
> hi. you need explicity and specific use of latex commands todo this.
>
> --
> gilberto dos santos alves
> +55(11)9-8646-5049
> sao paulo - sp - brasil
>
>
>
>
>
> 2016-10-12 22:07 GMT-03:00 Minkai Li >:
>
>> I use sphinx python documentation generator,Sphinx generates LaTeX files 
>> via 
>> make latex
>> , and then uses LaTeX to generate the PDF via 
>> xelatex
>> I am able to generate notes using the Sphinx directive 
>> .. note::  .. attention::
>> However, the notes in html file have a background color while those from 
>> the generated PDF don’t.How can I add color to Sphinx-generated PDF 
>> files?
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sphinx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sphinx-users...@googlegroups.com .
>> To post to this group, send email to sphinx...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/sphinx-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] sphinx pdf style

2016-10-14 Thread Minkai Li
Sphinx generate pdf ,does this pdf has some  templates such as sphinx 
generate html use css files 

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] update Sphinx to newest one.

2016-10-13 Thread Minkai Li
How to update Sphinx to newest one please

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] sphinx (python) pdf generator

2016-10-13 Thread Minkai Li
I use sphinx python documentation generator,Sphinx generates LaTeX files 
via 
make latex
, and then uses LaTeX to generate the PDF via 
xelatex
I am able to generate notes using the Sphinx directive 
.. note::  .. attention::
However, the notes in html file have a background color while those from 
the generated PDF don’t.How can I add color to Sphinx-generated PDF files?


-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Re: Text doesn't fit in simple table column - Latex-PDF export

2016-10-12 Thread Minkai Li
use CSV tables

在 2011年9月8日星期四 UTC+8上午4:48:36,Alan Evangelista写道:
>
> I've created the following simple table in restructuredText: 
>
> =  
> === 
> Tag  RequiredDescription 
> =  
> === 
> columns  No   Columns of the content to return. Each 
> content listing 
>  has a set of defaults columns 
> that make sense for that 
>  particular content type. By 
> default, these columns are 
>  returned in addition to what was 
> requested here. 
> xquery No  A  xquery 
> filterNo  Return files containing the 
> specified filter string 
> =  
> === 
>
> When I export this table to Latex and then PDF, the words in each line 
> of the 1st column overflow and intersect the table vertical line. This 
> works OK in rst2pdf. This could be a rst error, a output formatting 
> error (eg style) or is it a Sphinx bug? 
>
> Thanks in advance for any help. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Re: Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-12 Thread Minkai Li
I add this commands to my conf.py preamble,But it does not work. It can not 
compile. I use restructuredtext and sphinx in Ubuntu environment

在 2016年10月12日星期三 UTC+8上午7:34:18,Peter Burdine写道:
>
> You will need to add some Latex commands to your preamble.  For example, 
> the following will make notes centered:
> \renewcommand{\py@noticestart@note}{\py@lightbox\begin{center}}
> \renewcommand{\py@noticeend@note}{\end{center}\py@endlightbox}
>
> This will make the admonition title be upper case:
> \renewenvironment{notice}[2]{
>   \def\py@noticetype{#1}
>   \csname py@noticestart@#1\endcsname
>   % Make the admonition type be upper case and on its own line
>   \strong{\MakeUppercase{#2}} \\
> }{\csname py@noticeend@\py@noticetype\endcsname}
>
> Modifying the PDF output of Sphinx isn't easy because you have to do a few 
> things:
>
>- Learn enough Latex to understand the Sphinx style files
>- Learn enough Latex to do what you want
>- Figure out how to modify it using a preamble that doesn't break the 
>output
>
> So far there isn't any general guide on how to do it.
>
>
> On Monday, October 10, 2016 at 5:10:16 PM UTC-7, Minkai Li wrote:
>>
>> I am able to generate notes using the Sphinx directive .. notes:: and .. 
>> attention::. However, the notes and the attention in html file have a 
>> background color while those from the generated PDF don’t. How can I add 
>> color to Sphinx-generated PDF files? Is it in conf.py?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Re: Is there any way to automatically add section titles to the genindex?

2016-10-11 Thread Minkai Li
if I want to do it ,what is the extension could I do?

在 2016年8月27日星期六 UTC+8下午10:28:48,Komiya Takeshi写道:
>
> Hi,
>
> To my knowlege, Sphinx does not have such a feature.
> And I don't know such an extension too.
>
> To do that, you might need to make new extension.
>
> Thanks,
> Takeshi KOMIYA
>
> 2016年8月27日土曜日 1時24分06秒 UTC+9 Jason S:
>>
>> I'm relatively new to Sphinx and I am not using it for Python. I went to 
>> the genindex page and it is empty, because I don't have anything yet that 
>> generates index entries.
>>
>> Is there any way to automatically add section titles to the genindex? 
>> This is 90% of what I need.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Adding background color of notes and attention to Sphinx-generated PDF files

2016-10-10 Thread Minkai Li


I am able to generate notes using the Sphinx directive .. notes:: and .. 
attention::. However, the notes and the attention in html file have a 
background color while those from the generated PDF don’t. How can I add 
color to Sphinx-generated PDF files? Is it in conf.py?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Re: Sphinx PDF themes

2016-10-08 Thread Minkai Li
sphinx can generate Latex,the pdf it produces via latex, 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. I'd like to 
customize tableheader row color.I add the directive 
在此输入代\usepackage{tabu,tabulary}码...\usepackage[table]{xcolor}\definecolor{
tablehead}{rgb}{153,153,153 } 

into my conf.py peramble  but it does not work.


在 2016年10月7日星期五 UTC+8上午8:23:47,Peter Burdine写道:
>
> For Sphinx, most people create a preamble.tex file that modifies the 
> formatting Sphinx uses.  As of 1.4.x of Sphinx, there isn't much in the way 
> of global styling options.  You have to learn a bit of Latex.
>
> On Thursday, October 6, 2016 at 5:32:08 AM UTC-7, Minkai Li wrote:
>>
>> Does the Sphinx documentation tool offer different PDF themes?Sphinx 
>> doesn't generate PDF output by itself,Ituse the Latex builder。How to set 
>> the sphinx pdf themes?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Sphinx PDF themes

2016-10-06 Thread Minkai Li
Does the Sphinx documentation tool offer different PDF themes?Sphinx 
doesn't generate PDF output by itself,Ituse the Latex builder。How to set 
the sphinx pdf themes?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.


[sphinx-users] Ability to specify table background colours?

2016-10-06 Thread Minkai Li
When using the latex->pdf method, you can customize your latex output using 
a number of options in your sphinx config, I want to customize my table 
header colour. How can I solve this problem?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.