Hans Meine | 2 Nov 14:22 2007
Picon

Externalizing Graphics within subdirectories?

Hi!

I am currently unsuccessfully trying to externalize graphics within my PhD 
thesis.  I am constantly getting errors like the following:

(./Figures/house-example/house-GeoMap.tikzError (0): PDF file is damaged - 
attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

Error: pdflatex (file Figures/house-example/house-GeoMap.pdf): xpdf: reading 
PD
F image failed
 ==> Fatal error occurred, the output PDF file is not finished!

where "Figures/house-example/house-GeoMap.tikz" is the picture, included with 
\input{Figures/house-example/house-GeoMap.tikz} from the main file.

I have now tried the same approach in another shorter document, where all 
images are within the same directory (no Figures/ subdir), and it worked.  
(Great feature BTW! :-) )

Are there known problems with images within subdirectories?
Would you use \beginpgfgraphicnamed{Figures/house-example/house-GeoMap}
or \beginpgfgraphicnamed{house-GeoMap}?  (I have tried both, with the same 
error message as shown above.  I have also cleared any generated files 
between successive tries.)

I have also tried different figures, but the only differences between my 
working example and the non-working are now the subdirectories and the 
(Continue reading)

Hans Meine | 2 Nov 16:20 2007
Picon

Re: Externalizing Graphics within subdirectories?

Am Freitag, 02. November 2007 14:22:55 schrieb Hans Meine:
> (./Figures/house-example/house-GeoMap.tikzError (0): PDF file is damaged -
> attempting to reconstruct xref table...
> Error: Couldn't find trailer dictionary
> Error: Couldn't read xref table
>
> Error: pdflatex (file Figures/house-example/house-GeoMap.pdf): xpdf:
> reading PD
> F image failed
>  ==> Fatal error occurred, the output PDF file is not finished!

Forget about this, I found the error.  The above is exactly what happens if 
tikz is not included (but only pgfexternal), or if pgfrealjobname is not 
used.  (The latter was the case for me due to /me being confused while 
editing too many files..)

However, I want to point out a small obstacle that might bit more people: The 
docs say "\pgfrealjobname tells PGF the real name of your job".  I would 
add ", which *must* be the same as your main document (e.g. ``survey'' if 
your desired output file is survey.dvi/pdf)".  IMO, this is not said 
explicitly enough: above, it says "the real name of your .tex file", and 
below, it says "for example, ... you should write the following:", 
but "should" is not the same as "must".

The problem is that I chose a speaking name for "the real job", which was not 
identical to "the real job name" as set by latex.  Consequently, the output 
was gobbled, as follows from the (actually good) explanation in the docs.

--

-- 
Ciao, /  /
(Continue reading)

rpapa | 3 Nov 22:38 2007
Picon

problem with subfigure


	
I can not compile the small example below (you must use tikz and gnuplot).
- If I use the package subfigure I get an error.
If I delete the sous-figure it works (see Example 2)
- And if I delete the scope, it works (see Example 3)

	
I do more, it is probably a problem tikz,
Error message
 Argument of \tikz <at> plot <at> samples <at> recalc has an extra }.

Thanks

Exemple 1
==============
\documentclass[a4paper,11pt]{book}                     

\usepackage[latin1]{inputenc}                
\usepackage[T1]{fontenc}   
\usepackage[frenchb]{babel} 
\usepackage{palatino} 

\usepackage{tikz}
\usepackage{subfigure}
\usepackage{ifthen}

\newboolean{ <at> twopt} \setboolean{ <at> twopt}{false}
\newcommand*{\twoptoff}{\ifnum \catcode`\:=13 \catcode`\:=12%
\setboolean{ <at> twopt}{true} \fi}
(Continue reading)

Kubovy Michael | 8 Nov 02:15 2007
Picon

Creating cloud and reusing it

Dear TikZ users,

I would like to create a shape that looks like a comic-book cloud,  
and to be able to place copies of it wherever I want. Can anyone give  
me some pointers as to how to do this?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Mark Wibrow | 8 Nov 09:28 2007

Re: Creating cloud and reusing it

Hi!

There is a cloud shape in the symbol shape library in the CVS which
can be used as a node. I seem to recall somehing on my `to do' list
concerning the cloud shape (can't remember what), but it should be
working.

You can change the number of `puffs' the cloud has using the option

cloud puffs=<integer>

I hope this is what you require.

Regards

Mark

On 08/11/2007, Kubovy Michael <mk9y <at> mac.com> wrote:
> Dear TikZ users,
>
> I would like to create a shape that looks like a comic-book cloud,
> and to be able to place copies of it wherever I want. Can anyone give
> me some pointers as to how to do this?
> _____________________________
> Professor Michael Kubovy
> University of Virginia
> Department of Psychology
> USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
> Parcels:    Room 102        Gilmer Hall
>         McCormick Road    Charlottesville, VA 22903
(Continue reading)

Kjell Magne Fauske | 8 Nov 09:48 2007
Picon

Re: Creating cloud and reusing it

On Nov 8, 2007 2:15 AM, Kubovy Michael <mk9y <at> mac.com> wrote:
> Dear TikZ users,
>
> I would like to create a shape that looks like a comic-book cloud,
> and to be able to place copies of it wherever I want. Can anyone give
> me some pointers as to how to do this?

If you want to place it wherever you want on a page, overlays are
probably the way to go. Maybe you could try something like this:

--
\documentclass{article}
\usepackage{tikz}
\begin{document}

\newcommand\callout[1]{%
\tikz[overlay] {\path[draw] (0,0) -- (60:1) node[draw,fill=blue!20] {#1};}}%

This is some text\callout{Test} skldjf lskd lkjsdlfkj lk sdlkfj lskdf
sdlfkj sdf lskdjf lskdjf lkjs dlfkjs dlfk

Lorem\callout{More text} ipsum dolor sit amet\callout{Test}, consectetuer
adipiscing elit. Vestibulum a urna. Donec nisl. Vestibulum euismod
fringilla magna.
Pellentesque posuere pede ut erat. Lorem ipsum dolor sit amet,

\end{document}
----

(I have not used the cloud shape)
(Continue reading)

Kubovy Michael | 8 Nov 16:52 2007
Picon

Re: Creating cloud and reusing it

Hi Kjell,

Actually I'm looking for two things: (1) a cloud object, and (2) the  
general technique for creating an object (e.g., a cloud, but it could  
be an object of arbitrary complexity I want to reuse), and then,  
*inside the tikz environment*, issue several commands such as
\draw (x, y) node[cloud,cloud size = cs,cloud lobes = cl]{text}
or
\draw (x, y) cloud[cloud size = cs,cloud lobes = cl]

To give you an idea of an obviously inefficient (programming-wise)  
attempt:

	\begin{tikzpicture}
		\draw[thick,rounded corners = 12pt] (0, 1.5) -- (10, 1.5) -- (10,  
13) -- (0, 13) -- cycle;
		\draw[thick] (2.5, 4) -- (5, 7.25) -- (5, 10.5);
		\draw[thick] (5, 7.25) -- (7.5, 4);
		\draw[out=75,in=105, relative, fill = white] (4,12) to (6,12) to  
(7,11) to (7, 10) to (6, 9) to (4, 9) to (3, 10) to (3, 11) to (4, 12);
		\draw (5, 10.5) node{\textsf{audio-visual objects}};

		\draw[thick] (2.5, 4) -- (3.5, 0.4);
		\draw[thick] (2.5, 4) -- (1.5, 0.4);
		\draw[rounded corners = 8pt, fill = white] (3, 6.5) -- (3, 8) --  
(7, 8) -- (7, 6.5) -- cycle;
		\draw (3, 7.45) node[anchor = east]{\textsf{\emph{conditions\/}}};
		\draw (3, 7.05) node[anchor = east]{\textsf{\emph{for binding\/}}};
		\draw (5, 7.5) node {\textsf{simultaneity}};
		\draw (5, 7) node {\textsf{plausible common cause}};
(Continue reading)

Mark Wibrow | 9 Nov 08:38 2007

Re: Creating cloud and reusing it

On 08/11/2007, Kubovy Michael <mk9y <at> mac.com> wrote:
> Actually I'm looking for two things: (1) a cloud object, and (2) the
> general technique for creating an object (e.g., a cloud, but it could
> be an object of arbitrary complexity I want to reuse.

To create `objects' to you could get into \pgfdeclareshape, this is
how all the node shapes use in TikZ are created. It is described in
the manual, but It does however require you be familiar with the basic
level commands.

I bunged an updated version of the cloud in the CVS last night, which
responds a little better to minimum size. If you like "living on the
edge" with the newer CVS stuff (including the keys stuff and the fit
library) the picture you coded can be pretty much done in LaTeX like
this:

\usetikzlibrary{shapes.symbols}
\usetikzlibrary{fit}

\begin{tikzpicture}
\tikzset{
  cloud node/.style={
    cloud, cloud puff arc=140, inner sep=0pt, minimum width=3.5cm,
    minimum height=2.5cm, draw, font=\sf},
  rectangle node/.style={
    rectangle, text width=#1, font=\sf, text centered,
    minimum height=1.5cm, draw,rounded corners=1ex},
  label node/.style={anchor=#1, font=\sf, text width=2cm},
  every child/.style={sibling distance=5cm},
  level distance=3cm, level 3/.style={level distance=4cm},
(Continue reading)

Axel E. Retif | 10 Nov 07:42 2007
Picon

Re: Creating cloud and reusing it

On  9 Nov, 2007, at 01:38, Mark Wibrow wrote:

> On 08/11/2007, Kubovy Michael <mk9y <at> mac.com> wrote:
>
>> Actually I'm looking for two things: (1) a cloud object, and (2) the
>> general technique for creating an object (e.g., a cloud, but it could
>> be an object of arbitrary complexity I want to reuse.
>>
>
> To create `objects' to you could get into \pgfdeclareshape, this is
> how all the node shapes use in TikZ are created. It is described in
> the manual, but It does however require you be familiar with the basic
> level commands.
>
> I bunged an updated version of the cloud in the CVS last night, which
> responds a little better to minimum size.
>

I upgraded from CVS today. Unfortunately, now typesetting the Manual  
sends the error

!Package pgfkeys Error: I do not know the key '/tikz/could aspect'  
and I am going to ignore it. Perhaps you misspelled it.

Indeed, the old library pgflibraryshapes.symbols.code.tex has

\pgfkeys{/pgf/cloud aspect/.value required}%
\pgfkeys{/pgf/cloud aspect/.code={%, etc.

missing in the new library.
(Continue reading)

Mark Wibrow | 10 Nov 10:51 2007

Re: Creating cloud and reusing it

On 10/11/2007, Axel E. Retif <axel.retif <at> mac.com> wrote:
> Indeed, the old library pgflibraryshapes.symbols.code.tex has
>
> \pgfkeys{/pgf/cloud aspect/.value required}%
> \pgfkeys{/pgf/cloud aspect/.code={%, etc.
>
> missing in the new library.

Hi!

Indeed, I have (possibly permanently) removed the cloud aspect key but
had not updated the documentation, which has now been done in the CVS.

Regards,

Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Gmane