Can one redefine the TeX output macro as one can within TeX? If so, how? Thanks. A wannabe ConTeXt user. Tom Browder
Tom Browder wrote:
Can one redefine the TeX output macro as one can within TeX?
If so, how?
You mean installing another output routine? In principle one can define his/her own otr (with fallback on an existing one); see page-one.tex, page-mul.tex, page-set.tex for details. It also depends on what you want to do. There are quite some hooks into the otr already, so what do you hav ein mind? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
-----Original Message----- From: ntg-context-bounces@ntg.nl It also depends on what you want to do. There are quite some hooks into the otr already, so what do you hav ein mind?
Thanks for the reply, Hans. Here is my situation: Every part of my document has to have a security classification (U, C, or S, the highest). The highest classification of a part on a page determines what goes in the page header and footer. If a paragraph splits so part is on the next page, its classification needs to be considered in the header/footer determination for the next page. So I need to know if: 1. There is a fragment of a previous marked section at the top of a page. If so, what is its classification (this may be done with the counters described below). 2. Determine the highest classification on the page. 3. Produce the heading/footer accordingly. My idea (from secret.sty) is to define a marking command for each part which will modify one of a set of four (or six depending on how (1) is implemented) counters depending on the mark's value (classification). The output command will determine the approriate header/footer from inspecting the counters, then reset the counters for the next page. ANother quesion, if ConTeXt can do this, should I install the whole package or just the minimal one (I run teTeX under Fedora Linux). Tom
participants (2)
-
Hans Hagen
-
Tom Browder