-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating GlassBR HTML stable to use mathjax
- Loading branch information
Showing
1 changed file
with
40 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GlassBR really benefited quite a lot from this. Though
is-safeLR
seems like it ought to be aLABEL
rather than aVARIABLE
? Whole words shouldn't be 'raw' inside$$
.b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JacquesCarette, I think the problem with$\mathit{is-safeLR}$ . Could we do that here?
is-safe
is similar to the formatting problem we discussed for subscripts and superscripts (#1639, #1750). It is a variable, but formatting it as a variable using the usual LaTeX conventions will lead to something that is spaced incorrectly. Variables that use "words" are not that uncommon. When it comes up in my writing, I useb8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer
$\mathsf{is-safeLR}$
myself. But that ought to be a meta-choice. What is needed is to 'encode' that some variables are 'full words' rather than essentially-single-letter. Then the display mechanism (i.e. printer) can use that information to choose different ways of displaying those.So we have
Variable
andLabel
, we probably needLongVariable
too. Semantically it's still a variable, but it can be displayed differently. @samm82 implemented the first split, so perhaps this tweak is easiest for him?b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the distinction between a
Variable
and aLongVariable
? ie. which one wouldmin
orfinal
be? ShouldLabel
andVariable
only be used to modify a symbol (ie. as subscripts), whileLongVariable
would function as the "base" of a symbol?b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JacquesCarette, I use \mathit{} for variables, because of the convention that variables should be italics, but my (very) limited research shows that others do not stick to this. I believe Bill Farmer uses the same sans serif font idea that you use. I agree that this should be something that the user can decide.
@samm82, long variables are variables that are more than one character long.
b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, wouldn't it make more sense to just have the printer use
mathsf
if the string associated with theVariable
is more than one character and not add theLongVariable
constructor?b8481f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think there are 2-3 character variables that we can display 'normally'. As long as the italics ligatures are weird for any of the letters...