[OS X TeX] amsmath +/- lingmacros

Roussanka Loukanova rloukano at stp.lingfil.uu.se
Sun May 18 22:47:41 CEST 2008


Hi,

> philex.sty builds on linguex.sty and adds among other things some formatting 
> options that makes it suitable for single line equations, even though no 
> function for alignment of multiline equations.

Thanks: it seems that philex.sty does quite much of what I need.
But, to have all more engaging, I also need to add AVM matrices (avm.sty) 
in some of the lines. I'll have to find some rational combination of 
(minimal number of) styles.

Roussanka
>
> Peter
>
> Roussanka Loukanova wrote:
>>  Alan, thanks a lot: I didn't know about linguex.sty, up to now. I have
>>  tried it and examples look very pretty, with cases and sub-cases,
>>  consequently enumerated and indented as the math align environment. They
>>  are very intuitive to use.
>>
>>  I'll try linguex.sty more extensively for combinations with other
>>  environments.
>>
>>  Roussanka
>>
>>  On Sun, 18 May 2008, Alan Munn wrote:
>> 
>> >  At 12:06 AM +0200 5/18/08, Roussanka Loukanova wrote:
>> > >  Hi again,
>> > > 
>> > >  Please, accept my apologies for this another yet off-list topic 
>> > >  question..
>> > > 
>> > >  I have trouble using amsmath and lingmacros together because 
>> > >  lingmacros sets its own counter for enumerated displays.
>> > > 
>> > >  I am typesetting a paper, in which I have math formulas and examples 
>> > >  of English sentences and need to have all them consecutively 
>> > >  enumerated.
>> > > 
>> > >  English sentences get nicely enumerated and left aligned, as is 
>> > >  customary in linguistics, with lingmacros.sty. But lingmacros.sty uses 
>> > >  a separate counter from that of amsmath.
>> > 
>> >  I would recommend using linguex.sty instead of lingmacros.
>> > 
>> >  To make the counters the same, add the following to your preamble (using 
>> >  linguex).
>> > 
>> >  \makeatletter
>> >  \let\c at ExNo=\c at equation
>> >  \makeatother
>> > 
>> >  Then you can intersperse equations and example sentences.
>> > 
>> >  If you want to continue to use lingmacros, you can make the lingmacros 
>> >  counter use the equation counter in the same way:
>> > 
>> >  \makeatletter
>> >  \let\c at enums=\c at equation
>> >  \makeatother
>> > 
>> >  However, because lingmacros uses a regular list, it indents the number, 
>> >  and you'd need to mess around
>> >  to get the numbers to line up (so that your example numbers are indented 
>> >  the same distance as your equation numbers.)
>> > 
>> >  In principle you could do this with:
>> > 
>> >  \setlength{\leftmargini}{18pt}
>> > 
>> >  But this will have the effect of making all lists have this indent, 
>> >  which may not be what you want, if you have other 
>> >  itemize/enumerate/description lists.
>> > 
>> >  This is why using linguex would probably be easier.
>> > 
>> >  Alan
>> >



More information about the macostex-archives mailing list