Reputation
2,269
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
12 36
Impact
~388k people reached

May
12
answered XeLatex otf font won't load
May
12
answered Change space between title and text in \paragraph command
May
11
comment Change space between title and text in \paragraph command
It is always good to provide a minimal example ;) Do you mean you have a doc where \paragraph{Some text.} follows \maketitle{The Title}? Also, it is generally not a good idea to take typographical tips from someone who uses Microsoft Word haha.
May
11
accepted How does LaTeX calculate the width of a caption? What is it based on?
May
11
revised How does LaTeX calculate the width of a caption? What is it based on?
added normal caption
May
11
comment How does LaTeX calculate the width of a caption? What is it based on?
@Mico Hey Mico, that is what I am asking YOU :). How does LaTeX calculate the width of captions?
May
11
asked How does LaTeX calculate the width of a caption? What is it based on?
May
11
accepted How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
May
8
comment How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
You say that often, I noticed. This is why I explicitly said what I want above. Your solution is quite restrictive (you cannot isolate items in the loop), which is why I left it unanswered for the time being. Perhaps in time it will be the best answer. I am already looking into other solutions (ways of spreading information automatically across a page horizontally where widths are calculated automatically based on the number of args other than tab stops so that I can use the int_step_inline iterator).
May
7
comment How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
Actually, I do not even want to simplify it that much. I just need to be able to access each item individually. Therefore, \clist_use isn't really an option, I think.
May
7
comment How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
Thanks for the answer. Unfortunately, I seem to loose flexibility at every turn due to the simplicity of MWEs. I need to be able to use \int_step_inline:nnnn{2}{1}{\clist_count:N \g_macmadness_mygroup_items_clist}. I am going to have item 1 be left-aligned and the rest be right-aligned in the tabular. (Also, I will be using longtable, but I think that is superfluous here)
May
7
revised How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
added active-characters tag
May
7
revised How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
added notes to problem
May
7
asked How can I use the ampersand (&) as a delineator for tabs in LaTeX3 (expl3)/xparse syntax?
May
7
comment How to iterate over a comma separated list?
@egreg Thanks. Did you write LaTeX3? Why are you so tremendously skilled at this? To deal with separate formatting on the last item (like removing a comma), I tried using: \str_if_eq:nnTF { ##1 } { \clist_count:N \arglist }{\clist_item:Nn \arglist {##1}}{\clist_item:Nn \arglist {##1},~}. Is that the right approach? (##1 is not expanded correctly in parameters: T and F) Another option is to just make the steps go to \clist_count-1 (whatever the correct syntax for that is).
May
7
comment How to iterate over a comma separated list?
@egreg How can I create a loop with specific start and end indexes e.g. for \itemStep from 2 to \clist_count; do \clist_item:Nn\arglist{}. It seems that the example you demonstrated are automated interations without much control over the individual steps/iterations.
May
7
comment How can I get a count of the optional arguments with xparse?
+1 Thanks for the tip. I will hop to it. Just to clarify, this code with the ExplSyntaxOn/Off is fully backwards compatible?
May
7
comment How can I get a count of the optional arguments with xparse?
Thank you for the excellent answer. Do you think you should show me how to iterate the parameters. e.g. My idea: user command variant and turn this: \noindent\clist_item:Nn\arglist{1},~\clist_item:Nn\arglist{2},~\clist_item:Nn\a‌​rglist{3},~\clist_item:Nn\arglist{4}\par into a loop. Each item can be put into a tabular using the trick you showed me \tabular{l{\arglist{\clist_count:N\arglist}}} (num of cols determined by clist_count). Each item (\clist_item:Nn\arglist{itemStep}) can be followed by & until column step=clist_count:N\arglist then a `\` is inserted. +1Automation
May
6
accepted How can I get a count of the optional arguments with xparse?
May
6
comment How can I get a count of the optional arguments with xparse?
@Manuel Ah I did not know that #9 would always be the mandatory argument. Thank you for that information.