meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programming:rst:symbols [2024/12/06 18:56] – created niziak | programming:rst:symbols [2024/12/09 10:54] (current) – niziak | ||
---|---|---|---|
Line 28: | Line 28: | ||
.. |tick| unicode:: U+2714 | .. |tick| unicode:: U+2714 | ||
</ | </ | ||
+ | |||
+ | Conditional substitution: | ||
+ | <code rst> | ||
+ | .. only:: html | ||
+ | |||
+ | .. raw:: html | ||
+ | |||
+ | <a href=" | ||
+ | |||
+ | .. only:: latex | ||
+ | |||
+ | latex specific | ||
+ | </ | ||
+ | |||
+ | Workaround for different conditionals for '' | ||
+ | <code rst> | ||
+ | .. |br| replace:: |br_html| |br_latex| | ||
+ | |||
+ | .. |br_html| raw:: html | ||
+ | |||
+ | < | ||
+ | |||
+ | .. |br_latex| raw:: latex | ||
+ | |||
+ | | ||
+ | </ | ||
+ | |||
+ | Or Sphinx project wide: | ||
+ | |||
+ | <file python conf.py> | ||
+ | rst_prolog = r""" | ||
+ | .. |br| replace:: |br_html| |br_latex| | ||
+ | |||
+ | .. |br_html| raw:: html | ||
+ | |||
+ | < | ||
+ | |||
+ | .. |br_latex| raw:: latex | ||
+ | |||
+ | | ||
+ | """ | ||
+ | </ | ||
+ | |||