From fdc07d0008072fc40e4d55ed7d316f0699ca847c Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Sun, 8 Aug 2021 23:37:46 -0700 Subject: [PATCH] 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 --- lib/codeblock.tex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/codeblock.tex b/lib/codeblock.tex index dbeb90d..692fa55 100644 --- a/lib/codeblock.tex +++ b/lib/codeblock.tex @@ -32,3 +32,6 @@ breakafter=d, linenos } + +\newmintinline[sh]{bash}{} +\newmintinline[cpp]{c}{}