1 Dec 2009 08:21

Hi,

Is it possible to modify the following code (while stepwise
showing a mindmap) such that the left branch got a different
color than the right branch?  I'd like to use the the color
to emphasize the different concepts rather than the different
levels.  So the left branch might be magenta with variable
saturation for the levels and the right branch green, e.g.
The respective chapters in the fine manual are way too
sophisticated for me ...

Regards,

Juergen

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\tikzset{%
mindmap/.style={%
level 1/.append style={level 1 concept},
level 2/.append style={level 2 concept},
level 3/.append style={level 3 concept},
concept color=magenta!30,
level 1 concept/.style={%
level distance=5cm,
every child/.style={concept color=green!30},
},
level 2 concept/.style={%
level distance=3cm,
every child/.style={concept color=red!30},
},
level 3 concept/.style={%
level distance=3cm,
every child/.style={concept color=blue!30},
},
every node/.style={concept},
},
visible from/.code={%
\ifnum#1>\overlay%
\tikzset{%
circle connection bar switch color/.code={},
edge from parent/.style={draw=none},
every node/.style={
concept, draw=none, fill=none,
execute at begin node={\setbox0=\hbox\bgroup\hskip0pt\let\\=\relax},
execute at end node=\egroup\phantom{\box0}
}%
}%
\fi%
}
}
\begin{frame}
\frametitle{Mindmap with Beamer}
\begin{tikzpicture}[transform canvas={scale=0.5},remember picture, overlay, mindmap]
\foreach \overlay in {1,...,19}{%
\node<\overlay> at (current page.center) {\shortstack{Modulations-\vphantom{y}\\verfahren}}
child[visible from=2,grow=0] {
node (sinus) {\shortstack{Sinusträger\\\tiny(zeitkontinuierlich)}}
child[visible from=3,grow=90] {
node (sinusk) {\shortstack{wert-\\kontinu-\\ierlich}}
child[visible from=4,grow=30] { node {AM} }
child[visible from=5,grow=90]   { node {FM} }
child[visible from=6,grow=150]  { node {PM} }
}
child[visible from=7,grow=-90] {
node (sinusd) {\shortstack{wert-\\diskret}}
child[visible from=8,grow=-150] { node {ASK} }
child[visible from=9,grow=-90]   { node {FSK} }
child[visible from=10,grow=-30]  { node {PSK} }
}
}
child[visible from=11,grow=180] {
node (puls) {\shortstack{Pulsträger\\\tiny(zeitdiskret)}}
child[visible from=12,grow=90] {
node (pulsk) {\shortstack{wert-\\kontinu-\\ierlich}}
child[visible from=13,grow=30] { node {PAM} }
child[visible from=14,grow=90]   { node {PPM} }
child[visible from=15,grow=150]  { node {PDM} }
}
child[visible from=16,grow=-90] {
node (pulsd) {\shortstack{wert-\\diskret/\\codiert}}
child[visible from=17,grow=-150] { node {PCM} }
child[visible from=18,grow=-90]   { node {DM} }
child[visible from=19,grow=-30]  { node {DPCM} }
}
};
}
\end{tikzpicture}
\end{frame}
\end{document}

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

1 Dec 2009 18:33

Special Graph Paper

Hi,

I am trying to design an experiment in changing bases for my linear
algebra students. Ordinary graph paper is designed on the basis
vectors (1,0) and (0,1). I need to draw graph paper using the basis
vectors (2,1) and (1,2).

I need the grid to cover a full sheet of 8.5in by 11in paper. I need
the origin to be centered in the middle of the page, then I need grid
lines in the direction of (2,1) and grid lines in the direction of
(1,2) to cover the entire page. For example, if I start at the origin,
I first draw a line in the direction of (2,1). Then I move 1 unit
right and 2 units up and draw another grid line in the direction of
(2,1), etc. I do a similar thing, drawing grid lines in the direction
of (1,2).

Can anyone help? Give me some ideas of how I can cover an entire page
with such a grid?

Thanks.

David Arnold
College of the Redwoods

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

1 Dec 2009 19:53

tikz figure sizes in beamer and latex

I am using tikz for figures in both beamer slides and regular latex. The
difficulty is that a single figure will fit nicely on a text page, but it will
be huge on a beamer slide. Is there an easy way to create the figure once that
will size for both document types?

Thanks

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

2 Dec 2009 00:01

Re: Special Graph Paper


Hi,

Is it necessary to fill the entire page? You may be able to design your
experiment with a grid aligned to your base and an equally sized grid
aligned to the standard base. I do not know if that meets your purpose, but
you could do that like this:

\documentclass{article}
\usepackage[margin=1cm]{geometry}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw[gray!20] (0,0) grid (18,24);

\foreach \y in {0,3,...,21}
\foreach \x in {0, 1.5,..., 16.5}
\draw (\x,\y)--(\x+1.5,\y+3);

\foreach \y in {0,1.5,...,22.5}
\foreach \x in {0, 3,..., 15}
\draw (\x,\y)--(\x+3,\y+1.5);

\fill[black] (9,12) circle (1mm);
\end{tikzpicture}

\end{document}

Regards,
Gerben

dwarnold wrote:
>
> Hi,
>
> I am trying to design an experiment in changing bases for my linear
> algebra students. Ordinary graph paper is designed on the basis
> vectors (1,0) and (0,1). I need to draw graph paper using the basis
> vectors (2,1) and (1,2).
>
> I need the grid to cover a full sheet of 8.5in by 11in paper. I need
> the origin to be centered in the middle of the page, then I need grid
> lines in the direction of (2,1) and grid lines in the direction of
> (1,2) to cover the entire page. For example, if I start at the origin,
> I first draw a line in the direction of (2,1). Then I move 1 unit
> right and 2 units up and draw another grid line in the direction of
> (2,1), etc. I do a similar thing, drawing grid lines in the direction
> of (1,2).
>
> Can anyone help? Give me some ideas of how I can cover an entire page
> with such a grid?
>
> Thanks.
>
> David Arnold
> College of the Redwoods
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>
>

--

--
View this message in context: http://old.nabble.com/Special-Graph-Paper-tp26594360p26600631.html
Sent from the pgf-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

2 Dec 2009 00:54

Re: Special Graph Paper

All,

This is definitely a solution that will work for me. However, I am
still wondering:

Is there a way to:

1. Define nodes at (0,0) and (2,1).

2. Draw a line through the nodes that will definitely extend beyond
the edge of the page.

3. Shift the line (up or down by (1,2)) til the lines leave the page.

4. Repeat for a line through (0,0) and (1,2)

If so, then this could easily be adapted by changing the vectors (2,1)
and (1,2) to, say (1,1) and (-1,1), and get a new sheet of graph paper
based on the new basis.

David

On Dec 1, 2009, at 3:01 PM, GGBBRR wrote:

>
> Hi,
>
> Is it necessary to fill the entire page? You may be able to design
> your
> experiment with a grid aligned to your base and an equally sized grid
> aligned to the standard base. I do not know if that meets your
> purpose, but
> you could do that like this:
>
> \documentclass{article}
> \usepackage[margin=1cm]{geometry}
> \usepackage{tikz}
>
> \begin{document}
>
> \begin{tikzpicture}
> \draw[gray!20] (0,0) grid (18,24);
>
> \foreach \y in {0,3,...,21}
>  \foreach \x in {0, 1.5,..., 16.5}
>    \draw (\x,\y)--(\x+1.5,\y+3);
>
> \foreach \y in {0,1.5,...,22.5}
>  \foreach \x in {0, 3,..., 15}
>    \draw (\x,\y)--(\x+3,\y+1.5);
>
> \fill[black] (9,12) circle (1mm);
> \end{tikzpicture}
>
> \end{document}
>
> Regards,
> Gerben
>
>
>
> dwarnold wrote:
>>
>> Hi,
>>
>> I am trying to design an experiment in changing bases for my linear
>> algebra students. Ordinary graph paper is designed on the basis
>> vectors (1,0) and (0,1). I need to draw graph paper using the basis
>> vectors (2,1) and (1,2).
>>
>> I need the grid to cover a full sheet of 8.5in by 11in paper. I need
>> the origin to be centered in the middle of the page, then I need grid
>> lines in the direction of (2,1) and grid lines in the direction of
>> (1,2) to cover the entire page. For example, if I start at the
>> origin,
>> I first draw a line in the direction of (2,1). Then I move 1 unit
>> right and 2 units up and draw another grid line in the direction of
>> (2,1), etc. I do a similar thing, drawing grid lines in the direction
>> of (1,2).
>>
>> Can anyone help? Give me some ideas of how I can cover an entire page
>> with such a grid?
>>
>> Thanks.
>>
>> David Arnold
>> College of the Redwoods
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> pgf-users mailing list
>> pgf-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Special-Graph-Paper-tp26594360p26600631.html
> Sent from the pgf-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

2 Dec 2009 05:55

Re: Special Graph Paper

Here is a file that does all of that except that you need to specify how
many lines need to be drawn.  I don't know enough tex to make it do the
division for you.

You need to run pdflatex twice on it so that the page coordinates come
out right.

Hope that helps

--Mike

David Arnold wrote:
> All,
>
> This is definitely a solution that will work for me. However, I am
> still wondering:
>
> Is there a way to:
>
> 1. Define nodes at (0,0) and (2,1).
>
> 2. Draw a line through the nodes that will definitely extend beyond
> the edge of the page.
>
> 3. Shift the line (up or down by (1,2)) til the lines leave the page.
>
> 4. Repeat for a line through (0,0) and (1,2)
>
> If so, then this could easily be adapted by changing the vectors (2,1)
> and (1,2) to, say (1,1) and (-1,1), and get a new sheet of graph paper
> based on the new basis.
>
> David
>
>
> On Dec 1, 2009, at 3:01 PM, GGBBRR wrote:
>
>
>> Hi,
>>
>> Is it necessary to fill the entire page? You may be able to design
>> your
>> experiment with a grid aligned to your base and an equally sized grid
>> aligned to the standard base. I do not know if that meets your
>> purpose, but
>> you could do that like this:
>>
>> \documentclass{article}
>> \usepackage[margin=1cm]{geometry}
>> \usepackage{tikz}
>>
>> \begin{document}
>>
>> \begin{tikzpicture}
>> \draw[gray!20] (0,0) grid (18,24);
>>
>> \foreach \y in {0,3,...,21}
>>  \foreach \x in {0, 1.5,..., 16.5}
>>    \draw (\x,\y)--(\x+1.5,\y+3);
>>
>> \foreach \y in {0,1.5,...,22.5}
>>  \foreach \x in {0, 3,..., 15}
>>    \draw (\x,\y)--(\x+3,\y+1.5);
>>
>> \fill[black] (9,12) circle (1mm);
>> \end{tikzpicture}
>>
>> \end{document}
>>
>> Regards,
>> Gerben
>>
>>
>>
>> dwarnold wrote:
>>
>>> Hi,
>>>
>>> I am trying to design an experiment in changing bases for my linear
>>> algebra students. Ordinary graph paper is designed on the basis
>>> vectors (1,0) and (0,1). I need to draw graph paper using the basis
>>> vectors (2,1) and (1,2).
>>>
>>> I need the grid to cover a full sheet of 8.5in by 11in paper. I need
>>> the origin to be centered in the middle of the page, then I need grid
>>> lines in the direction of (2,1) and grid lines in the direction of
>>> (1,2) to cover the entire page. For example, if I start at the
>>> origin,
>>> I first draw a line in the direction of (2,1). Then I move 1 unit
>>> right and 2 units up and draw another grid line in the direction of
>>> (2,1), etc. I do a similar thing, drawing grid lines in the direction
>>> of (1,2).
>>>
>>> Can anyone help? Give me some ideas of how I can cover an entire page
>>> with such a grid?
>>>
>>> Thanks.
>>>
>>> David Arnold
>>> College of the Redwoods
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>>> a free event focused on virtualization and cloud computing.
>>> http://p.sf.net/sfu/redhat-sfdev2dev
>>> _______________________________________________
>>> pgf-users mailing list
>>> pgf-users <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>>
>>>
>>>
>> --
>> View this message in context: http://old.nabble.com/Special-Graph-Paper-tp26594360p26600631.html
>> Sent from the pgf-users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> pgf-users mailing list
>> pgf-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>


Attachment (grid.latex): text/x-tex, 990 bytes
Attachment (grid.pdf): application/pdf, 2065 bytes
------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

2 Dec 2009 07:39

Re: Special Graph Paper

Mike,

This is truly brilliant!

D.

On Dec 1, 2009, at 8:55 PM, Michael George wrote:

> Here is a file that does all of that except that you need to specify
> how many lines need to be drawn.  I don't know enough tex to make it
> do the division for you.
>
> You need to run pdflatex twice on it so that the page coordinates
> come out right.
>
> Hope that helps
>
> --Mike
>
> David Arnold wrote:
>> All,
>>
>> This is definitely a solution that will work for me. However, I am
>> still wondering:
>>
>> Is there a way to:
>>
>> 1. Define nodes at (0,0) and (2,1).
>>
>> 2. Draw a line through the nodes that will definitely extend
>> beyond  the edge of the page.
>>
>> 3. Shift the line (up or down by (1,2)) til the lines leave the page.
>>
>> 4. Repeat for a line through (0,0) and (1,2)
>>
>> If so, then this could easily be adapted by changing the vectors
>> (2,1)  and (1,2) to, say (1,1) and (-1,1), and get a new sheet of
>> graph paper  based on the new basis.
>>
>> David
>>
>>
>> On Dec 1, 2009, at 3:01 PM, GGBBRR wrote:
>>
>>
>>> Hi,
>>>
>>> Is it necessary to fill the entire page? You may be able to
>>> design  your
>>> experiment with a grid aligned to your base and an equally sized
>>> grid
>>> aligned to the standard base. I do not know if that meets your
>>> purpose, but
>>> you could do that like this:
>>>
>>> \documentclass{article}
>>> \usepackage[margin=1cm]{geometry}
>>> \usepackage{tikz}
>>>
>>> \begin{document}
>>>
>>> \begin{tikzpicture}
>>> \draw[gray!20] (0,0) grid (18,24);
>>>
>>> \foreach \y in {0,3,...,21}
>>> \foreach \x in {0, 1.5,..., 16.5}
>>>   \draw (\x,\y)--(\x+1.5,\y+3);
>>>
>>> \foreach \y in {0,1.5,...,22.5}
>>> \foreach \x in {0, 3,..., 15}
>>>   \draw (\x,\y)--(\x+3,\y+1.5);
>>>
>>> \fill[black] (9,12) circle (1mm);
>>> \end{tikzpicture}
>>>
>>> \end{document}
>>>
>>> Regards,
>>> Gerben
>>>
>>>
>>>
>>> dwarnold wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to design an experiment in changing bases for my linear
>>>> algebra students. Ordinary graph paper is designed on the basis
>>>> vectors (1,0) and (0,1). I need to draw graph paper using the basis
>>>> vectors (2,1) and (1,2).
>>>>
>>>> I need the grid to cover a full sheet of 8.5in by 11in paper. I
>>>> need
>>>> the origin to be centered in the middle of the page, then I need
>>>> grid
>>>> lines in the direction of (2,1) and grid lines in the direction of
>>>> (1,2) to cover the entire page. For example, if I start at the
>>>> origin,
>>>> I first draw a line in the direction of (2,1). Then I move 1 unit
>>>> right and 2 units up and draw another grid line in the direction of
>>>> (2,1), etc. I do a similar thing, drawing grid lines in the
>>>> direction
>>>> of (1,2).
>>>>
>>>> Can anyone help? Give me some ideas of how I can cover an entire
>>>> page
>>>> with such a grid?
>>>>
>>>> Thanks.
>>>>
>>>> David Arnold
>>>> College of the Redwoods
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>>>> a free event focused on virtualization and cloud computing.
>>>> http://p.sf.net/sfu/redhat-sfdev2dev
>>>> _______________________________________________
>>>> pgf-users mailing list
>>>> pgf-users <at> lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>>>
>>>>
>>>>
>>> --
>>> View this message in context: http://old.nabble.com/Special-Graph-Paper-tp26594360p26600631.html
>>> Sent from the pgf-users mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>>> a free event focused on virtualization and cloud computing.
>>> http://p.sf.net/sfu/redhat-sfdev2dev
>>> _______________________________________________
>>> pgf-users mailing list
>>> pgf-users <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing. Attend
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> pgf-users mailing list
>> pgf-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pgf-users
>>
>
> \documentclass{article}
>
> \usepackage{tikz}
> \usetikzlibrary{calc}
> \pagestyle{empty}
>
> \begin{document}
>
> %
> % x and y are the basis
> % n is the number of lines in each direction
> %
> \begin{tikzpicture}[remember picture,overlay,x={(1cm,2cm)}, y={(2cm,
> 1cm)}]
> \newcommand{\n}{15}
>
> %
> % the corners of the page
> %
>
> \coordinate (sw) at (current page.south west);
> \coordinate (se) at (current page.south east);
> \coordinate (nw) at (current page.north west);
> \coordinate (ne) at (current page.north east);
>
> \coordinate (origin) at (current page.center);
>
> %
> % loop through and draw the axes
> %
> \foreach \i in {-\n, ..., \n} {
> 	\path (origin) ++(\i,0) coordinate (xa);
> 	\path (origin) ++(\i,1) coordinate (xb);
> 	\path (origin) ++(0,\i) coordinate (ya);
> 	\path (origin) ++(1,\i) coordinate (yb);
>
> 	\draw (intersection of sw--se and xa--xb) -- (intersection of nw--
> ne and xa--xb);
> 	\draw (intersection of sw--se and ya--yb) -- (intersection of nw--
> ne and ya--yb);
> }
>
> \end{tikzpicture}
>
> \newpage
>
> \end{document}
> <grid.pdf>

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

2 Dec 2009 11:35

Re: tikz figure sizes in beamer and latex

On Tuesday 01 December 2009 19:53:46 Matthew Mah wrote:
> I am using tikz for figures in both beamer slides and regular latex. The
> difficulty is that a single figure will fit nicely on a text page, but it
> will be huge on a beamer slide. Is there an easy way to create the figure
> once that will size for both document types?

You definitely want to do the figure without units, so you only have to change
"scale=0.8" or similar (x=...,y=...) in the tikzpicture's options once.

Furthermore, if you want to put your figure into an external file (e.g. I am
\input'ing .tikz files from more than one document), you might want to specify
the size

a) in relation to \linewidth, e.g. using
\pgfmathsetlength{\imagewidth}{.35\linewidth}%
\pgfmathsetlength{\imagescale}{\imagewidth/45}% pixel width of image
\begin{tikzpicture}[x=\imagescale,y=-\imagescale]
as described on
http://kogs-www.informatik.uni-hamburg.de/~meine/tikz/

or

b) using some predefined macro/length register that you set to the desired
value in your main docs, before the \input.

Actually, I often put additional \pause{} commands / other animation commands
into the figure for the presentation, so I tend to have two files anyway.
Then, I need to merge content changes e.g. using xxdiff.

HTH,
Hans

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev

2 Dec 2009 15:10

Re: pgfpages and rotation

Anyone with an answer for me? The documentation sounded so promising...

Susan

Quoting Susan Dittmar (Susan.Dittmar <at> gmx.de):
> Hello folks,
>
> again I need help. This time with the pgfpages package.  I'm trying to
> combine 8 logical pages onto one physical page.  All is fine until I add
> rotation command -- something must be wrong here. Probably I am using a
> faulty syntax. Unfortunately I did not find any examples using this.
> Does one of you know what I did wrong?
>
>
> 	Susan
>
> %%%%%%%%%%%%%%%%%% test.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \documentclass[a4paper,twoside,onecolumn,10pt,pagesize,parskip-]{scrartcl}
> \usepackage[a4paper,portrait,left=5mm,right=5mm,top=5mm,bottom=5mm,
>             heightrounded,nomarginpar]{geometry}
>
> \usepackage{calc}
> \usepackage{pgf}
> \usepackage{pgfpages}
>
> \newlength{\CardWidthI}\setlength{\CardWidthI}{297mm / 8}
> \newlength{\CardHeightI}\setlength{\CardHeightI}{210mm / 4}
> \pgfpagesdeclarelayout{A8 auf A5 fuer Cardkarten}
> {
> %   \def\pgfpageoptionborder{0.4pt}
> }
> {
>     \pgfpagesphysicalpageoptions
>     {%
>         logical pages=1,%
>         physical height=297mm,%
>         physical width=210mm%
>     }
>     \pgfpageslogicalpageoptions{1}
>     {%
>         resized width=\CardWidthI,%
>         resized height=\CardHeightI,%
>         center=\pgfpoint{105mm - .5\CardHeightI}{148.5mm + 1.5\CardWidthI},%
>         rotation=90,%   <----------- comment that out and rest is fine.
>         border code=\pgfstroke,%
>     }%
> }
>
> \pgfpagesuselayout{A8 auf A5 fuer Cardkarten}[a4paper]
>
> \begin{document}
>
> \textbf{\Huge Dies ist Seite 1}\newpage
>
> \end{document}
> %%%%%%%%%%%%%%%%%%%%%%% error message: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> ! Missing } inserted.
> <inserted text>
>                 }
> l.37 \end{document}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users


------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

2 Dec 2009 15:22

Using relative coordinates

Hi all

I am curious if the behavior of the code below is expected. Is perhaps
the use of \foreach in the second construct incorrect? Or is this an
issue in pgf 2.00?

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{chains,positioning,scopes,matrix}

\begin{document}

\begin{tikzpicture}
% Reference
\path (0,0)
\foreach \s in {0, ..., 3} {
(4mm*\s, 0mm) node (x_\s) {$x_{\s}$}
};

% Relative coordinates w/ update don't seem to work
\path (0,-4mm)
\foreach \s in {0, ..., 3} {
node (s_\s) {$s_{\s}$}  ++(4mm, 0mm)
};

% Doesn't compile. Should it?
%\draw (0,0) to +(0, 4mm);
\end{tikzpicture}

\end{document}

A variety of workarounds (reference example, chains, matrices, etc.)
for the issue at hand is known. But while I have solved it for my own
use, these workarounds tend to be more verbose and I don't need their
extra features.

Thanks
Marcus

------------------------------------------------------------------------------
a free event focused on virtualization and cloud computing.
http://p.sf.net/sfu/redhat-sfdev2dev


Gmane