Ignasi Furió | 1 Jun 10:28
Favicon

Problem joining two tikzpictures

Hi all,

	I've drawn two figures network1 and network2. they are drawn as expected.  
Now I want to join them into the same figure and label each one. So I've  
included each one in a node, labelled the node and aligned. You can see  
how in the example below.
Now the result is wrong, node A in second figure is not aligned with nodes  
CB, CC and CD, and node C in network2 is also missplaced. Could you  
explain me what's wrong? I'm using CVS version of pgf.

	Thank you,

	Ignasi

%---------------------------
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%

\usetikzlibrary{arrows,positioning}
\begin{document}

\begin{tikzpicture}

\node[label=below:Network 1] (network1) {
(Continue reading)

Mark Wibrow | 1 Jun 10:55

Re: Problem joining two tikzpictures

Hi,

The `below=of...' key fools around with the anchors of nodes. This is
inherited by all the nodes inside the tikzpicture inside the node. You
can `reset' the anchors by adding `anchor=center' to the tikzpicture
options.

Regards

Mark

2009/6/1 Ignasi Furió <ignasi.furio <at> uib.cat>:
> Hi all,
>
>        I've drawn two figures network1 and network2. they are drawn as expected.
> Now I want to join them into the same figure and label each one. So I've
> included each one in a node, labelled the node and aligned. You can see
> how in the example below.
> Now the result is wrong, node A in second figure is not aligned with nodes
> CB, CC and CD, and node C in network2 is also missplaced. Could you
> explain me what's wrong? I'm using CVS version of pgf.
>
>        Thank you,
>
>        Ignasi
>
> %---------------------------
> \documentclass{article}
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
(Continue reading)

Ignasi Furió | 1 Jun 11:36
Favicon

Re: Problem joining two tikzpictures

It works!

Thank you, Mark

Ignasi

El Mon, 01 Jun 2009 10:55:50 +0200, Mark Wibrow <m.wibrow <at> googlemail.com>  
vau escriure:

> Hi,
>
> The `below=of...' key fools around with the anchors of nodes. This is
> inherited by all the nodes inside the tikzpicture inside the node. You
> can `reset' the anchors by adding `anchor=center' to the tikzpicture
> options.
>
> Regards
>
> Mark
>
> 2009/6/1 Ignasi Furió <ignasi.furio <at> uib.cat>:
>> Hi all,
>>
>>        I've drawn two figures network1 and network2. they are drawn as  
>> expected.
>> Now I want to join them into the same figure and label each one. So I've
>> included each one in a node, labelled the node and aligned. You can see
>> how in the example below.
>> Now the result is wrong, node A in second figure is not aligned with  
>> nodes
(Continue reading)

peter manolov | 4 Jun 06:20
Picon
Favicon

must use \documentclass{uicthesi}

Hey,
Sorry, if you've received this twice. (Don't know if this works yet)
I just love tikz and want to use it to make the pics for my thesis.
Trouble is I am supposed to use \documentclass{uicthesi}, a style that
carries instructions how my thesis will be formatted. Then when I load
\usepackage{tikz} and use

\begin{figure}

\end{figure}
I get an error, it says too many }

There is no problem when I use \documentclass{article}. Everything compiles.
Can you help?
Petar Manolov

"No longer do physicists regard group theory merely as providing a
valuable tool for the elucidation of the symmetry aspects of physical
problems. Recent developments, particularly in high-energy physics, have
transformed its role so that it now occupies a crucial and central
position."   J. F. Cornwell

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
peter manolov | 4 Jun 06:14
Picon
Favicon

must use \documentclass{uicthesi} can't use tikz


Hey,

I just love tikz and want to use it to make the pics for my thesis.
Trouble is I am supposed to use \documentclass{uicthesi}, a style that
carries instructions how my thesis should be formatted. Then when I load
\usepackage{tikz} and use

\begin{figure}

\end{figure}
I get an error, it says too many }

There is no problem when I use \documentclass{article}. Everything compiles.
Can you help?
Petar Manolov
--

-- 
View this message in context:
http://www.nabble.com/must-use-specific-class-but-can%27t-use-tikz-tp23863546p23863546.html
Sent from the pgf-users mailing list archive at Nabble.com.

"No longer do physicists regard group theory merely as providing a
valuable tool for the elucidation of the symmetry aspects of physical
problems. Recent developments, particularly in high-energy physics, have
transformed its role so that it now occupies a crucial and central
position."   J. F. Cornwell

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
(Continue reading)

Alain Matthes | 4 Jun 07:11
Picon
Gravatar

Re: must use \documentclass{uicthesi}


Le 4 juin 09 à 06:20, peter manolov a écrit :

> Hey,
> Sorry, if you've received this twice. (Don't know if this works yet)
> I just love tikz and want to use it to make the pics for my thesis.
> Trouble is I am supposed to use \documentclass{uicthesi}, a style that
> carries instructions how my thesis will be formatted. Then when I load
> \usepackage{tikz} and use
>
> \begin{figure}
>
> \end{figure}
> I get an error, it says too many }
>
> There is no problem when I use \documentclass{article}. Everything  
> compiles.
> Can you help?
> Petar Manolov

Hi

An example complete is necessary ! Perhaps you make a mistake in the  
source
  or you have a problem with your TeX distribution and the installation.

I can compile with uicthesi, tikz  without problem

Best Regards

(Continue reading)

Mark Wibrow | 4 Jun 09:57

Re: must use \documentclass{uicthesi}

Hi,

This is a problem with the color package (used by xcolor and xxcolor
which is used by TikZ). For a minimal example:

\documentclass{uicthesi}
\usepackage{color}
\begin{document}

\begin{figure}
A figure
\caption{A figure}
\end{figure}

\end{document}

The color stuff uses \aftergroup and assumes that a box has an extra
grouping level inside it. This extra grouping is provided by
appropriately defined LaTeX macros in class/style files.
Unfortunately, uicthesi.cls does not define macros appropriately in
this case.

You can see this if you compare the the definitions of \@xfloat in
uicthesi.cls and latex.ltx (which should be in the base folder of your
LaTeX distribution).

You can try changing the line in the definition of \@xfloat in uicthesi.cls from

\global\setbox\@currbox\vbox\bgroup

(Continue reading)

Hugues Vermeiren | 4 Jun 13:21
Picon

dynamic nodes

I have a series of points, built with the foreach command.
How do I name these points : A1, A2, A3,... ? How can the nodes have a name that is dynamically linked to a variable? 
 
I'm still a beginner and I'm sure lots of you know the answer.
 
Thank you
 
H.Vermeiren, Brussels.
 
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Hans Meine | 4 Jun 13:34
Picon
Favicon

Re: dynamic nodes

On Thursday 04 June 2009 13:21:39 Hugues Vermeiren wrote:
> I have a series of points, built with the foreach command.
> How do I name these points : A1, A2, A3,... ? How can the nodes have a name
> that is dynamically linked to a variable?
>
> I'm still a beginner and I'm sure lots of you know the answer.

It would more easy to give an answer if you provided sample code.

However, my guess is that the answer might be foreach's support of multiple 
variables (i.e. use a second variable for the node names).

HTH,
  Hans

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
peter manolov | 5 Jun 04:37
Picon
Favicon

Re: must use \documentclass{uicthesi}

Dear Mark,

Thank you so much for your email. Your suggestion did fix the problem. I
couldn't have seen this myself.

Sincerely,

Peter Manolov

On Thu, June 4, 2009 2:57 am, Mark Wibrow wrote:
Hi,

This is a problem with the color package (used by xcolor and xxcolor
which is used by TikZ). For a minimal example:

\documentclass{uicthesi}
\usepackage{color}
\begin{document}

\begin{figure}
A figure
\caption{A figure}
\end{figure}

\end{document}

The color stuff uses \aftergroup and assumes that a box has an extra
grouping level inside it. This extra grouping is provided by
appropriately defined LaTeX macros in class/style files.
Unfortunately, uicthesi.cls does not define macros appropriately in
this case.

You can see this if you compare the the definitions of \@xfloat in
uicthesi.cls and latex.ltx (which should be in the base folder of your
LaTeX distribution).

You can try changing the line in the definition of \@xfloat in
uicthesi.cls from

\global\setbox\@currbox\vbox\bgroup

to

\global\setbox\@currbox\color <at> vbox\normalcolor\vbox\bgroup

Which should work. Given the difference in maintainance dates
(uicthesi.cls 1996, and color.sty 2005 - at least on my system), there
may be other bits that need updating as well.

Regards

Mark

2009/6/4 Alain Matthes <alain.matthes <at> mac.com>:
>
> Le 4 juin 09 à 06:20, peter manolov a écrit :
>
>> Hey,
>> Sorry, if you've received this twice. (Don't know if this works yet)
>> I just love tikz and want to use it to make the pics for my thesis.
>> Trouble is I am supposed to use \documentclass{uicthesi}, a style that
>> carries instructions how my thesis will be formatted. Then when I load
>> \usepackage{tikz} and use
>>
>> \begin{figure}
>>
>> \end{figure}
>> I get an error, it says too many }
>>
>> There is no problem when I use \documentclass{article}. Everything
>> compiles.
>> Can you help?
>> Petar Manolov
>
> Hi
>
> An example complete is necessary ! Perhaps you make a mistake in the
> source
>  or you have a problem with your TeX distribution and the installation.
>
> I can compile with uicthesi, tikz  without problem
>
> Best Regards
>
> Alain Matthes
>
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the
> latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

"No longer do physicists regard group theory merely as providing a
valuable tool for the elucidation of the symmetry aspects of physical
problems. Recent developments, particularly in high-energy physics, have
transformed its role so that it now occupies a crucial and central
position."   J. F. Cornwell

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get

Gmane