You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the same element in text vs math is semantically different and it would be helpful to have a show rule apply in text but not in math, or the other way.
Use Case
For example I might want to treat ? as a normal character in math mode to avoid the extra spacing:
#show math.equation: it =>{
show "L" : math.cal
it
}
$
L "is the Lagrangian."
$
I don't think #1125 would solve it? As I understand, once #1125 is done the text part will use the normal text font, but it will still be in the scope of the equation so it would still be subject to the show rule.
I guess it might go unnoticed if math.cal happens to work on normal text without any effect, but e.g. showing the Lagrangian symbol in red for example would also affect the text?
Activity
PgBiel commentedon May 15, 2024
The solution presented at #2273 (comment) would be the way to go, but fully fixing the pitfall at #2273 (reply in thread) would require solving #1125
sijow commentedon May 15, 2024
In that example:
I don't think #1125 would solve it? As I understand, once #1125 is done the text part will use the normal text font, but it will still be in the scope of the equation so it would still be subject to the show rule.
I guess it might go unnoticed if
math.calhappens to work on normal text without any effect, but e.g. showing the Lagrangian symbol in red for example would also affect the text?PgBiel commentedon May 15, 2024
#1125 would solve it because you'd write
show math.varinstead ofshow math.equationsijow commentedon May 15, 2024
Ah I see. Would that also apply to the question mark?
PgBiel commentedon May 15, 2024
Outside of
"quotes", yes, likely.Enivex commentedon May 17, 2024
Duplicate of #254