************************************************************************
* Official mandoc TODO.
-* $Id: TODO,v 1.270 2018/09/23 05:34:58 schwarze Exp $
+* $Id: TODO,v 1.271 2018/10/02 12:18:33 schwarze Exp $
************************************************************************
Many issues are annotated for difficulty as follows:
--- missing eqn features -----------------------------------------------
-- Use a Unicode character for sqrt() in eqn output?
- Suggested by an attendee during EuroBSDCon 2018.
-
- In a matrix, break the output line after each matrix line.
Found in the discussion at CDBUG 2015.
Suggested by Avi Weinstock.
- table of content at the top of HTML (and perhaps ps/pdf) pages
only if there are at least two (or three?) non-standard sections
only if the new option -O toc is given
- suggested by an attendee during EuroBSDCon 2018
+ suggested by Adam Kalisz during EuroBSDCon 2018
- support -O man with two arguments, typically using the first for
a local tree (like the release pages on mandoc.bsd.lv) and the
-/* $Id: eqn_term.c,v 1.17 2017/08/23 21:56:20 schwarze Exp $ */
+/* $Id: eqn_term.c,v 1.18 2018/10/02 12:18:33 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
/* Special box types. */
if (bp->pos == EQNPOS_SQRT) {
- term_word(p, "sqrt");
+ term_word(p, "\\(sr");
if (bp->first != NULL) {
p->flags |= TERMP_NOSPACE;
eqn_box(p, bp->first);
o\bov\bve\ber\br-\b-p\bpr\bre\bec\bce\bed\bde\ben\bnc\bce\be - precedence of the fraction operator
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
- initial text 1 + _\bx + (_\bx^2)/2 + (_\bx^3)/(2 * 3); _\ba^/_\bc~; a\ba/c\bc; sqrt(_\ba)/sqrt(_\bc)
- final text
+ initial text 1 + _\bx + (_\bx^2)/2 + (_\bx^3)/(2 * 3); _\ba^/_\bc~; a\ba/c\bc;
+ <sqrt>(_\ba)/<sqrt>(_\bc) final text
OpenBSD July 6, 2017 OpenBSD
u\bun\bna\bar\bry\by-\b-s\bsq\bqr\brt\bt - square root
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
- initial text _\br = sqrt(_\bx^2 + _\by^2) + sqrt(_\ba + _\bb) + sqrt(_\bx^) + sqrt() + sqrt
- final text
+ initial text _\br = <sqrt>(_\bx^2 + _\by^2) + <sqrt>(_\ba + _\bb) + <sqrt>(_\bx^) +
+ <sqrt>() + <sqrt> final text
OpenBSD July 6, 2017 OpenBSD