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

Remove blank lines in LaTeX displaymath #58

Open
siwelwerd opened this issue Nov 22, 2021 · 0 comments
Open

Remove blank lines in LaTeX displaymath #58

siwelwerd opened this issue Nov 22, 2021 · 0 comments

Comments

@siwelwerd
Copy link
Contributor

LaTeX does not allow blank lines in displaymath. However, if one is not careful, the template can generate this. Example: https://github.com/StevenClontz/checkit-tbil-la-2021-dev/blob/65dc25b4f6c45a4d0992aa8701b984a19665e614/outcomes/LE4.xml#L12

Code:

Consider the following
{{#system}}
system of linear equations.
{{/system}}
{{#vec_eq}}
vector equation.
{{/vec_eq}}
      <me>
          {{system}}
          {{vec_eq}}
      </me>

If system or vec_eq is not defined (which should always happen here), this inserts a blank line before the vector equation, which causes an error in compiling LaTeX. This can probably be fixed by the user here by

<me>
       {{system}} {{vec_eq}}
</me>

but it would be ideal for Checkit to, whenever it encounters <me>, gobble up any blank lines.

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

No branches or pull requests

1 participant