Last active
September 9, 2020 16:17
-
-
Save Liam0205/8789a1bcb5ecbdcd5681fe0050ca3ffb to your computer and use it in GitHub Desktop.
md -> tex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[UTF8]{ctexart} | |
\usepackage{zhlipsum} | |
\usepackage{markdown} | |
\markdownSetup{ | |
renderers = { | |
link = {#1}, % Render a link as the link label. | |
emphasis = {\emph{#1}}, % Render emphasis using `\emph`. | |
}, | |
hybrid = true, | |
fencedCode=true, | |
definitionLists=true, | |
footnotes=true, | |
html=true, | |
pipeTables=true, | |
preserveTabs=true, | |
tableCaptions=true, | |
inlineFootnotes=true, | |
} | |
\begin{document} | |
\begin{markdown} | |
# 测试 | |
## 正常行文 | |
_Hello,_ $E = mc^2$. | |
你好 \LaTeX{}! | |
> 千军万马避白袍。 | |
\zhlipsum | |
## 代码块 | |
``` | |
\documentclass{article} | |
\begin{document} | |
Happy \LaTeX{}ing! | |
\end{document} | |
``` | |
Python 当中可用 `print("foobar")` 将内容打印在标准输出。 | |
## 列表 | |
一段文字。 | |
* 无序列表 | |
* 张三 | |
* 李四 | |
一段文字。 | |
1. 有序列表 | |
1. 王五 | |
一段文字。 | |
## 表格 | |
| 序号 | 姓名 | | |
|-----|-----| | |
| 1 | 张三 | | |
| 2 | 李四 | | |
| 3 | 王五 | | |
: 测试 \textsc{php}Markdown 风格的三线表 | |
\end{markdown} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment