summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:37:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:37:04 +0000
commit62a9685b8f83f61948148be5fd01ec614799aeea (patch)
tree5ebaad6490d0723db30fe56c7b089b009a72e490 /mandoc.h
parentd98b3838b2d49efc6220b1dc7bdb995e37cd4d10 (diff)
downloadmandoc-62a9685b8f83f61948148be5fd01ec614799aeea.tar.gz
Add eqn subexpression fonts.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index eabbf58b..231497e9 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -298,7 +298,15 @@ enum eqn_markt {
EQNMARK__MAX
};
-/*
+enum eqn_fontt {
+ EQNFONT_NONE = 0,
+ EQNFONT_ROMAN,
+ EQNFONT_BOLD,
+ EQNFONT_ITALIC,
+ EQNFONT__MAX
+};
+
+ /*
* A "box" is a parsed mathematical expression as defined by the eqn.7
* grammar.
*/
@@ -307,7 +315,8 @@ struct eqn_box {
struct eqn_box *child; /* child node */
struct eqn_box *next; /* next in tree */
char *text; /* text (or NULL) */
- enum eqn_markt mark; /* whether 'marked' */
+ enum eqn_markt mark; /* a mark about the box */
+ enum eqn_fontt font; /* font of box */
};
struct eqn {