我想在 pandoc/markdown 生成的目录之前添加一个表格。
我找到了参数“include-before”。这样,我可以在目录之前添加文本。但是有没有办法添加表格呢?
下面显示我的代码。我希望目录位于两个表和 header1 之间,而不是在表之前。
还有另一种方法可以实现这一目标吗?我只想使用一个文件进行生成。
感谢您的帮助
---
geometry: margin=1in
fontfamily: qbookman
numbersections: true
toc: true
toc-title: Table des matières
header-includes: |
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{20pt}
\lhead{\includegraphics[width=4cm]{C:/logo.png}}
\rhead{Doc generator}
---
+---------------+---------------------------------------------------------------+
| **Title** | Markdown - Pandoc - Plantuml \
|
+---------------+---------------------------------------------------------------+
| **Customer** | Customer \
|
+---------------+---------------------------------------------------------------+
| **Project** | Doc generator
|
+---------------+---------------------------------------------------------------+
----------------------------------------------------------------------------------
**VERSION** **DATE** **MODIFICATION** **AUTHOR**
----------- ------------- ------------------------------------------- -----------
1.0 20-12-2018 Initial DGO
----------------------------------------------------------------------------------
# Header 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
有两个选项:您可以使用 include-before 字段,它适用于文本以及列表或表格。只要确保缩进表格即可。
---
toc: true
toc-title: Table des matières
include-before: |
----------------------------------------------------------------------
**VERSION** **DATE** **MODIFICATION** **AUTHOR**
----------- ------------- ------------------------------- -----------
1.0 20-12-2018 Initial DGO
----------------------------------------------------------------------
或者,您可以禁用 pandoc 的目录机制并手动添加 LaTeX 命令以在所需位置生成目录:
---
geometry: margin=1in
fontfamily: qbookman
numbersections: true
toc: false
header-includes: |
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{20pt}
\lhead{\includegraphics[width=4cm]{C:/logo.png}}
\rhead{Doc generator}
---
+---------------+---------------------------------------------------------------+
| **Title** | Markdown - Pandoc - Plantuml \
|
+---------------+---------------------------------------------------------------+
| **Customer** | Customer \
|
+---------------+---------------------------------------------------------------+
| **Project** | Doc generator
|
+---------------+---------------------------------------------------------------+
----------------------------------------------------------------------------------
**VERSION** **DATE** **MODIFICATION** **AUTHOR**
----------- ------------- ------------------------------------------- -----------
1.0 20-12-2018 Initial DGO
----------------------------------------------------------------------------------
\renewcommand*\contentsname{Table des matières}
\tableofcontents
# Header 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)