From e9f267fd4c8414d6146c5fee0dbe459613dd0f3b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 4 Apr 2023 03:01:33 +0000 Subject: CTAN sync 202304040301 --- macros/generic/markdown/examples/context-mkii.tex | 2 ++ macros/generic/markdown/examples/context-mkiv.tex | 6 ++++++ macros/generic/markdown/examples/example.md | 18 ++++++++++++++++++ macros/generic/markdown/examples/latex.tex | 2 ++ 4 files changed, 28 insertions(+) (limited to 'macros/generic/markdown/examples') diff --git a/macros/generic/markdown/examples/context-mkii.tex b/macros/generic/markdown/examples/context-mkii.tex index fcd6784eaf..e4f953c9a2 100644 --- a/macros/generic/markdown/examples/context-mkii.tex +++ b/macros/generic/markdown/examples/context-mkii.tex @@ -27,6 +27,8 @@ tableCaptions = yes, taskLists = yes, texMathDollars = yes, + texMathDoubleBackslash = yes, + texMathSingleBackslash = yes, ] % Set renderers of the Markdown module. diff --git a/macros/generic/markdown/examples/context-mkiv.tex b/macros/generic/markdown/examples/context-mkiv.tex index a4b9fd9472..9d485820cf 100644 --- a/macros/generic/markdown/examples/context-mkiv.tex +++ b/macros/generic/markdown/examples/context-mkiv.tex @@ -4,6 +4,10 @@ \setupexternalfigures[location={local,global,default}] % Load the Markdown module. +\startluacode +local kpse = require("kpse") +kpse.set_program_name("luatex") +\stopluacode \usemodule[t][markdown] % Set options of the Markdown module. @@ -27,6 +31,8 @@ tableCaptions = yes, taskLists = yes, texMathDollars = yes, + texMathDoubleBackslash = yes, + texMathSingleBackslash = yes, ] % Set renderers of the Markdown module. diff --git a/macros/generic/markdown/examples/example.md b/macros/generic/markdown/examples/example.md index 16d32368d9..8819ef5b67 100644 --- a/macros/generic/markdown/examples/example.md +++ b/macros/generic/markdown/examples/example.md @@ -177,3 +177,21 @@ $$ x^n + y^n = z^n $$ | even discontinuous | lines + +This is inline and display TeX math created using dollars signs: + +$E=mc^2$ + +$$E=mc^2$$ + +This is inline and display TeX math created using single backslashes: + +\(E=mc^2\) + +\[E=mc^2\] + +This is inline and display TeX math created using double backslashes: + +\\(E=mc^2\\) + +\\[E=mc^2\\] diff --git a/macros/generic/markdown/examples/latex.tex b/macros/generic/markdown/examples/latex.tex index fc7d6a0a2a..44736c61dc 100644 --- a/macros/generic/markdown/examples/latex.tex +++ b/macros/generic/markdown/examples/latex.tex @@ -35,6 +35,8 @@ tableCaptions, taskLists, texMathDollars, + texMathDoubleBackslash, + texMathSingleBackslash, ]{markdown} \begin{markdown*}{hybrid} --- -- cgit v1.2.3