Reputation
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 28 74
Impact
~167k people reached

20h
revised How to implement a text “within” an arrow in math mode?
added 44 characters in body
20h
comment How to implement a text “within” an arrow in math mode?
I can't use width("\noexpand\scriptsize#2") properly, if someone could add that (removing the need of \newlength\tmplength and \settowidth, etc. I would appreciate it.
20h
revised How to implement a text “within” an arrow in math mode?
added 44 characters in body
20h
revised How to implement a text “within” an arrow in math mode?
added 44 characters in body
20h
revised How to implement a text “within” an arrow in math mode?
added 18 characters in body
20h
answered How to implement a text “within” an arrow in math mode?
2d
comment Mathematical formula alignment
I would use something like \newcommand*\mvar{\mathrm} and then use \mvar{processTime}, \mvar{calcRate}, etc. Apart from that I don't know why \\[2ex] I think \\ looks just fine. (And, ideally, may be even load siunitx and set it up so one could use \si{\byte\per\second} but that might just be an overkill.)
2d
comment expl3 par and sequences
@JosephWright I mean just to avoid typing in the future (I answered because you could see similar code in my .tex, I don't know Bob's reason). \NewDocumentCommand \foo { s o m } { \bob_foo:n { #3 } } just so I don't have to change #1 to #3 in the future. Pure laziness, at least on my side.
2d
comment expl3 par and sequences
@JosephWright May be to easily expand the command in the future? I tend to add so to certain macros that might need \foo* or even \foo[..] just to make it easy in the future.
Feb
3
comment Making a thicker \cdot for dot product (that is thinner than \bullet)
That's how \mathpalette works, the #1 that is passed to \bigcdot@ is the current math style (\displaystyle, \textstyle, \scriptstyle, or \scriptscriptstyle depending on the case).Basically what mathpalette does is taking two arguments, and passing the currentstyle in first place and the second argument after it, so \mathpalete\foo{whatever} ends up being for instance \foo\displaystyle{whatever}, so you have to define \foo accordingly.
Jan
29
comment How to type Unicode in plain TeX
In (Xe|Lua)TeX just \char"<hex> works, or may be the expandable \Uchar"<hex>.
Jan
28
comment expl3 variables and functions
@JosephWright I know. That's why I say might be misleading.
Jan
28
comment expl3 variables and functions
@Bob Indexable data structure, well, seq is indexable: \seq_set_split:Nnn \l_tmpa_seq {,} {whatever,you,want} \seq_item:Nn \l_tmpa_seq {2} returns you.
Jan
28
comment expl3 variables and functions
@Bob I may be misleading you. Please don't pay much attention, I might even delete the answer so others can give a clean and complete answer.
Jan
28
revised expl3 variables and functions
added 527 characters in body
Jan
28
revised expl3 variables and functions
added 527 characters in body
Jan
28
comment expl3 variables and functions
@Bob A tl is like a string in other languages (e.g., "String", so the third item would be "r" in expl3). A seq is similar to an array that stores any kind of code inside each entry. In this case you could use clist that also ignores spaces around commas. Note I'm not really qualified to tell you what it is, etc. I can just tell you how to do it.
Jan
28
comment expl3 variables and functions
@Bob I thought you wanted the items from a string. Just replace \tl_item:nn to \clist_item:nn. The nextmost thing to an array is a seq in expl3.
Jan
28
revised expl3 variables and functions
edited body
Jan
28
revised expl3 variables and functions
added 276 characters in body