diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-09-11 20:02:51 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-09-11 20:02:51 +0000 |
| commit | e5f74337332641a5f82fe45efc5bebbf15493c05 (patch) | |
| tree | 38eb6ab2079e3a3b27c24d75a8286a0347394cc4 /docutils/test | |
| parent | 5c6612e2337a8320c3020ad54aa4d90a9fffa58a (diff) | |
| download | docutils-e5f74337332641a5f82fe45efc5bebbf15493c05.tar.gz | |
Fix informal titles
Fix Topic subtitle.
Use class value "sidebar" instead of "title" for the title in a side bar.
Do not center a rubric.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8390 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
| -rw-r--r-- | docutils/test/functional/expected/standalone_rst_latex.tex | 9 | ||||
| -rw-r--r-- | docutils/test/functional/expected/standalone_rst_xetex.tex | 9 | ||||
| -rwxr-xr-x | docutils/test/test_writers/test_latex2e.py | 2 |
3 files changed, 9 insertions, 11 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index ab1402f9c..73cbbf004 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -152,8 +152,7 @@ }{} % rubric (informal heading) -\providecommand*{\DUrubric}[1]{% - \subsubsection*{\centering\textit{\textmd{#1}}}} +\providecommand*{\DUrubric}[1]{\subsubsection*{\emph{#1}}} % sidebar (text outside the main text flow) \providecommand{\DUsidebar}[1]{% @@ -205,7 +204,7 @@ \title{reStructuredText Test Document% \label{restructuredtext-test-document}% \label{doctitle}% - \\ % subtitle% + \\% \DUdocumentsubtitle{Examples of Syntax Constructs}% \label{examples-of-syntax-constructs}% \label{subtitle}} @@ -1203,9 +1202,9 @@ You can make up your own admonition too. \emph{Sidebars} are like miniature, parallel documents. \DUsidebar{ -\DUtitle[title]{Sidebar Title} +\DUtitle[sidebar]{Sidebar Title} -\DUsubtitle[sidebar]{Optional Subtitle} +\DUsubtitle{Optional Subtitle} This is a sidebar. It is for text outside the flow of the main text. diff --git a/docutils/test/functional/expected/standalone_rst_xetex.tex b/docutils/test/functional/expected/standalone_rst_xetex.tex index 18e148bd9..99ea92ef8 100644 --- a/docutils/test/functional/expected/standalone_rst_xetex.tex +++ b/docutils/test/functional/expected/standalone_rst_xetex.tex @@ -154,8 +154,7 @@ % rubric (informal heading) -\providecommand*{\DUrubric}[1]{% - \subsubsection*{\centering\textit{\textmd{#1}}}} +\providecommand*{\DUrubric}[1]{\subsubsection*{\emph{#1}}} % sidebar (text outside the main text flow) \providecommand{\DUsidebar}[1]{% @@ -204,7 +203,7 @@ \title{reStructuredText Test Document% \label{restructuredtext-test-document}% \label{doctitle}% - \\ % subtitle% + \\% \DUdocumentsubtitle{Examples of Syntax Constructs}% \label{examples-of-syntax-constructs}% \label{subtitle}} @@ -1205,9 +1204,9 @@ You can make up your own admonition too. \emph{Sidebars} are like miniature, parallel documents. \DUsidebar{ -\DUtitle[title]{Sidebar Title} +\DUtitle[sidebar]{Sidebar Title} -\DUsubtitle[sidebar]{Optional Subtitle} +\DUsubtitle{Optional Subtitle} This is a sidebar. It is for text outside the flow of the main text. diff --git a/docutils/test/test_writers/test_latex2e.py b/docutils/test/test_writers/test_latex2e.py index 1c705feb7..9208bb73e 100755 --- a/docutils/test/test_writers/test_latex2e.py +++ b/docutils/test/test_writers/test_latex2e.py @@ -929,7 +929,7 @@ head_template.substitute(dict(parts, } """, titledata=r"""\title{This is the \emph{Title}% \label{this-is-the-title}% - \\ % subtitle% + \\% \DUdocumentsubtitle{This is the \emph{Subtitle}}% \label{this-is-the-subtitle}} \author{} |
