-
Notifications
You must be signed in to change notification settings - Fork 43
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
Added minimalinitialwidth dimension. #1251
Conversation
@@ -475,6 +480,11 @@ | |||
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}% | |||
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax% | |||
\global\gre@dimen@initialwidth=\wd\gre@box@initial % | |||
\ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax% | |||
\gre@style@initial% |
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.
the style
lines look a bit weird, what happens if you remove them?
@@ -444,6 +444,11 @@ | |||
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}% | |||
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax% | |||
\global\gre@dimen@initialwidth=\wd\gre@box@initial % | |||
\ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax% | |||
\gre@style@initial% |
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 copied that from the manualinitialwidth code immediately below. I'm pretty sure it's there to handle relative dimensions like em since space@dimen macros are text. Therefore, I don't think the style lines should be removed.
That is their purpose, but I think the need to be outside the conditional so that the comparison picks up the right font settings too. ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
|
Thanks for catching that. The review process is working! Fixed. |
ok, I think we can merge |
Fixes #1213.
Added a test for this new feature. No other tests change.
Please review and merge if satisfactory.