6,287 reputation
21748
bio website
location
age
visits member for 2 years, 1 month
seen 10 hours ago

2d
reviewed Approve complex table with split and merged cells
Dec
23
comment Spacing around math operator in sub-/superscript
Altough not for @SvendTveskæg, a general LuaTeX answer would be welcome.
Dec
21
reviewed Approve Combined list of tables and figures with separate numbering?
Dec
21
comment Wrapping text with curly braces
@MelvinRoest Just note than, apart from a group when used alone, they act “different” when a macro is scanning for its argument. When macro \foo looks for one argument, if it finds { as a following token, the content between {..} will be the argument (and this has nothing to do with groups). If the macro doesn't find a { then it takes the first token (e.g., \foo abc will be the same as \foo{a}bc).
Dec
19
comment Nested \def's causing \inaccessible error
@Ruben \uppercase is a primitive, so it has its own “syntax” (in this case, it requires the braces around the argument), \MakeUppercase is a normal defined macro which acts like all of them: if there are braces, then the argument is the content of the braces, if there are no braces, then the first token is the argument, so \MakeUppercase world would be converted to \uppercase{w}orld while \uppercase world would throw an error because the missing braces around w.
Dec
19
comment Nested \def's causing \inaccessible error
@Ruben I think, because \uppercase needs the {.} in its argument, i.e., \uppercase a wouldn't work. While \MakeUppercase a would work.
Dec
19
comment Nested \def's causing \inaccessible error
I think this can be answered with this answer.
Dec
19
comment Specify arc radius in coordinate systems units
You need that inside axis environment. The axis cs: part is not needed since pgfplots 1.11 IIRC.
Dec
18
comment “Runaway argument?” error with \NewEnviron
@DavidCarlisle I mean, define 2 auxiliar macros to pass the “content of the environment” to a third one. And then \myenv checks \@currenv and calls either one (which looks for \end{myenv}) or the other (which looks for \endmyenv) and then “the content” would be passed to a third one. I was asking more of trivial problems that would be created because of this (which I can't think of), I think it's “easy task” to define those macros.
Dec
18
comment “Runaway argument?” error with \NewEnviron
Would there be a problem if \myenv checked \@currenv and then if \@currenv = myenv => look for \end{myenv}; and if \@currenvmyenv then look for \endmyenv?
Dec
17
comment French spacing with xelatex and Minion Pro
@Bernard May be not font spec, but microtype?
Dec
17
reviewed Approve Problems aligning text in a table
Dec
17
reviewed Approve Change Picture with Javascript
Dec
16
comment Which software should I use for making high quality graphs?
knitr, sweave, pgfplots might be usefuul keywords.
Dec
15
comment Count number of entries with specific value
@SvendTveskæg Can't compile right now, so I don't know if it works. You will have to try. The thing is expanding the argument before scanning so you need to generate the x variant (and then use it). In any case, in case spaces were relevant, rember that \foo \bar have no space in between, so after expanding \fravaerElevEn \fravaerElevTo \fravaerElevTre you would end with 124.
Dec
15
comment Count number of entries with specific value
@SvendTveskæg Didn't read the whole code but using \cs_generate_variant:Nn \svend_count_occurrences:n { x } and using the \svend_count_occurrences:x in \countoccurrences may do it.
Dec
15
comment Is \c_empty_box intended to be used instead of \mbox{}
@DavidCarlisle Still, it's not clear to me. May be because I don't understand what are you showing from the .log/terminal. In any case, isn't this related because of the definition of \leavemode (something with \voidb@x). I don't know, I feel like something is missing from this answer :)
Dec
15
comment Is \c_empty_box intended to be used instead of \mbox{}
@DavidCarlisle I think this explains (in a “not so easy and understandable way”, IMO) what happens. But what should be done?
Dec
15
comment Is \c_empty_box intended to be used instead of \mbox{}
Side note: shouldn't \box_use:N be used?
Dec
15
comment Macros that can lead to double periods at end of sentence
\makeatletter\def\PhD{Ph.D\@ifnextchar.{}{.}}\makeatother