我最近创建了一个新博客,我在其中使用维基媒体图像。我自然想适当地给予图像学分。
传统的出处位置在图片下方(此处以灰色字体为例)。
我的博客是用 Pelican 编写的,我使用 reStructuredText 来编写我的帖子,因此按以下方式插入图像:
.. image:: images/Steve_Jobs_and_Bill_Gates.jpg
:target: https://commons.wikimedia.org/wiki/File:Steve_Jobs_and_Bill_Gates_(522695099).jpg
:alt: Joi Ito from Inbamura, Japan, licensed under the Creative Commons Attribution 2.0 Generic license
reStructuredText 是否有一个出现在图像下方的信用字段?
我不知道你是否仍然想知道这个问题,因为这篇文章已经有一年了。
但是,我正在使用 Duncan Lock 的“更好的图形和图像”python 插件(请参阅 http://duncanlock.net/blog/2013/05/29/better-figures-images-plugin-for-pelican/ )在我的图像下方添加标题。我打赌你也可以用它来获得积分。
标准 reStruturdText “figure”指令可能是您的朋友:
.. figure:: example.jpg
:alt: image of a blue triange
Blue triangle by Dr. Beispiel.
有关渲染示例,请参阅,例如,https://docutils.sourceforge.io/test/functions/expected/standalone_rst_html5.html#images-and-figures