-
Notifications
You must be signed in to change notification settings - Fork 761
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
Fixed nesting bugs for notes and examples #238
Conversation
I've updated this pull request to work with the latest master branch. |
I like the change from \notes to \remarks and your rationale for the rest seems convincing (but it's @zygoloid that needs to be convinced.) Are the only real "nesting bugs" that it fixes the ones in utilities.tex on |
Here is a list of nesting errors that I found:
|
I like the idea of this change. I have just a couple of comments on the patch:
It seems like overkill to add extra packages for this; instead, please hardcode the capitalized and uncapitalized forms of Can you split the |
@zygoloid, I can write the I can't, however split the |
Can't you make a patch that only does the |
@zygoloid, yes, I can do that. Do you want it as a separate pull request or just separate commits? |
Separate commits is fine. Thanks! |
@zygoloid, okay, have a look now and see what you think. |
Sorry for the delay in getting back to you. I'm very happy with this going ahead; next steps are:
Thank you very much for pursuing this! |
@zygoloid, sounds good. I'll rebase and update the patches soon. Thanks! |
dc6c1bb
to
4e00f61
Compare
@zygoloid: Okay, this should be up to date again. Let me know if there's anything else I can do to help! CC: @jwakely, @burblebee, @W-E-Brown. |
4e00f61
to
fd81eaa
Compare
@zygoloid, @jwakely, @burblebee, @W-E-Brown: I've rebased so it should once again be a clean merge. |
fd81eaa
to
2fe99b6
Compare
2fe99b6
to
d764baf
Compare
@zygoloid, @jwakely, @burblebee, @W-E-Brown: I've rebased so it should once again be a clean merge. |
d764baf
to
82560d5
Compare
Ping to the reviewers. If this change is good, then it's worth seeing it through before it drifts away too much. A large change like this is hard to maintain over long periods of time. |
82560d5
to
2009c62
Compare
Let me know whenever you decide you'd like to review/merge this pull request and I'll updated it to merge cleanly against HEAD. |
If you can update this again I'll review it this week. Thanks. |
@godbyk: Hi - could you please take another look? |
Since this PR appears to have been abandoned, I pulled out the first of its two commits into the new PR #633. |
I apologize for the delay on this. I didn't notice the comments on the pull request until just now. I'll update this shortly. |
2009c62
to
dc31964
Compare
The new \begin{note}
This is a typical note.
\end{note}
\begin{note}[Note A]
This note is labeled ``Note A.''
\end{note} renders as:
|
I've rebased it on master, the result is at jwakely@734b404 However there is some extra whitespace introduced after the new Note and Example environments are opened and closed, e.g. |
@jwakely: I think that's acceptable. Having a fully puncutated Note inside an itemizing, running sentence is a typographical travesty as it stands, and space of no space are not going to make it any better. Neither style is worse than the other. |
I don't think it's acceptable. I'm certainly not going to merge my branch to master like that, but if @zygoloid wants to that's his call. The change revealed a number of other bugs though, such as [meta.trans.arr] using Tables 20 and 55 look better too. |
I'll rebase this on master and also look into correcting the spacing issue that @jwakely caught. |
@godbyk: maybe hang on just a bit, I've already sent jwakely a fix for his fork of your branch, maybe we don't need to duplicate the work? |
dc31964
to
02a4789
Compare
To fix the spacing, I removed the trailing |
@@ -424,8 +424,8 @@ | |||
|
|||
\pnum | |||
Throughout this International Standard, each example is introduced by | |||
``\enterexample'' and terminated by ``\exitexample''. Each note is | |||
introduced by ``\enternote'' and terminated by ``\exitnote''. Examples | |||
``\begin{example}'' and terminated by ``\end{example}''. Each note is |
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.
This isn't a legitimate way to use environments.
(I have already fixed that in a separate branch.)
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.
@tkoeppe I agree. Would you like me to adjust my branch? Is there anything else I can do at this time to assist with this PR?
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.
Closed in favor of #759. |
Now merged - thanks for doing all the initial work on this. |
@jwakely Thanks for working to get it merged in! |
Based on changes by Kevin Godby and Thomas Köppe from cplusplus/draft#238
I replaced
\enterexample
and\exitexample
with\begin{example}
and\end{example}
, respectively. Similarly for\enternote
and\exitnote
.By using environments, LaTeX can detect missing
\end{...}
markers and incorrectly nested environments (i.e., closing the outer environment before closing the inner environment).The side effects of this change are that any new markup should make the following changes:
\enterexample
to\begin{example}
.\exitexample
to\end{example}
.\enternote
to\begin{note}
.\exitnote
to\end{note}
.\note
to\remark
. (Because\note
conflicts with\begin{note}
. The output is the same as it was previously.)\notes
to\remarks
. (For consistency. The output is the same as it was previously.)