diff options
author | Norbert Preining <norbert@preining.info> | 2023-11-12 03:02:06 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-11-12 03:02:06 +0000 |
commit | 5ee22d8ea7f225ba59142a53f0387a2bccc22dde (patch) | |
tree | 63ca211ff5ff12c7f756ac8a197726c314eb980b /macros/latex/contrib/q-and-a/Q-and-A.cls | |
parent | e4ccc7921b6518e670428990524161b3ddbfebd2 (diff) |
CTAN sync 202311120302
Diffstat (limited to 'macros/latex/contrib/q-and-a/Q-and-A.cls')
-rw-r--r-- | macros/latex/contrib/q-and-a/Q-and-A.cls | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/macros/latex/contrib/q-and-a/Q-and-A.cls b/macros/latex/contrib/q-and-a/Q-and-A.cls index 618b7128ec..184cde054b 100644 --- a/macros/latex/contrib/q-and-a/Q-and-A.cls +++ b/macros/latex/contrib/q-and-a/Q-and-A.cls @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplClass {Q-and-A} - {2023/11/09} {} + {2023/11/11} {} {Document class for typesetting Q&A conversation} \keys_define:nn { Q-and-A } @@ -282,6 +282,20 @@ \definecolor{QA-code-comment}{RGB}{128,128,128} \definecolor{QA-code-string }{RGB}{ 5,165,126} \lstdefinelanguage{plaintext}{} +\lstdefinelanguage{Markdown}{ + keywords={ + \#,\#\#,\#\#\#,\#\#\#\#,\#\#\#\#\#,\#\#\#\#\#\#, + >, + ---,----,-----,------,-------,--------,---------, + }, + alsoletter={\#,>,*,-,`}, + moredelim=[s][\color{QA-code-string}\ttfamily]{`}{`}, + moredelim=[s][\itshape]{*}{*}, + moredelim=[s][\bfseries]{**}{**}, + moredelim=[s][\bfseries\itshape]{***}{***}, + morecomment=[s]{<!--}{-->}, + sensitive=true +} \lstdefinelanguage{JavaScript}{% https://tex.stackexchange.com/q/89574 keywords={abstract, any, as, boolean, break, case, catch, class, console, const, continue, debugger, declare, default, delete, do, else, enum, export, @@ -1139,11 +1153,11 @@ \regex_replace_all:nnN { \*\*\* (.*?) \*\*\* } - { \c{textbf} { \c{emph} {\1} } } + { \c{QAEmph} { \c{emph} {\1} } } \l_QA_tmp_tl \regex_replace_all:nnN { \*\* (.*?) \*\* } - { \c{textbf} {\1} } + { \c{QAEmph} {\1} } \l_QA_tmp_tl \regex_replace_all:nnN { \* (.*?) \* } |