# Tag Info

1

The per-item testing should be performed when setting the item, rather than in the header, since the filter are set globally. From the csvsimple documentation: \csvfilterreject All following data lines will be ignored. This command overwrites all previous filter settings. \documentclass{article} \usepackage{csvsimple,filecontents}% ...

8

You need to check the conditional when the macro is executed, not when it is defined. \documentclass{article} \usepackage{lipsum} \newif\ifABC \newcommand{\abcdef}[1]{\ifABC{Letters} #1\fi} \begin{document} \ABCtrue \abcdef{ABC} \lipsum[2] \end{document}%

10

This is not basically possible, and I'll try to explain why, on an example. Let's \show\section: \section=\long macro: -> \@startsection {section}{1}{\z@ }{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus .2ex}{\normalfont \Large \bfseries } Ok, not much to see, other than that \section takes no arguments at all! So let's \show\@startsection: ...

12

In general, there is no starred version of a command. What really happens is that the unstarred command checks to see if there is a star as the first argument and passes control to different auxiliary macros accordingly, or simply executes two different sets of commands. So, to take a random example, we look at \endlargethispage and find that it is defined ...

3

Here is an implementation using environ and expl3. With environ we absorb the whole environment's contents and with l3regex we check whether the environment contains the tokens \label{table_ via the regular expression \c{label}\cB.table_ Where \c{<string>} matches the control sequence with name <string> and \cB. matches one open brace. ...

2

I don’t know about the clipped path or the rectangle at the bottom. But you can easily draw a randomized line on one path. I am using the coordinate c-0 and c-1 as a reference for the rand factor instead of using the pt units this calculation will be based on the Coordinate System by PGF/TikZ. Code \documentclass[tikz]{standalone} \usetikzlibrary{calc} ...

7

In my opinion the argument to \myenv should be optional, so if it's not expressed it's taken to be one. However, the error is in the \end part, where \ifx\@firstoftwo is wrong. Also using \@tempa is wrong, because it turns out it is used by multicol, so it changes value before the \end part is evaluated. \documentclass{article} \usepackage{enumitem} ...

4

Quite probably, the issue is with the (non) expandability of these tests. But you can do this [thanks to the moderator who corrected the edge, I had copied pasted from the OP without double-check] \documentclass{standalone} \usepackage{tikz, xifthen} \newcommand\groupedges[2]{ \begin{tikzpicture} \foreach \name/\position in {a/30, b/40, c/20} ...

8

You are looking for \@ptsize. It is defined by the standard document classes as 0 for the 10pt class option, as 1 for the 11pt option and as 2 for the 12pt option. \documentclass[12pt]{article} \makeatletter \newcommand*{\showfontsize}{Fontsize: 1\@ptsize\,pt} \makeatother \begin{document} \showfontsize \end{document} Here's the relevant definition in ...

Top 50 recent answers are included