Tag Info

New answers tagged


In your example, the variable \name is the result of \x*20, a float expression. So, you get 0.0, 1.00006, ... ,100.0. So your polygonal nodes are named 0.0, 1.00006, ... ,100.0. (You can't use . in the name of a node: (a.10) points on anchor with angle 10 from center of the a node.) You may use int(\x*20) to round your float expression: ...


You have to write the data in the .aux file for having the information available at the next run; we exploit the fact that the .aux file is read as part of \begin{document}, so \manuallanguages will have the requested value (at the next run) when \maketitle is issued. \documentclass{article} \makeatletter \newcommand{\manuallanguages}{\@gobble} % ...


The etoolbox has many interesting features, including making list parsers. See also the unstarred version. \documentclass[a4paper]{memoir} \usepackage{etoolbox} \begin{document} \newcommand\handler[1]{item: #1\par} \DeclareListParser*\forsemicolonlist{;} \forsemicolonlist\handler{(a,b);(c,d);(e,f)} \end{document}


For example, you can use this code: \def\ls#1{\lsA#1;;} \def\lsA#1;{\ifx;#1;\else \dosomething{#1}\expandafter\lsA\fi} \def\dosomething#1{\message{I am doing something with #1}} \ls{(a,b);(c,d);(e,f)}

Top 50 recent answers are included