包含图像很容易......
.. image:: /home/mpenning/ciscoconfparse_logo_bw_01.png
:align: center
但是,我想将其用作背景图像...我尝试了带有 z-index 的 html:
.. raw:: html
<div>
<style>
body {
background-color: white;
background-image: url('/home/mpenning/ciscoconfparse_logo_bw_01.png');
z-index: -1;
}
</style>
</div>
但是,这不会渲染背景图像。
如何使用重组文本渲染背景图像?
这是有效的显式解决方案...
.. raw:: pdf
PageBreak background=/path/to/backgroundimage
整体解决方案...仅供参考,
center
是默认...
Insert Presentation Title with normal image
.. image:: /home/mpenning/ciscoconfparse_logo_bw_01.png
:align: center
.. raw:: pdf
PageBreak background=/home/mpenning/ciscoconfparse_logo_bw_01.png fit-background-mode=center
- Bullet 1 (with background image)
- Bullet 2 (with background image)
- Bullet 3 (with background image)