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

Underline not rendered correctly #114

Open
aranvir opened this issue Jun 23, 2022 · 1 comment
Open

Underline not rendered correctly #114

aranvir opened this issue Jun 23, 2022 · 1 comment

Comments

@aranvir
Copy link

aranvir commented Jun 23, 2022

Hi, I'm experiencing an issue when using the \underline command. For both, asciimath and latexmath it is rendered correctly, but when I'm generating a PDF from it, it does not work correctly. This happens for inline formulas and for blocks. In my example using asciimath, \underline does not work in a [stem] block but only for the inline formula.

PDF Rendering:
image

HTML Rendering:
image

For document generation, I'm using the asciidoctor docker: https://hub.docker.com/r/asciidoctor/docker-asciidoctor/ (at time of writing: asciidoctor 2.0.17, asciidoctor-pdf 2.1.2, asciidoctor-mathematical 0.3.5)
For generation commands I'm using a gitlab pipeline:

adoc:
  stage: docs
  image: asciidoctor/docker-asciidoctor
  script:
    - asciidoctor-pdf -v
    - asciidoctor-pdf -r asciidoctor-mathematical -a mathematical-format=svg adoc/demo_asciimath.adoc
    - asciidoctor-pdf -r asciidoctor-mathematical -a mathematical-format=svg adoc/demo_latexmath.adoc
    - asciidoctor adoc/demo_asciimath.adoc
    - asciidoctor adoc/demo_latexmath.adoc
  artifacts:
    paths:
      - adoc/*.html
      - adoc/*.pdf

I uploaded my demo files below (adoc, html, pdf)
adoc_math_demo.zip

@edxu96
Copy link

edxu96 commented May 17, 2023

I'm relying on a workaround: \underset{\mathbf{-}}{Q}.

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

2 participants