Test writing with LaTeX

Alumni make some of the best volunteers!
Post Reply
User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1384
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Has thanked: 2 times
Been thanked: 42 times

Test writing with LaTeX

Post by windu34 »

Hey all,
So I've recently discovered LaTeX (I know Im late to the game) and am curious to hear from those who have written exams using it and their thoughts on it. My initial concern was images are more difficult to include than in a word doc, but I realized I could just have a separate image packet, which is becoming a standard at many tournaments.
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
andrewwski
Admin Emeritus
Admin Emeritus
Posts: 962
Joined: January 12th, 2007, 7:36 pm
Division: Grad
Has thanked: 0
Been thanked: 17 times

Re: Test writing with LaTeX

Post by andrewwski »

Images are easier in LaTeX. Way less fighting to put them where you want them. For example:

Code: Select all

\begin{figure}[!h]
\centering
\includegraphics[width=6 cm]{Figure1.jpg}
\end{figure}
The "!h" forces the figure to appear exactly where you want it to.

The exam class makes the formatting pretty easy.

I use LaTeX almost exclusively.
syo_astro
Exalted Member
Exalted Member
Posts: 621
Joined: December 3rd, 2011, 9:45 pm
Division: Grad
State: NY
Has thanked: 3 times
Been thanked: 20 times
Contact:

Re: Test writing with LaTeX

Post by syo_astro »

First, not late at all! I didn't really get into LaTeX until my senior year of undergrad, so by no means is it essential earlier on. The main thing LaTeX teaches you is that templates vastly speed up writing regardless of the program you use or style you're writing in (exams, papers, etc).

One recommendation: If you use LaTeX, try to find a friend who already has a filled in template/test written. I think the biggest lesson you can learn with LaTeX is that usually someone else will have done what you're trying to do (like, image sheets and beyond). Formatting always sounds easy, but being new at anything means things will take time means wasting time. Disclaimer: I use word for my tests just because it's easy to copy and paste from my past tests...I'm sure exam class would make some things easier, but I find word works for making something quick [Though, as I hinted at, I do use LaTeX now for some things].
B: Crave the Wave, Environmental Chemistry, Robo-Cross, Meteo, Phys Sci Lab, Solar System, DyPlan (E and V), Shock Value
C: Microbe Mission, DyPlan (Fresh Waters), Fermi Questions, GeoMaps, Grav Vehicle, Scrambler, Rocks, Astro
Grad: Writing Tests/Supervising (NY/MI)
knightmoves
Member
Member
Posts: 637
Joined: April 26th, 2018, 6:40 pm
Has thanked: 4 times
Been thanked: 110 times

Re: Test writing with LaTeX

Post by knightmoves »

The "exam" documentclass is your friend. It also makes it easy to produce an answer sheet. I don't know how to do bubble/scantron style sheets for multiple choice, though. Anyone?
Jacobi
Exalted Member
Exalted Member
Posts: 137
Joined: September 4th, 2018, 7:47 am
Has thanked: 0
Been thanked: 0

Re: Test writing with LaTeX

Post by Jacobi »

knightmoves wrote:The "exam" documentclass is your friend. It also makes it easy to produce an answer sheet. I don't know how to do bubble/scantron style sheets for multiple choice, though. Anyone?
If you want a legit scannable scantron, than you have to purchase some brand of them.

If you just want a no-frills answer sheet (just Q #s and answer letters), then I would suggest that you don't need to make it bubble. A simple list in Word with some tabs (or a comparable setup in ) can be just as easy to grade (or perhaps easier, since you can actively see which answer was chosen instead of which was not filled).
User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1384
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Has thanked: 2 times
Been thanked: 42 times

Re: Test writing with LaTeX

Post by windu34 »

syo_astro wrote:First, not late at all! I didn't really get into LaTeX until my senior year of undergrad, so by no means is it essential earlier on. The main thing LaTeX teaches you is that templates vastly speed up writing regardless of the program you use or style you're writing in (exams, papers, etc).

One recommendation: If you use LaTeX, try to find a friend who already has a filled in template/test written. I think the biggest lesson you can learn with LaTeX is that usually someone else will have done what you're trying to do (like, image sheets and beyond). Formatting always sounds easy, but being new at anything means things will take time means wasting time. Disclaimer: I use word for my tests just because it's easy to copy and paste from my past tests...I'm sure exam class would make some things easier, but I find word works for making something quick [Though, as I hinted at, I do use LaTeX now for some things].
Thanks for the suggestions! I found a template test as you recommended and it looks like it will be fairly straightforward to edit.
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
itsDerk
Member
Member
Posts: 14
Joined: July 12th, 2019, 7:58 am
Division: Grad
State: OH
Has thanked: 0
Been thanked: 0

Re: Test writing with LaTeX

Post by itsDerk »

I know I'm not an alum but I stumbled onto this thread so I guess I'm gonna ask a troubleshooting question real quick.

I'm writing LMMM for the Solon invitational and I decided to use LaTex's exam class to create the answer sheet and key for it just because I wanted to learn Latex whatnot at some point.

So I tried doing something like this in the document:

\begin{questions}
\question
\begin[solutionorlines]
random solution text
\end[solution]
\end[questions]

I don't need to include any question text because LMMM is supposed to be stations, but then the "1." that should be generated for the question disappears when I'm not trying to print the answers, and everything is working correctly when I do use \printanswers at the top.

This might be a really random and really specific problem but maybe someone will know what's going on.

Thanks!
Solon High School Captain '20
UChicago '24
User avatar
antoine_ego
Exalted Member
Exalted Member
Posts: 387
Joined: May 24th, 2016, 5:37 pm
Division: Grad
State: MA
Has thanked: 0
Been thanked: 0

Re: Test writing with LaTeX

Post by antoine_ego »

itsDerk wrote: \begin{questions}
\question
\begin[solutionorlines]
random solution text
\end[solution]
\end[questions]
There are a couple of things wrong here. First, you should be using curly braces around all environment names, such as questions. The reason the number doesn't show up is because the questions environment, as defined in the exam class, basically has an "if nonempty" condition to it. A workaround is to just add a blank space to avoid this with a $\qquad$. Working code follows:

\documentclass{exam}
\begin{document}
\begin{questions}
\question $\qquad$
\begin{solutionorlines}
random solution text
\end{solutionorlines}
\end{questions}
\end{document}
Rest in Peace Len Joeris
[b]2016 Air Trajectory Nationals - 3rd
2018 Hovercraft Nationals - 6th
2018 Mousetrap Nationals - 6th
2018 Nationals - Team 9th Place!
2019 Astronomy Nationals - 3rd!
2019 Nationals - Team 9th Place!
[/b]
Acton-Boxborough Regional High School Captain 17-19
itsDerk
Member
Member
Posts: 14
Joined: July 12th, 2019, 7:58 am
Division: Grad
State: OH
Has thanked: 0
Been thanked: 0

Re: Test writing with LaTeX

Post by itsDerk »

antoine_ego wrote: January 20th, 2020, 5:51 am
itsDerk wrote: \begin{questions}
\question
\begin[solutionorlines]
random solution text
\end[solution]
\end[questions]
There are a couple of things wrong here. First, you should be using curly braces around all environment names, such as questions. The reason the number doesn't show up is because the questions environment, as defined in the exam class, basically has an "if nonempty" condition to it. A workaround is to just add a blank space to avoid this with a $\qquad$. Working code follows:

\documentclass{exam}
\begin{document}
\begin{questions}
\question $\qquad$
\begin{solutionorlines}
random solution text
\end{solutionorlines}
\end{questions}
\end{document}
Shoot I copied over what I typed wrong, I did in fact have the curly brackets. My bad.

Thanks for the workaround though, I’ll try it out soon. Sounds like it should work.

Thanks for the help!
Solon High School Captain '20
UChicago '24
Post Reply

Return to “Alumni”

Who is online

Users browsing this forum: No registered users and 1 guest