diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-09-07 21:02:50 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-09-07 21:02:50 +0000 |
| commit | 88c4e5459cdd614f50477c2cc0d5cf4f7fa672a1 (patch) | |
| tree | 7b148c2809f77f8dee7dc22df44c52c7eaa06b42 /docutils/test/functional/input | |
| parent | f1b4443a36248b286ba24c916978669988033b40 (diff) | |
| download | docutils-88c4e5459cdd614f50477c2cc0d5cf4f7fa672a1.tar.gz | |
Fix #423 Code blocks in sidebars cause LaTeX errors.
Do not use the "alltt" enviromnent in sidebars.
In admonitions and system-messages, "alltt" is used
unless the "legacy-class-functions" setting is True.
(Admonitions and system-messages are implemented as
environments since rev 8479.)
Thanks to Clément Pit-Claudel for reporting.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8820 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/input')
| -rw-r--r-- | docutils/test/functional/input/latex_literal_block.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/docutils/test/functional/input/latex_literal_block.txt b/docutils/test/functional/input/latex_literal_block.txt index 9c7b84c9c..673ef7d22 100644 --- a/docutils/test/functional/input/latex_literal_block.txt +++ b/docutils/test/functional/input/latex_literal_block.txt @@ -1,6 +1,6 @@ In LaTeX, literal blocks can be customized with the "literal-block-env" setting. This test file exists to check if the LaTeX writer output compiles -and looks as expected. +and looks as expected. Start with a plain literal block:: @@ -44,6 +44,12 @@ A literal block in a table with auto-width columns: \sin^2 x +.. sidebar:: Literal Block in a Sidebar + + :: + + \sin^2 x + .. role:: custom .. role:: custom-role @@ -69,10 +75,10 @@ Parsed literal block with inline markup and leading whitespace: :custom:`custom` :custom-role:`roles`, and explicit roles for :title:`Docutils`' :emphasis:`standard` :strong:`inline` :literal:`markup`. -.. [*] This footnote is referenced in a `parsed literal` block. - +.. [*] This footnote is referenced in a `parsed literal` block. + It contains a literal block:: - + \sin^2 x .. [CIT2002] Sample Citation, 2017. |
