Patrick Pletscher | 1 Feb 10:43

Parallel installation of PGF

Hi all,

Ever since I got into LaTeX I was looking for a good package to create
graphics. I first used pstricks [1] and afterwards PyX [2]; both of them
have their pros and cons for my personal workflow. I then recently
discovered PGF and TikZ and was quite impressed by the examples one can
find on the internet and in the manual. I now wanted to try it out on my
own, but I already struggled during the installation.

I'm using Ubuntu Dapper and I have the beamer package installed (and as
a dependency pgf, too). If I want to pdflatex some of the pgf examples I
get the error, that tikz is not installed, so I assume that the pgf
version provided by Ubuntu is too old (it's 1.00, 1.10 is AFAICT the
latest version). So I tried to follow the instructions in the pgfmanual
on how to install pgf into ~/texmf. I used the all-in-one-directory
approach, however if I try to compile the example I get an error about
utilities/pgfrcs.code.tex on line 90 and a runaway argument. I guess
this is not the real problem, as I think the old Ubuntu version and the
new pgf version installed in ~/texmf get in their way. Please find below
parts of the actual log and note the different paths for some of the pgf
files.

(/usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty
(/usr/share/texmf/tex/latex/pgf/basiclayer/pgf.sty
(/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.sty
(/home/pat/texmf/tex/generic/pgf/generic/pgf/utilities/pgfrcs.code.tex
Runaway argument?
$ \fi  \fi  \fi  \fi  \fi  \fi  \fi  \fi  \def \pgf <at> rcssuffix {code.t
\ETC.
! Paragraph ended before \pgf <at> parsercsfile was complete.
(Continue reading)

Till Tantau | 1 Feb 16:16
Picon
Favicon

Re: Parallel installation of PGF

Hi!

the problem is that latex files like tikz.sty are looked for

1) local texmf/tex/latex
2) global texmf/tex/latex
3) local texmf/tex/generic

So, what you need to do is to create the following link:

let /home/pat/texmf/tex/latex/pgf point to /home/pat/texmf/tex/ 
generic/pgf/latex/pgf

That should do the trick, normally.

Best regards,
Till

Am 01.02.2007 um 10:43 schrieb Patrick Pletscher:

> Hi all,
>
> Ever since I got into LaTeX I was looking for a good package to create
> graphics. I first used pstricks [1] and afterwards PyX [2]; both of  
> them
> have their pros and cons for my personal workflow. I then recently
> discovered PGF and TikZ and was quite impressed by the examples one  
> can
> find on the internet and in the manual. I now wanted to try it out  
> on my
(Continue reading)

Patrick Pletscher | 1 Feb 16:45

Re: Parallel installation of PGF

Hi,

> That should do the trick, normally.

Indeed, this did the trick! Thanks a lot for helping out (this might be
a thing to mention in the installation guide). Beamer rocks my world,
now let's see whether pgf/TikZ even surpasses it...

Best,
Patrick

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Malcolm Ross | 2 Feb 05:46
Picon
Picon

Horizontal alignment of texts in different nodes

I am attempting to draw a tree using the commands from the Trees  
library, but one small matter has defeated me. I have nodes  
containing 2-3 lines of text, and these nodes are horizontally  
aligned with each other. I would like, say,  the two lines of text in  
horizontally adjacent nodes also to be horizontally aligned, but this  
does not always happen. If the top line of one node contains a letter  
with an ascender (e.g. b, d, f) and the top line of the adjacent  
node  contains only letters without ascenders (e.g. c, e, g, s), then  
the top-line baselines are not aligned from node to node because the  
presence of the ascender in one changes its line height. Spacing  
between the lines of the label also seems to be altered by ascenders  
and descenders.

I have the feeling that \pgftext ought to offer a solution to this  
problem, but I am unable to make it work inside a tree node.

Any solutions would be very gratefully received.

Malcolm Ross
_____________________________________

Malcolm D. Ross
Professor, Department of Linguistics
Research School of Pacific and Asian Studies
Building No. 9, The Australian National University
CANBERRA A.C.T. 0200, Australia

http://rspas.anu.edu.au/people/personal/rossm_ling.php
http://rspas.anu.edu.au/linguistics/projects/biomdr.html

(Continue reading)

Till Tantau | 2 Feb 12:33
Picon
Favicon

Re: Horizontal alignment of texts in different nodes

Hello everyone,

in the CVS there is now a new option called "growth parent anchor"  
that was introduced exactly for such problems. Also, the current CVS  
contains lots of new stuff having to do with matrix alignments that  
can also help in this context.

For the time being, try adding a \strut at the beginning of nodes,  
although that is not really "the right solution".

Best regards,
Till

Am 02.02.2007 um 05:46 schrieb Malcolm Ross:

> I am attempting to draw a tree using the commands from the Trees
> library, but one small matter has defeated me. I have nodes
> containing 2-3 lines of text, and these nodes are horizontally
> aligned with each other. I would like, say,  the two lines of text in
> horizontally adjacent nodes also to be horizontally aligned, but this
> does not always happen. If the top line of one node contains a letter
> with an ascender (e.g. b, d, f) and the top line of the adjacent
> node  contains only letters without ascenders (e.g. c, e, g, s), then
> the top-line baselines are not aligned from node to node because the
> presence of the ascender in one changes its line height. Spacing
> between the lines of the label also seems to be altered by ascenders
> and descenders.
>
> I have the feeling that \pgftext ought to offer a solution to this
> problem, but I am unable to make it work inside a tree node.
(Continue reading)

Malcolm Ross | 3 Feb 03:32
Picon
Picon

Re: Horizontal alignment of texts in different nodes

My thanks to Mark and Till for their advice. A custom-made variant of  
\strut does indeed achieve what I wanted. And I look forward to the  
day when the CVS version becomes the next published version, as I  
have made extensive use of matrix alignments in linguistics diagrams  
made with other graphics applications.

All the best,

Malcolm

On 02/02/2007, at 10:33 PM, Till Tantau wrote:

> Hello everyone,
>
> in the CVS there is now a new option called "growth parent anchor"  
> that was introduced exactly for such problems. Also, the current  
> CVS contains lots of new stuff having to do with matrix alignments  
> that can also help in this context.
>
> For the time being, try adding a \strut at the beginning of nodes,  
> although that is not really "the right solution".
>
> Best regards,
> Till
>
> Am 02.02.2007 um 05:46 schrieb Malcolm Ross:
>
>> I am attempting to draw a tree using the commands from the Trees
>> library, but one small matter has defeated me. I have nodes
>> containing 2-3 lines of text, and these nodes are horizontally
(Continue reading)

Mark Wibrow | 6 Feb 11:34
Picon
Picon
Favicon

\pgfpointborderellipse under transformations.

Hello,

Advance apologies if this has an obvious (i.e., in the manual) answer...

So I have an ellipse and some external point in space and I want to find
the intersection of the line starting at the origin of the ellipse, going
towards the external point, and the border of the ellipse. So far, so
easy, we have \pgfpointborderellipse.

But what if the ellipse has gone under some (possibly arbitrary - but
repeatable) coordinate transformation? Is there a non-hacking way to bring
the coordinates of the external point inside the coordinate transformation
*without* messing up its absolute canvas position? If not, does anyone
have any pointers for some evil hackery?

And, if that is possible (in a hacky or non-hacky) way, and the
intersection point is now known, it will unfortunately be within the scope
of the coordinate-transformation. This is part of a more general problem:
Is it possible to make transformed coordinates known *absolutely* outside
the scope of a transformation?

Regards

Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
(Continue reading)

Mark Wibrow | 6 Feb 12:16
Picon
Picon
Favicon

Re: \pgfpointborderellipse under transformations.

Hi,

OK, I've got the answer (well *an* answer - don't know if it's the best)
to the second bit, use pgf <at> process:

\makeatletter
\begin{tikzpicture}
\draw[help lines] (-1,0) grid (1,1);
{
	\pgftransformrotate{60}
	\pgfpathcircle{\pgfpoint{0cm}{1cm}}{4pt}
	\color{black}
	\pgfusepath{stroke}
	\pgf <at> process{\pgfpathmoveto{\pgfpoint{0cm}{1cm}}}
}
\edef\mypoint{\noexpand\pgf <at> x=\the\pgf <at> x\noexpand\pgf <at> y=\the\pgf <at> y}
\color{red}
\pgfpathcircle{\mypoint}{2pt}
\pgfusepath{fill}
\end{tikzpicture}

Mark Wibrow wrote:
> Hello,
>
> Advance apologies if this has an obvious (i.e., in the manual) answer...
>
> So I have an ellipse and some external point in space and I want to find
> the intersection of the line starting at the origin of the ellipse, going
> towards the external point, and the border of the ellipse. So far, so
> easy, we have \pgfpointborderellipse.
(Continue reading)

Mark Wibrow | 6 Feb 12:57
Picon
Picon
Favicon

Re: \pgfpointborderellipse under transformations.

Hello again,

All problems solved! Got the (or *an*) answer to the first bit as well. If
there's a shorter way I'd like to know about it:

\makeatletter

\begin{tikzpicture}
\draw[help lines] (-1,0) grid (1,1);
%
% Save the original transform
\pgfgettransform{\currenttransform}
%
% Make the new transform and save...
\pgftransformrotate{60}
\pgfgettransform{\newtransform}
%
% ...and restore original transform
\pgfsettransform{\currenttransform}
%
% Some external point.
\def\externalpoint{\pgfpoint{1cm}{1cm}}
%
% Do some stuff with a line and a circle.
\pgfpathmoveto{\pgfpointorigin}
\pgfpathlineto{\externalpoint}
\pgfusepath{stroke}
\pgfpathcircle{\externalpoint}{4pt}
\color{black}
\pgfusepath{stroke}
(Continue reading)

Daniel Flipo | 11 Feb 21:16
Picon
Picon
Favicon

TikZ for geometric drawings?

Hi all,

I am starting to learn TikZ and I wonder whether I could use TikZ for 
geometric constructions like, say, the "nine points circle" of a 
triangle (EPS appended: mp-exemple.1).

Denis Roegel has shown how to do it in MetaPost in
http://www.gutenberg.eu.org/pub/GUTenberg/publicationsPDF/39-roegel.pdf

More precisely, here are things I cannot do (for now) in TikZ:
-- given a triangle ABC, how do I draw the perpendicular from A to BC?
I am looking for a kind of counterpart to MetaPost's syntax
G=whatever[B,C]=whatever[A,A+((C-B) rotated 90)];
-- how can I measure the distance between two constructed points 
(something like "r=arclength(I--N);" in MetaPost, to find out the radius 
of the circle)?

Thanks in advance for your hints and best wishes,
--

-- 
Daniel Flipo
Attachment (mp-exemple.1): application/postscript, 3095 bytes
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
(Continue reading)


Gmane