693 reputation
214
bio website
location
age
visits member for 1 year, 11 months
seen 5 hours ago
stats profile views 29

1d
awarded  Popular Question
Apr
4
comment Is it okay for a command to slurp more arguments than it is passed to?
What are the disadvantages of doing this? Does this break etoolbox patching for example?
Jan
31
awarded  Popular Question
Jan
10
awarded  Critic
Jan
10
comment Macro that knows it is at the end of a section?
Ah, I think I understand. Thank you very much!
Jan
10
comment Macro that knows it is at the end of a section?
Thanks for the update! It seems to me that eTeX marks would be easier than labels for detecting when a section starts at the top of a new page. For example, put \marks1{starts at top of page} before the break, \marks1{starts in middle of page} after the break, and look at \botmarks1 in \afterpage. Do I misunderstand how marks and labels work? (Sorry for all of these questions, I'm still very new to all of this.)
Jan
9
comment Macro that knows it is at the end of a section?
By "adding labels before and after the breakpoint added by the heading", do you mean add \label before and after \addpenalty\@secpenalty\addvspace\@tempskipa in the definition of \@startsection (e.g., by using \pretocmd on both \@startsection and \@xsect)?
Jan
9
accepted Macro that knows it is at the end of a section?
Jan
3
comment Declare acronyms and abbreviations to automatically correct spaces after periods?
@barbarabeeton: There are two ways to make the space after a period behave like a normal inter-word space: foo.\@ bar or foo.\ bar. I was hoping there was a way to automatically add \@ after declared acronyms (like RAM) and abbreviations (like etc.) but with a way to manually cancel it when I want the normal TeX behavior (e.g., when an acronym ends a sentence). From egreg's response, it doesn't sound like this is possible.
Jan
3
accepted Declare acronyms and abbreviations to automatically correct spaces after periods?
Jan
3
comment Declare acronyms and abbreviations to automatically correct spaces after periods?
Thanks! Too bad it can't be automatically done. I'm just as likely to remember to type \abbr{} or \acro{} as I am to type \@. :)
Jan
3
comment Declare acronyms and abbreviations to automatically correct spaces after periods?
Shouldn't \newcommand{\@abbr}[1]{#1\@.} be \newcommand{\@abbr}[1]{#1.\@}?
Jan
2
comment Declare acronyms and abbreviations to automatically correct spaces after periods?
@ArTourter: True. In that case, I'd add an \@ to force it to be interpreted as a sentence-ending period. For example: I like citrus flavors: orange, lemon, lime, etc\@. They are tasty. I rarely end sentences with an abbreviation, so inverting the default behavior of periods after abbreviations would fix more than it would break.
Jan
2
asked Declare acronyms and abbreviations to automatically correct spaces after periods?
Oct
25
awarded  Notable Question
Jul
9
awarded  Nice Question
Jun
17
awarded  Yearling
May
16
awarded  Popular Question
Apr
30
awarded  Nice Question
Apr
14
accepted error when patching with etoolbox \apptocmd: “the patching command seems to be nested in the argument to some other command”