Page MenuHomePhabricator

Additional functions and symbols for texvc
Closed, ResolvedPublic

Assigned To
None
Authored By
AzaToth
Oct 31 2006, 6:11 PM
Referenced Files
F3296: math4.patch
Nov 21 2014, 9:26 PM
F3295: more_sym.png
Nov 21 2014, 9:26 PM
F3293: math.png
Nov 21 2014, 9:26 PM
F3294: sideset.png
Nov 21 2014, 9:26 PM

Description

I was digging around in AMSTeX and found some thingis, that could be usefull for
addition, I have managed to implement all but one (see patch).

The commands are:

\begin{align}...\end{align} and \begin{alignat}...\end{alignat}
:They will use the envs aligned and alignedat, and it a better and easier
alternative to ''array''

\begin{smallmatrix}...\end{smallmatrix}
:a matrix in miniature, usefull if you need to include a small matrix in text.

\overset, \underset
:Superior to \stackrel

\sideset
:didn't manage to implement this one, but it's needed if you want to add a prime
or simlar to \sum.

(\binom), \dbinom, \tbinom
:the \binom was defined, but was mission amstex definition, so it could fault if
no other ams tags was used, dbinom and tbinom is shortcuts for
\displaystyle\binom etc...

\dfrac, \tfrac
:\cfrac should only be used in subfracs, dfrac and tfrac for eas of use.

\xleftarrow, \xrightarrow
:A thing people have asked for. This is an arrow, to left or right, with the
abillity to defined text above or below the arrow, and the length of the arrow
is dependent of the length of the text.

\text
:simlar to use as \mbox{foo}, but it's defined in AMSTex, so why not use it?


Version: unspecified
Severity: enhancement

Details

Reference
bz7774

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:26 PM
bzimport added a project: Math.
bzimport set Reference to bz7774.
bzimport added a subscriber: Unknown Object (MLST).

the patch, implementation of them all except \sideset

attachment math4.patch ignored as obsolete

Forgot, that I've also defined \bigl and \bigr etc...

Examples

Some examples made on my test wiki

Attached:

math.png (611×1 px, 87 KB)

added implementatrion of sideset

Finally I was able to create a functional implementation of \sideset

attachment math4.patch ignored as obsolete

syntax and look of sideset

Attached:

sideset.png (175×284 px, 7 KB)

The complete patch

attachment math4.patch ignored as obsolete

Comment on attachment 2608
The complete patch

forgot to remove remder.ml from the patch

previous patch plus some symbols

I found out that I had had forgot a bounch of AMSTeX symbols, so I decided to
add then to the patch

attachment math4.patch ignored as obsolete

The new symbolds added and their syntax

The new symbolds added and their syntax

Attached:

more_sym.png (657×1 px, 141 KB)

Complete patch

Minor bug in \text{} (shouldn't parse the content of text)

attachment math4.patch ignored as obsolete

Cemplete patch

Off course \text most use ams

attachment math4.patch ignored as obsolete

Complete patch

Added deambigious code to html.ml that where missing

attachment math4.patch ignored as obsolete

The MORE complete patch

I have cleaned up the resulting html (changed font-tags to span tags, utilizing
css instead, and make resulting html indented somewhat). Minor cleanup in a
test-file (unused variable removed, so it won't complain).

attachment math4.patch ignored as obsolete

The even MORE Complete Patch

Think it's better to force large letters to be serif (like \sum etc...)

Attached:

The even MORE Complete Patch 2

Added fix for bug 1182

attachment math4.patch ignored as obsolete

robchur wrote:

Please keep fixes for different bugs separate.

(In reply to comment #16)

Please keep fixes for different bugs separate.

Sorry, but I didn't want separate patches lying around.

robchur wrote:

Please keep fixes for different bugs separate. It makes code reviewing easier
and allows us to track patches easily.

(In reply to comment #18)

Please keep fixes for different bugs separate. It makes code reviewing easier
and allows us to track patches easily.

Ok, I fix it

Comment on attachment 2621
The even MORE Complete Patch

reverting to the older patch, separate the bugs

Comment on attachment 2622
The even MORE Complete Patch 2

as before