Anas Ghrab | 6 Dec 11:16
Favicon

tikz and pst-text

Hi all,

Is there a way to make something like this : http://tug.org/PSTricks/ 
Examples/textpath.png

It uses the pst-text package.

Thanks,

---
Anas Ghrab

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
mark starnes | 6 Dec 14:49
Picon

Re: tikz and pst-text

Hi Anas, it seems pretty quiet here so I'll respond in-spite of being
quite new to pgf / tikz.

A good place to start might be pages 33, 127, 128 of the manual,
at http://www.giref.ulaval.ca/~ctibirna/work/readings/pgfmanual.pdf
(from a scroogle of pgfmanual.pdf).

Best regards,

Mark.

Anas Ghrab wrote:
> Hi all,
> 
> Is there a way to make something like this : http://tug.org/PSTricks/ 
> Examples/textpath.png
> 
> It uses the pst-text package.
> 
> Thanks,
> 
> ---
> Anas Ghrab
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
(Continue reading)

Stephan Hennig | 7 Dec 20:10
Picon
Favicon
Gravatar

Re: tikz and pst-text

Anas Ghrab schrieb:

> Is there a way to make something like this : http://tug.org/PSTricks/ 
> Examples/textpath.png
> 
> It uses the pst-text package.

If you don't want to use PSTricks because you want to use pdfLaTeX, you
could have a look at MetaPost and the textpath package.

Best regards,
Stephan Hennig

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Daniel Rozengardt | 8 Dec 18:36

Newbie question about matrix

Hi, I’m newbie in beamer and pgf.

I have the following problem:

Using conference-ornate-20min.en (example in solutions, in standard beamer package) an adding the following code:

 

\usepackage{tikz} (after other packages)

 

and (in the middle of presentation)

 

\begin{frame}[t]{Numerical resolution - 2}

Matrix shape: $B^{n+1}_1$\\

\begin{tikzpicture}

\matrix

{

\node {8}; & \node{1}; & \node {6}; \\

\node {3}; & \node{5}; & \node {7}; \\

\node {4}; & \node{9}; & \node {2}; \\

};

\end{tikzpicture}

\end{frame}

 

just like the example in pgfmanual

 

and compiling this

appears the following error message:

pgfBasematrix Error: single ampersand used with wrong catcode

If you press enter, a lot of errors appear and the final pdf shows a matrix whith the two first columns one over the other.

Why? What should I do?

I use Windows XP

Miktex 2.6

And last version of beamer and pgf

Thanks in advance

Daniel

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Kjell Magne Fauske | 8 Dec 19:47
Picon

Re: Newbie question about matrix

On Dec 8, 2007 6:36 PM, Daniel Rozengardt <daniel <at> rozengardt.net> wrote:
>
>
>
>
> Hi, I'm newbie in beamer and pgf.
>
> I have the following problem:
>
> Using conference-ornate-20min.en (example in solutions, in standard beamer
> package) an adding the following code:
>
>
>
> \usepackage{tikz} (after other packages)
>
>
>
> and (in the middle of presentation)
>
>
>
> \begin{frame}[t]{Numerical resolution - 2}
>
> Matrix shape: $B^{n+1}_1$\\
>
> \begin{tikzpicture}
>
> \matrix
>
> {
>
> \node {8}; & \node{1}; & \node {6}; \\
>
> \node {3}; & \node{5}; & \node {7}; \\
>
> \node {4}; & \node{9}; & \node {2}; \\
>
> };
>
> \end{tikzpicture}
>
> \end{frame}
>
>
>
> just like the example in pgfmanual
>
>
>
> and compiling this
>
> appears the following error message:
>
> pgfBasematrix Error: single ampersand used with wrong catcode
>
> If you press enter, a lot of errors appear and the final pdf shows a matrix
> whith the two first columns one over the other.
>
> Why? What should I do?
>

The problem here is that & is defined as an active character and
causes some problems with Beamer. I'm not sure why. A quick fix is to
to change the char used to to separate cells. You can do this with the
'ampersand replacement' option. Try:

\matrix[ampersand replacement=\&]
{
\node {8}; \& \node{1}; \& \node {6}; \\
\node {3}; \& \node{5}; \& \node {7}; \\
\node {4}; \& \node{9}; \& \node {2}; \\
};

You can read more about this in section 14.5 in the manual (page 144).

Hope this helps!

- Kjell Magne Fauske

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Hans Meine | 9 Dec 15:50
Picon
Favicon

problem with \beginpgfgraphicnamed and strange space (cf. missing \noindent)

Hi!

I have a strange problem with ugly spacing (appears like a missing \noindent) 
which I traced down quite far already.  Attached is a minimal testcase:

\documentclass{article}
\usepackage{tikz}
\pgfrealjobname{pgf-extra-space}
\begin{document}
\fbox{%
  \beginpgfgraphicnamed{box-external}% COMMENT OUT TO LET THIS WORK
  \begin{tikzpicture}%
  \draw[red] (0,0) rectangle (1,1);
  \end{tikzpicture}%
  \endpgfgraphicnamed% COMMENT OUT TO LET THIS WORK
}
\end{document}

I expect the black \fbox to be evenly \fboxsep-spaced around the red tikz box, 
but if I have the pgfgraphicnamed-stuff around it, I get the undesired extra 
space.  Anyone knows why and how to prevent that?

Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo
Attachment (pgf-extra-space.tex): text/x-tex, 321 bytes
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Hans Meine | 9 Dec 21:56
Picon
Favicon

Re: problem with \beginpgfgraphicnamed and strange space (cf. missing \noindent)

On Sonntag 09 Dezember 2007, Hans Meine wrote:
> I expect the black \fbox to be evenly \fboxsep-spaced around the red tikz
> box, but if I have the pgfgraphicnamed-stuff around it, I get the undesired
> extra space.  Anyone knows why and how to prevent that?

Interestingly, there is a third situation, namely if the externalized graphics 
file exists!  (I.e. a small, undesired space appears.)

Please run the following command on the attached file to see the three boxes; 
I get the attached output.

pdflatex --jobname=box2-external pgf-extra-space.tex && \
pdflatex pgf-extra-space.tex

Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo

Attachment (pgf-extra-space.pdf): application/pdf, 10 KiB
Attachment (pgf-extra-space.tex): text/x-tex, 562 bytes
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Till Tantau | 9 Dec 22:34
Picon
Picon

Re: Newbie question about matrix

Hi!

easier: just add the [fragile] option to the frame environment.

Till

Am 08.12.2007 um 19:47 schrieb Kjell Magne Fauske:

> On Dec 8, 2007 6:36 PM, Daniel Rozengardt <daniel <at> rozengardt.net>  
> wrote:
>>
>>
>>
>>
>> Hi, I'm newbie in beamer and pgf.
>>
>> I have the following problem:
>>
>> Using conference-ornate-20min.en (example in solutions, in  
>> standard beamer
>> package) an adding the following code:
>>
>>
>>
>> \usepackage{tikz} (after other packages)
>>
>>
>>
>> and (in the middle of presentation)
>>
>>
>>
>> \begin{frame}[t]{Numerical resolution - 2}
>>
>> Matrix shape: $B^{n+1}_1$\\
>>
>> \begin{tikzpicture}
>>
>> \matrix
>>
>> {
>>
>> \node {8}; & \node{1}; & \node {6}; \\
>>
>> \node {3}; & \node{5}; & \node {7}; \\
>>
>> \node {4}; & \node{9}; & \node {2}; \\
>>
>> };
>>
>> \end{tikzpicture}
>>
>> \end{frame}
>>
>>
>>
>> just like the example in pgfmanual
>>
>>
>>
>> and compiling this
>>
>> appears the following error message:
>>
>> pgfBasematrix Error: single ampersand used with wrong catcode
>>
>> If you press enter, a lot of errors appear and the final pdf shows  
>> a matrix
>> whith the two first columns one over the other.
>>
>> Why? What should I do?
>>
>
> The problem here is that & is defined as an active character and
> causes some problems with Beamer. I'm not sure why. A quick fix is to
> to change the char used to to separate cells. You can do this with the
> 'ampersand replacement' option. Try:
>
> \matrix[ampersand replacement=\&]
> {
> \node {8}; \& \node{1}; \& \node {6}; \\
> \node {3}; \& \node{5}; \& \node {7}; \\
> \node {4}; \& \node{9}; \& \node {2}; \\
> };
>
> You can read more about this in section 14.5 in the manual (page 144).
>
> Hope this helps!
>
> - Kjell Magne Fauske
>
> ---------------------------------------------------------------------- 
> ---
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Till Tantau | 10 Dec 11:35
Picon
Favicon

Re: externalization of graphics with ink outside of bounding box

Hi!

good question... The problem is that, indeed, the external pdf will  
be clipped and there is "nothing to be done" since the clipping is  
part of the PDF-specification.

Only solution: Use a bounding box that is large enough to encompass  
everything and then use \hskip-2cm or suchlike to position things.  
Ugly, but can't be avoided.

Best regards,
Till

Am 28.11.2007 um 17:13 schrieb Hans Meine:

> Hi!
>
> I just noticed a bad clipping of some graphics in my thesis, due to
> externalized graphics.  I manually set [use as bounding box], and  
> some labels
> are outside of these bounds.  Now the PDF graphics generated with -- 
> jobname
> clip these captions.
>
> Is there any way around that?
> Or any suggestions to work around that?
>
> Ciao, /  /
>      /--/
>     /  / ANS
>
> ---------------------------------------------------------------------- 
> ---
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

--
Prof. Dr. Till Tantau <tantau <at> tcs.uni-luebeck.de>
http://www.tcs.uni-luebeck.de

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Daniel Rozengardt | 10 Dec 21:45

about snake

Hi, again.

My problem now is with snake command.

 

Using conference-ornate-20min.en (example in solutions, in standard beamer package) an adding the following code:

 

\usepackage{tikz} (after other packages)

and (in the middle of presentation)

 

\begin{frame}[t]{Model}

\begin{columns}

 \column{.5\textwidth}

   \begin{tikzpicture}

     \draw[->] (0,0) -- (5,0) node[very near end,sloped,below] {$x$};

     \draw[->] (0,0) -- (0,5)  node[very near end,sloped,above] {$y$};

     \draw[ brown] (0,0.8) -- (5.2,0.8) node[very near end,below,text=black, font=\footnotesize] {Reference plane};

     \draw[snake=zigzag] (0,4.7) -- (5,3.9);

   \end{tikzpicture}

 \column{.5\textwidth}

   \begin{itemize}

   \item $u=u(t,x)$ is bla-bla

   \item $h=h(t,x)$ is bla-bla

   \item $e=e(t,x)$ is bla-bla

   \end{itemize}

\end{columns}

\end{frame}

 

Compiling this appears the following error:

Undefined snake “zigzag”

(is the same with others snake modes)

Why? What should I do to fix this?

Thanks in advance

Daniel

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

Gmane