Ronny Pfannschmidt | 5 May 2012 16:26
Picon
Picon

how to use latex section levels

Hi,

rst2latx gives me chapter* for all my section headings,
how do i affect the level

what i really need is chapter vs section vs subsection

-- Ronny

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Alli Quaknaa | 5 May 2012 16:55
Picon

Re: how to use latex section levels

What arguments do you call rst2latex with? My default settings give me
chapter/section/subsection etc.

Can you try rst2html? It just ignores whatever custom TeX you have
there so that shouldn't be a problem.

al-Quaknaa

On Sat, May 5, 2012 at 4:26 PM, Ronny Pfannschmidt
<Ronny.Pfannschmidt <at> gmx.de> wrote:
> Hi,
>
> rst2latx gives me chapter* for all my section headings,
> how do i affect the level
>
> what i really need is chapter vs section vs subsection
>
> -- Ronny
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Docutils-users mailing list
> Docutils-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
(Continue reading)

Ronny Pfannschmidt | 5 May 2012 17:04
Picon
Picon

Re: how to use latex section levels

I just figured what went wrong in part,
a different file had inconsistent section underlines,
somehow it all came out the same

i still get the chapter* calls tho,

im currently calling::

  rst2latex main.rst out/main.tex \
    --template tex/template.tex \
    --documentclass book

btw, i had to remove the main title of the file,
since it got added as chapter* as well

i would like to get chapter/section numbers on the chapter/section 
titles (wich i currently dont)

On 05/05/2012 04:55 PM, Alli Quaknaa wrote:
> What arguments do you call rst2latex with? My default settings give me
> chapter/section/subsection etc.
>
> Can you try rst2html? It just ignores whatever custom TeX you have
> there so that shouldn't be a problem.
>
> al-Quaknaa
>
> On Sat, May 5, 2012 at 4:26 PM, Ronny Pfannschmidt
> <Ronny.Pfannschmidt <at> gmx.de>  wrote:
>> Hi,
(Continue reading)

Alli Quaknaa | 5 May 2012 17:11
Picon

Re: how to use latex section levels

Could you give an example of main.rst? Just replace the actual content
with placeholders, so we can see the structure?

On Sat, May 5, 2012 at 5:04 PM, Ronny Pfannschmidt
<Ronny.Pfannschmidt <at> gmx.de> wrote:
> I just figured what went wrong in part,
> a different file had inconsistent section underlines,
> somehow it all came out the same
>
>
> i still get the chapter* calls tho,
>
> im currently calling::
>
>  rst2latex main.rst out/main.tex \
>   --template tex/template.tex \
>   --documentclass book
>
>
> btw, i had to remove the main title of the file,
> since it got added as chapter* as well
>
>
> i would like to get chapter/section numbers on the chapter/section titles
> (wich i currently dont)
>
>
>
> On 05/05/2012 04:55 PM, Alli Quaknaa wrote:
>>
(Continue reading)

Ronny Pfannschmidt | 5 May 2012 17:17
Picon
Picon

Re: how to use latex section levels

currently the content is

--------------------------------------------

.. raw:: latex
   :file: tex/title.tex

.. sectnum::
   :depth: 3

.. contents::

.. include:: ./content/einleitung.rst
.. include:: ./content/grobkonzept.rst

--------------------------------------------

originally it also had a title with = as underline
the sectnum directive is new, i found that a while after writing my mail

however section Numbers aren't added in the table of contents

On 05/05/2012 05:11 PM, Alli Quaknaa wrote:
> Could you give an example of main.rst? Just replace the actual content
> with placeholders, so we can see the structure?
>
> On Sat, May 5, 2012 at 5:04 PM, Ronny Pfannschmidt
> <Ronny.Pfannschmidt <at> gmx.de>  wrote:
>> I just figured what went wrong in part,
>> a different file had inconsistent section underlines,
(Continue reading)

Alli Quaknaa | 5 May 2012 17:22
Picon

Re: how to use latex section levels

We'd probably also need to see tex/title.tex, ./content/einleitung.rst
and ./content/grobkonzept.rst as there are really no sections in this
document.

I don't know how new sectnum is but it was definitely there last
summer when I was working on my thesis (and it works fine for me).

al-Quaknaa

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Ronny Pfannschmidt | 5 May 2012 18:03
Picon
Picon

Re: how to use latex section levels

actually i get section numbers now, i just completely deleted my output 
directory,

i suppose i had some lingeringing .toc file around that didn't get updated

so now the basics work like i want,
only extra directives for the diagrams need to be created/added
(see the other topic i started)

thanks for the hints

On 05/05/2012 05:22 PM, Alli Quaknaa wrote:
> We'd probably also need to see tex/title.tex, ./content/einleitung.rst
> and ./content/grobkonzept.rst as there are really no sections in this
> document.
>
> I don't know how new sectnum is but it was definitely there last
> summer when I was working on my thesis (and it works fine for me).
>
> al-Quaknaa
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Docutils-users mailing list
> Docutils-users <at> lists.sourceforge.net
(Continue reading)

Alli Quaknaa | 5 May 2012 18:53
Picon

Re: how to use latex section levels

Hi,

On Sat, May 5, 2012 at 6:03 PM, Ronny Pfannschmidt
<Ronny.Pfannschmidt <at> gmx.de> wrote:
> actually i get section numbers now, i just completely deleted my output
> directory,
>
> i suppose i had some lingeringing .toc file around that didn't get updated
Yeah, that happened to me all the time. Stuck for too long a time
because of an oversight like that.

>
>
> so now the basics work like i want,
> only extra directives for the diagrams need to be created/added
> (see the other topic i started)
As I said earlier, for my purposes I defined some amsthm (mathematics
in latex) directives; see
http://koutecky.name/thesis/rst/math_latex.py &
http://koutecky.name/thesis/rst/rst2xetex-amsthm . It doesn't do much,
but could serve as a template for doing more complicated stuff.

al-Quaknaa

>
>
> thanks for the hints
>
>
> On 05/05/2012 05:22 PM, Alli Quaknaa wrote:
(Continue reading)

Ronny Pfannschmidt | 5 May 2012 19:08
Picon
Picon

Re: how to use latex section levels

wrt your directives,
i understand directives that affect the writer with inline data

i got trouble with understanding how to lay out things when the 
directive needs to output image files for later inclusion

On 05/05/2012 06:53 PM, Alli Quaknaa wrote:
> Hi,
>
> On Sat, May 5, 2012 at 6:03 PM, Ronny Pfannschmidt
> <Ronny.Pfannschmidt <at> gmx.de>  wrote:
>> actually i get section numbers now, i just completely deleted my output
>> directory,
>>
>> i suppose i had some lingeringing .toc file around that didn't get updated
> Yeah, that happened to me all the time. Stuck for too long a time
> because of an oversight like that.
>
>>
>>
>> so now the basics work like i want,
>> only extra directives for the diagrams need to be created/added
>> (see the other topic i started)
> As I said earlier, for my purposes I defined some amsthm (mathematics
> in latex) directives; see
> http://koutecky.name/thesis/rst/math_latex.py&
> http://koutecky.name/thesis/rst/rst2xetex-amsthm . It doesn't do much,
> but could serve as a template for doing more complicated stuff.
>
> al-Quaknaa
(Continue reading)


Gmane