Adrian Green | 1 Apr 2007 17:03
Picon

minmap and beamer

Hi,

I'd like to use a mindmap on a beamer slide, just a node and three 
children. While it is easy to generate the node/children, the picture as 
a whole is slighly too large to fit on the slide. Yet I haven't been 
able to find a option to 'scale' the mindmap picture or two decrease the 
size of the central node. Any advice would be greatly appreciated.

minimal example:
\documentclass{beamer}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\usetheme{AnnArbor}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}

\begin{document}
\begin{frame}
	\frametitle{Text goes here}
	\tikzstyle{every annotation}=[fill=black!20]
\begin{tikzpicture}
\path[mindmap,concept color=blue,text=white]
node[concept]{Text}
	[clockwise from=330]
	child[concept color=green!50!black]{%
			node[concept](trans){trans}}
	child[concept color=red!50!black]{%
			node[concept](viral){viral}}
(Continue reading)

Erik Quaeghebeur | 1 Apr 2007 22:51

Re: minmap and beamer

On Sun, 1 Apr 2007, Adrian Green wrote:

> Yet I haven't been able to find a option to 'scale' the mindmap picture 
> or two decrease the size of the central node.

The (|x|y)scale option? See the manual for more info. This can be used on 
the tikzpicture as a whole (\begin{tikzpicture}[scale=.5]) or for paths
elements (\draw[scale=2] ...) and (?) nodes.

Erik

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Adrian Green | 2 Apr 2007 08:40
Picon

Re: minmap and beamer

Hi,

Erik Quaeghebeur wrote:

> The (|x|y)scale option? See the manual for more info. This can be used on 
> the tikzpicture as a whole (\begin{tikzpicture}[scale=.5]) or for paths
> elements (\draw[scale=2] ...) and (?) nodes.

Yes, indeed. Kjell Magne Fauske gave me that hint about the 'scale' 
option , too, together with a 'transform shape': [scale=.8,transform 
shape] did the job.

Thank you!

adrian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Kjell Magne Fauske | 2 Apr 2007 09:47
Picon

Re: minmap and beamer

On 4/1/07, Adrian Green <harvardsommer <at> gmx.net> wrote:
>
> I'd like to use a mindmap on a beamer slide, just a node and three
> children. While it is easy to generate the node/children, the picture as
> a whole is slighly too large to fit on the slide. Yet I haven't been
> able to find a option to 'scale' the mindmap picture or two decrease the
> size of the central node. Any advice would be greatly appreciated.

Nodes are by default not affected by transforms. To scale the mindmap use

\begin{tikzpicture}[scale=0.9,transform shape]
....
\end{tikzpicture}

To change the size of the root node you can use:

\tikzstyle{root concept}+=[minimum size=1.5cm, text width=1cm]

(experiment with minimum size and text width)

Regards,
Kjell Magne Fauske

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Adrian Green | 2 Apr 2007 13:08
Picon

Re: minmap and beamer

Hi,

Kjell Magne Fauske wrote:

> To change the size of the root node you can use:
> 
> \tikzstyle{root concept}+=[minimum size=1.5cm, text width=1cm]
> 
> (experiment with minimum size and text width)

I'll give that a try as well.

Thanks.

adrian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Erik Quaeghebeur | 2 Apr 2007 22:55

isolating nested tikz code from outer tikz code

Hello,

I've got some macros that create a new, combined symbol using tikz code:

\newcommand{\lp}{{\protect\mathord{
   \tikz{
     \useasboundingbox node[inner sep=0pt,outer sep=0pt] {\ensuremath{\p}};
     \draw[line width=.08ex,-] ++(-.35em,-.9ex) -- +(.5em,0ex);
   }
}}}

\newcommand{\up}{{\protect\mathord{
   \tikz{
     \useasboundingbox node[inner sep=0pt,outer sep=0pt] {\ensuremath{\p}};
     \draw[line width=.08ex,-] ++(-.17em,.89ex) -- +(.5em,0ex);
   }
}}}

It (under|over)lines P better than \(under|over)line does. The [-]-option 
was added to avoid external tikz styles having an effect.

However, when I include this in a tikzpicture, strange things happen:

\begin{tikzpicture}[baseline]
   % axes
   \draw[->] (-1,0) -- (1,0) node[below] {};
   \draw[->] (0,-1) -- (0,1) node[left] {};
   % desirable gambles
   \shade[bottom color=lightgray,top color=white,shading angle=-45] (0,0) coordinate (O) -- (-.4,1)
coordinate (top) -- (1,1) -- (1,-.3) coordinate (bottom) -- cycle;
(Continue reading)

Till Tantau | 3 Apr 2007 13:35
Picon
Favicon

Re: isolating nested tikz code from outer tikz code

Hi!

first, I think \newcommand should have an argument [1] and \p should  
read #1, right?
second, the wrong placements seem to be due to changing anchors. Try
\useasboundingbox node[inner sep=0pt,outer sep=0pt,anchor=center] ...

Perhaps anchor=base might be preferable and saying \tikz[baseline] so  
that the code can be used in normal text.

Hoping this helps,
Till

Am 02.04.2007 um 22:55 schrieb Erik Quaeghebeur:

> Hello,
>
>
> I've got some macros that create a new, combined symbol using tikz  
> code:
>
> \newcommand{\lp}{{\protect\mathord{
>    \tikz{
>      \useasboundingbox node[inner sep=0pt,outer sep=0pt]  
> {\ensuremath{\p}};
>      \draw[line width=.08ex,-] ++(-.35em,-.9ex) -- +(.5em,0ex);
>    }
> }}}
>
> \newcommand{\up}{{\protect\mathord{
(Continue reading)

Erik Quaeghebeur | 3 Apr 2007 22:30

Re: isolating nested tikz code from outer tikz code

On Tue, 3 Apr 2007, Till Tantau wrote:
>
> first, I think \newcommand should have an argument [1] and \p should 
> read #1, right?

Indeed, something like that.

> second, the wrong placements seem to be due to changing anchors. Try 
> \useasboundingbox node[inner sep=0pt,outer sep=0pt,anchor=center] ...
>
> Perhaps anchor=base might be preferable and saying \tikz[baseline] so 
> that the code can be used in normal text.

Thanks, this solves the positioning problem.

However, I stil have the problem that the symbol thus defined doesn't 
notice it's in math mode, or in a subscript (see minimal example below). 
How can I solve this?

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

\newcommand{\lp}{{
   \tikz[baseline]{
     \useasboundingbox node[inner sep=0pt,outer sep=0pt,anchor=base] (lp) {P};
     \draw[line width=.08ex,-] (lp.south west) ++(.03em,-.2ex) -- +(.45em,0ex);
   }
}}

(Continue reading)

Till Tantau | 4 Apr 2007 11:30
Picon
Favicon

Re: isolating nested tikz code from outer tikz code

Please lookup TeX's \mathchoice command, that will do the trick.

Till

Am 03.04.2007 um 22:30 schrieb Erik Quaeghebeur:

> On Tue, 3 Apr 2007, Till Tantau wrote:
>>
>> first, I think \newcommand should have an argument [1] and \p should
>> read #1, right?
>
> Indeed, something like that.
>
>> second, the wrong placements seem to be due to changing anchors. Try
>> \useasboundingbox node[inner sep=0pt,outer sep=0pt,anchor=center] ...
>>
>> Perhaps anchor=base might be preferable and saying \tikz[baseline] so
>> that the code can be used in normal text.
>
> Thanks, this solves the positioning problem.
>
> However, I stil have the problem that the symbol thus defined doesn't
> notice it's in math mode, or in a subscript (see minimal example  
> below).
> How can I solve this?
>
> ---
> \documentclass{article}
> \usepackage{tikz}
>
(Continue reading)

mitooquerer | 4 Apr 2007 12:00
Picon
Favicon

Re: TikZ for geometric drawings?


I know it is not TikZ, but haven´t you tried Mathspic?
http://www.ctan.org/tex-archive/graphics/mathspic/dos/mpicm21.pdf (old
manual, see page 14, 25)

Downloads: http://dante.ctan.org/indexes/graphics/mathspic/

I used the DOS version, I assume the Perl version works better. I think it
should solve some of your problems... like perpendiculars, middle point,
etc..

Mitoo

Alain Matthes-2 wrote:
> 
> 
> Le 11 févr. 07 à 22:13, rouben.rostamian <at> comcast.net a écrit :
> 
>> Daniel Flipo <daniel.flipo <at> univ-lille1.fr> wrote:
>>
>>> 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).
>>
>> I too wish that TikZ had greater capability for doing
>> standard geometric constructions. As far as I can tell,
>> basic functionality, such as querying the coordinates
>> of an intersection is not available (yet). In November I
>> wrote to this mailing list asking: "Given points P and Q,
>> is there a way to draw a circle centered at P that goes
(Continue reading)


Gmane