emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exam LaTeX class
@ 2021-03-18 13:46 Xianwen Chen (陈贤文)
  2021-03-19 10:13 ` Christine Köhn
  0 siblings, 1 reply; 5+ messages in thread
From: Xianwen Chen (陈贤文) @ 2021-03-18 13:46 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-28 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 13:46 Exam LaTeX class Xianwen Chen (陈贤文)
2021-03-19 10:13 ` Christine Köhn
2021-03-24 10:26   ` Xianwen Chen (陈贤文)
2021-03-24 13:16     ` Diego Zamboni
2021-03-28 16:33       ` Xianwen Chen (陈贤文)

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).