Enrico Bertolazzi
Laboratorio di Matematica Applicata e Meccanica Computazionale
Dipartimento di Ingegneria Meccanica e Strutturale
Università degli Studi di Trento
Mesiano, Trento, Italy
enrico.bertolazzi@ing.unitn.it
\documentclass{article} . . \usepackage[allnumber,warning, easyold, fleqn,leqno,math]{easyeqn} . . |
The package1introduces the EQ and EQA environments. The package options are:
allnumber | Means that all of the EQ and EQA environments are numbered. Without that option, only those EQ and EQA environment that are labeled and referenced are numbered. |
warning | Causes equations that are labeled but not referenced to be flagged. |
easyold | Produce obsolete environment EQS, EQS*, EQ*, EQA* for backward compatibilty. |
fleqn | Flushes equation on the left margin. |
leqno | Writes equation number on the left. |
math | Define additional macros for mathematics. |
|
Note that the reference is done by \eqref or \refeq. The command \refeq produces the same output as \ref, while \eqref uses ( ) for the output.
Remark: Due to the algorithm implementation, in order to obtain the right cross reference, you need to recompile the file 3 times. The use \label is not permitted inside EQ* environments and if you use \ref for referencing equations the results are unpredictable2.
This is another example:
|
Note that between [...]
you can specify the column alignment
in the same way as in the array or tabular
environment3.
The permitted alignment are l
for left alignment,
r
for right alignment and c
for centering. There is also
the character ``.
'' that used between definition of two columns
disable the spacing between columns as in the following example taken
from the documentation of EQNARRAY of Roland Winkler;
|
in this example we have used also the command \eqmulticol the syntax is the following
\eqmulticol{ncol}{align}{body}where
ncol | is the number of column to fuse. |
aling | is the alignment, it can be l , r , c .
|
body | is the thing to put across the column. |
|
|
Note that only the referenced lines or the lines with \yesnumber are numbered.
\label{labelname} \label[eqnum] \label[eqnum]{labelname} \label(eqnum) \label(eqnum){labelname}where ``
[eqnum]
'' is an optional argument that if defined,
equation displays ``eqnum
'' instead of
``(equation number)
''. The equation counter is not advanced and
``labelname
'' if present will refer to ``eqnum
''.
If we use where ``(eqnum)
'' is an optional argument that if
defined, equation displays ``(eqnum)
'' instead of
``(equation number)
''. The equation counter is not advanced
and ``labelname
'' if present will refer to ``eqnum
''.
Look at this example:
|
Notice that custom label are always displayed also if they are not referenced.
![]() |
\eqlabeltop |
![]() |
\eqlabelbot |
![]() |
\eqlabelcenter |
For example:
|
\begin{subequations} \begin{EQ}... \end{EQ} \end{subequations}I prefer to use \label command with the character
~
as a shortcut for the command \theequation. The following example shows
the use
|
the \yesnumber command is necessary to enforce advancing of equation counter.
\documentclass{article} . . \usepackage[fleqn,leqno]{easyeqn} . .the effect with this example:
|
The same effect can be obtained everywhere using the commands \equationleft and \numberleft before defining the equation. To restore the default values use the commands \equationcenter and \numberright after the equation.
left indent | When the equations are fluxed left, the left indent
can be changed by the command \eqleftmargin.
\eqleftmargin{new indent}for example \eqleftmargin{1cm}The default value for the left margin is \leftmargini.
|
equation spacing | The spacing around a formula,
(default 7pt ) can be changed by the command
\eqspacing{new spacing}for example \eqspacing{4pt} |
column spacing |
The spacing between columns (default value 4pt ) can be changed by the command
\eqcolumnsep{new spacing}for example \eqcolumnsep{10pt} |
row spacing | The spacing between rows in multiple
equations (default value 7pt ) can be changed by the command
\eqrowsep{new spacing}for example \eqrowsep{10pt} |
for example
|
\documentclass{article} . . \usepackage[...,math]{easyeqn} . .we can use additional macros for typesetting mathematics, the following macros are defined \frac, \dfrac, \tfrac, \binom and \boxed which use is described in the following example:
|
The macro \eqbox is defined, the effect is the following
|
The macros \norm and \abs are defined, the effect is the following
|
The macro \ParDer is defined, the effect is the following
|
notice that single item of derivative must be a single letter (or a
macro) or must be inside a group { ... }
.
If you use \ParDer with package EASYVECTOR
remember to put macros in brace when use ``
'' as follows:
|
otherwise you obtain strange think like the following
|
The macros \DIV, \GRAD and \LAPLA are defined, the effect is the following
|
The macro \SUM is defined, the effect is the following
|
The macro \PROD is defined, the effect is the following
|
The environment ARRAY is defined, is a simple subset of the environment array with a different spacing; look the following example
|
The environment MATRIX is defined, is a simple replacement of \matrix command with a different spacing; look the following example
|
This document was generated using the LaTeX2HTML translator Version 99.1 release (March 30, 1999)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -local_icons -no_navigation -split 0 doceqn
The translation was initiated by Bertolazzi Enrico on 1999-10-22