Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

LaTeX \check{...} and \not{...} not working #7738

Open
Labels
keepItems to be ignored by the “Stale” Github Actiontopic: text/mathtext
@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:

fromnumpyimport*frommatplotlib.pyplotimport*#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 uncommentingusetex=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 whatcodecogs 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp