the concatenated string (in -T[x]html, it gets a SPAN, too).
-/* $Id: example.style.css,v 1.41 2011/01/05 13:00:11 kristaps Exp $ */
+/* $Id: example.style.css,v 1.42 2011/02/09 09:52:47 kristaps Exp $ */
/*
* This is an example style-sheet provided for mandoc(1) and the -Thtml
ol.list-enum { padding-left: 2em; }
li.list-enum { }
+/* Equation modes. See eqn(7). */
+
+span.eqn { }
+
/* Table modes. See tbl(7). */
table.tbl { }
-/* $Id: man_html.c,v 1.68 2011/02/06 21:44:36 kristaps Exp $ */
+/* $Id: man_html.c,v 1.69 2011/02/09 09:52:47 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
{
int child;
struct tag *t;
+ struct htmlpair tag;
child = 1;
t = h->tags.head;
print_otag(h, TAG_BR, 0, NULL);
return;
case (MAN_EQN):
- return;
+ PAIR_CLASS_INIT(&tag, "eqn");
+ print_otag(h, TAG_SPAN, 1, &tag);
+ print_text(h, n->eqn->data);
+ break;
case (MAN_TBL):
/*
* This will take care of initialising all of the table
case (MAN_ROOT):
man_root_post(m, n, mh, h);
break;
+ case (MAN_EQN):
+ break;
default:
if (mans[n->tok].post)
(*mans[n->tok].post)(m, n, mh, h);
-/* $Id: man_term.c,v 1.102 2011/02/06 21:44:36 kristaps Exp $ */
+/* $Id: man_term.c,v 1.103 2011/02/09 09:52:47 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
p->flags |= TERMP_SENTENCE;
return;
case (MAN_EQN):
+ term_word(p, n->eqn->data);
return;
case (MAN_TBL):
/*
-/* $Id: mdoc_html.c,v 1.152 2011/02/06 23:02:31 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.153 2011/02/09 09:52:47 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
{
int child;
struct tag *t;
+ struct htmlpair tag;
child = 1;
t = h->tags.head;
print_text(h, n->string);
return;
case (MDOC_EQN):
- return;
+ PAIR_CLASS_INIT(&tag, "eqn");
+ print_otag(h, TAG_SPAN, 1, &tag);
+ print_text(h, n->eqn->data);
+ break;
case (MDOC_TBL):
/*
* This will take care of initialising all of the table
case (MDOC_ROOT):
mdoc_root_post(m, n, h);
break;
+ case (MDOC_EQN):
+ break;
default:
if (mdocs[n->tok].post && ENDBODY_NOT == n->end)
(*mdocs[n->tok].post)(m, n, h);
-/* $Id: mdoc_term.c,v 1.218 2011/02/06 23:02:31 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.219 2011/02/09 09:52:47 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
term_word(p, n->string);
break;
case (MDOC_EQN):
+ term_word(p, n->eqn->data);
break;
case (MDOC_TBL):
term_tbl(p, n->span);
-/* $Id: style.css,v 1.20 2010/12/24 22:51:13 kristaps Exp $ */
+/* $Id: style.css,v 1.21 2011/02/09 09:52:47 kristaps Exp $ */
html { max-width: 800px; }
body { color: #333333;
div.section { margin-bottom: 2ex; margin-left: 4ex; } /* Sections (Sh, SH). */
div.subsection { } /* Sub-sections (Ss, SS). */
table.synopsis { } /* SYNOPSIS section table. */
-table.synopsis td { vertical-align: top; } /* SYNOPSIS section table. */
/* Vertical spacing. */
p { } /* Paragraph: Pp, Lp. */
blockquote { margin-top: 0px; margin-bottom: 0px; }
table { margin-top: 0px; margin-bottom: 0px; }
+td { vertical-align: top; } /* SYNOPSIS section table. */
/* General font modes. */
-.lit { font-family: monospace; font-style: normal; font-weight: normal; } /* Literal: Dl, Li, Bf -literal, Bl -literal, Bl -unfilled. */
-.italic { font-style: italic; font-weight: normal; } /* Italic: BI, IB, I, (implicit). */
.emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
-.bold { font-style: normal; font-weight: bold; } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
.symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
-.roman { font-style: normal; font-weight: normal; } /* Roman: (implicit). */
-.small { font-style: normal; font-weight: normal; font-size: smaller; } /* Small: SB, SM. */
/* Block modes. */
i.ftype { font-weight: normal; } /* Function types (Ft, Fn). */
b.includes { font-style: normal; } /* Header includes (In). */
span.lib { } /* Library (Lb). */
+i.link-sec { font-weight: normal; } /* Section links (Sx). */
+code.lit { font-style: normal; font-weight: normal; } /* Literal: Dl, Li, Bf -literal, Bl -literal, Bl -unfilled. */
b.macro { font-style: normal; } /* Macro-ish thing (Fd). */
b.name { color: blue; font-style: normal; } /* Name of utility (Nm). */
span.opt { } /* Options (Op, Oo/Oc). */
ol.list-enum { padding-left: 2em; }
li.list-enum { }
+
+/* Equation modes. See eqn(7). */
+
+span.eqn { }
+
+/* Table modes. See tbl(7). */
+
+table.tbl { }