Tag Info

New answers tagged

4

To align the baseline of the text in the inner node on the baseline of the outer text you can use \tikz[baseline,nodes={anchor=base,...}] for the inner picture. To prevent the influence of the outer node options save the inner picture in a box: \documentclass[12pt,tikz,border=1mm]{standalone} \usetikzlibrary{chains,shapes.multipart} \newbox\mytikzBox ...


2

With just xparse it's too complicated. Using \@ifnextchar is possible, but a jump to expl3 is perhaps better: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\tab}{m} { % start an itemize (that also provides grouping for nested calls) \begin{itemize} \azpillaga_tab:n { #1 } % finish off \end{itemize} } \seq_new:N ...


2

Here I make the . active inside \tab and restore it when I am done. Inside \tab, the . can become \item if the next token is a not a nested \tab and it becomes \relax if the next token is a nested \tab. I keep track of the nesting level with a simple counter, and only restore the catcode 12 definition of . when the nesting level reaches back to zero. I ...



Top 50 recent answers are included