[ARCHIVED] Mathematical formulas to canvas from api

Jump to solution
cobal_3333
Community Explorer

Hello. please help me

How to add a question with mathematical formulas to canvas from api?

Labels (2)
0 Likes
1 Solution
James
Community Champion

 @cobal_3333 ,

Thanks for the clarification. I did misunderstand what you're wanting.

Is the problem in (1) creating a text question, (2) creating the mathematical content within the question, or (3) both?

The explanation of how to create a question at all is lengthy. Creating just the mathematical content is quicker.

For the mathematical content, do you have this as LaTeX or is it an image that you want to embed somewhere? If it's LaTeX, then you might want to look at Best way to add LaTeX equations . It's been almost 2 years since I contributed there, but I think it still works.


If it's an image, then you can just create an img element like you would with regular HTML, just make sure that it's to an HTTPS connection, otherwise the content will likely get blocked by browsers not wanting to mix https and http on the same page.

New Quizzes supports embedding LaTeX directly just by using \( and \) around it. However, I haven't seen an API for this yet and that approach doesn't work in the legacy quizzes.

View solution in original post

0 Likes