aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn_term.c
Commit message (Collapse)AuthorAgeFilesLines
* remove spacing after another representation of unary minusIngo Schwarze2017-08-231-3/+5
|
* remove spacing after unary minusIngo Schwarze2017-08-231-3/+5
|
* eliminate white space after opening and before closing punctuationIngo Schwarze2017-08-231-2/+8
|
* Suppress spacing before certain kinds of lists.Ingo Schwarze2017-08-231-3/+13
| | | | | | | One benefit is a reduced probablity that a blank appears between a function name and the opening parenthesis introducing the arguments. The heuristics isn't perfect and may occasionally suppress a blank that wouldn't do harm.
* 1. Eliminate struct eqn, instead use the existing membersIngo Schwarze2017-07-081-3/+3
| | | | | | of struct roff_node which is allocated for each equation anyway. 2. Do not keep a list of equation parsers, one parser is enough. Minus fifty lines of code, no functional change.
* add parentheses to the output where required for disambiguationIngo Schwarze2017-07-071-6/+28
|
* Fix operator precedence according to Brian W. Kernighan and LorindaIngo Schwarze2017-07-061-10/+9
| | | | | L. Cherry, "Typesetting Mathematics - User's Guide (Second Edition)", August 15, 1978, paragraph 23; swarm of bugs pointed out by bentley@.
* The EQN_LISTONE box type is pointless.Ingo Schwarze2017-07-051-4/+7
| | | | | | Simplify by just using EQN_LIST with expectargs = 1. Noticed while investigating a bug report from bentley@. No functional change.
* Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze2017-02-121-5/+8
| | | | Crashes found by tb@ with afl(1).
* Don't dereference NULL pointers when formatting missing denominators,Ingo Schwarze2015-01-011-9/+12
| | | | | subscripts, superscripts, or "from" or "to" arguments. Found by jsg@ with afl.
* major upgrade to eqn(7) terminal output;Ingo Schwarze2014-10-121-18/+65
| | | | | column vectors ("piles") and matrices are not yet pretty, but everything else is now more or less readable
* Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.Ingo Schwarze2014-08-101-3/+3
| | | | | | Include <sys/types.h> where needed, it does not belong in config.h. Remove <stdio.h> from config.h; if it is missing somewhere, it should be added, but i cannot find a *.c file where it is missing.
* KNF: case (FOO): -> case FOO:, remove /* LINTED */ and /* ARGSUSED */,Ingo Schwarze2014-04-201-2/+3
| | | | | remove trailing whitespace and blanks before tabs, improve some indenting; no functional change
* Tuned the initial eqn output, making it completely simple. ThisKristaps Dzonsons2011-07-241-31/+25
| | | | completes a full initial eqn system, so I'm tagging a release on it.
* Flip on equation printing for -T[x]html.Kristaps Dzonsons2011-07-231-5/+5
|
* Add matrix support. Also remove "above" notion, as all elements in aKristaps Dzonsons2011-07-231-7/+1
| | | | list are delimited by their "aboveness" and it's superfluous.
* Add character output (-Tpdf, -Tps, -Tascii) for equations. This is theKristaps Dzonsons2011-07-221-0/+88
minimum: unseparated terms.