TransWikia.com

Generating jpg images of Questions and Options in Exam Class through any method

TeX - LaTeX Asked on February 15, 2021

The following is a code of TeX file.

begin{document}
begin{questions}
question  Sample Question
begin{choices}
choice choice 1
choice choice 2
choice choice 3
choice choice 4
end{choices}
end{questions}
end{document}

Is it possible to have make4ht or htlatex or lua Code or any other method which will produce jpg image of each question and each option (so sample question in above tex file will generate five images : one for question and other for four options.) The jpg file should not include question number and option label. At the end images are to be named as 1.jpg, 2.jpg, 3.jpg, 4.jpg, 5.jpg for question 1 and its four options. The second question will have five images named as 5.jpg, 6.jpg, 7.jpg, 8.jpg, 9.jpg, 10.jpgand so on.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP