View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000621 | luatex | to be considered | public | 2011-05-05 00:58 | 2016-09-16 11:03 |
Reporter | phi | Assigned To | Hans Hagen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Core 2 Duo | OS | Mac OS X | OS Version | 10.6.7 |
Product Version | 0.66.0 | ||||
Target Version | maybe never (> v 1) | ||||
Summary | 0000621: Actual mathstyle differs from \mathstyle after \mathchoice | ||||
Description | If the mathstyle is altered directly inside a \mathchoice, the new style is still active after the mathchoice. However, the \mathstyle command expands to the style that was active before the mathchoice. | ||||
Steps To Reproduce | Plain example: \def\1{\;a^a\mathstyle\;} $$ \1 \mathchoice{\scriptstyle\1}{}{}{} \1 $$ \bye The third part is typeset in scriptstyle, but reads a^a0. | ||||
Additional Information | BTW, is there a reason why \mathchoice is not an integer parameter? | ||||
Tags | math | ||||
|
the last question should read: BTW, is there a reason why *\mathstyle* is not an integer parameter? |
|
To answer the last question: because it is read-only. |
|
I think it would be more consistent to turn \mathstyle into a read-only integer parameter like \lastpenalty or \inputlineno. |
|
one can use grouping ... it's mostly a scanner issue as the choice scanner doesn't restore the math style as seen during scanning .. changing that now is asking for compatibility problems \def\1{a^a[\mathstyle]} $$ \1 {\mathchoice{\scriptstyle(\1)}{}{}{}} \1 \mathchoice{\scriptstyle<\1>}{}{}{} \1 $$ we can decide to add an option to restore the style after scanning choinces by default |
|
will be explained in manual ... behaviour is as expected |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-05-05 00:58 | phi | New Issue | |
2011-05-05 00:59 | phi | Note Added: 0000832 | |
2011-05-05 07:46 | Taco | Status | new => assigned |
2011-05-05 07:46 | Taco | Assigned To | => Taco |
2011-05-05 07:46 | Taco | Note Added: 0000833 | |
2011-05-05 13:49 | Taco | Target Version | => 0.80.0 |
2011-07-14 12:18 | phi | Note Added: 0000904 | |
2012-04-09 04:53 | Khaled Hosny | Tag Attached: math | |
2015-10-25 10:04 | Hans Hagen | Target Version | 0.80.0 => 0.85.0 |
2015-10-25 11:28 | Hans Hagen | Note Added: 0001483 | |
2015-11-03 23:14 | Hans Hagen | Category | luatex bug => to be considered |
2015-11-05 11:08 | Hans Hagen | Target Version | 0.85.0 => 0.90.0 |
2015-11-11 22:56 | Hans Hagen | Assigned To | Taco => Hans Hagen |
2015-11-12 15:38 | Hans Hagen | Target Version | 0.90.0 => maybe never (> v 1) |
2016-09-16 11:03 | Hans Hagen | Note Added: 0001644 | |
2016-09-16 11:03 | Hans Hagen | Status | assigned => closed |
2016-09-16 11:03 | Hans Hagen | Resolution | open => no change required |