-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Changed LaTeX $\bot$s to ⊥ #19998
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
Changed LaTeX $\bot$s to ⊥ #19998
Conversation
We've previously rejected this patch, as the build doesn't actually build. Have you verified this works? |
Sorry I hadn't realized, I thought it was easy. So for successful inclusion, we would like an appropriately rendered One potentially overkill solution is a pandoc filter or a sed script that executes |
Adding the |
Even better, adding |
Me too 😭 We don't use pandoc, we use xelatex, iirc. I think there's actually two or
|
So the three output types are html, epub, and latex/pdf, and I found the commands for them with
Making the html file with
does specify the charset as
as long as the charset is specified to be Making the epub with
Changes both ⊥ and Making the pdf with
translates |
However, with Even better: putting the following in
Enables the literal ⊥ in textmode to be rendered properly in the pdf. Now it's just a matter of figuring how to include those lines in |
Makefile, --include-in-header |
e639974
to
0693cff
Compare
After b83c0e5, the html, pdf, and epub files generate correctly with ⊥. |
This looks good to me! I'm not as good with makefile stuff though, so I'd like @alexcrichton or @brson to take a look. In the menatime, would you mind squashing? And adding that this closes #15285 would be nice too :) |
b83c0e5
to
b227d29
Compare
What we have here is mostly a workaround but we should report it to jgm/pandoc (assuming that the latest version of pandoc still has the bug – bots run an older version). |
Hi @adrientetar: I'm not so sure that it is a bug, or if it is it's one that would be fairly difficult to correct. In order to fix the bug, pandoc would have to recognize a particular character as being a math mode one, and detexify the char to find a macro that describes it. |
Afaict:
In that case I think it'll just use math mode since it's wrapped in dollar signs. |
To be clear, ⊥ isn't wrapped in dollar signs in the latest commit. As to 2, I would think so but it doesn't seem to be the case: http://tex.stackexchange.com/questions/218746/is-it-possible-to-use-literals-like-%E2%8A%A5-outside-of-math-mode/218770?noredirect=1#comment513352_218770 |
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation. Part of the problem was that putting a math unicode character wasn't rendering properly in the pdf, so extra steps were needed to define the unicode charecter ⊥ in reference.tex closes rust-lang#15285
b227d29
to
4ee73a1
Compare
@adrientetar @steveklabnik is this good to go? |
@alexcrichton says the makefile looks good, and so do I. Not rolling up because of makefile changes. |
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation.
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation.
In the HTML version of the documentation, it isn't rendered so might as well use the unicode representation.