Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multido]

{multido} is a package that provides an easy-to-use macro \multido, which is a loop command for usage within (La)TeX documents.

15
votes
1answer
544 views

Why does \foreach \x in {0,1,…,0}{} perform two iterations (instead of one)?

See the following MWE to understand what I mean better. \documentclass[preview,border=12pt]{standalone} \usepackage{pgffor,multido} \begin{document} \section*{foreach} \foreach \ix in {0,1,...,3}{% ...
14
votes
3answers
3k views

Repeat characters n times

I wanted to create a new command, which allows me to repeat any characters I want for n times. After some searching and trying, I came up with this: \usepackage{multido} \newcommand{\myrepeat}[2]{% ...
13
votes
0answers
763 views

Are there any other methods left to create a spiral of equidistant segments? [closed]

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
6
votes
4answers
452 views

How to simplify my code with looping macros?

\documentclass{article} \usepackage{pstricks,multido} \begin{document} \begin{pspicture} \pswedge(0,0){2}{0}{15} \pswedge*(0,0){2}{15}{30} \pswedge(0,0){2}{30}{45} \pswedge*(0,0){2}{45}{60} \...
6
votes
3answers
580 views

Automatically generating table using \multido

First: This question is similar to Generate rows in table using \multido (or something similar). Consider the following code: \documentclass{article} \usepackage{siunitx} \usepackage{multido} \...
5
votes
1answer
643 views

Generate rows in table using \multido (or something similar)

Consider the following example: \documentclass{article} \usepackage{booktabs} \usepackage[locale = DE]{siunitx} %\usepackage{multido} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff \...
4
votes
3answers
278 views

\multido does not do anything

The example below was downloaded from that site with pstricks examples. When I run it I get 18 blank pages. This also happens with other examples using multido. I'm using texmaker with MikTex 2.9. Do ...
4
votes
2answers
458 views

Loop to create new counters

I want to create counters in a loop like this (with the packages multido, totcount) : \newcounter{compteurChi}% first counter \regtotcounter{compteurChi}% define the first counter as a ...
4
votes
2answers
161 views

multido variable in \paragraph prematurely incremented by one

The compilation of the following MCE: \documentclass{report} \usepackage{fixltx2e} \usepackage{multido} \begin{document} \multido{\i=1+1}{4}{% \chapter{I am the chapter \i} \section{I am a ...
4
votes
2answers
421 views

Is there another way to avoid name clash in nested multido?

Constraints I want to use the same name for inner and outer loop. I am reluctant to append @ and make use of \makeatletter...\makeatother. Is there any name-spacing construct to use? MWE The ...
3
votes
1answer
411 views

Get a specific item from table using datatool and print it

I'm using datatool to load a csv table. Students names are in that table (first column first name, second column last name) and I like to print them on the exam. In a related question, I asked how to ...
3
votes
1answer
260 views

Problem with negative “multido” and “fp”

Is there a way to use "negative" numbers with multido and fp? In the code below, it works with \Nx=4+0.5 but not with \Nx=4+-0.5. Additional question: is there a way to do this without using package ...
2
votes
2answers
636 views

Performing arithmetic on multido variable in PSTricks

I want to take an image and display it in PSTricks several times side by side, rotating it by the same amount each time. I want to use the multido command - something like \multido{\i=0+1}{10}{ \...
2
votes
2answers
63 views

Auto generate a table with different number of columns

I'm trying to create a command to generate this type of tables: where the number of columns changes (for example \preguntas{4} or \preguntas{5}). My first idea was \newcommand{\preguntas}[1] \...
2
votes
1answer
176 views

How to repeat centered text in a sideway environment?

Some text can be repeated, for example, by using \multido of the package "multido" and text can be rotated by using the sideways environment of the package "rotating". Combining both works. But when ...
2
votes
1answer
114 views

Strange behaviour drawing lines with multido and trigonometric functions

I'm trying to produce Taylor diagrams to compare statistically data sets. Here is the code as a first approach to such diagram. \begin{pspicture}(-1,-1)(5.75,5.75) \psaxes(0,0)(4,4) \begin{...
2
votes
1answer
55 views

In PStricks, what is the difference between \psforeach and \multido in the following?

My code: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{pstricks} \usepackage{multido} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(-.5,-1.5)(...
2
votes
1answer
349 views

listplot and (0,0)

Look at the following minimal working example. I cannot understand, why the first line of listplot is plotted from (0,0) to the first data of the input file. I am compiling with % converting with ...
2
votes
0answers
32 views

pstricks multido variable not accepted [duplicate]

the following Example does not work: \documentclass{article} \usepackage{pst-all} \begin{document} \def\FF{x 3 exp 4 mul 3 div x sub 1 add} \def\AbFF{x 2 exp 4 mul 1 sub} \begin{pspicture}(-2.5,-2)(...
1
vote
1answer
86 views

Boucle multido error while compiling to transform qcm A4pages into A5

Could somebody help me to find where the error is with "Missing number, treated as zero " in the code below please??? \documentclass[a4paper]{article} \usepackage[final]{pdfpages} \...
1
vote
1answer
86 views

Exponentiate in nested multido's

Based on Herbert's answer to this question, I made the following: \documentclass[pstricks, border=0pt]{standalone} \usepackage{pst-solides3d} \begin{document} \psset{unit=1} \psset{viewpoint=30 7 6}...
0
votes
1answer
178 views

Creating command for slides in Beamer that show up one at a time

I'm working on a command to produce multiple itemized beamer slides where each item is revealed on the next slide (but the future bullets can still be seen). Unfortunately, it doesn't quite work. ...
0
votes
1answer
41 views

can't get simple multido to build. MikTex 2.9 TexStudio XeLatex

My first try at using multido and stalled straight away! This is probably obvious but, unfortunately, not to me! %\tex\texMaker\graphics\pstricks\try-multido.tex % Mil TeX 2.9 TexStudio using XeLatex ...
0
votes
0answers
37 views

How to put multiple copy of a content in a page easily?

\documentclass[12pt]{article} \usepackage{multido,fullpage} \usepackage[a4paper,left=0cm,top=0.7cm,bottom=0cm,right=0cm]{geometry} \begin{document} \centering \multido{}{2} {DABBAS packeging dates of ...
0
votes
0answers
149 views

Undefined Control Sequence in \multido or \pspicture? [duplicate]

I wrote the following very simple program as I'm trying to make an animation using pstricks and multido, but I get "undefined control sequence" on the end pspicture line. Can anyone just tell me what'...