Re: [sphinx-dev] Re: Forewords / Preface

2010-12-09 Thread Michael P. Soulier
On 09/12/10 Lennart Regebro said:

> No, just css and tex classes there.
> 
> Good resource though!

http://code.google.com/p/rst2pdf/source/browse/#svn/trunk/rst2pdf/styles

I don't see one called "book".

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


signature.asc
Description: Digital signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-09 Thread Lennart Regebro
On Thu, Dec 9, 2010 at 12:52, Michael P. Soulier
 wrote:
> On 09/12/10 Lennart Regebro said:
>
>> Aha, indeed. This may be a better way forward in the long run, if it's
>> possible to get near professional level typesetting out of it, which
>> includes ligatures and stuff. Has anyone made a nice book template?
>
> I wonder if you could find one here.
>
> http://rst2a.com/

No, just css and tex classes there.

Good resource though!

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-09 Thread Michael P. Soulier
On 09/12/10 Lennart Regebro said:

> Aha, indeed. This may be a better way forward in the long run, if it's
> possible to get near professional level typesetting out of it, which
> includes ligatures and stuff. Has anyone made a nice book template?

I wonder if you could find one here.

http://rst2a.com/

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


signature.asc
Description: Digital signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-09 Thread Lennart Regebro
On Wed, Dec 8, 2010 at 21:57, Michael P. Soulier
 wrote:
> On 08/12/10 Lennart Regebro said:
>
>> Well, for that we'd need a rst builder in Sphinx, as Sphinx has
>> several custom commands rst2pdf doesn't understand. :-)
>
> You mean like this?
>
> extensions = ['rst2pdf.pdfbuilder']

Aha, indeed. This may be a better way forward in the long run, if it's
possible to get near professional level typesetting out of it, which
includes ligatures and stuff. Has anyone made a nice book template?

/Lennart

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-08 Thread Michael P. Soulier
On 08/12/10 Lennart Regebro said:

> Well, for that we'd need a rst builder in Sphinx, as Sphinx has
> several custom commands rst2pdf doesn't understand. :-)

You mean like this?

extensions = ['rst2pdf.pdfbuilder']

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


signature.asc
Description: Digital signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-08 Thread Lennart Regebro
On Wed, Dec 8, 2010 at 19:20, Michael P. Soulier
 wrote:
> On 07/12/10 Reinout van Rees said:
>
>> Alternative (what I did for my PhD thesis): use restructured text for as
>> long as possible and, near the end, generate the latex stuff and
>> continue working and tweaking with that.
>
> rst2pdf is also a nice alternative...

Well, for that we'd need a rst builder in Sphinx, as Sphinx has
several custom commands rst2pdf doesn't understand. :-)

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-08 Thread Michael P. Soulier
On 07/12/10 Reinout van Rees said:

> Alternative (what I did for my PhD thesis): use restructured text for as  
> long as possible and, near the end, generate the latex stuff and  
> continue working and tweaking with that.

rst2pdf is also a nice alternative...

But, the LaTeX output must be solid. I'll try to help with that as I've seen
many failures to process the latex output.

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


signature.asc
Description: Digital signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-08 Thread Lennart Regebro
On Tue, Dec 7, 2010 at 11:50, Reinout van Rees  wrote:
> Alternative (what I did for my PhD thesis): use restructured text for as
> long as possible and, near the end, generate the latex stuff and continue
> working and tweaking with that.

I'm already disappointed with the amount of LaTex I need to learn to
use Sphinx to get something that looks reasonable (especially with
regards to fonts, which is apprently a messy hell in LaTex).

So no thanks. :-)

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-08 Thread Reinout van Rees

On 12/07/2010 10:35 AM, Lennart Regebro wrote:

So obviously you can't use "book", but*must*  use "report". Or
something. I don't know, LaTeX is a mess, and Sphinx on top of it
doesn't help. Both the world of LaTeX and Sphinx support for it should
be simplified. Maybe I'll work on that if I ever write a second book.
:-)


Alternative (what I did for my PhD thesis): use restructured text for as 
long as possible and, near the end, generate the latex stuff and 
continue working and tweaking with that.



Reinout

--
Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"

--
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-07 Thread Lennart Regebro
On Thu, Dec 2, 2010 at 16:08, Lennart Regebro  wrote:
> In LaTeX. It seems so, but I thought the sphinx classes was based on
> the 'book' class, which should support it...

Apparently there are more than one "class" involved here, as shown here:

\def\sphinxdocclass{report}
\documentclass[letterpaper,11pt,english]{sphinxcustom}

Now, if you want to change the sphinxdocclass, you change
latex_docclass in the config.py. (Logical, eh?)
Then it complains that my sphinxcustom class doesn't implement
sphinxcustom (weirdly it doesn't complain about that before).
And after changing that you get an error:

LaTeX Error: \endabstract undefined.

So obviously you can't use "book", but *must* use "report". Or
something. I don't know, LaTeX is a mess, and Sphinx on top of it
doesn't help. Both the world of LaTeX and Sphinx support for it should
be simplified. Maybe I'll work on that if I ever write a second book.
:-)

-- 
Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python3porting.com/
+33 661 58 14 64

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-02 Thread Lennart Regebro
On Thu, Dec 2, 2010 at 13:51, Jan Ulrich Hasecke
 wrote:
>
> Am 02.12.2010 um 13:47 schrieb Lennart Regebro:
>
>>  wrote:
>>> \frontmatter
>>
>> That gave the error "undefined control sequence", weirdly enough.
>
> In Sphinx or LaTeX? Maybo not all classes support this. :-(

In LaTeX. It seems so, but I thought the sphinx classes was based on
the 'book' class, which should support it...


-- 
Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python3porting.com/
+33 661 58 14 64

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-02 Thread Jan Ulrich Hasecke

Am 02.12.2010 um 13:47 schrieb Lennart Regebro:

>  wrote:
>> \frontmatter
> 
> That gave the error "undefined control sequence", weirdly enough.

In Sphinx or LaTeX? Maybo not all classes support this. :-(

juh

smime.p7s
Description: S/MIME cryptographic signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-02 Thread Lennart Regebro
On Wed, Dec 1, 2010 at 11:50, Jan Ulrich Hasecke
 wrote:
> \frontmatter

That gave the error "undefined control sequence", weirdly enough.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: Forewords / Preface

2010-12-01 Thread Jan Ulrich Hasecke

Am 01.12.2010 um 09:21 schrieb Lennart Regebro:
> 
> OK, so having a
> 
> .. raw:: latex
> 
>\setcounter{secnumdepth}{-1}
> 
> 
> in the start and a
> 
> .. raw:: latex
> 
>\setcounter{secnumdepth}{2}
> 
> At the end of the introduction means it won't get a chapter number,
> which is good enough. Thanks!


You can use 

\frontmatter

\mainmatter

and \backmatter

for foreword, main text and things like bibliography etc.

juh

smime.p7s
Description: S/MIME cryptographic signature


Re: [sphinx-dev] Re: Forewords / Preface

2010-12-01 Thread Lennart Regebro
On Tue, Nov 30, 2010 at 19:18, Meera  wrote:
> Hi Lennart,
>
> I am using Patch/diff for my Book (http://eclipsebook.in) .
>
> I have tried to explain the steps in my blog.
> http://blog.dehlia.in/2010/11/professional-book-like-structure-with-sphinx/
>
> Regards,
> Meera

OK, so having a

.. raw:: latex

\setcounter{secnumdepth}{-1}


in the start and a

.. raw:: latex

\setcounter{secnumdepth}{2}

At the end of the introduction means it won't get a chapter number,
which is good enough. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



[sphinx-dev] Re: Forewords / Preface

2010-11-30 Thread Meera
Hi Lennart,

I am using Patch/diff for my Book (http://eclipsebook.in) .

I have tried to explain the steps in my blog.
http://blog.dehlia.in/2010/11/professional-book-like-structure-with-sphinx/

Regards,
Meera

On Nov 30, 2:21 pm, Lennart Regebro  wrote:
> I'm doing a book with Sphinx, and I basically have one lingering
> problem I haven't been able to work around: I'd like to have a oreword
> or preface (and maybe an about this book) that are unnumbered, or at
> least numbered i, ii or something, and not "1". Any ideas of how I can
> achieve this in the LaTeX output?
>
> --
> Lennart Regebro:http://regebro.wordpress.com/
> Python 3 Porting:http://python3porting.com/
> +33 661 58 14 64

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.