转换为PDF时,如何在Pandoc Markdown中继续列表缩进? [英] How do I continue list indentation in Pandoc Markdown when converting to PDF?

查看:146
本文介绍了转换为PDF时,如何在Pandoc Markdown中继续列表缩进?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Pandoc Markdown时遇到问题.我希望我的pdf文档如下所示(请注意添加图像后列表项的缩进如何继续)

I am facing an issue with using Pandoc Markdown. I want my pdf document to look something like below (please notice how the indentation of the list items continue after adding images)

  1. 指向a

  1. Point a

此处指向a点的图像.

a点的延续.

b点

此处b点的图像.

b点的延续

但是,无论我做什么,我都无法使压痕看起来正确.插入图像后,缩进会丢失(<4个空格),或者开始显示为代码块(> = 4个空格).

However, no matter what I try, I can't get the indentation to look right. After inserting the image, either the indentation is lost (<4 spaces) or it starts showing as code block (>=4 spaces).

要在其中插入图形时如何缩进列表项?

How do I indent a list item when I want to insert a figure in it?

编辑#1

Edit #1

我正在使用的Markdown:

Markdown that I am using:

a. Point a starts here.\
[image for point a](image1.png)\
Point a continued.

b. Point b starts here.\
[image for point b](image2.png)\

    i. sub point 1 in point b.
    ii. sub point 2 in point b

continue point b here.

外观:

编辑#2

Edit #2

按照@ mb21的建议(精确复制格式+添加我的图像),我得到以下输出:

Following @mb21's suggestions, (copying the format exactly + adding my images), I get the following output:

未正确缩进图像后的连续点.

The continuation of points after the images is not indented correctly.

更新的降价促销:

## Problem 1 ##

a. Point a starts here.

   ![Frequency of fires in a given year](wildfires.png){height=50px}

   Point a continued.

b. Point b starts here.

   ![Frequency of fires in a given year](wildfires.png){height=50px}

   i. sub point 1 in point b.
   ii. sub point 2 in point b

   continue point b here.

推荐答案

所需的正确缩进是:

## Problem 1

a. Point a starts here.

   ![image for point a](http://cdn.northlight-images.co.uk/downloadable_2/media_check.jpg){width=5cm}

   Point a continued.

b. Point b starts here.

   ![image for point b](http://cdn.northlight-images.co.uk/downloadable_2/media_check.jpg){width=5cm}

   i. sub point 1 in point b.
   ii. sub point 2 in point b

   continue point b here.

请参见 http://pandoc.org/MANUAL.html#列表项中的阻止内容

以上结果为:

这篇关于转换为PDF时,如何在Pandoc Markdown中继续列表缩进?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆