From: Ronny P. <Ron...@gm...> - 2012-06-07 11:49:05
|
Hi, anyone aware of a premade graphviz directive i can use? google didn't yield anything usable other than something tightly integrated with sphinx. -- Ronny |
From: Roberto A. <ra...@ne...> - 2012-06-07 12:47:42
|
On 6/7/2012 8:48 AM, Ronny Pfannschmidt wrote: > Hi, > > anyone aware of a premade graphviz directive i can use? > google didn't yield anything usable other than something tightly > integrated with sphinx. The graphviz directive in docutils is fairly portable. It may need a little refactoring. |
From: Roberto A. <ra...@ne...> - 2012-06-07 12:49:22
|
On 6/7/2012 9:47 AM, Roberto Alsina wrote: > On 6/7/2012 8:48 AM, Ronny Pfannschmidt wrote: >> Hi, >> >> anyone aware of a premade graphviz directive i can use? >> google didn't yield anything usable other than something tightly >> integrated with sphinx. > The graphviz directive in docutils is fairly portable. It may need a > little refactoring. Sorry, I meant "in rst2pdf". |
From: Ronny P. <Ron...@gm...> - 2012-06-07 12:51:29
|
On 06/07/2012 02:47 PM, Roberto Alsina wrote: > On 6/7/2012 8:48 AM, Ronny Pfannschmidt wrote: >> Hi, >> >> anyone aware of a premade graphviz directive i can use? >> google didn't yield anything usable other than something tightly >> integrated with sphinx. > > The graphviz directive in docutils is fairly portable. It may need a > little refactoring. > Is it documented somewhere? |
From: Roberto A. <ra...@ne...> - 2012-06-07 12:55:38
|
On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: > > > Is it documented somewhere? Forget it, I remembered the code wrong. The sphinx directive generates a custom node, and rst2pdf only has a way to handle the node. The "right" way to implement a graphviz directive would be (I believe) to make it just generate a figure with the rendered image in it, so it doesn't need to be reimplemented for every output format. |
From: Ronny P. <Ron...@gm...> - 2012-06-07 12:58:34
|
On 06/07/2012 02:55 PM, Roberto Alsina wrote: > On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: >> >> >> Is it documented somewhere? > > Forget it, I remembered the code wrong. > > The sphinx directive generates a custom node, and rst2pdf only has a way > to handle the node. > The "right" way to implement a graphviz directive would be (I believe) > to make it just generate a figure > with the rendered image in it, so it doesn't need to be reimplemented > for every output format. it needs reimplementation for different output formats anyway, for a pdf or tex one needs a different output than for a website btw, i checked out rst2pdf, the output quality seems not that good cant use it for my thesis if its like that also it doesnt seem to have a good way to make a custom title page (which is required) same goes for control of page numering syles |
From: Roberto A. <ra...@ne...> - 2012-06-07 13:20:37
|
On 6/7/2012 9:58 AM, Ronny Pfannschmidt wrote: > On 06/07/2012 02:55 PM, Roberto Alsina wrote: >> On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: >>> >>> >>> Is it documented somewhere? >> >> Forget it, I remembered the code wrong. >> >> The sphinx directive generates a custom node, and rst2pdf only has a way >> to handle the node. >> The "right" way to implement a graphviz directive would be (I believe) >> to make it just generate a figure >> with the rendered image in it, so it doesn't need to be reimplemented >> for every output format. > > it needs reimplementation for different output formats anyway, > for a pdf or tex one needs a different output than for a website > > btw, i checked out rst2pdf, the output quality seems not that good > cant use it for my thesis if its like that It's probably using PNG, and you need to tweak it to use PDF output from graphviz. I have not used it much myself, I just wrote it ;-) > also it doesnt seem to have a good way to make a custom title page > (which is required) Actually, you can do anything for a title page. You could have a SVG as a title page if you wanted. It may or may not be difficult to do. > > same goes for control of page numering syles You can use any sort of numbering style for pages, you can start counting in any way. If there's anything missing there I would love to know. OTOH, the math support is mediocre, so it's probably still not a good idea for a thesis. |
From: Ronny P. <Ron...@gm...> - 2012-06-07 13:23:36
|
On 06/07/2012 03:20 PM, Roberto Alsina wrote: > On 6/7/2012 9:58 AM, Ronny Pfannschmidt wrote: >> On 06/07/2012 02:55 PM, Roberto Alsina wrote: >>> On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: >>>> >>>> >>>> Is it documented somewhere? >>> >>> Forget it, I remembered the code wrong. >>> >>> The sphinx directive generates a custom node, and rst2pdf only has a way >>> to handle the node. >>> The "right" way to implement a graphviz directive would be (I believe) >>> to make it just generate a figure >>> with the rendered image in it, so it doesn't need to be reimplemented >>> for every output format. >> >> it needs reimplementation for different output formats anyway, >> for a pdf or tex one needs a different output than for a website >> >> btw, i checked out rst2pdf, the output quality seems not that good >> cant use it for my thesis if its like that > > It's probably using PNG, and you need to tweak it to use PDF output from > graphviz. > I have not used it much myself, I just wrote it ;-) > >> also it doesnt seem to have a good way to make a custom title page >> (which is required) > > Actually, you can do anything for a title page. You could have a SVG as > a title page > if you wanted. It may or may not be difficult to do. i dont see how i'd make a titlepage if a titlepage is doable and graphviz works, i can probably top going the rst_text_pdf route and go for a rst -> pdf route >> >> same goes for control of page numering syles > > You can use any sort of numbering style for pages, you can start > counting in any way. > If there's anything missing there I would love to know. is that documented somewhere, i certainly missed it > > OTOH, the math support is mediocre, so it's probably still not a good > idea for a thesis. |
From: Roberto A. <ra...@ne...> - 2012-06-07 13:27:43
|
On 6/7/2012 10:23 AM, Ronny Pfannschmidt wrote: > On 06/07/2012 03:20 PM, Roberto Alsina wrote: >> On 6/7/2012 9:58 AM, Ronny Pfannschmidt wrote: >>> On 06/07/2012 02:55 PM, Roberto Alsina wrote: >>>> On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: >>>>> >>>>> Is it documented somewhere? >>>> Forget it, I remembered the code wrong. >>>> >>>> The sphinx directive generates a custom node, and rst2pdf only has a way >>>> to handle the node. >>>> The "right" way to implement a graphviz directive would be (I believe) >>>> to make it just generate a figure >>>> with the rendered image in it, so it doesn't need to be reimplemented >>>> for every output format. >>> it needs reimplementation for different output formats anyway, >>> for a pdf or tex one needs a different output than for a website >>> >>> btw, i checked out rst2pdf, the output quality seems not that good >>> cant use it for my thesis if its like that >> It's probably using PNG, and you need to tweak it to use PDF output from >> graphviz. >> I have not used it much myself, I just wrote it ;-) >> >>> also it doesnt seem to have a good way to make a custom title page >>> (which is required) >> Actually, you can do anything for a title page. You could have a SVG as >> a title page >> if you wanted. It may or may not be difficult to do. > i dont see how i'd make a titlepage > if a titlepage is doable and graphviz works, > i can probably top going the rst_text_pdf route and go for a rst -> pdf > route You can use these options in the sphinx configuration file: # If false, no coverpage is generated. #pdf_use_coverpage = True # Name of the cover page template to use #pdf_cover_template = 'sphinxcover.tmpl' The templace can do anything, like setting a SVG as background and nothing else :-) > >>> same goes for control of page numering syles >> You can use any sort of numbering style for pages, you can start >> counting in any way. >> If there's anything missing there I would love to know. > is that documented somewhere, i certainly missed it http://rst2pdf.ralsina.com.ar/handbook.html#page-counters > >> OTOH, the math support is mediocre, so it's probably still not a good >> idea for a thesis. > > ------------------------------------------------------------------------------ > 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 > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Ronny P. <Ron...@gm...> - 2012-06-07 13:47:28
|
On 06/07/2012 03:27 PM, Roberto Alsina wrote: > On 6/7/2012 10:23 AM, Ronny Pfannschmidt wrote: >> On 06/07/2012 03:20 PM, Roberto Alsina wrote: >>> On 6/7/2012 9:58 AM, Ronny Pfannschmidt wrote: >>>> On 06/07/2012 02:55 PM, Roberto Alsina wrote: >>>>> On 6/7/2012 9:51 AM, Ronny Pfannschmidt wrote: >>>>>> >>>>>> Is it documented somewhere? >>>>> Forget it, I remembered the code wrong. >>>>> >>>>> The sphinx directive generates a custom node, and rst2pdf only has a way >>>>> to handle the node. >>>>> The "right" way to implement a graphviz directive would be (I believe) >>>>> to make it just generate a figure >>>>> with the rendered image in it, so it doesn't need to be reimplemented >>>>> for every output format. >>>> it needs reimplementation for different output formats anyway, >>>> for a pdf or tex one needs a different output than for a website >>>> >>>> btw, i checked out rst2pdf, the output quality seems not that good >>>> cant use it for my thesis if its like that >>> It's probably using PNG, and you need to tweak it to use PDF output from >>> graphviz. >>> I have not used it much myself, I just wrote it ;-) >>> >>>> also it doesnt seem to have a good way to make a custom title page >>>> (which is required) >>> Actually, you can do anything for a title page. You could have a SVG as >>> a title page >>> if you wanted. It may or may not be difficult to do. >> i dont see how i'd make a titlepage >> if a titlepage is doable and graphviz works, >> i can probably top going the rst_text_pdf route and go for a rst -> pdf >> route > > You can use these options in the sphinx configuration file: > > # If false, no coverpage is generated. > #pdf_use_coverpage = True > > # Name of the cover page template to use > #pdf_cover_template = 'sphinxcover.tmpl' > > > The templace can do anything, like setting a SVG as background and > nothing else :-) im not using sphinx for my thesis, should i - and why? whats supposed to go into the template btw (i have literaly no idea) > >> >>>> same goes for control of page numering syles >>> You can use any sort of numbering style for pages, you can start >>> counting in any way. >>> If there's anything missing there I would love to know. >> is that documented somewhere, i certainly missed it > > http://rst2pdf.ralsina.com.ar/handbook.html#page-counters looks usable, thanks > >> >>> OTOH, the math support is mediocre, so it's probably still not a good >>> idea for a thesis. >> |
From: Roberto A. <ra...@ne...> - 2012-06-07 13:53:09
|
>> You can use these options in the sphinx configuration file: >> >> # If false, no coverpage is generated. >> #pdf_use_coverpage = True >> >> # Name of the cover page template to use >> #pdf_cover_template = 'sphinxcover.tmpl' >> >> >> The templace can do anything, like setting a SVG as background and >> nothing else :-) > > im not using sphinx for my thesis, should i - and why? > > whats supposed to go into the template btw (i have literaly no idea) > I don't know if you should or not, it's your call :-) If you don't use it, you can use rst2pdf's option: --custom-cover=FILE Template file used for the cover page. Default: cover.tmpl That is a Jinja template that generates restructured text, but here's a basic example: https://code.google.com/searchframe#VQTM2ZJeCqA/trunk/rst2pdf/templates/cover.tmpl |