Placing and formatting code and math expressions in test questions

Community Novice

Hi.  I'm looking embed code and equations in test questions.  I had to resort to embedding pictures, which seems like what others use.  I tried using the html editor, but it was tough to make it look good enough (and I had spent enough time on it already).  I had to put a lot of style parameters on the <P> and such.

My thought would be to embed a pdf as I'm using latex to produce the paper version of the test anyway.  Here's a sample of what I'm doing.  I saw a question about simple equations.  But here, I need a bit more than simple algebraic expressions.  It's unclear how to get this into Canvas.

some math formulas that have at least one fancy character.344928_math-hints.png