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 |