New answers tagged

0 votes

Is there a way to automatically generate a label and caption for a series of figures?

You are using \foreach from the PGF/TikZ codebase which means that you can use the count optional extra to keep track of how many images have been processed. \documentclass[draft]{article} %\url{https:...
user avatar
3 votes
Accepted

Is there a way to automatically generate a label and caption for a series of figures?

I first tried using a TikZ array, but without quotes it was turned into a number, and with quotes it wasn't treated as an array. Instead I tried xstring. I got it to work, but it isn't pretty. Oh, ...
user avatar
  • 70.9k
2 votes
Accepted

Help with looping through a folder to insert all images within

I don't know your concrete set up since you only provided a code snippet. But actually you can keep the line breaks and you don't even need to delete spaces, you only need to take care about whether ...
user avatar
2 votes
Accepted

Nodes anchors in foreach loop

The first tikzpicture is yours, the second one seems to be purely TikZ-based: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node[draw] (A) at (-1,0) {}; \node[...
user avatar
1 vote
Accepted

Arbitrarily change axis properties in pgfplots within a foreach loop

You can use \pgfplotsset inside the axis environment to add certain options to the already existing options. If you set the y ticks only to some plots, the scaling of the plots will be different. ...
user avatar
2 votes
Accepted

How to create an empty mxn table in latex using \foreach?

This cannot work for an important reason, namely that \foreach doesn't work as you may think: it doesn't just spit out the given code and, even if it did, you cannot start a loop in a table cell ...
user avatar
  • 1.0m

Top 50 recent answers are included