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

[FEATURE] Better-looking LaTeX source view #325

Open
mozhewen opened this issue Sep 3, 2024 · 0 comments
Open

[FEATURE] Better-looking LaTeX source view #325

mozhewen opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mozhewen
Copy link

mozhewen commented Sep 3, 2024

Description of the Problem

  1. We don't have to italicize every character in the tex source. For example numbers and brackets are better shown in a normal style.
  2. The unicode characters for \langle and \rangle are ⟨⟩ (U+27E8, U+27E9) instead of the CJK 〈〉 (U+3008, U+3009).

The first one may turn out to be my personal taste.

Description of the Solution

  1. This may be added to user's CSS snippets, or to styles.css.
span.cm-math {
    &.cm-number, &.cm-bracket, &.cm-tag, &.cm-error {
        font-style: normal;
    }
}
  1. Modify these lines:
    "left<": "〈",
    "right>": "〉",
    "langle": "〈",
    "rangle": "〉",
  • Before
    Screenshot 2024-09-04 at 00 32 36

  • After
    Screenshot 2024-09-04 at 00 34 43

@mozhewen mozhewen added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant