Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No images in latex forms #160

Open
monnardj opened this issue Oct 19, 2021 · 2 comments
Open

No images in latex forms #160

monnardj opened this issue Oct 19, 2021 · 2 comments

Comments

@monnardj
Copy link

monnardj commented Oct 19, 2021

As mentioned in issue 135, latex forms do not include images from the questions (whereas pdf and docx forms include them). This is confirmed when looking at the code in latexlib.php.

For teachers using both formulas and images, this is a problem : to get good looking formulas, they should use latex forms. But then, images are not displayed in the forms.

Maybe the readme or the doc should mention this (as long as the issue persists).

@goggo24
Copy link
Member

goggo24 commented Oct 22, 2021

Images are not included in the latex forms - that's right. But if you use pdf and docx instead, latex forms should work there too.

@monnardj
Copy link
Author

Latex notation works in pdf and docx. But the results are not very good looking, as they are generated via texlive. Also, sometimes, formulas are misaligned. If you use lots of latex, as some of our teachers do, then question forms in latex format are much better. What they ended up doing is re-adding the images manually in the latex forms with \includegraphics.

Since the code for images already exists for docx and pdf forms, it shouldn't be too complex to add it to latex forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants