bumeshrai | 1 Apr 03:25
Picon
Favicon

Re: externalizing graphics


Thanks, I will try it.

Regards

Umesh
----- Original Message ----
From: Erik Quaeghebeur <equaeghe <at> nospammail.net>
To: bumeshrai <at> yahoo.co.in
Cc: pgf-users <at> lists.sourceforge.net
Sent: Tuesday, 1 April, 2008 3:46:08 AM
Subject: Re: [Pgf-users] externalizing graphics

On Mon, 31 Mar 2008, bumeshrai <at> yahoo.co.in wrote:
>
> Reverting to my original problem, can I get eps from pgf?

I sometimes make an eps from a pdf using ghostscript's ps2eps, it treats
pdf just as if it was a ps file; no quality loss encountered yet.

Erik


Chat on a cool, new interface. No download required. Click here.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
bumeshrai | 1 Apr 03:26
Picon
Favicon

Re: externalizing graphics [was: version 2]

I will try it and get back. Thanks.

Regards

Umesh

----- Original Message ----
From: Erik Quaeghebeur <equaeghe <at> nospammail.net>
To: bumeshrai <at> yahoo.co.in
Cc: pgf-users <at> lists.sourceforge.net
Sent: Tuesday, 1 April, 2008 3:52:23 AM
Subject: Re: [Pgf-users] externalizing graphics [was: version 2]

On Mon, 31 Mar 2008, bumeshrai <at> yahoo.co.in wrote:
>
> I am not sure as to how the preview package will help in generating
> graphic files. Can you please explain further.

Material copied verbatim out of one of my files that should clarify (in
combination with the preview manual):

(from preamble:)

\usepackage{tikz}
  \usetikzlibrary{snakes,backgrounds}
% \usepackage[tightpage,active]{preview} % uncomment and use together with
the above and the preview environments in the figure environments to
recreate separate figure files usable in includegraphics commands

(from document text:)

\begin{figure}[hbt]
  \centering
%  \renewcommand{\PreviewBbAdjust}{0bp -2pt 0bp 0bp}
%  \begin{preview}
    \input{constraints-vertices}
%  \end{preview}
%    \includegraphics{constraints-vertices}
  \caption{Illustration of constraints and vertices.}
  \label{fig:constraints}
\end{figure}


I hope this helps,

Erik


Unlimited freedom, unlimited storage. Get it now
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Picon

Errors from the file pgfsys-pdftex.def

Hello, I have installed pgf-2.00 in my local ~/texmf at my university. When 
running pdflatex I get errors from the file 
 ~/texmf/tex/generic/pgf/systemlayer/pgfsys-pdftex.def 
 The error messages are given at the bottom of the message. 

I had pgf-1.18 running fine on the same system before this. It is a TeTeX 
system (think it is TeTeX v2.0.2). Note that I am note root, so I cannot 
upgrade the base TeTeX version.

The output from pdflatex --version is:

 ****************** 
 pdfTeX (Web2C 7.4.5) 3.14159-1.10b 
 kpathsea version 3.4.5 
 Copyright (C) 1997-2003 Han The Thanh. 
 Kpathsea is copyright (C) 1997-2003 Free Software Foundation, Inc. 
 There is NO warranty. Redistribution of this software is 
 covered by the terms of both the pdfTeX copyright and 
 the GNU General Public License. 
 For more information about these matters, see the files 
 named COPYING and the pdfTeX source. 
 Primary author of pdfTeX: Han The Thanh. 
 Kpathsea written by Karl Berry and others. 
 ****************** 

 Excerpt from 'file.log' after running 'pdflatex file.tex' (no errors above 
this): 
 ******************* 
 . 
 . 
 . 

(/mn/anatu/cma-u3/tmac/texmf/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def 
 File: pgfsys-common-pdf.def 2007/12/17 (rcs-revision 1.8) 
 ) 
 ! Missing { inserted. 
 <to be read again> 
 r 
 l.49 \pdfobj r 
 eserveobjnum 
 ? q 
 OK, entering \batchmode... 
 ! Undefined control sequence. 
 l.50 \edef\pgf <at> sys <at> pdf <at> extgs <at> objnum 
 {\the\pdflastobj} 
 The control sequence at the end of the top line 
 of your error message was never \def'ed. If you have 
 misspelled it (e.g., `\hobx'), type `I' and the correct 
 spelling (e.g., `I\hbox'). Otherwise just continue, 
 and I'll forget about whatever was undefined. 

 ! Undefined control sequence. 
 l.53 \edef\pgf <at> sys <at> pdf <at> pattern <at> objnum 
 {\the\pdflastobj} 
 . 
 . 
 . 
 *******************

(NB, this question was also posted in the PGF SourceForge help forum)

 Best regards, 
 Torquil Sørensen 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Favicon

Re: only partly decorate a path

Till Tantau wrote: 
 
please lookup the new decorate syntax, which has changed compared to snakes. You must write 
\draw (0,0) -- (1,0) decorate [decoration=snake] {--(1,1) --(2,1)} -- (2,2) -- (3,2); 
> The decorate option (something like \draw[decorate] ...) can only be used to decorate the whole path.  
 
Yes, thanks a lot. Now it's working again!
 
Jürgen
 
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Chris Bourke | 1 Apr 15:30
Favicon

Re: externalizing graphics


>> Here again we generate a pdf or dvi and then convert to eps. I usually do
>> this by using imagemagic convert command.
> ImageMagick??  That's a pixel-based program, you know?
>
>> But then the eps file is not as good as the original pdf file.
> With "convert", of course not.  With dvips, I hope it is.

Also (someone correct me if I'm wrong) pdf2ps works just fine as well, 
with no loss of quality (it creates a .ps file, but there is no difference 
between a ps file and eps file as far as I know--again I could be wrong 
there might be some bounding box issues).

With the talk of externalizing graphics, I wanted to advertise a small 
perl script I wrote, "extractpgf" (available at 
http://cse.unl.edu/~cbourke/) that uses the preview package to 
automatically extract every tikzpicture environtment from a document and 
then put each of them in an individual file (pgf-fig001.pdf, 
pgf-fig002.pdf ...).  Note there are dependencies: pdfnup, pdfcrop, the 
preview package.  Anyone could easily update and customize this script (if 
you do happen to build a better one, let us know!).

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Till Tantau | 1 Apr 17:54
Picon
Favicon

Re: Errors from the file pgfsys-pdftex.def

Hi!

uhoh... I just looked it up and it seems that the "reservedobjnum"  
was, indeed, introduced only in a later version of pdftex, namely in  
"pdfTeX 3.141592-1.11a, released on 2003-08-02". So, if your local  
pdftex is older than 2003-08-02, I fear pgf 2.00 will not work (I was  
not aware of this, it would, however, be a bit difficult to change  
pgfsys-pdftex back to a pre-2003 state).

Sorry,
Till

Am 01.04.2008 um 13:55 schrieb Torquil Macdonald Sørensen:

> Hello, I have installed pgf-2.00 in my local ~/texmf at my  
> university. When
> running pdflatex I get errors from the file
> ~/texmf/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
> The error messages are given at the bottom of the message.
>
> I had pgf-1.18 running fine on the same system before this. It is a  
> TeTeX
> system (think it is TeTeX v2.0.2). Note that I am note root, so I  
> cannot
> upgrade the base TeTeX version.
>
> The output from pdflatex --version is:
>
> ******************
> pdfTeX (Web2C 7.4.5) 3.14159-1.10b
> kpathsea version 3.4.5
> Copyright (C) 1997-2003 Han The Thanh.
> Kpathsea is copyright (C) 1997-2003 Free Software Foundation, Inc.
> There is NO warranty. Redistribution of this software is
> covered by the terms of both the pdfTeX copyright and
> the GNU General Public License.
> For more information about these matters, see the files
> named COPYING and the pdfTeX source.
> Primary author of pdfTeX: Han The Thanh.
> Kpathsea written by Karl Berry and others.
> ******************
>
> Excerpt from 'file.log' after running 'pdflatex file.tex' (no errors  
> above
> this):
> *******************
> .
> .
> .
>
> (/mn/anatu/cma-u3/tmac/texmf/tex/generic/pgf/systemlayer/pgfsys- 
> common-pdf.def
> File: pgfsys-common-pdf.def 2007/12/17 (rcs-revision 1.8)
> )
> ! Missing { inserted.
> <to be read again>
> r
> l.49 \pdfobj r
> eserveobjnum
> ? q
> OK, entering \batchmode...
> ! Undefined control sequence.
> l.50 \edef\pgf <at> sys <at> pdf <at> extgs <at> objnum
> {\the\pdflastobj}
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
>
> ! Undefined control sequence.
> l.53 \edef\pgf <at> sys <at> pdf <at> pattern <at> objnum
> {\the\pdflastobj}
> .
> .
> .
> *******************
>
> (NB, this question was also posted in the PGF SourceForge help forum)
>
> Best regards,
> Torquil Sørensen
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> 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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Picon
Picon

Help for creating a timeline

Hello all,

I need some help in creating a time line with some additional information. I have already started [1], but i
was not able to come up with any good solution for my problem. 

What I need are some lines, indicating a given time, that have zigzagged beginnings and/or ends and that are
named in the middle.

----800------1200-------1600-------1800-----2000-≥

<--------------||-------->  <------>>---<<---->
>   First      || Second <  >  1.  << 2 >>  3 <
<--------------||-------->  <------>>---<<---->

The beginning and ending of the bars have to precise according to duration.
I hope, anyone can help me, thank you in advance,

Matthias

[1]
\documentclass[landscape]{article}
  \usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.5]
  % Basic time line
    \draw[->] (0,0) -- (18,0);
    \draw node at (0,0.5) {800};
    \draw node at (3,0.5) {1000};
    \draw node at (6,0.5) {1200};
    \draw node at (9,0.5) {1400};
    \draw node at (12,0.5) {1600};
    \draw node at (15,0.5) {1800};
    \draw node at (18,0.5) {2000};
  % here come the different concepts
  % first concept, should have a wiggled start on the left 
  % and a wiggled end on the right
  % "modern times" should be either directly above or in the line
    \draw[line width=3pt] (0,-.5) -- (10.5,-.5);
    \draw[line width=3pt,color=red] (10.5,-.5) 
      node[above,text=gray] {modern times} -- (18,-.5);
  % second concept, should have a wiggled line on the left 
  % and on the right and also on both sides of the red middle block
    \draw[line width=3pt] (0,-1) -- (9.75,-1);
    \draw[line width=3pt,color=red] (9.75,-1) -- (11.25,-1);
    \draw[line width=3pt,color=blue] (11.25,-1) -- (18,-1);
  \end{tikzpicture}
\end{document}

--

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Kjell Magne Fauske | 3 Apr 10:41
Picon

Re: Help for creating a timeline

On Wed, Apr 2, 2008 at 1:31 PM, Matthias Steinbrink <M.Steinbrink <at> gmx.de> wrote:
> Hello all,
>
>  I need some help in creating a time line with some additional information. I have already started [1], but i
was not able to come up with any good solution for my problem.
>
>  What I need are some lines, indicating a given time, that have zigzagged beginnings and/or ends and that
are named in the middle.

Decorations are probably perfect for the zigzagged lines.
>
>  ----800------1200-------1600-------1800-----2000-≥
>
>  <--------------||-------->  <------>>---<<---->
>  >   First      || Second <  >  1.  << 2 >>  3 <
>  <--------------||-------->  <------>>---<<---->
>
>  The beginning and ending of the bars have to precise according to duration.
>  I hope, anyone can help me, thank you in advance,
>

<snip>

I have some problems understanding exactly what you want. Do you have
a link to an existing image/illustration that shows the concept?

- Kjell Magne Fauske

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Hans Meine | 3 Apr 13:49
Picon
Favicon

Re: Help for creating a timeline

Am Mittwoch, 02. April 2008 13:31:03 schrieb Matthias Steinbrink:
>   % Basic time line
>     \draw[->] (0,0) -- (18,0);
>     \draw node at (0,0.5) {800};
>     \draw node at (3,0.5) {1000};
[...]
>     \draw[line width=3pt] (0,-.5) -- (10.5,-.5);
>     \draw[line width=3pt,color=red] (10.5,-.5)

Since you wrote:
> The beginning and ending of the bars have to precise according to duration.
I think I would use coordinate transformations to have more natural 
coordinates (years / decades / centuries or something).  Also, I cleaned up 
the code a little bit:

\begin{tikzpicture}[
  timeline/.style={
    line width=3pt,
    every node/.style={midway,above,text=gray}
  }]

  \draw[->] (8,0) -- (20,0);

  \foreach \century in {8,10,...,20}
    \path (\century,0) node[above] {\century 00};

  \begin{scope}[timeline,yshift=-1.5em]
    \draw       (8,0) -- (15,0);
    \draw[red] (15,0) -- (20,0) node {modern times};
  \end{scope}

  \begin{scope}[timeline,yshift=-3em]
    \draw          (8,0) -- (14.5,0);
    \draw[red]  (14.5,0) -- (15.5,0) node {foo};
    \draw[blue] (15.5,0) -- (20,0);
  \end{scope}

\end{tikzpicture}

--

-- 
Ciao, /  /
     /--/
    /  / ANS

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Picon
Picon

Re: Help for creating a timeline

Thanks for your quick replay and sorry for being so unspecific.

Kjell Magne Fauske schrieb:
  > Decorations are probably perfect for the zigzagged lines.

I thought so two, but I dont really know how to achieve the final result.

 > I have some problems understanding exactly what you want. Do you have
 > a link to an existing image/illustration that shows the concept?

I have tried (really hard) to create a picture. You can find it here:
http://picasaweb.google.com/Matthias.Steinbrink/Uploads
(sorry for the poor try :-), thats why I thought doing it with tikz)

Matthias

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Gmane