You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(15) |
Oct
(21) |
Nov
(18) |
Dec
(59) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(43) |
Feb
(35) |
Mar
(78) |
Apr
(65) |
May
(163) |
Jun
(169) |
Jul
(137) |
Aug
(77) |
Sep
(47) |
Oct
(27) |
Nov
(43) |
Dec
(68) |
2004 |
Jan
(61) |
Feb
(39) |
Mar
(11) |
Apr
(42) |
May
(86) |
Jun
(82) |
Jul
(24) |
Aug
(26) |
Sep
(37) |
Oct
(62) |
Nov
(131) |
Dec
(43) |
2005 |
Jan
(31) |
Feb
(56) |
Mar
(65) |
Apr
(165) |
May
(106) |
Jun
(97) |
Jul
(65) |
Aug
(150) |
Sep
(78) |
Oct
(115) |
Nov
(41) |
Dec
(26) |
2006 |
Jan
(50) |
Feb
(39) |
Mar
(56) |
Apr
(67) |
May
(89) |
Jun
(68) |
Jul
(116) |
Aug
(65) |
Sep
(58) |
Oct
(103) |
Nov
(28) |
Dec
(52) |
2007 |
Jan
(92) |
Feb
(60) |
Mar
(124) |
Apr
(96) |
May
(69) |
Jun
(79) |
Jul
(25) |
Aug
(22) |
Sep
(7) |
Oct
(17) |
Nov
(27) |
Dec
(32) |
2008 |
Jan
(57) |
Feb
(87) |
Mar
(51) |
Apr
(43) |
May
(56) |
Jun
(62) |
Jul
(25) |
Aug
(82) |
Sep
(58) |
Oct
(42) |
Nov
(38) |
Dec
(86) |
2009 |
Jan
(50) |
Feb
(33) |
Mar
(84) |
Apr
(90) |
May
(109) |
Jun
(37) |
Jul
(22) |
Aug
(51) |
Sep
(93) |
Oct
(86) |
Nov
(31) |
Dec
(62) |
2010 |
Jan
(33) |
Feb
(57) |
Mar
(62) |
Apr
(43) |
May
(30) |
Jun
(49) |
Jul
(20) |
Aug
(40) |
Sep
(152) |
Oct
(38) |
Nov
(15) |
Dec
(32) |
2011 |
Jan
(29) |
Feb
(25) |
Mar
(65) |
Apr
(45) |
May
(27) |
Jun
(11) |
Jul
(14) |
Aug
(8) |
Sep
(13) |
Oct
(117) |
Nov
(60) |
Dec
(19) |
2012 |
Jan
(23) |
Feb
(32) |
Mar
(24) |
Apr
(41) |
May
(56) |
Jun
(24) |
Jul
(15) |
Aug
(11) |
Sep
(26) |
Oct
(21) |
Nov
(12) |
Dec
(31) |
2013 |
Jan
(32) |
Feb
(24) |
Mar
(39) |
Apr
(44) |
May
(44) |
Jun
(8) |
Jul
(9) |
Aug
(12) |
Sep
(34) |
Oct
(19) |
Nov
(5) |
Dec
(9) |
2014 |
Jan
(22) |
Feb
(12) |
Mar
(7) |
Apr
(2) |
May
(13) |
Jun
(17) |
Jul
(8) |
Aug
(10) |
Sep
(7) |
Oct
(4) |
Nov
|
Dec
(39) |
2015 |
Jan
(13) |
Feb
(12) |
Mar
(12) |
Apr
(40) |
May
(5) |
Jun
(22) |
Jul
(3) |
Aug
(42) |
Sep
(5) |
Oct
(10) |
Nov
|
Dec
(10) |
2016 |
Jan
(9) |
Feb
(43) |
Mar
(5) |
Apr
(14) |
May
(17) |
Jun
(5) |
Jul
(5) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
(18) |
2017 |
Jan
(28) |
Feb
(29) |
Mar
(9) |
Apr
(23) |
May
(48) |
Jun
(5) |
Jul
(32) |
Aug
(9) |
Sep
(13) |
Oct
(13) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(5) |
Jun
(17) |
Jul
(12) |
Aug
(15) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2019 |
Jan
|
Feb
(6) |
Mar
(3) |
Apr
(5) |
May
(10) |
Jun
(6) |
Jul
(6) |
Aug
|
Sep
(11) |
Oct
(18) |
Nov
(10) |
Dec
(7) |
2020 |
Jan
(3) |
Feb
(14) |
Mar
(2) |
Apr
(1) |
May
(5) |
Jun
|
Jul
(1) |
Aug
(11) |
Sep
(8) |
Oct
|
Nov
(1) |
Dec
(14) |
2021 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
(8) |
May
(23) |
Jun
(7) |
Jul
(10) |
Aug
(1) |
Sep
|
Oct
(7) |
Nov
(10) |
Dec
(2) |
2022 |
Jan
|
Feb
(21) |
Mar
|
Apr
(3) |
May
(7) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
(18) |
Feb
|
Mar
(1) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
2025 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(6) |
Jul
(22) |
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Paul V. <pc...@gm...> - 2015-08-14 21:41:30
|
Hi everyone, having a lot of trouble figuring out how to define what content get's a particular class. .. class:: drop-down This is a header ++++++++++++++++ I'm a bit of content An H2 ===== So, what I want to do is make the H2 element not have the class "drop-down" applied to it. I've tried different indentations, etc. The only thing that seems to work is placing H1 before the h2, this seems to be the only thing that ends the class. Any help would be appreciated! Thank you! |
From: Apua <apu...@gm...> - 2015-08-13 10:05:21
|
Hi, I found a typo "hmtl" in page `Docutils Front-End Tools <http://docutils.sourceforge.net/docs/user/tools.html#id29>`_. Thanks, Apua |
From: Françoise P. <Fra...@lo...> - 2015-08-12 15:31:11
|
thanks for the hint but I tried and failed with "Substitution definition contains illegal element" here the full material (in/out). $ cat tp.rst .. rst2html.py tp.rst > tp.html .. Citation references, like [CIT2002]_. Another one |CIT2002_STYLE|. .. |CIT2002_STYLE| replace:: mystyle [CIT2002]_ .. [CIT2002] Author. 2002. $ rst2html.py tp.rst > tp.html tp.rst:8: (ERROR/3) Substitution definition contains illegal element: <citation_reference ids="id2" refname="cit2002"> CIT2002 .. |CIT2002_STYLE| replace:: mystyle [CIT2002]_ tp.rst:6: (ERROR/3) Undefined substitution referenced: "CIT2002_STYLE". What am I missing ? On Wed, August 12, 2015 4:36 pm, David Goodger wrote: > In your example, try adding an underscore after the citation in the > substitution definition. Replace: > > .. |CIT2002_STYLE| replace:: mystyle [CIT2002] > > with: > > .. |CIT2002_STYLE| replace:: mystyle [CIT2002]_ > > Without the trailing underscore, it's just bracketed text. The output > in the example looks right to me, based on the input. > > DG > > > On Wed, Aug 12, 2015 at 7:31 AM, Françoise Pinsard > <Fra...@lo...> wrote: >> >> Hi >> >> Python 2.7.10 :: Anaconda 2.3.0 (x86_64) >> rst2html.py (Docutils 0.12 [release], Python 2.7.10, on darwin) >> >> Here an example to illustrate something strange when I put a citation >> in a replace ... >> >> tp.rst : >> >> Citation references, like [CIT2002]_. >> >> Another one |CIT2002_STYLE|. >> >> .. [CIT2002] Author. 2002. >> >> .. |CIT2002_STYLE| replace:: mystyle [CIT2002] >> >> rst2html produce (div class document content) :: >> >> <p>Citation references, like <a class="citation-reference" >> href="#cit2002" id="id1">[CIT2002]</a>.</p> >> <p>Another one mystyle [CIT2002].</p> >> <table class="docutils citation" frame="void" id="cit2002" >> rules="none"> >> <colgroup><col class="label" /><col /></colgroup> >> <tbody valign="top"> >> <tr><td class="label"><a class="fn-backref" >> href="#id1">[CIT2002]</a></td><td>Author. 2002.</td></tr> >> >> while I expected :: >> >> <p>Citation references, like <a class="citation-reference" >> href="#cit2002" id="id1">[CIT2002]</a>.</p> >> <p>Another one mystyle <a class="citation-reference" href="#cit2002" >> id="id1">[CIT2002]</a>.</p> >> >> this problem was initially and indirectly raised using >> sphinxcontrib-bitex >> see >> https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/84 >> >> Regards >> >> >> -- >> Françoise >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Docutils-users mailing list >> Doc...@li... >> https://lists.sourceforge.net/lists/listinfo/docutils-users >> >> Please use "Reply All" to reply to the list. > -- Françoise |
From: Guenter M. <mi...@us...> - 2015-08-12 15:25:12
|
On 2015-08-05, Guenter Milde wrote: > On 2015-07-21, Mikołaj Machowski wrote: >> File "/usr/lib/python2.7/site-packages/docutils/writers/latex2e/__init__.py", line 2176, in visit_footnote >> num,text = node.astext().split(None,1) >> ValueError: need more than 1 value to unpack > I changed the code to be more stable for these cases, found a follow-up bug > and fixed as well and will upload the fix to the repository soon. It should work now with revision 7904 of the SVN repository. http://sourceforge.net/p/docutils/code/7904/ Günter |
From: David G. <go...@py...> - 2015-08-12 14:37:06
|
In your example, try adding an underscore after the citation in the substitution definition. Replace: .. |CIT2002_STYLE| replace:: mystyle [CIT2002] with: .. |CIT2002_STYLE| replace:: mystyle [CIT2002]_ Without the trailing underscore, it's just bracketed text. The output in the example looks right to me, based on the input. DG On Wed, Aug 12, 2015 at 7:31 AM, Françoise Pinsard <Fra...@lo...> wrote: > > Hi > > Python 2.7.10 :: Anaconda 2.3.0 (x86_64) > rst2html.py (Docutils 0.12 [release], Python 2.7.10, on darwin) > > Here an example to illustrate something strange when I put a citation > in a replace ... > > tp.rst : > > Citation references, like [CIT2002]_. > > Another one |CIT2002_STYLE|. > > .. [CIT2002] Author. 2002. > > .. |CIT2002_STYLE| replace:: mystyle [CIT2002] > > rst2html produce (div class document content) :: > > <p>Citation references, like <a class="citation-reference" > href="#cit2002" id="id1">[CIT2002]</a>.</p> > <p>Another one mystyle [CIT2002].</p> > <table class="docutils citation" frame="void" id="cit2002" rules="none"> > <colgroup><col class="label" /><col /></colgroup> > <tbody valign="top"> > <tr><td class="label"><a class="fn-backref" > href="#id1">[CIT2002]</a></td><td>Author. 2002.</td></tr> > > while I expected :: > > <p>Citation references, like <a class="citation-reference" > href="#cit2002" id="id1">[CIT2002]</a>.</p> > <p>Another one mystyle <a class="citation-reference" href="#cit2002" > id="id1">[CIT2002]</a>.</p> > > this problem was initially and indirectly raised using sphinxcontrib-bitex > see > https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/84 > > Regards > > > -- > Françoise > > ------------------------------------------------------------------------------ > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Françoise P. <Fra...@lo...> - 2015-08-12 12:49:13
|
Hi Python 2.7.10 :: Anaconda 2.3.0 (x86_64) rst2html.py (Docutils 0.12 [release], Python 2.7.10, on darwin) Here an example to illustrate something strange when I put a citation in a replace ... tp.rst : Citation references, like [CIT2002]_. Another one |CIT2002_STYLE|. .. [CIT2002] Author. 2002. .. |CIT2002_STYLE| replace:: mystyle [CIT2002] rst2html produce (div class document content) :: <p>Citation references, like <a class="citation-reference" href="#cit2002" id="id1">[CIT2002]</a>.</p> <p>Another one mystyle [CIT2002].</p> <table class="docutils citation" frame="void" id="cit2002" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a class="fn-backref" href="#id1">[CIT2002]</a></td><td>Author. 2002.</td></tr> while I expected :: <p>Citation references, like <a class="citation-reference" href="#cit2002" id="id1">[CIT2002]</a>.</p> <p>Another one mystyle <a class="citation-reference" href="#cit2002" id="id1">[CIT2002]</a>.</p> this problem was initially and indirectly raised using sphinxcontrib-bitex see https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/84 Regards -- Françoise |
From: Guenter M. <mi...@us...> - 2015-08-11 09:49:54
|
On 2015-08-11, Vinicius Kwiecien Ruoso wrote: > Hi all, > I'm looking for a way to read a reST file with non-standard > directives/roles and suppress its error/warning messages. The ideia is > to not generate error **only** when those non-existing > directives/roles appear, but continue to report errors about other > matters. AFAIK, this is not possible without changes/additions. The simplest method would be to add/register "mock" directives in a custom wrapper, using either a sensible fallback from the existing directives or "mock" directive functions. See http://docutils.sourceforge.net/docs/howto/rst-directives.html Günter |
From: Vinicius K. R. <vin...@gm...> - 2015-08-11 00:38:51
|
Hi all, I'm looking for a way to read a reST file with non-standard directives/roles and suppress its error/warning messages. The ideia is to not generate error **only** when those non-existing directives/roles appear, but continue to report errors about other matters. To read the file it is used the docutils publish_doctree method. I see I can use settings_overrides={'report_level':'none'} to suppress all messages. Can this be done to suppress only that kind of message? Taking a quick look at the code I tend to say no, but I want to be sure. Thanks, Vinicius |
From: Guenter M. <mi...@us...> - 2015-08-07 07:31:11
|
On 2015-08-06, Stefan Merten wrote: > Hi! > Today Tony Narlock wrote: >> Both remarkdown and recommonmark return a docutils document tree ( >> http://docutils.sourceforge.net/docs/ref/doctree.html#document). If so, they could be used as alternative parsers: * Up to now, Docutils only ships with the standard "rst" parser, however, the framework for alternative parsers exists. * a front-end could set up the parser from either of these projects + standard Docutils transforms and standard Docutils writers. This could either be a suite of front-ends (md2html, md2html5, md2latex, md2xml, md2odt, md2manpage ...) or one "metawriter" with mandatory writer argument (``mdocutils html5 mydoc.md``) It would only be that easy, if the "docutils document tree" returned by the markdown parser not only uses Docutils nodes and elements but also follows all the documented and nondocumented conventions and restrictions. Otherwise, we might either cooperate with the upstream authors to fit the alternative parsers into Docutils or add a wrapper layer including transfomrs required to "sanitize" the document tree before handing it to the standard transforms and writer. > Which opens a way to produce reStructuredText from Markdown by using > `xml2rst`. One more interesting option (and one more incentive to add an "rst" writer to Docutils). :-) |
From: Stefan M. <st...@me...> - 2015-08-06 18:39:29
|
Hi! Today Tony Narlock wrote: > Both remarkdown and recommonmark return a docutils document tree ( > http://docutils.sourceforge.net/docs/ref/doctree.html#document). Which opens a way to produce reStructuredText from Markdown by using `xml2rst`. Grüße Stefan |
From: Tony N. <to...@gi...> - 2015-08-06 09:28:10
|
reStructuredText is covered by the Documentation Utilities. What about Markdown? Docutils has all the tools needed to parse it, and there is activity in the area. A few years ago, remarkdown (https://github.com/sgenoud/remarkdown) sprung up. As of this writing the last commit is Oct 14, 2014. A new fork, recommonmark, implementing CommonMark (http://commonmark.org/) specification of MarkDown emerged recently. You can try it out at https://github.com/rtfd/recommonmark. Both remarkdown and recommonmark return a docutils document tree ( http://docutils.sourceforge.net/docs/ref/doctree.html#document). recommonmark is held with the ReadTheDocs project. Theoretically this could give documentation writers the ability to use Markdown with sphinx. There are exciting projects underway with docutils (including Kivy's kiv.uix.rst module). It's a good time for docutils! |
From: Guenter M. <mi...@us...> - 2015-08-06 07:44:58
|
On 2015-08-05, JENNIFER ITO wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > Thanks for the responses! > Unfortunately, I'd like the changes also to occur in the generated pdf as > well. I don't think the css file modifications in html carry over, correct? We have to think about 2 steps: 1. How to achieve image cropping in the various output formats. * Image cropping is supported in LaTeX with options to the \includegraphics command. * There limited support for image cropping in HTML via CSS styling. The ``clip`` CSS property is obsolete and only applicable to absolutely positioned elements, that is elements with ``position:absolute`` or ``position:fixed``. https://developer.mozilla.org/en-US/docs/Web/CSS/clip (Thanks to Alan G Isaac for the link.) The ``clip-path`` CSS property is experimental with very limited browser support. https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path Alternatively, in HTML5 and XHTML, we could insert the image via an inline-SVG wrapper that loads the image and applies a crop-path. http://www.w3.org/TR/2010/WD-html5-20100624/the-map-element.html#svg-0 This is standards-comliable and supported in most current browsers, http://www.w3schools.com/HTML/html5_svg.asp * Support in ODF is also desirable but I don't know the status. 2. How to design a common interface for rst. (I would opt for additional "image" directive options modelled after \includegraphics.) This would make a nice little enhancement project. Günter |
From: Tony N. <to...@gi...> - 2015-08-06 04:07:12
|
Docutils Users, Have you heard of Kivy? Perhaps the idea of using python to write cross-platform apps sounds like a fantasy. Think about this, SDL2 and Cython. Permissively licensed. Have some power. www.kivy.org Where does reStructuredText come in? http://kivy.org/docs/api-kivy.uix.rst.html That's right folks. You can render reStructuredText beautifully on mobile apps! Why not try the RST_Editor example, and get a live preview of your documents? https://github.com/kivy/kivy/tree/master/examples/RST_Editor In the attached screenshot, I borrow from the kitchen sink showcase, and change the RstEditor example to use CodeInput instead of TextInput. CodeInput gives you a fixed width font and pygments highlighting (which of course highlights reST). Example for Kivy 1.9.0: https://github.com/tony/kivysample/ Example for Kivy 1.9.1dev (from source as of August 5, 2015): https://github.com/tony/kivysample/tree/latest-kivy |
From: JENNIFER I. <ito...@be...> - 2015-08-05 15:45:35
|
Thanks for the responses! Unfortunately, I'd like the changes also to occur in the generated pdf as well. I don't think the css file modifications in html carry over, correct? Thanks again! Jen On Wed, Aug 5, 2015 at 7:26 AM, Terry Brown <ter...@ya...> wrote: > On Wed, 5 Aug 2015 07:57:10 +0000 (UTC) > Guenter Milde <mi...@us...> wrote: > > > On 2015-08-04, JENNIFER ITO wrote: > > > > > [-- Type: text/plain, Encoding: --] > > > > > Hello! > > > > > I'm new to reStructuredText and am wondering if there is a way to > > > crop an image/figure. I looked at the docutils directives webpage > > > and found the options for images but do not see anything that would > > > crop an image. Is it not possible or is there a work-around? Any > > > help is appreciated. > > > > This is not supported, you must use an external editor and create a > > cropped copy. > > (Is cropping supported by HTML? Otherwise you would need a cropped > > copy of the image anyway -- at least for HTML output.) > > Images can be cropped in HTML when using them as CSS specified > backgrounds for divs etc. Sometime when you look at the resources a > page is downloading all its icons are in a strip in one image (saving > on network traffic), and it crops them to suit different places on the > page. > > Cheers -Terry > > > You may consider filing an enhancement request or discuss possible > > implementations first here on the list. > > > > Günter > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Docutils-users mailing list > > Doc...@li... > > https://lists.sourceforge.net/lists/listinfo/docutils-users > > > > Please use "Reply All" to reply to the list. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |
From: Terry B. <ter...@ya...> - 2015-08-05 14:26:17
|
On Wed, 5 Aug 2015 07:57:10 +0000 (UTC) Guenter Milde <mi...@us...> wrote: > On 2015-08-04, JENNIFER ITO wrote: > > > [-- Type: text/plain, Encoding: --] > > > Hello! > > > I'm new to reStructuredText and am wondering if there is a way to > > crop an image/figure. I looked at the docutils directives webpage > > and found the options for images but do not see anything that would > > crop an image. Is it not possible or is there a work-around? Any > > help is appreciated. > > This is not supported, you must use an external editor and create a > cropped copy. > (Is cropping supported by HTML? Otherwise you would need a cropped > copy of the image anyway -- at least for HTML output.) Images can be cropped in HTML when using them as CSS specified backgrounds for divs etc. Sometime when you look at the resources a page is downloading all its icons are in a strip in one image (saving on network traffic), and it crops them to suit different places on the page. Cheers -Terry > You may consider filing an enhancement request or discuss possible > implementations first here on the list. > > Günter > > > ------------------------------------------------------------------------------ > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Guenter M. <mi...@us...> - 2015-08-05 10:27:16
|
Dear Mikołaj, thank you for the bug report. On 2015-07-21, Mikołaj Machowski wrote: > Below traceback, OS info and docutils version. HTML export works > without problems. I get 160 errors of type /tmp/01.txt:28: (ERROR/3) Unknown target name: "02.08.06". here. > Note that I have long list of empty (so far) > hyperlinks - maybe that is the cause? No. A minimal example for the problematic input is:: Epiroci zaprosili na tron Alketasa [180]_, ... .. [180] R. 312 which produces the pseudo-XML:: <document source="/tmp/test02.rst"> <paragraph> Epiroci zaprosili na tron Alketasa <footnote_reference ids="id1" refid="id2"> 180 , … <footnote backrefs="id1" ids="id2" names="180"> <label> 180 <enumerated_list enumtype="upperalpha" prefix="" start="18" suffix="."> <list_item> <paragraph> 312 i.e. The text R. 312 is parsed as the first item of an enumerated list, which is surely not what you intended and looks strange in HTML, too. see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#enumerated-lists You can avoid this by escaping:: Epiroci zaprosili na tron Alketasa [180]_, ... .. [180] \R. 312 However, for footnotes that start with anything that is not a paragraph, the problem remains: ... > File "/usr/lib/python2.7/site-packages/docutils/writers/latex2e/__init__.py", line 2176, in visit_footnote > num,text = node.astext().split(None,1) > ValueError: need more than 1 value to unpack I changed the code to be more stable for these cases, found a follow-up bug and fixed as well and will upload the fix to the repository soon. Thanks, Günter |
From: Guenter M. <mi...@us...> - 2015-08-05 08:10:44
|
Dear Khang Minh, On 2015-08-03, Khang Minh wrote: > I'm trying out the `image` directive, > http://docutils.sourceforge.net/docs/ref/rst/directives.html#image > When using it without any options, only the URI argument, the rendered HTML > does not have any anchor. However, if I specify any option (not `target`) > there will be an anchor around the generated `img` tag. Is this expected? It is not expected and I cannot reproduce this behaviour. When I compile the test file:: .. image:: testimage.jpg .. image:: testimage2.jpg :alt: just a test .. image:: testimage3.jpg :width: 2 em :scale: 50 % .. image:: testimage4.jpg :width: 200 px .. image:: testimage5.jpg :align: right .. image:: testimage6.jpg :target: testfile.txt .. image:: testimage7.jpg :class: test-style .. image:: testimage8.jpg :name: test-image with Docutils `rst2html` (version Docutils 0.13 [repository], Python 2.7.10, on linux2), I get:: ... <div class="document"> <img alt="testimage.jpg" src="testimage.jpg" /> <img alt="just a test" src="testimage2.jpg" /> <img alt="testimage3.jpg" src="testimage3.jpg" style="width: 1.0em;" /> <img alt="testimage4.jpg" src="testimage4.jpg" style="width: 200px;" /> <img alt="testimage5.jpg" class="align-right" src="testimage5.jpg" /> <a class="reference external image-reference" href="testfile.txt"><img alt="testimage6.jpg" src="testimage6.jpg" /></a> <img alt="testimage7.jpg" class="test-style" src="testimage7.jpg" /> <img alt="testimage8.jpg" id="test-image" src="testimage8.jpg" /> </div> ... i.e. only the :target: option triggers wrapping in an anchor. (The new rst2html5.py front-end results in the same output snippet.) > Curious if there's any way to disable this behaviour. What program and version are you using to generate the HTML? Günter |
From: Guenter M. <mi...@us...> - 2015-08-05 07:57:31
|
On 2015-08-04, JENNIFER ITO wrote: > [-- Type: text/plain, Encoding: --] > Hello! > I'm new to reStructuredText and am wondering if there is a way to crop an > image/figure. I looked at the docutils directives webpage and found the > options for images but do not see anything that would crop an image. Is it > not possible or is there a work-around? Any help is appreciated. This is not supported, you must use an external editor and create a cropped copy. (Is cropping supported by HTML? Otherwise you would need a cropped copy of the image anyway -- at least for HTML output.) You may consider filing an enhancement request or discuss possible implementations first here on the list. Günter |
From: JENNIFER I. <ito...@be...> - 2015-08-04 17:24:12
|
Hello! I'm new to reStructuredText and am wondering if there is a way to crop an image/figure. I looked at the docutils directives webpage and found the options for images but do not see anything that would crop an image. Is it not possible or is there a work-around? Any help is appreciated. Thanks! Jen |
From: Khang M. <kmi...@gm...> - 2015-08-03 17:31:20
|
I'm trying out the `image` directive, http://docutils.sourceforge.net/docs/ref/rst/directives.html#image When using it without any options, only the URI argument, the rendered HTML does not have any anchor. However, if I specify any option (not `target`) there will be an anchor around the generated `img` tag. Is this expected? If so, it should be noted in the documentation IMO. Curious if there's any way to disable this behaviour. |
From: Mikołaj M. <mi...@wp...> - 2015-07-21 21:44:47
|
Below traceback, OS info and docutils version. HTML export works without problems. Note that I have long list of empty (so far) hyperlinks - maybe that is the cause? File itself in attachment. Command rst2latex.py 01.txt 01.tex Traceback (most recent call last): File "/usr/bin/rst2latex.py", line 26, in <module> publish_cmdline(writer_name='latex', description=description) File "/usr/lib/python2.7/site-packages/docutils/core.py", line 352, in publish_cmdline config_section=config_section, enable_exit_status=enable_exit_status) File "/usr/lib/python2.7/site-packages/docutils/core.py", line 219, in publish output = self.writer.write(self.document, self.destination) File "/usr/lib/python2.7/site-packages/docutils/writers/__init__.py", line 80, in write self.translate() File "/usr/lib/python2.7/site-packages/docutils/writers/latex2e/__init__.py", line 246, in translate self.document.walkabout(visitor) File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout if child.walkabout(visitor): File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout if child.walkabout(visitor): File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout if child.walkabout(visitor): File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 166, in walkabout visitor.dispatch_visit(self) File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 1882, in dispatch_visit return method(node) File "/usr/lib/python2.7/site-packages/docutils/writers/latex2e/__init__.py", line 2176, in visit_footnote num,text = node.astext().split(None,1) ValueError: need more than 1 value to unpack [/home/mmachowski/pauzaniasz-w-mnw/tekst] % uname -a CYGWIN_NT-6.1 dokfoto_MM 2.0.4(0.287/5/3) 2015-06-09 12:22 x86_64 Cygwin [/home/mmachowski/pauzaniasz-w-mnw/tekst] % rst2latex.py --version rst2latex.py (Docutils 0.12 [release], Python 2.7.10, on cygwin) ps. Wonder if it comes through since sf is down. |
From: Guenter M. <mi...@us...> - 2015-07-05 15:30:14
|
On 2015-06-28, Florian Krause wrote: > [-- Type: text/plain, Encoding: --] > Hello everyone, > I created a Solarized inspired stylesheet for the new html-base writer: > https://github.com/fladd/docutils-solarized > This is a fist version and I am looking for feedback. Pull requests are > very welcome. Thanks for sharing. The new HTML writer is still "work in progress". Its name will change and the CSS definitions are now put into two files for the required and optional rules. (Replacing both with your solarized style sheet should work still.) Günter |
From: Guenter M. <mi...@us...> - 2015-07-05 15:26:31
|
On 2015-06-28, gustavk wrote: Dear Gustav, > I was searching for a long time a converter of HTML table to > ReST-compatible table. > I've tried different one but none allows me to use the "rowspan" and > "colspan" functions (merged cells in terms of rows or column inside the > table). > So I've decided to create one myself! > https://github.com/gustavklopp/DashTable Thank you. I added it to our link list. (Will appear at Docutils with the next website update.) Günter |
From: Florian K. <sie...@gm...> - 2015-06-28 21:48:25
|
Hello everyone, I created a Solarized inspired stylesheet for the new html-base writer: https://github.com/fladd/docutils-solarized This is a fist version and I am looking for feedback. Pull requests are very welcome. Best, Florian -- www.fladd.de - Homepage of Florian Krause |
From: gustavk <gu...@pr...> - 2015-06-28 04:33:47
|
Hi! I was searching for a long time a converter of HTML table to ReST-compatible table. I've tried different one but none allows me to use the "rowspan" and "colspan" functions (merged cells in terms of rows or column inside the table). So I've decided to create one myself! https://github.com/gustavklopp/DashTable I post it since maybe it could be useful for other people and not for only my specific needs! Good day! Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland. |