summaryrefslogtreecommitdiff
path: root/buttress.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>1999-08-15 18:35:20 +0000
committerSimon Tatham <anakin@pobox.com>1999-08-15 18:35:20 +0000
commit5842eaaf51d9045bc0b199f0b5e82dfc614b2e0c (patch)
treecafd8d6b98802f355cc6e78ac82048388aa6de82 /buttress.h
parent79e16787af150c518f65850c8d54b06074a87c5d (diff)
downloadhalibut-5842eaaf51d9045bc0b199f0b5e82dfc614b2e0c.zip
halibut-5842eaaf51d9045bc0b199f0b5e82dfc614b2e0c.tar.gz
halibut-5842eaaf51d9045bc0b199f0b5e82dfc614b2e0c.tar.bz2
halibut-5842eaaf51d9045bc0b199f0b5e82dfc614b2e0c.tar.xz
Further development; bibliographies seem to work
[originally from svn r200]
Diffstat (limited to 'buttress.h')
-rw-r--r--buttress.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/buttress.h b/buttress.h
index 6ec6cd1..aec26d0 100644
--- a/buttress.h
+++ b/buttress.h
@@ -66,6 +66,7 @@ struct paragraph_Tag {
word *words; /* list of words in paragraph */
int aux; /* number, in a numbered paragraph */
word *kwtext; /* chapter/section indication */
+ filepos fpos;
};
enum {
para_IM, /* index merge */
@@ -76,7 +77,8 @@ enum {
para_Heading,
para_Subsect,
para_Normal,
- para_Biblio,
+ para_Biblio, /* causes no output unless turned ... */
+ para_BiblioCited, /* ... into this paragraph type */
para_Bullet,
para_NumberedList,
para_Code,
@@ -136,7 +138,8 @@ enum {
err_missingrbrace, /* unclosed braces at end of para */
err_nestedstyles, /* unable to nest text styles */
err_nestedindex, /* unable to nest `\i' thingys */
- err_nosuchkw /* unresolved cross-reference */
+ err_nosuchkw, /* unresolved cross-reference */
+ err_multiBR /* multiple \BRs on same keyword */
};
/*
@@ -212,7 +215,9 @@ struct keyword_Tag {
wchar_t *key; /* the keyword itself */
word *text; /* "Chapter 2", "Appendix Q"... */
/* (NB: filepos are not set) */
+ paragraph *para; /* the paragraph referenced */
};
+keyword *kw_lookup(keywordlist *, wchar_t *);
keywordlist *get_keywords(paragraph *);
void free_keywords(keywordlist *);
void subst_keywords(paragraph *, keywordlist *);
@@ -229,6 +234,11 @@ word *number_mktext(numberstate *, int, int, int);
void number_free(numberstate *);
/*
+ * biblio.c
+ */
+void gen_citations(paragraph *, keywordlist *);
+
+/*
* style.c
*/
struct userstyle_Tag {