瀏覽代碼

Add inline code blocks by using newmintinline

We can now use \cpp|...| and \sh|...| to add inline code blocks, which
resembles the \verb|...| syntax

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
Chun-Hung Tseng 3 年之前
父節點
當前提交
fdc07d0008
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/codeblock.tex

+ 3 - 0
lib/codeblock.tex

@@ -32,3 +32,6 @@
   breakafter=d,
   linenos
 }
+
+\newmintinline[sh]{bash}{}
+\newmintinline[cpp]{c}{}