2013-07-26 99 views
4

我使用make latexpdf命令通過Sphinx創建了一個文檔。如何在獅身人面像中的圖像前後插入一些空間

現在我有問題了,LaTeX正在將圖片放在文字後面,並在圖像底部放置3或4行換行符。

如果沒有 必須在語法中使用\,那麼是否有可能在圖片頂部獲得1個空間並且在圖片底部獲得1個空間?

我的代碼:

title: 
=========== 

some text 

.. image:: screenshots/manage_products.png 

some more text 

another title: 
=========== 

編輯:這裏有點截圖給你看我的問題。我還研究了Sphinx的主要文檔(+ Syntax文檔),發現這個問題沒有答案!

enter image description here

BTW:忽略紅色箭頭PLZ。

+0

你試過嗎? http://stackoverflow.com/a/8218320/407651 – mzjn

回答

4

您可以使用.. figure ::指令在圖像周圍添加額外的間距。

title: 
=========== 

some text 

.. figure:: screenshots/manage_products.png 

some more text 

我更喜歡使用figure指令,因爲你有一些額外的控制元素到你的圖像,如標籤。

.. figure:: 

    Your figure text here 
+0

手冊:http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure – Alex

+0

它的正常工作,我不會用..圖片: :命令了! – Knorke