Sébastien Dailly
2017-04-19 07:36:41 UTC
Hello,
I'm stuck with rst2latex : I want to customize the code-block rendering
with a dark background. rst2latex translate this directive to a quote
environnment which I can't override because it is already used elsewhere
in the document.
I've tried to add a class parameter to the directive
This seems to be a problem with the writer, because rst2html gives the
Thanks a lot !
--
Sébastien
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply
I'm stuck with rst2latex : I want to customize the code-block rendering
with a dark background. rst2latex translate this directive to a quote
environnment which I can't override because it is already used elsewhere
in the document.
I've tried to add a class parameter to the directive
.. code-block:: C
:class: darkBackground
// Comment
But this does not seems to work (the class parameter is discarded):class: darkBackground
// Comment
\begin{quote}
{\ttfamily \raggedright \noindent
\DUrole{comment}{\DUrole{single}{//~Comment\\
}}~\\
.. class:: darkBackground
.. code-block:: C
// Comment
But this does not give the expected result.{\ttfamily \raggedright \noindent
\DUrole{comment}{\DUrole{single}{//~Comment\\
}}~\\
.. class:: darkBackground
.. code-block:: C
// Comment
This seems to be a problem with the writer, because rst2html gives the
<pre class="code C darkBackground literal-block">
<span class="comment single">// Comment
Is this a known bug ? Is there a workaround for this ?<span class="comment single">// Comment
Thanks a lot !
--
Sébastien
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply