2 Oct 2011 19:06

The nonexistent "execute at end matrix" option

Is there a way to specify a command to be executed at the end of a
matrix, when the nodes it produces have already been placed but the
styles applied to the matrix are still in effect?

This seems hard to do since a matrix does not honor the option
"execute at end node" (which applies to the internal nodes of the
matrix, but not to the node containing the matrix itself), and neither
"execute at end scope".

I tried to create a style that executes
\aftergroup\commandToBeExecutedLater, but funny things happened when I
applied it to a matrix, and this would probably be unreliable even if
it worked.

Thank you.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2

11 Oct 2011 21:16

balanced chemical reaction arrows

Hallo,

in the following document I get two arrows in opposite directions. What
I would prefer is a double line where the upper (half) arrow points to
the right and the lower (half) arrow points to the left.

I would further like to know how to decrease the space between the
arrows and the text above and below.

Thanks Bernhard

\listfiles
\NeedsTeXFormat{LaTeX2e}
\documentclass[fontsize=10pt%
,a4paper%
,DIV8%
]{scrbook}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\selectlanguage{ngerman}
\usepackage{mathpazo,scalefnt} %neue Schrift, Skalierung von fonts
\usepackage{tikz}

\usepackage{graphicx}
\newcommand{\sbst}[1]{\small\textbf{#1}} %Sbstnamen in Abbildungen

\begin{document}

{\footnotesize
\tikzstyle{saeure}=  [rectangle,minimum size=1.5cm,fill=black!20]


11 Oct 2011 22:17

Re: balanced chemical reaction arrows

Bernhard,

Can you not use the symbol \rightleftarrows in the package amssymb?

Josh

On Oct 11, 2011, at 3:16 PM, Bernhard Kleine wrote:

> Hallo,
>
> in the following document I get two arrows in opposite directions.
> What
> I would prefer is a double line where the upper (half) arrow points to
> the right and the lower (half) arrow points to the left.
>
> I would further like to know how to decrease the space between the
> arrows and the text above and below.
>
>
> Thanks Bernhard
>
> \listfiles
> \NeedsTeXFormat{LaTeX2e}
> \documentclass[fontsize=10pt%
>               ,a4paper%
>               ,DIV8%
>               ]{scrbook}
>  \usepackage[ngerman]{babel}
>  \usepackage[utf8]{inputenc}
>  \selectlanguage{ngerman}


11 Oct 2011 22:39

Re: balanced chemical reaction arrows

Bernhard,

Can you not use the symbol \rightleftarrows in the package amssymb?

Josh

On Oct 11, 2011, at 3:16 PM, Bernhard Kleine wrote:

> Hallo,
>
> in the following document I get two arrows in opposite directions.
> What
> I would prefer is a double line where the upper (half) arrow points to
> the right and the lower (half) arrow points to the left.
>
> I would further like to know how to decrease the space between the
> arrows and the text above and below.
>
>
> Thanks Bernhard
>
> \listfiles
> \NeedsTeXFormat{LaTeX2e}
> \documentclass[fontsize=10pt%
>              ,a4paper%
>              ,DIV8%
>              ]{scrbook}
> \usepackage[ngerman]{babel}
> \usepackage[utf8]{inputenc}
> \selectlanguage{ngerman}


11 Oct 2011 22:54

Re: balanced chemical reaction arrows

Bernhard,

Can you not use the symbol \rightleftarrows in the package amssymb?

Josh

On Oct 11, 2011, at 3:16 PM, Bernhard Kleine wrote:

> Hallo,
>
> in the following document I get two arrows in opposite directions.
> What
> I would prefer is a double line where the upper (half) arrow points to
> the right and the lower (half) arrow points to the left.
>
> I would further like to know how to decrease the space between the
> arrows and the text above and below.
>
>
> Thanks Bernhard
>
> \listfiles
> \NeedsTeXFormat{LaTeX2e}
> \documentclass[fontsize=10pt%
>             ,a4paper%
>             ,DIV8%
>             ]{scrbook}
> \usepackage[ngerman]{babel}
> \usepackage[utf8]{inputenc}
> \selectlanguage{ngerman}


11 Oct 2011 23:48

Re: balanced chemical reaction arrows

On Tue, Oct 11, 2011 at 3:17 PM, Joshua Smith <jhs0807 <at> gmail.com> wrote:
> Bernhard,
>
> Can you not use the symbol \rightleftarrows in the package amssymb?
>

Or \rightleftharpoons and \leftrightharpoons?

See: http://www.physicsforums.com/showpost.php?p=466106&postcount=27

John

> Josh
>
>
> On Oct 11, 2011, at 3:16 PM, Bernhard Kleine wrote:
>
>> Hallo,
>>
>> in the following document I get two arrows in opposite directions.
>> What
>> I would prefer is a double line where the upper (half) arrow points to
>> the right and the lower (half) arrow points to the left.
>>
>> I would further like to know how to decrease the space between the
>> arrows and the text above and below.
>>
>>
>> Thanks Bernhard
>>


12 Oct 2011 08:47

Re: balanced chemical reaction arrows

Hi,

For the arrow: load the tikz library arrows and use the -left to' arrow
instead of ->'

For the spacing, add a length to the above and below options (e.g.,
above=0.5cm). Although, as you are using the older \tikzstyle rather
than the newer (and much more powerful) \tikzset, you may be using a
version that doesn't support this.

Regards

Mark
PS. For reference, here is a version of your picture using keys rather
than styles and some other newer stuff (decorations and positionings).
It does, however, require the latest release of PGF/TikZ

\documentclass[fontsize=10pt,a4paper,DIV8]{scrbook}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations}
\usetikzlibrary{positioning}

\pgfdeclaredecoration{double half arrows}{final}{
\state{final}[width=\pgfdecoratedpathlength]{
\draw [-left to, double half options]
(0,\pgfdecorationsegmentamplitude) -- +(\pgfdecoratedpathlength,0);
\draw [left to-, double half options]
(0,-\pgfdecorationsegmentamplitude) -- +(\pgfdecoratedpathlength,0);


12 Oct 2011 11:10

Re: balanced chemical reaction arrows

Hello Bernhard,

see the mhchem package on ctan:

http://www.ctan.org/pkg/mhchem

Its very useful for typesetting chemical reactions and forumlas.

Best regards,
Clemens

On Tue, Oct 11, 2011 at 09:16:56PM +0200, Bernhard Kleine wrote:
> Hallo,
>
> in the following document I get two arrows in opposite directions. What I
> would prefer is a double line where the upper (half) arrow points to the
> right and the lower (half) arrow points to the left.
>
> I would further like to know how to decrease the space between the arrows and
> the text above and below.
>
>
> Thanks Bernhard
>
> \listfiles
> \NeedsTeXFormat{LaTeX2e}
> \documentclass[fontsize=10pt%
>                ,a4paper%
>                ,DIV8%
>                ]{scrbook}


12 Oct 2011 13:48

Re: balanced chemical reaction arrows aka harpoons or partial arrow tips

Am Mittwoch, den 12.10.2011, 09:45 +0200 schrieb Clemens Helfmeier:
> Hello Bernhard,
>
> see the mhchem package on ctan:
>
> http://www.ctan.org/pkg/mhchem
>
> Its very useful for typesetting chemical reactions and forumlas.
>
> Best regards,
>  Clemens
>
>
> On Tue, Oct 11, 2011 at 09:16:56PM +0200, Bernhard Kleine wrote:
> > Hallo,
> >
> > in the following document I get two arrows in opposite directions. What I
> > would prefer is a double line where the upper (half) arrow points to the
> > right and the lower (half) arrow points to the left.
> >
> > I would further like to know how to decrease the space between the arrows and
> > the text above and below.
> >
> >
> > Thanks Bernhard
> >
> > \listfiles
> > \NeedsTeXFormat{LaTeX2e}
> > \documentclass[fontsize=10pt%
> >                ,a4paper%


12 Oct 2011 15:12

Re: balanced chemical reaction arrows

Am Mittwoch, den 12.10.2011, 11:48 +0000 schrieb
pgf-users-request <at> lists.sourceforge.net:
> Message: 2
> Date: Wed, 12 Oct 2011 07:47:36 +0100
> From: Mark Wibrow <m.wibrow <at> gmail.com>
> Subject: Re: [Pgf-users] balanced chemical reaction arrows
> To: pgf-users <at> lists.sourceforge.net
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> For the arrow: load the tikz library arrows and use the -left to'
> arrow
> instead of ->'
>
> For the spacing, add a length to the above and below options (e.g.,
> above=0.5cm). Although, as you are using the older \tikzstyle rather
> than the newer (and much more powerful) \tikzset, you may be using a
> version that doesn't support this.
>
> Regards
>
> Mark
> PS. For reference, here is a version of your picture using keys
> rather
> than styles and some other newer stuff (decorations and positionings).
> It does, however, require the latest release of PGF/TikZ
>
> \documentclass[fontsize=10pt,a4paper,DIV8]{scrbook}