[GiNaC-list] About non commutative transformations in GiNaC

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Tue Jan 24 20:41:37 CET 2017

>>>>> On Wed, 25 Jan 2017 00:21:11 +0500, abpetrov <abpetrov at ufacom.ru> said:
    ABP> Can I get latex output for a and ap like
    ABP> a^{- i_1 ... i_n}_{j_1 ... j_n} with contravariant and
    ABP> covariant indexes?

    ABP> For ncsymbol class I can do it.  When I tried to do it with
    ABP> clifford with program

    ABP> cout << latex << endl; cout << indexed(a,nu) << endl;

    ABP> I got next result:

    ABP> {\clifford[0]{e}_{{0} }}_{{\nu} }

    ABP> It contains excess symbols like {\clifford[0]{e}_{{0} }} and
    ABP> don't contains a^{-} or a^{+}

    Here is a quote from the tutorial with some ideas:

LaTeX output for Clifford units looks like '\clifford[1]{e}^{{\nu}}',
where '1' is the 'representation_label' and '\nu' is the index of the
corresponding unit.  This provides a flexible typesetting with a
suitable definition of the '\clifford' command.  For example, the
typesets all Clifford units identically, while the alternative
         \newcommand{\clifford}[2][]{\ifcase #1 #2\or \tilde{#2} \or \breve{#2} \fi}
prints units with 'representation_label=0' as 'e', with
'representation_label=1' as '\tilde{e}' and with
'representation_label=2' as '\breve{e}'.

  Alternatively, you can use a tool like sed to modify GiNaC output to
  something suitable.

  Best wishes,
Vladimir V. Kisil                 http://www.maths.leeds.ac.uk/~kisilv/
  Book:     Geometry of Mobius Transformations     http://goo.gl/EaG2Vu
  Software: Geometry of cycles          http://moebinv.sourceforge.net/

More information about the GiNaC-list mailing list