我想导出一个文本文档,它使用考试类进行标记。为此,我目前正在使用这个answer中建议的解决方案,它依赖伪定义,而伪定义又覆盖了考试类的定义,这样pandoc就可以生成一个干净的标记文件。
虽然解决方法适用于建议的多项选择题,但我不能采用解决方案来处理“填入空白”的文本,例如下面的文档:
\documentclass[answers]{exam}
\usepackage{minted}
\let\oldpart\part
\renewcommand{\part}[1][]{\oldpart[#1]{}}
\begin{document}
\begin{questions}
\question Exercise 1
\begin{parts}
\part[1] This fills in the \fillin[blanks][3cm]
\end{parts}
\end{questions}
\end{document}如果在单独的文件中使用以下伪定义:
% ignore \part
\renewcommand{\part}[0][1]{}
% Treat checkboxes like an itemized list
\newenvironment{checkboxes}{\begin{itemize}}{\end{itemize}}
\renewcommand{\CorrectChoice}{\item ☒ }
\renewcommand{\choice}{\item ☐ }
\renewcommand\fillin[2][{}]{\textbf{#1}}我得到了下面的细分输出
This fills in the **blanks**3cm\]此外,pandoc是否有一种方法可以忽略\begin{parts}和\end{parts},以便在最终的Markdown文件中没有:::?
发布于 2022-12-02 18:40:31
\fillin问题可以用
\newcommand{\fillin}[1][1]{\textbf{#1}\noop}而parts div可以用
\newenvironment{parts}{}{}https://stackoverflow.com/questions/74646430
复制相似问题