8000 LaTeX \check{...} and \not{...} not working · Issue #7738 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
LaTeX \check{...} and \not{...} not working #7738
Open
@mxmlnkn

Description

@mxmlnkn

When trying \check{k} or \not{k} the accent is rendered left of k, not above k:
testaccents
This is the code to create the above image:

from numpy import *
from matplotlib.pyplot import *

#matplotlib.rc('text', usetex=True)
figure( figsize=(6,1) )
axis('off')
title( r"|$\check{k}$|$\hat{k}$|$\dot{k}$|$\ddot{k}$|$\grave{k}$|$\acute{k}$|$\tilde{k}$|$\breve{k}$|$\bar{k}$|$\not{k}$|$\vec{k}$|$\widetilde{k}$|$\widehat{k}$|$\overleftarrow{k}$|$\overrightarrow{k}$|$\overline{k}$|" )
# Unknown symbol: \underline (at char 0), (line:1, col:1)
# Unknown symbol: \overbrace (at char 0), (line:1, col:1)
# Unknown symbol: \underbrace (at char 0), (line:1, col:1)
# $\underline{k}$|$\overbrace{k}$|$\underbrace{k}$|
tight_layout()
savefig( "testAccents.png" )
show()

When uncommenting usetex=True the output is:
testaccentsusetextrue
I.e. the accents are rendered correctly now, but the vertical bars are for some reason rendered as horizontal bars suddenly. Not sure if I should open yet another issue for that?

Just for comparison, this is what codecogs renders:
codecogseqn-testcheck

Also as indicated in the sourcecode \underline{...} \overbrace{...} \underbrace{...} don't work at all. I tested those, because they were in the same "accent"(?)-category in the codecogs equation editor.

System:

  • Debian Sid
  • python-matplotlib 1.5.3-1
  • python 2.7.11-2
  • Everything installed through apt-get

Metadata

Metadata

Assignees

No one assigned

    Labels

    keepItems to be ignored by the “Stale” Github Actiontopic: text/mathtext

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0