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

Fix symbols LaTeX output #323

Merged
merged 3 commits into from Jul 3, 2014
Merged

Fix symbols LaTeX output #323

merged 3 commits into from Jul 3, 2014

Conversation

laughinghan
Copy link
Member

Was careless when writing these: #13 (comment)

Fix these, which aren't real LaTeX commands, to output the correct LaTeX for them.

Continue to put off dealing with #224

\slash isn't LaTeX, but '/' is: http://mathb.in/17532

Typing '/' results in LiveFraction, so need \slash so it's even possible
to type that character.

Also, not a delimiter so move out of the 'delimiters' section, to the
'various symbols' section.
Can just use \_ for \underscore instead: http://mathb.in/17532

\caret is more annoying, settling for \text{^} (this is in
advancedSymbols.js anyway):
http://tex.stackexchange.com/questions/77646/how-to-typset-the-symbol-caret-circumflex-hat
desa added a commit that referenced this pull request Jul 3, 2014
@desa desa merged commit 18eca7b into dev Jul 3, 2014
@desa desa deleted the fix.symbols branch July 3, 2014 03:05
laughinghan added a commit that referenced this pull request Feb 16, 2016
Ugh.

As noted in 0afc6ab on #323, neither of these are real LaTeX commands.

The real LaTeX command for an underscore character is simply `\_`:
  http://mathb.in/52174
That'd be great except that there's no easy way for MathQuill to parse
`\_` differently from plain `_` because the way the parser works,
there's just one registry entry `LatexCmds._` that parses both.

There is no one real LaTeX command for a caret character. This post
suggests 8 ways to show various caret-like characters in real LaTeX:
  http://tex.stackexchange.com/a/77647
Only 4 of those 8 ways work in MathJax, and only one of those 4 is a
normal caret character: http://mathb.in/52187
Only 2 work in KaTeX v0.5.1, and neither are normal caret characters.
The thing that works in MathJax is `\verb`, whose name is short for
"verbatim" and is essentially the LaTeX equivalent of HTML's <pre>,
which is really not worth our time fully implementing (which is why
KaTeX doesn't have it).

Simpler to just have no way of displaying a caret character, like KaTeX.
laughinghan added a commit that referenced this pull request Feb 17, 2016
...that are just aliases for the '[' and ']' vanilla symbols.

Before #262, \lbrack and \rbrack were parsed in the same totally broken
way that \lparen, \lbrace etc were.

\lparen is not a real LaTeX command and since it was so broken I highly
doubt anyone was relying on how it was parsed, so it's okay that it was
removed in #262.

However, unlike \lparen but like \lbrace, \lbrack and \rbrack are real
LaTeX commands [1]. So, like we did for \lbrace and \rbrace in 38c2b09
on #323, add vanilla symbols for them.

[1]: http://tex.stackexchange.com/a/45984
also, http://tex.stackexchange.com/a/294104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants