Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Latex 定义pandoc md到tex的转换规则?_Latex_Markdown_Pandoc_Tex - Fatal编程技术网

Latex 定义pandoc md到tex的转换规则?

Latex 定义pandoc md到tex的转换规则?,latex,markdown,pandoc,tex,Latex,Markdown,Pandoc,Tex,是否可以定义标题如何从降价转换为LaTeX 我想转换 # Heading 1 到 及 到 等等。有一个: 旧答案: 我认为您必须编写一个将标题整数递增1的函数,大致如下: #!/usr/bin/env runhaskell import Text.Pandoc.JSON main :: IO () main = toJSONFilter inchead where inchead (Header n attr xs) = Header (n+1) attr xs inch

是否可以定义标题如何从降价转换为LaTeX

我想转换

# Heading 1

等等。

有一个:

旧答案:


我认为您必须编写一个将标题整数递增1的函数,大致如下:

#!/usr/bin/env runhaskell
import Text.Pandoc.JSON

main :: IO ()
main = toJSONFilter inchead
  where inchead (Header n attr xs) = Header (n+1) attr xs
        inchead x = x

我想你必须写一个将标题整数增加1的函数…谢谢!我来看看
## Heading 2
\section{Heading 2}
pandoc --base-header-level=2
#!/usr/bin/env runhaskell
import Text.Pandoc.JSON

main :: IO ()
main = toJSONFilter inchead
  where inchead (Header n attr xs) = Header (n+1) attr xs
        inchead x = x