Tag Info

8

One possibility: \documentclass[a4paper,10pt,landscape]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach [count=\i] \j in {a,b,...,j}{ \node (\i) at (\i, \i) {\j} ; } \end{tikzpicture} \end{document} percusse mentions the alphalph package in a comment, and its \alphalph does exactly what you ...

6

This would be my first try, using a counter (no need of additional packages): \documentclass[a4paper,10pt,landscape]{article} \usepackage{tikz} \newcounter{cnti} \begin{document} \begin{tikzpicture} \foreach \i in {0,...,9}{ \setcounter{cnti}{\i}\addtocounter{cnti}{1} \node (i) at (\i, \i) {\alph{cnti}} ; } ...

5

\documentclass[12pt]{article} \usepackage{forloop} \begin{document} \newcounter{x} \forloop{x}{0}{\value{x}<5}{\noindent value is \arabic{x}\\} \end{document} You can also print the numbers as strings (zero, one, two , ...), if you load the fmtcount package and instead of \arabic{x} you can use \numberstring{x}.

4

In the first iteration of the loop \j is 0 but \jc is 6 and you are trying to do \path[name intersections={of={ba\j} and {ab\jc},by={C\j}}]; that is, finding intersections of ba0 and ab6, but ab6 doesn't yet exist. Use two separate loops: \documentclass[12pt]{article} \pagestyle{empty} \usepackage{amsmath,amssymb} \usepackage{tikz} ...

4

Try the routines \grabitem{number} to get the item from the list. It's not failsafe, of course. In general, it's better to use wrapper commands instead of doing stuff like \forcsvlist{\stepcounter...}{..} directly. \documentclass{article} \usepackage{etoolbox} \listadd\myrowlist{} \newcounter{itemcount} \newcommand{\additem}[2][\myrowlist]{% ...

3

Here x is a counter, so you need e.g. \arabic{x}.

2

If you are willing to switch from etoolbox to the more powerful expl3 programming environment, you could do like this: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\newlist}{m} { \seq_new:c { g_sumanta_lists_#1_seq } } \newlist{myrow} % default \NewDocumentCommand{\additems}{O{myrow} m} { \clist_map_inline:nn { #2 ...

2

For iterating over an elementary list of items, you can use an array-like structure/interface (similar to what one would expect in programming languages like C) provided by arrayjobx: \documentclass{article} \usepackage{multido,arrayjobx} \newarray\myrowlist\readarray{myrowlist}{r & \theta & z} \begin{document} ...

1

There's no good break point, because stretching the interword space would exceed the \tolerance. You'd get the same result trying to typeset \noindent \mbox{First Lastname\hspace{\tabcolsep}\ % \mbox{First Lastname\hspace{\tabcolsep}\ % \mbox{First Lastname\hspace{\tabcolsep}\ % \mbox{First Lastname\hspace{\tabcolsep}\ % \mbox{First ...

Only top voted, non community-wiki answers of a minimum length are eligible