Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] How to align equations left

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] How to align equations left


Chronological Thread 
  • From: Kai Sattler <address@hidden>
  • To: address@hidden, Peter Pan <address@hidden>
  • Subject: Re: [TeXmacs] How to align equations left
  • Date: Fri, 18 Feb 2005 10:18:27 +0100


2005-02-17 15:10:53 -0400, Peter Pan <address@hidden>:
> Hi all,
>
> when I insert equations, they always align right.
> If I highlight the equations needed to be aligned left, choose
> Format->Alignment->Left Ragged or others, it doesn't work at all.
> Anyone knows how to let them align left correctly?
> Thank you very much.
>
> --
> Best Wishes
>
> Peter Pan
>
I managed to align equations 12.5mm from the left by introducing an own
math style file (copy env-math.ts to ~/.TeXmacs/packages/env-math-own.ts)
and modifying


--env-math.ts----------------------------------------------
<TeXmacs|1.0.3>

...


<assign|equation|<macro|body|<with|mode|math|math-display|true|par-sep|0.45fn|<surround|<no-page-break*><vspace*|0.5fn><no-indent><assign|equationnr|<plus|<value|equationnr>|1>><assign|thelabel|<theequation>><htab|5mm>|<htab|5mm><with|mode|text|(<theequation>)><vspace|0.5fn><no-indent*>|<arg|body>>>>>


--EOF------------------------------------------------------

to

--env-math-own.ts------------------------------------------
<TeXmacs|1.0.3>

...

<\with|par-mode|left>

<assign|equation|<macro|body|<with|mode|math|math-display|true|par-sep|0.45fn|<no-page-break*><vspace*|0.5fn><no-indent><assign|equationnr|<plus|<value|equationnr>|1>><assign|thelabel|<theequation>><space|12.5mm|0|0><arg|body><htab|5mm><with|mode|text|(<theequation>)>>>>
</with>

...

<\initial>
<\collection>
<associate|par-mode|justify>

...

</collection>
</initial>
--EOF------------------------------------------------------


You could use this and change <space|12.5mm|0|0> to <space|0|0|0> (or even
remove it),
then the equation should be left aligned.

Kai



Archive powered by MHonArc 2.6.19.

Top of Page