Using short pygments class names with HTML5 writer results in strings being struck-out
Yes, that's what I meant to write.
Cannot insert just-deleted key in CommentedMap
html5 writer no longer honors "[html writers]" config section
Update: I've realized that the submitted patch does not correctly handle chained footnotes, so I've modified it to fix that (with a test case, of course).
An implementation of --latex-footnotes
LaTeX writer: Fix tocdepth when chapter/part in use
Yes, this is just fine.
OK, I finally got around to writing a minimal test case for \leavevmode insertion. I also made a small change to the code so that \leavevmode won't be inserted in docinfo fields. I hope that this patch is satisfactory and that this issue can finally be closed.
I am unable to successfully apply the new patch. What Subversion revision was it created against?
Attached: patch, round 3. This just tests whether the next node is a paragraph or math block after skipping invisible nodes.
I've written a new patch that makes both depart_field_name() and depart_term() only insert \leavevmode if necessary. The method for determining whether an insertion is necessary is described in the comments. Which constructs require \leavevmode was determined by typesetting all possible field body constructs in LaTeX and seeing which ones were wonky in a way that could be fixed with \leavevmode; the reStructuredText source used for that was then converted into the new tests leavevmode_deflist.txt...
I tried setting tabular alignment with {\raggedleft ... \par} as suggested, but that ended up producing too much vertical whitespace below the tabular when there was nothing else in the outer cell. However, aligning with \noindent\makebox[\linewidth][$ALIGN]{...} as is done for images does not produce excessive whitespace, so I have written a new patch that uses this method to align nested tables. (I choose to use \makebox for all alignments both for simplicity and because \noindent{\hfill ...} as...
LaTeX writer: Append \leavevmode to non-docinfo field names
Fix alignment of nested tables
Lowercase new role names on registration
I ended up fiddling with the whitespace myself. Attached is a modified patch with more reasonable spacing around the \begin{DUclass}.
Make *TeX writers convert nonstandard table classes to DUclass environments
typ="base" cannot dump dicts with None values
Documentation gives wrong defaults for math_output
`<link rel="schema.dcterms">` tag is not closed
That works too, thanks!
Although the tests pass with the suggested change, there are a couple more edits that will need to be made to fully support it: The visit_document() functions in docutils/writers/_html_base.py and docutils/writers/html5_polyglot/__init__.py will need to guard against node['source'] being None before passing it to os.path.basename(). The self.encode(node['source']) call in visit_system_message() in docutils/writers/latex2e/__init__.py will need to be edited. Possibly other edits? These are all I found...
Various LaTeX writer options not documented
:Revision: field not documented
Nameless sources are stored in document["source"] as the string "None"
Thanks for the fix! However, you misspelled the name of the new template in the documentation (docutils/docs/user/latex.txt): You wrote "titlinpage.tex", without the 'g' after the 'n'. Might want to fix that before it goes live.
titlingpage.tex template attached.
LaTeX/XeTeX writers: Duplicate "Contents" PDF bookmarks with memoir class
LaTeX template titlepage.tex is incompatible with memoir.cls
LaTeX writer puts \label in \title, which breaks when using memoir.cls