Pandoc在RawBlock中不包含用于乳胶图形的原始文本

时间:2018-11-15 14:27:57

标签: pandoc

这是输入:

\documentclass{book}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\chapter{Introduction}
\begin{figure}
  \centering
  \begin{tikzpicture}
    \draw [thick, ->] (0,1) -- (2,1);
  \end{tikzpicture}
  \caption{Some Caption}
\end{figure}
\end{document}

我运行了以下命令:

$ pandoc hello.tex -t json
{"blocks":[{"t":"Header","c":[1,["introduction",[],[]], 
[{"t":"Str","c":"Introduction"}]]},{"t":"RawBlock","c":["latex","\\centering"]}],"pandoc-api-version":[1,17,3,1],"meta":{}}

这是版本信息:

$ pandoc --version
pandoc 2.1.2
Compiled with pandoc-types 1.17.3.1, texmath 0.10.1.2, skylighting 0.6

您知道为什么原始文本中仅包含\centering吗?为什么与tikz相关的内容不包含在文本中?

0 个答案:

没有答案
相关问题