Pandoc:如何在内容的 table 之前添加 table ?
Pandoc : How to add a table before the table of content?
我想在 pandoc/markdown 生成的内容的 table 之前添加一个 table。
我找到参数 "include-before"。有了这个,我可以在内容的 table 之前添加文本。但是有没有办法添加一个 table ?
在下面显示我的代码。我希望目录位于两个 tables 和 header1 之间,而不是在 tables.
之前
还有其他方法可以实现吗?我想只用一个文件生成。
感谢您的帮助
---
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 字段,它适用于文本以及列表或 tables。只需确保缩进 table.
---
toc: true
toc-title: Table des matières
include-before: |
----------------------------------------------------------------------
**VERSION** **DATE** **MODIFICATION** **AUTHOR**
----------- ------------- ------------------------------- -----------
1.0 20-12-2018 Initial DGO
----------------------------------------------------------------------
或者,您可以禁用 pandoc 的目录机制并手动添加 LaTeX 命令以在所需位置生成 table 内容:
---
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.
我想在 pandoc/markdown 生成的内容的 table 之前添加一个 table。
我找到参数 "include-before"。有了这个,我可以在内容的 table 之前添加文本。但是有没有办法添加一个 table ?
在下面显示我的代码。我希望目录位于两个 tables 和 header1 之间,而不是在 tables.
之前还有其他方法可以实现吗?我想只用一个文件生成。
感谢您的帮助
---
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 字段,它适用于文本以及列表或 tables。只需确保缩进 table.
---
toc: true
toc-title: Table des matières
include-before: |
----------------------------------------------------------------------
**VERSION** **DATE** **MODIFICATION** **AUTHOR**
----------- ------------- ------------------------------- -----------
1.0 20-12-2018 Initial DGO
----------------------------------------------------------------------
或者,您可以禁用 pandoc 的目录机制并手动添加 LaTeX 命令以在所需位置生成 table 内容:
---
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.