kisonecat / tikzjax

TikZJax is TikZ running under WebAssembly in the browser
LaTeX Project Public License v1.3c
437 stars 36 forks source link

Some symbols are not correctly rendered, for example, - is rendered as x #23

Open leozhangGit opened 10 months ago

leozhangGit commented 10 months ago
                \begin{tikzpicture}
                \draw[->] (-5,0) -- (5,0) node[right] {$x$};
                \draw[->] (0,-5) -- (0,5) node[above] {$y$};
                \foreach \x in {-4,-3,-2,-1,1,2,3,4} 
                    \draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north] {$\x$};
                \foreach \y in {-4,-3,-2,-1,1,2,3,4} 
                    \draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=east] {$\y$};
                \draw[domain=-2:3,smooth,variable=\x,blue] plot ({\x},{2*\x - 4});
                \end{tikzpicture}

image

leozhangGit commented 10 months ago

Also this case: "\node at (2, -5) {$y=2x-4$}".

AhmedSalih3d commented 4 months ago

Did you ever find a fix?

The same is true for Omega, doesnt render:

image

<script type="text/tikz">
  \begin{tikzpicture}
      % Draw dashed zero line
    \draw [dashed, thick] (-1,0) -- (1,0) node {$\Omega$};
    \draw [dashed, thick] (-1,-4) -- (1,-4) node {this renders};
  \end{tikzpicture}
</script>

A lot of the greek symbols this happens with.

leozhangGit commented 4 months ago

no fix found

On Tue, Feb 27, 2024 at 5:56 AM AhmedSalih3d @.***> wrote:

Did you ever find a fix?

The same is true for Omega, doesnt render:

image.png (view on web) https://github.com/kisonecat/tikzjax/assets/36305327/14555ff5-0596-441e-aaa3-765667e822e3

A lot of the greek symbols this happens with.

— Reply to this email directly, view it on GitHub https://github.com/kisonecat/tikzjax/issues/23#issuecomment-1966291318, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARO5CQEJHVCBTKRC44HCINDYVW3W3AVCNFSM6AAAAAA37UXRRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGI4TCMZRHA . You are receiving this because you authored the thread.Message ID: @.***>