emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Xianwen Chen (陈贤文)" <xianwen.chen@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Exam LaTeX class
Date: Thu, 18 Mar 2021 13:46:50 +0000	[thread overview]
Message-ID: <f52b62b8ae7eae4f684fbf20756428f8@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

Does someone have experiences with the exam LaTeX class: 

I made a simple hack to make it work, by adding the following lines to 
the .emacs file:

(add-to-list 'org-latex-classes
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

The next step I'm trying to do, but don't know how, is to ask LaTeX 
exporter to create two exports to PDF.

One export is the usual export.

The other export is to have [answers] in \documentclass, which in LaTeX 
will be:


When answers is specified, the resulted PDF will include the solutions 
that are preset in the solution environments.

The switch of printing or hiding solution environments can also be 
achieved by one of the following preamble codes: \printanswers or 

I guess one way is to modify the org-latex-export-to-pdf function, so 
that when the document class is exam, the exporter first export without 
solutions, and then export to an other PDF file (such as 

But maybe someone else has hacked on the exam document class as well and 
would like to share their experiences?


[-- Attachment #2: Type: text/html, Size: 1706 bytes --]

             reply	other threads:[~2021-03-18 13:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 13:46 Xianwen Chen (陈贤文) [this message]
2021-03-19 10:13 ` Exam LaTeX class Christine Köhn
2021-03-24 10:26   ` Xianwen Chen (陈贤文)
2021-03-24 13:16     ` Diego Zamboni
2021-03-28 16:33       ` Xianwen Chen (陈贤文)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f52b62b8ae7eae4f684fbf20756428f8@gmail.com \
    --to=xianwen.chen@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).