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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

csv data and multido

I am making a card with properties of Periodic Table of Elements. I wish had the mass number, like this using pstricks: \documentclass[12pt,a1paper]{article} \usepackage[a1paper,margin=0cm]{...
Darío's user avatar
  • 91
4 votes
2 answers
103 views

multiframe within multido does not work

I try to have several \multiframes using \multido. But the following minimal example program (which should result in an animation of a growing rotating wedge) gives the error: ! Package animate Error: ...
diffset's user avatar
  • 143
3 votes
2 answers
101 views

different spacing in whiledo with tabular

Sometimes, I observe different spaces introduced when I use whiledo in a tabular environment. How can I get rid of them? Check the following MWE: \documentclass{article} \usepackage{ifthen} \...
Kartal Tabak's user avatar
2 votes
1 answer
50 views

pst-electricfield: How to use multido for placing multiple charges

So I tried to place multiple charges via the pst-electricfield package. Doing so manually works fine, but I'm trying to mimic a capacitor by placing many charges along a line. Is there a way to ...
Daniel's user avatar
  • 415
2 votes
2 answers
124 views

how do use multido to plot in pspicture

I would like to use multido to plot secant lines in pspicture. \documentclass{exam} \usepackage{multido} \usepackage{pst-all} \begin{document} \psset{xunit=2cm,yunit=1cm} \begin{pspicture}(-0.4,-1)(...
Garth Fleming's user avatar
0 votes
2 answers
119 views

How to use math operation in an array index created by the package arrayjob

I want to put each number in the array on a grid using tikz. \documentclass[tikz]{standalone} \usepackage{pgffor} \usepackage{multido} \usetikzlibrary{calc} \usepackage{arrayjob} \newarray\Values \...
Jasmine's user avatar
6 votes
4 answers
591 views

What is the best way to draw an arbitrary number of lines in LaTeX?

I wish to produce a number of sections, each followed by a number of lines i. This is how I have done it using multido to repeat a custom command \drawline i times. \documentclass[12pt]{memoir} \...
jejb's user avatar
  • 95
0 votes
1 answer
163 views

multido and fragile frames in beamer

I'm trying to use multido package to create a sequence of slides with multiple code snippets using listing. Unfortunately the fragile option leads to the following error: ! File ended while scanning ...
LEo's user avatar
  • 772
1 vote
0 answers
244 views

Doppler Effect - Moving Wave Source

Could someone help me animate (\usepackage{pst-plot, pst-calculate, multido, animate}, preferably) a wave-point source moving with uniform speed v (the first variable) and emitting concentric wave-...
Savchenko's user avatar
  • 377
2 votes
1 answer
156 views

Writing on pst-solides3D cylinders in a loop

I'm trying to create and label cylinders with pst-solides3d in a loop. The label should contain the actual counter number of the loop. Therefore I try to name the cylinders with the running number ...
Nico's user avatar
  • 1,684
0 votes
1 answer
486 views

How to draw a chessboard with (\multido )? [closed]

How to draw a chessboard with (\multido )?
Nizar 's user avatar
2 votes
1 answer
114 views

multido: vertical vector

From the first page of multido documentation we can see a horizontal vector with a fixed-point addition system. Can I create the same vector, but vertically? Alternatively, are there better ways to ...
user3204810's user avatar
  • 1,395
2 votes
1 answer
190 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)(...
user avatar
0 votes
0 answers
69 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 ...
alhelal's user avatar
  • 2,431
2 votes
2 answers
205 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] \...
MateAndres's user avatar
1 vote
1 answer
110 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} \...
Kofi Wolali Azoumah Sparkofgod's user avatar
0 votes
1 answer
771 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. ...
Kyle's user avatar
  • 381
2 votes
1 answer
189 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{...
user1259970's user avatar
1 vote
1 answer
178 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}...
Imperaton's user avatar
  • 335
6 votes
4 answers
610 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} \...
dozer's user avatar
  • 841
3 votes
1 answer
484 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 ...
Oli's user avatar
  • 473
4 votes
3 answers
1k 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 ...
Gabu's user avatar
  • 985
0 votes
1 answer
76 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 ...
jss's user avatar
  • 51
21 votes
4 answers
9k 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]{% ...
Zelphir Kaltstahl's user avatar
3 votes
2 answers
1k 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}{ \...
tparker's user avatar
  • 689
4 votes
2 answers
698 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 ...
math45's user avatar
  • 341
6 votes
3 answers
819 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} \...
Svend Tveskæg's user avatar
0 votes
0 answers
207 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'...
mring's user avatar
  • 1,947
5 votes
1 answer
918 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 \...
Svend Tveskæg's user avatar
2 votes
0 answers
33 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)(...
user54285's user avatar
2 votes
1 answer
439 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 ...
Peter Ebelsberger's user avatar
13 votes
0 answers
824 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 ...
kiss my armpit's user avatar
4 votes
2 answers
515 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 ...
kiss my armpit's user avatar
15 votes
1 answer
906 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}{% ...
kiss my armpit's user avatar
4 votes
2 answers
231 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 ...
Denis Bitouzé's user avatar
2 votes
1 answer
192 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 ...
e-birk's user avatar
  • 4,363
3 votes
1 answer
628 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 ...
DaPhil's user avatar
  • 3,325