## docutils-users — General discussions, questions, help requests.

You can subscribe to this list here.

2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 Jan Feb Mar Apr May Jun Jul Aug (3) Sep (15) Oct (21) Nov (18) Dec (59) Jan (43) Feb (35) Mar (78) Apr (65) May (163) Jun (169) Jul (137) Aug (77) Sep (47) Oct (27) Nov (43) Dec (68) Jan (61) Feb (39) Mar (11) Apr (42) May (86) Jun (82) Jul (24) Aug (26) Sep (37) Oct (62) Nov (131) Dec (43) Jan (31) Feb (56) Mar (65) Apr (165) May (106) Jun (97) Jul (65) Aug (150) Sep (78) Oct (115) Nov (41) Dec (26) Jan (50) Feb (39) Mar (56) Apr (67) May (89) Jun (68) Jul (116) Aug (65) Sep (58) Oct (103) Nov (28) Dec (52) Jan (92) Feb (60) Mar (124) Apr (96) May (69) Jun (79) Jul (25) Aug (22) Sep (7) Oct (17) Nov (27) Dec (32) Jan (57) Feb (87) Mar (51) Apr (43) May (56) Jun (62) Jul (25) Aug (82) Sep (58) Oct (42) Nov (38) Dec (86) Jan (50) Feb (33) Mar (84) Apr (90) May (109) Jun (37) Jul (22) Aug (51) Sep (93) Oct (86) Nov (31) Dec (62) Jan (33) Feb (57) Mar (62) Apr (43) May (30) Jun (49) Jul (20) Aug (40) Sep (152) Oct (38) Nov (15) Dec (32) Jan (29) Feb (25) Mar (65) Apr (45) May (27) Jun (11) Jul (14) Aug (8) Sep (13) Oct (117) Nov (60) Dec (19) Jan (23) Feb (32) Mar (24) Apr (41) May (56) Jun (24) Jul (15) Aug (11) Sep (26) Oct (21) Nov (12) Dec (31) Jan (32) Feb (24) Mar (39) Apr (44) May (44) Jun (8) Jul (9) Aug (12) Sep (34) Oct (19) Nov (5) Dec (9) Jan (22) Feb (12) Mar (7) Apr (2) May (13) Jun (17) Jul (8) Aug (10) Sep (7) Oct (4) Nov Dec (39) Jan (13) Feb (12) Mar (12) Apr (40) May (5) Jun (22) Jul (3) Aug (42) Sep (5) Oct (10) Nov Dec (10) Jan (9) Feb (4) Mar Apr May Jun Jul Aug Sep Oct Nov Dec
S M T W T F S

1
(1)
2
(8)
3
(5)
4
(6)
5
(10)
6
(1)
7

8
(1)
9
(5)
10

11

12
(1)
13
(1)
14
(2)
15
(2)
16

17

18
(1)
19

20

21
(1)
22

23

24

25

26

27

28

29
(2)
30
(9)
31

Showing results of 56

<< < 1 2 3 > >> (Page 2 of 3)
 Re: [Docutils-users] Unable to get syntax highlight with new code directive in LaTeX From: Guenter Milde - 2012-05-06 19:42:07 On 2012-05-05, Juan Luis Cano Rodríguez wrote: > [-- Type: text/plain, Encoding: --] > Hello everyone, I just read the other day the release notes of the 0.9 > version and decided to test the new code directive and role [1]. > My problem is that, though I have Pygments installed and the code seems to > be well parsed, I can't get it colored when I export to LaTeX using > rst2latex. As with the HTML export, you need a stylesheet (but you may know this already). (Remember that for syntax highlight of a "code" role, you need to define a custom text role based on "code". See the test input file "standard.txt" for an example.) > If I export to HTML, I can then do > pygmentize -f html -S trac > style.css > add the stylesheet to the generated .html file and there I have the colors. > On the other hand, I cannot figure out how to do this with LaTeX. Docutils does syntax highlight via text roles. This means that in all output variants, styling is possible with rules similar to styling custom text roles. For LaTeX, you have two options: * Raphael 'kena' Poss contributed a CSS->TeX converter pygments stylesheets. I jut put it on the sandbox, together with an example stylesheet: http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/sandbox/code-block-directive/tools/ Use with, e.g. :: pygmentize -S default -f html | python makesty.py >pygments-DUroles.sty A proper solution would be to provide a new output format for pygmentize, volunteers? * Alternatively, you can create a stylesheet "by hand". For this, I recommend to use the option --syntax-highlight=long, which generates output with a hierarchy of intelligable class names, so that you can e.g. style all keywords with \newcommand{\DUrolekeyword}{\textbf} For PDF, I prefer syntax highlight in black and white with bold, italic, and small caps. Remember, that you need a monospaced font with a these variants (e.g. txtt) in order to see an effect. > I stumbled upon an old document on the sandbox mentioning rst2html-pygments > and rst2latex-pygments [2], which seems to be exactly what I want, but > these scripts are not included in the main distribution. These scripts are superseded by the native support for code directive and role. They also require stylesheets. Günter 
 [Docutils-users] Unable to get syntax highlight with new code directive in LaTeX From: Juan Luis Cano Rodríguez - 2012-05-05 18:00:33 Attachments: Message as HTML Hello everyone, I just read the other day the release notes of the 0.9 version and decided to test the new code directive and role [1]. My problem is that, though I have Pygments installed and the code seems to be well parsed, I can't get it colored when I export to LaTeX using rst2latex. If I export to HTML, I can then do pygmentize -f html -S trac > style.css add the stylesheet to the generated .html file and there I have the colors. On the other hand, I cannot figure out how to do this with LaTeX. I stumbled upon an old document on the sandbox mentioning rst2html-pygments and rst2latex-pygments [2], which seems to be exactly what I want, but these scripts are not included in the main distribution. Any help? [1]: http://docutils.sourceforge.net/docs/ref/rst/directives.html#code [2]: http://docutils.sourceforge.net/sandbox/code-block-directive/tools/pygments-enhanced-front-ends/ 
 Re: [Docutils-users] how to use latex section levels From: Ronny Pfannschmidt - 2012-05-05 17:08:36 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 > 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: >>> >>> 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@... >>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>> >>> Please use "Reply All" to reply to the list. >> >> > > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. 
 Re: [Docutils-users] how to use latex section levels From: Alli Quaknaa - 2012-05-05 16:53:21 Hi, On Sat, May 5, 2012 at 6:03 PM, Ronny Pfannschmidt 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: >> >> 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@... >> https://lists.sourceforge.net/lists/listinfo/docutils-users >> >> Please use "Reply All" to reply to the list. > > 
 Re: [Docutils-users] how to use latex section levels From: Ronny Pfannschmidt - 2012-05-05 16:04:32 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 > 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@... >> https://lists.sourceforge.net/lists/listinfo/docutils-users >> >> Please use "Reply All" to reply to the list. 
 Re: [Docutils-users] how to use latex section levels From: Ronny Pfannschmidt - 2012-05-05 16:03:24 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@... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. 
 Re: [Docutils-users] how to use latex section levels From: Alli Quaknaa - 2012-05-05 15:52:05 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 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@... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. 
 Re: [Docutils-users] how to use latex section levels From: Alli Quaknaa - 2012-05-05 15:50:38 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 
 Re: [Docutils-users] how to use latex section levels From: Ronny Pfannschmidt - 2012-05-05 15:43:51 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 > 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: >>> >>> 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 >>> 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@... >>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>> >>>> Please use "Reply All" to reply to the list. >> >> 
 Re: [Docutils-users] how to use latex section levels From: Alli Quaknaa - 2012-05-05 15:39:34 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 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: >> >> 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 >>  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@... >>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>> >>> Please use "Reply All" to reply to the list. > > 
 [Docutils-users] how to use latex section levels From: Ronny Pfannschmidt - 2012-05-05 14:26:30 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 
 Re: [Docutils-users] generating text fragments for use with input/include in a larger latex document From: Ronny Pfannschmidt - 2012-05-04 15:30:28 Hi Alli, that was the missing piece, now i know what to do, thanks a lot -- Ronny On 05/04/2012 04:56 PM, Alli Quaknaa wrote: > Hi Ronny, > sorry for not mentioning this earlier. The first four pages have > nothing to do with ReST. They are part of our faculty's official LaTeX > template, which is included via the raw latex directive, but I forgot > to upload the file. It's there now, called front_matter.tex. > > So anything in the first 4 pages wasn't done using docutils, just > LaTeX; that starts with the table of contents. > > If there's anything still unclear, ask away. > > al-Quaknaa > On Fri, May 4, 2012 at 4:39 PM, Ronny Pfannschmidt > wrote: >> Hi, >> >> i finally got around messing with this longer, and i fail to understand the >> exact details on how you end up with the titlepage as such, >> >> i think this is mostly a language barrier issue, >> since i really cant read a word in the actual rst file >> but maybe im just missing how exactly latex is used afterwards >> >> -- Ronny >> >> >> >> On 04/26/2012 12:27 PM, Alli Quaknaa wrote: >>> >>> Hi, >>> the document isn't very polished (in the sense of someone else looking >>> at the source code) and the actual content (some claims I make) aren't >>> true (as my opponent found out), but it's in Czech anyway so most of >>> you won't understand (hopefully :D). I hope everything necessary is >>> provided, if not, feel free to ask. >>> >>> http://koutecky.name/thesis >>> >>> The end result is http://koutecky.name/thesis/bc.pdf, you can see that >>> the HTML output (using MathJax) also works [mostly; what doesn't work >>> are the algorithm passages I wrote about previously] -- >>> http://koutecky.name/thesis/bc.html. >>> >>> You can see I defined a few directives to match the AMS styles, but it >>> wasn't entirely necessary and (at least for the purposes of LaTeX >>> output) I could've easily done with user defined roles. But it gave me >>> more freedom in case I actually needed some more advanced >>> customization. >>> >>> For citations management I recommend KBibTeX. >>> >>> Good luck :) >>> al-Quaknaa >>> >>> On Thu, Apr 26, 2012 at 11:50 AM, Ronny Pfannschmidt >>> wrote: >>>> >>>> Hi Alli, >>>> >>>> i would appreciate an example of a titlepage/toc setup. >>>> >>>> -- Ronny >>>> >>>> >>>> >>>> On 04/26/2012 09:54 AM, Alli Quaknaa wrote: >>>>> >>>>> >>>>> On Wed, Apr 25, 2012 at 10:16 PM, David Goodger >>>>> wrote: >>>>>> >>>>>> >>>>>> On Wed, Apr 25, 2012 at 13:36, Ronny Pfannschmidt >>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> for my thesis, >>>>>>> i would like to write most of the text with restructuredtext, >>>>>>> >>>>>>> however for the added quality, i'd like to do things like the >>>>>>> titlepage >>>>>>> and some basic style stuff and the document structure in normal latex, >>>>>>> and just include the generated fragments. >>>>>>> >>>>>>> what would be the best/canonical way to do that? >>>>>> >>>>>> >>>>>> >>>>>> I would do it the other way around: use the "raw" directive to insert >>>>>> raw LaTeX where appropriate. >>>>> >>>>> >>>>> >>>>> I agree. I've done exactly this for my thesis last year and ReST is >>>>> really well suited for that -- you can supply the LaTeX template, >>>>> define styles at the beginning of the document and then write it >>>>> practically all in ReST. The only place where I needed a longer LaTeX >>>>> block was some algorithm block. Besides that I just used the math >>>>> directive and everything worked. Including citations, BTW (BibTeX). >>>>> >>>>> If you have any questions I'm able to answer I'll help gladly. >>>>> >>>>> al-Quaknaa >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> David Goodger; >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> 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@... >>>>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>>>> >>>>>> Please use "Reply All" to reply to the list. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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@... >>>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>>> >>>>> Please use "Reply All" to reply to the list. >>>> >>>> >>>> >> > > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. 
 Re: [Docutils-users] generating text fragments for use with input/include in a larger latex document From: Alli Quaknaa - 2012-05-04 14:56:54 Hi Ronny, sorry for not mentioning this earlier. The first four pages have nothing to do with ReST. They are part of our faculty's official LaTeX template, which is included via the raw latex directive, but I forgot to upload the file. It's there now, called front_matter.tex. So anything in the first 4 pages wasn't done using docutils, just LaTeX; that starts with the table of contents. If there's anything still unclear, ask away. al-Quaknaa On Fri, May 4, 2012 at 4:39 PM, Ronny Pfannschmidt wrote: > Hi, > > i finally got around messing with this longer, and i fail to understand the > exact details on how you end up with the titlepage as such, > > i think this is mostly a language barrier issue, > since i really cant read a word in the actual rst file > but maybe im just missing how exactly latex is used afterwards > > -- Ronny > > > > On 04/26/2012 12:27 PM, Alli Quaknaa wrote: >> >> Hi, >> the document isn't very polished (in the sense of someone else looking >> at the source code) and the actual content (some claims I make) aren't >> true (as my opponent found out), but it's in Czech anyway so most of >> you won't understand (hopefully :D). I hope everything necessary is >> provided, if not, feel free to ask. >> >> http://koutecky.name/thesis >> >> The end result is http://koutecky.name/thesis/bc.pdf, you can see that >> the HTML output (using MathJax) also works [mostly; what doesn't work >> are the algorithm passages I wrote about previously] -- >> http://koutecky.name/thesis/bc.html. >> >> You can see I defined a few directives to match the AMS styles, but it >> wasn't entirely necessary and (at least for the purposes of LaTeX >> output) I could've easily done with user defined roles. But it gave me >> more freedom in case I actually needed some more advanced >> customization. >> >> For citations management I recommend KBibTeX. >> >> Good luck :) >> al-Quaknaa >> >> On Thu, Apr 26, 2012 at 11:50 AM, Ronny Pfannschmidt >>  wrote: >>> >>> Hi Alli, >>> >>> i would appreciate an example of a titlepage/toc setup. >>> >>> -- Ronny >>> >>> >>> >>> On 04/26/2012 09:54 AM, Alli Quaknaa wrote: >>>> >>>> >>>> On Wed, Apr 25, 2012 at 10:16 PM, David Goodger >>>>  wrote: >>>>> >>>>> >>>>> On Wed, Apr 25, 2012 at 13:36, Ronny Pfannschmidt >>>>>    wrote: >>>>>> >>>>>> >>>>>> for my thesis, >>>>>> i would like to write most of the text with restructuredtext, >>>>>> >>>>>> however for the added quality, i'd like to do things like the >>>>>> titlepage >>>>>> and some basic style stuff and the document structure in normal latex, >>>>>> and just include the generated fragments. >>>>>> >>>>>> what would be the best/canonical way to do that? >>>>> >>>>> >>>>> >>>>> I would do it the other way around: use the "raw" directive to insert >>>>> raw LaTeX where appropriate. >>>> >>>> >>>> >>>> I agree. I've done exactly this for my thesis last year and ReST is >>>> really well suited for that -- you can supply the LaTeX template, >>>> define styles at the beginning of the document and then write it >>>> practically all in ReST. The only place where I needed a longer LaTeX >>>> block was some algorithm block. Besides that I just used the math >>>> directive and everything worked. Including citations, BTW (BibTeX). >>>> >>>> If you have any questions I'm able to answer I'll help gladly. >>>> >>>> al-Quaknaa >>>>> >>>>> >>>>> >>>>> -- >>>>> David Goodger; >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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@... >>>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>>> >>>>> Please use "Reply All" to reply to the list. >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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@... >>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>> >>>> Please use "Reply All" to reply to the list. >>> >>> >>> > 
 Re: [Docutils-users] generating text fragments for use with input/include in a larger latex document From: Ronny Pfannschmidt - 2012-05-04 14:39:14 Hi, i finally got around messing with this longer, and i fail to understand the exact details on how you end up with the titlepage as such, i think this is mostly a language barrier issue, since i really cant read a word in the actual rst file but maybe im just missing how exactly latex is used afterwards -- Ronny On 04/26/2012 12:27 PM, Alli Quaknaa wrote: > Hi, > the document isn't very polished (in the sense of someone else looking > at the source code) and the actual content (some claims I make) aren't > true (as my opponent found out), but it's in Czech anyway so most of > you won't understand (hopefully :D). I hope everything necessary is > provided, if not, feel free to ask. > > http://koutecky.name/thesis > > The end result is http://koutecky.name/thesis/bc.pdf, you can see that > the HTML output (using MathJax) also works [mostly; what doesn't work > are the algorithm passages I wrote about previously] -- > http://koutecky.name/thesis/bc.html. > > You can see I defined a few directives to match the AMS styles, but it > wasn't entirely necessary and (at least for the purposes of LaTeX > output) I could've easily done with user defined roles. But it gave me > more freedom in case I actually needed some more advanced > customization. > > For citations management I recommend KBibTeX. > > Good luck :) > al-Quaknaa > > On Thu, Apr 26, 2012 at 11:50 AM, Ronny Pfannschmidt > wrote: >> Hi Alli, >> >> i would appreciate an example of a titlepage/toc setup. >> >> -- Ronny >> >> >> >> On 04/26/2012 09:54 AM, Alli Quaknaa wrote: >>> >>> On Wed, Apr 25, 2012 at 10:16 PM, David Goodger >>> wrote: >>>> >>>> On Wed, Apr 25, 2012 at 13:36, Ronny Pfannschmidt >>>> wrote: >>>>> >>>>> for my thesis, >>>>> i would like to write most of the text with restructuredtext, >>>>> >>>>> however for the added quality, i'd like to do things like the titlepage >>>>> and some basic style stuff and the document structure in normal latex, >>>>> and just include the generated fragments. >>>>> >>>>> what would be the best/canonical way to do that? >>>> >>>> >>>> I would do it the other way around: use the "raw" directive to insert >>>> raw LaTeX where appropriate. >>> >>> >>> I agree. I've done exactly this for my thesis last year and ReST is >>> really well suited for that -- you can supply the LaTeX template, >>> define styles at the beginning of the document and then write it >>> practically all in ReST. The only place where I needed a longer LaTeX >>> block was some algorithm block. Besides that I just used the math >>> directive and everything worked. Including citations, BTW (BibTeX). >>> >>> If you have any questions I'm able to answer I'll help gladly. >>> >>> al-Quaknaa >>>> >>>> >>>> -- >>>> David Goodger; >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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@... >>>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>>> >>>> Please use "Reply All" to reply to the list. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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@... >>> https://lists.sourceforge.net/lists/listinfo/docutils-users >>> >>> Please use "Reply All" to reply to the list. >> >> 
 [Docutils-users] how to propperly handle custom directives that generate images from text From: Ronny Pfannschmidt - 2012-05-04 14:36:54 hi, for my needs of explaining various flows, i want to include something like blockdiag into rst2latex/rst2pdf/rst2html output however i dont exactly see where i would get started with that -- Ronny 
 Re: [Docutils-users] how to incorporate a new role into distutils From: Guenter Milde - 2012-05-04 07:57:01 On 2012-04-30, Angel Yanguas-Gil wrote: > Hi, > I have been playing with docutils and I have created a new role >:chem:, to process subscripts and superscripts for chemical formula > (i.e. :chem: or :ch:Al2O3 == Al2O3). Looks interesting. > It worked, and now I have it running in my local copy. However, I > still have a couple of questions: > 1) So far I have included it in my local copy of roles.py. Is there > any other way of loading custom roles / add-ons to distutils that does > not involve modifying roles.py? (like a local directory where custom > roles could be added/imported into distutils?). There is currently no plug-in mechanism in Docutils and no clear plan how to implement one in a clean and secure manner. The usual practice is to use a custom front-end, load Docutils and customize it before calling the publisher functions. See the sandbox for examples of this approach (e.g. the now obsolete sandbox/code-block-directive/rst2html-highlight.py). Adding directives this way is documented: there is a "register directive" API. For roles, I see register_canonical_role(name, role_fn) in roles.py. The downside is that this approach does not scale well: * you need one modified front-end for every output format, * you cannot easily combine extensions (say html4_strict for valid XHTML 1.1 and rstdiff for diffs of rst files). > 2) Is nodes.Text the standard way of returning a text node? I think so. Look at the source how other roles do this. As return value of the role, I'd use an inline node as container (and give it a class argument to allow styling) and nest the Text and subscript nodes. > 3) Can roles be made to work recursively? In other words, am I missing > a simple way of calling a role within a role (i.e. so that I can > expand Al2O3 into "Al :subs:2\ O:subs:3\ " and that magically > everything is taken care of)?. I'd search the source to find out how to call the "subs role function" with the number as argument and nest the returned node in the inline node. > 4) Is a role the best way of doing this? Should I be using a directive > instead, or is it an overkill? A role is well suited for inline formulas. If you want block-level (display) formulas as well, add a directive. Günter 
 Re: [Docutils-users] Reporting errors From: Guenter Milde - 2012-05-04 07:19:24 On 2012-05-03, Constant Deniger wrote: > I am now reporting errors with Docutils. Thanks for reporting. > Python version = 3.2 > OS = windows 7 professional, pack 1 > The errors I am reporting are concerning: > -- rst2odt.py > -- buildhtlm.py > Please take a look at the four PNG files (here appended) to see the > command line I have used to call these two scripts. It would be easier for us to see, reproduce, and test, if you sent the in/output as text. (Actually, I don't see any pictures as I am reading this via the gmane news interface.) Günter 
 [Docutils-users] Reporting errors From: Constant Deniger - 2012-05-03 22:42:07 Attachments: Capture0.PNG     Capture3.PNG     Capture2.PNG     Capture1.PNG Hi, I am now reporting errors with Docutils. Python version = 3.2 OS = windows 7 professional, pack 1 The errors I am reporting are concerning: -- rst2odt.py -- buildhtlm.py Please take a look at the four PNG files (here appended) to see the command line I have used to call these two scripts. The scripts rst2html.py and rst2xml.py seem to work well. Regards Constant Deniger -- Constant@... tel: 514-506-5011 
 Re: [Docutils-users] rst2html, with Python 3: TypeError: can't concat bytes to str From: spider-mario - 2012-05-03 15:47:23 Guenter Milde wrote: > Thanks for the info. The issue is fixed in SVN. Could you test with a > recent checkout/tarball? Indeed, it works correctly with a svn snapshot. 
 Re: [Docutils-users] rst2html, with Python 3: TypeError: can't concat bytes to str From: Guenter Milde - 2012-05-03 13:14:38 On 2012-05-02, spider-mario wrote: > Appearently, most of my message has been stripped off. :( ... > Well, I’ll just try again. Thanks for the info. The issue is fixed in SVN. Could you test with a recent checkout/tarball? Günter 
 Re: [Docutils-users] hackable repo? From: Terry Brown - 2012-05-03 01:24:42 On Thu, 03 May 2012 00:08:09 +0200 Ronny Pfannschmidt wrote: > from personal experience i'm convinced that svn stiffles 3rd party > contribution Does your DVCS of choice have a plugin for reading and writing from svn? bzr does, I don't know about some of the others. That might be enough to get you local branches and commits, if that's what you're missing with SVN. Cheers -Terry 
 Re: [Docutils-users] hackable repo? From: David Goodger - 2012-05-03 00:17:11 On Wed, May 2, 2012 at 6:08 PM, Ronny Pfannschmidt wrote: > i see, is there any reason its still on svn? > from personal experience i'm convinced that svn stiffles 3rd party > contribution Just because of history (we're already using SVN) and a lack of time & will to make a change. -- David Goodger ; 
 Re: [Docutils-users] hackable repo? From: Ronny Pfannschmidt - 2012-05-02 22:08:16 i see, is there any reason its still on svn? from personal experience i'm convinced that svn stiffles 3rd party contribution -- Ronny On 05/02/2012 09:24 PM, Guenter Milde wrote: > On 2012-05-02, Ronny Pfannschmidt wrote: >> is there any official git/hg mirror of docutils one can use for hacking? > > git-svn works with the official SVN repo. Besides this, there is a > "contributed" git mirror at git://repo.or.cz/docutils.git > > For details see http://docutils.sourceforge.net/docs/dev/repository.html > > Günter > > > ------------------------------------------------------------------------------ > 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@... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. 
 [Docutils-users] release 0.9 From: engelbert gruber - 2012-05-02 19:37:57 Release 0.9 (2012-05-02) bigger changes are General: - reStructuredText "code" role and directive with syntax highlighting by Pygments. "code" option of the "include" directive. - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation characters and "international" quotes around inline markup. - Fix handling of missing stylesheets. setup.py - Fix [ 2971827 ] and [ 3442827 ] extras/roman.py moved to docutils/utils/roman.py docutils/utils.py -> docutils/utils/__init__.py - docutils.utils is now a package (providing a place for sub-modules) docutils/writers/html4css1/__init__.py - change default for math-output setting to MathJax docutils/writers/latex2e/__init__.py - Support the abbreviation and acronym standard roles. - Record only files required to generate the LaTeX source as dependencies. - Use \setcounter{secnumdepth}{0} instead of *-versions when suppressing LaTeX section numbering. please report any problems all the best engelbert -- http://darefoot.blogspot.com 
 Re: [Docutils-users] hackable repo? From: Guenter Milde - 2012-05-02 19:25:04 On 2012-05-02, Ronny Pfannschmidt wrote: > is there any official git/hg mirror of docutils one can use for hacking? git-svn works with the official SVN repo. Besides this, there is a "contributed" git mirror at git://repo.or.cz/docutils.git For details see http://docutils.sourceforge.net/docs/dev/repository.html Günter 

Showing results of 56

<< < 1 2 3 > >> (Page 2 of 3)