writefreely / writefreely/writefreely

LaTeX not correctly rendered

Open
#1,020 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

post rendering
Dominant language
Go
Stars
5.3k
Forks
398
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Some LaTeX rendering is not correctly displayed.

Matrices and column vectors are not displayed and, when they are, they look as row vectors.

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. create a new entry and type this code
\ket{0} =\begin{pmatrix} 1 \\ 0\end{pmatrix}
  1. Publish the page and look at the LaTeX code rendering.
Expected behavior

It should be displayed as a column vector but I see it as a row vector.

This is the rendering:

image

And this is what should look like:

image
Application configuration
  • Single mode or Multi-user mode?

Multi User

  • Database? [mysql/sqlite]

I don’t know I’m not the admin

  • Open registration? [yes/no]

No. Users have to be added by admins

  • Federation enabled? [yes/no]

I don’t know

Version or last commit: v0.15.0


I would say that adding the command

\usepackage{amsmath}

to the LaTeX default runtime would solve it. I tried by doing it in my own pages but these commands are not accepted, they must be part of the runtime.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a new entry using the provided LaTeX matrix and column-vector example, then inspect the LaTeX default runtime referenced in the report. Compare the published rendering with the expected column-vector image and verify that the finished change renders matrices and column vectors correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.