edulinq / quizgen

MIT License
4 stars 0 forks source link

Text in TeX Answer Keys May Not Be Valid #4

Open eriq-augustine opened 8 months ago

eriq-augustine commented 8 months ago

Right now, text boxes are created with tkiz (so we can get accurate coordinates for bounding boxes). When creating an answer key, we right inside those boxes using an optional parameter to the functions that create those boxes. But, we may have text (especially for short answer questions) that causes our TeX to not compile for answer keys.

I believe the flow is as follows: QuizGen Parsed Document -> Tex -> Tex Command Optional Parameter -> Tkiz Node Text

We need to somehow make an arbitrary document (which in the case of short answer can literally have anything) work in the above flow (or figure out something safer).