Hi Xun,
Regarding your comment here:
+ /* TODO: Decice whether it is necessary to include the endnotes package
+ * after the whole document is parsed. This is doable if we can extend
+ * the interface of IE_Exp_LaTeX by a method that can insert text at the
+ * beginning of the stream.
+ */
It's perfectly ok to scan the document more than once, using
"analysis" listeners. In this case, you could create a listener that
records whether the document has any endnotes. Store that value in a
boolean, and then query that when you're emitting LaTeX.
What's the problem with always doing "usepackage endnotes" though?
Thanks again!
Dom
Received on Tue Apr 1 14:19:59 2008
This archive was generated by hypermail 2.1.8 : Tue Apr 01 2008 - 14:19:59 CEST