Re: [NTG-context] What is the replacement for the 'stop_run' callback?

2010-10-19 Thread Tad Ashlock
On Sun, Oct 17, 2010 at 10:24, Hans Hagen wrote: > On 17-10-2010 4:06, Tad Ashlock wrote: > > I'm trying to update a ConTeXt module of mine. It does some data >> gathering >> during the ConTeXt run, and then processes it after the run is complete. >> This use

[NTG-context] What is the replacement for the 'stop_run' callback?

2010-10-17 Thread Tad Ashlock
Hi All, I'm trying to update a ConTeXt module of mine. It does some data gathering during the ConTeXt run, and then processes it after the run is complete. This used to work last year: local id, err = callback.register('stop_run', new_stop_run_function) But now err is set to "callback 'stop_ru

[NTG-context] Split Table Footnotes Problem

2010-01-29 Thread Tad Ashlock
Hi All, If a split table includes a footnote then the footnote is constrained to the same width as the first column of the table, not the page width. Example (also attached as tadtest5.tex): \automigrateinserts % or else footnotes don'

[NTG-context] Unexpected Consequence of Turning Off Subsubsection Numbering

2010-01-29 Thread Tad Ashlock
Hi All, If I setup the table caption numbering to be 'bychapter' and then turn off the numbering of subsubsections, any table within a subsubsection won't have the chapter number as part of the table number. Example (also attached as tadtest4.tex): ===

[NTG-context] Split Table Numbering

2010-01-29 Thread Tad Ashlock
Hi All, How do I go about getting split tables to be numbered as, for example, 1.3a and 1.3b, instead of 1.3 and 1.4? I'm using "bychapter" numbering. Example (also attached as tadtest3.tex): \setupcaption[table][way=bychapter] \star

[NTG-context] New Section Causes the Previous Page to Break Differently

2010-01-29 Thread Tad Ashlock
Hi All, I can create a document with text that ends at the bottom of a page. Like so (also attached as tadtest2a.tex): \showframe \starttext \section{section 1} \input bryson\par\blank \input davis\par\blank \input linden\par\blank \

[NTG-context] Problem With an Enumeration After a Forced Float

2010-01-29 Thread Tad Ashlock
Hi All, Here's a corner case for you: place a figure with the 'force' option, followed by an enumeration with a background. Like this (also attached as tadtest1.tex): \defineenumeration[enum][before={\startbackground},after={\stopback

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2010-01-29 Thread Tad Ashlock
Hans Hagen wrote: > On 9-1-2010 0:52, Tad Ashlock wrote: > > > ... > > you can try the beta with > > \enabletrackers[buffers.visualize] > > \starttext > > \definetyping[C] % [option=C] > \setuptyping[C][escape=yes] > > \startC > #include > int

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2010-01-08 Thread Tad Ashlock
Hans Hagen wrote: On 13-12-2009 12:26, Tad Ashlock wrote: As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on wo

Re: [NTG-context] Automated Quotation/Punctuation Placement

2010-01-08 Thread Tad Ashlock
Khaled Hosny wrote: On Fri, Jan 08, 2010 at 09:27:37AM -0700, Tad Ashlock wrote: == \startluacode function move_end_punctuation (text, punc, cmd_start, cmd_mid, cmd_end) context(cmd_start .. text .. cmd_mid) if string.find('.,!?', punc, 1,

Re: [NTG-context] Automated Quotation/Punctuation Placement

2010-01-08 Thread Tad Ashlock
Wolfgang Schuster wrote: Am 08.01.2010 um 17:27 schrieb Tad Ashlock:Hi All, \startluacode function move_end_punctuation (text, punc, cmd_start, cmd_mid, cmd_end) context(cmd_start .. text .. cmd_mid) if string.find('.,!?', punc, 1, true) then context(punc .. c

[NTG-context] Automated Quotation/Punctuation Placement

2010-01-08 Thread Tad Ashlock
Hi All, I'm trying to create a command that will apply a consistent style to a word or phrase. For example, when documenting source code, I'd like to be able to mark variables with \Var{var_name}. Then if I want the variable names to be in mono, I can \def\Var#1{\type{#1}}. No problem ther

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-31 Thread Tad Ashlock
Wolfgang Schuster wrote: Am 31.12.2009 um 12:47 schrieb Tad Ashlock: Yanrui Li wrote: 2009/12/31 Tad Ashlock mailto:taas...@cyberdude.com>> The attached sample doesn't meet the original poster's criteria. It produces headings like "1.1 alpha" and &

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-31 Thread Tad Ashlock
Yanrui Li wrote: 2009/12/31 Tad Ashlock <mailto:taas...@cyberdude.com>> The attached sample doesn't meet the original poster's criteria. It produces headings like "1.1 alpha" and "1.1.1 a" instead of the requested "1 alpha" and

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-30 Thread Tad Ashlock
Joshua Lee wrote: Hi Yanrui, How about the attached sample? Best regards, Joshua On Wed, 30 Dec 2009, Yanrui Li wrote: hi all, For example: \starttext \placelist[part,chapter,section,subsection][criterium=all] \part{first} \chapter{alpha} \section{a} \section{b} \su

[NTG-context] Overfull \hbox in Every Footnote

2009-12-13 Thread Tad Ashlock
.lui" --backend=pdf "./test" MTXrun | pdfview methods: default okular xpdf, current method: default, MTX_PDFVIEW_METHOD= MTXrun | total runtime: 1.438 ConTeXt Full finished at Sun Dec 13 04:33:14 Thanks, Tad Ashlock

[NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Tad Ashlock
going to be fixed soon anyway. Thanks, Tad Ashlock ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-contex

[NTG-context] ConTeXt Ver 2009.08.14 Crashes with \reference

2009-08-15 Thread Tad Ashlock
The following code causes the 2009.08.14 version of ConTeXt to crash (see below). But it works in the 2009.07.23 version of ConTeXt. \setupinteraction[state=start] \starttext \reference[ref:UsersMan]{User's manual} \input tufte\par User's manual~\at[ref:UsersMan] \stoptext

Re: [NTG-context] How to Determine the Current File Name and Line Number in the ConTeXt Source?

2009-07-07 Thread Tad Ashlock
Taco Hoekwater wrote: Tad Ashlock wrote: > > Looks like we're always getting the xstrdup() branch of the conditional. Probably because you are not reading from a file at that level, but from a token list. Do you want filename to be a file even if the current input is not directly fro

Re: [NTG-context] How to Determine the Current File Name and Line Number in the ConTeXt Source?

2009-07-03 Thread Tad Ashlock
Hans Hagen wrote: > Tad Ashlock wrote: > > Is there a convenient way within a Lua block to determine the current > > file name and line number of the source file being processed by ConTeXt? [snip] > i have no time now to figure out while filenames are not known but >

[NTG-context] How to Determine the Current File Name and Line Number in the ConTeXt Source?

2009-07-01 Thread Tad Ashlock
Is there a convenient way within a Lua block to determine the current file name and line number of the source file being processed by ConTeXt? For example: (test.tex) - \def\ShowLineNumber{% \ctxlua{print('current line number:', tex.current_line_number())

[NTG-context] Referencing Broken in MKIV?

2009-06-28 Thread Tad Ashlock
From (\reference): \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{} This is the first reference. \page \reference[myref 2]{} This is the second one. \stoptext Works in MKII (at least on ConTeXt online), but produces the f

Re: [NTG-context] \usemodule question

2009-02-26 Thread Tad Ashlock
Thomas A. Schmitz wrote: On Feb 26, 2009, at 11:55 AM, Alan Stone wrote: Doesn't \usemodule issue a search in parent directories when the module is not found in the working directory ? Why should it? From the ConTeXt Manual (page 18): "A file that is not available on the working directory

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Tad Ashlock
Cecil Westerhof wrote: [snip] Found the problem. \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% should be: \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% Now it seems to do what I want. I don't see the difference. Would

[NTG-context] Problem Passing \starttabulate into Lua

2008-12-27 Thread Tad Ashlock
eX, Version snapshot-0.31.2-2008121200, build 1659 (The older versions of ConTeXt and LuaTeX are necessary because of the problem the latest Windows versions are having. See the "Serious Bug?" thread.) Thank you, Tad Ashlock __

Re: [NTG-context] Serious bug?

2008-12-22 Thread Tad Ashlock
On Mon, Dec 22, 2008 at 8:35 AM, Mojca Miklavec wrote: On Mon, Dec 22, 2008 at 8:26 AM, Mojca Miklavec wrote: On Mon, Dec 22, 2008 at 2:53 AM, Fengnan Gao wrote: What version of LuaTeX is in Windows distribution? Maybe I forgot to update it. I'll check tomorrow (you can try to fetch the versio