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
2 votes
2 answers
53 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)(...
user avatar
0 votes
1 answer
29 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 by TikZ. \documentclass[tikz]{standalone} \usepackage{pgffor} \usepackage{multido} \usetikzlibrary{calc} \usepackage{arrayjob} \newarray\Values \...
user avatar
7 votes
4 answers
531 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} \...
user avatar
  • 73
0 votes
1 answer
84 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 ...
user avatar
  • 666
1 vote
0 answers
188 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-...
user avatar
  • 367
2 votes
1 answer
122 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 ...
user avatar
  • 1,584
0 votes
1 answer
325 views

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

How to draw a chessboard with (\multido )?
user avatar
2 votes
1 answer
101 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 ...
user avatar
  • 1,301
2 votes
1 answer
150 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
59 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 ...
user avatar
  • 2,281
2 votes
2 answers
179 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] \...
user avatar
1 vote
1 answer
105 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} \...
user avatar
0 votes
1 answer
406 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. ...
user avatar
  • 351
2 votes
1 answer
182 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{...
user avatar
1 vote
1 answer
154 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}...
user avatar
  • 335
6 votes
4 answers
599 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} \...
user avatar
  • 841
3 votes
1 answer
441 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 ...
user avatar
  • 473
4 votes
3 answers
845 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 ...
user avatar
  • 915
0 votes
1 answer
69 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 ...
user avatar
  • 51
18 votes
4 answers
7k 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]{% ...
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}{ \...
user avatar
  • 659
4 votes
2 answers
657 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 ...
user avatar
  • 331
6 votes
3 answers
772 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} \...
user avatar
0 votes
0 answers
206 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'...
user avatar
  • 1,847
5 votes
1 answer
825 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 \...
user avatar
2 votes
0 answers
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)(...
user avatar
2 votes
1 answer
408 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 ...
user avatar
13 votes
0 answers
812 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 ...
user avatar
4 votes
2 answers
491 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 ...
user avatar
15 votes
1 answer
764 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}{% ...
user avatar
4 votes
2 answers
202 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 ...
user avatar
2 votes
1 answer
183 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 ...
user avatar
  • 4,313
3 votes
1 answer
548 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 ...
user avatar
  • 3,275