Re: [NTG-context] documenting sources

2019-11-27 Thread Pablo Rodriguez
n file virtual://buffer.module.1: ! You can't use `macro parameter character #' in horizontal mode l.79 local someline = (# line < 3 and "") or s

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Taco Hoekwater
mplementing this, but I am afraid it does not work properly, at >> least not if there are several targets following one after another. >> >> Consider this example: >> >> >> \setupcolumns[ >> n=2, >> ] >> \setuplinenumbering[ >> step=

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Oliver von Criegern
=page, ] \def\Lab#1{% \pagereference[#1]% \pagereference[column:#1]% \someline[#1]% } \def\Ref#1{ page \at[#1], column \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{}, line \inlinerange[#1]. } \starttext \startcolumns \startlinenumbering REFERENCES:\par A: \Ref{A}\par B: \Ref{B}\

Re: [NTG-context] Cross references to column numbers

2019-11-12 Thread Oliver von Criegern
id it does not work properly, at least not if there are several targets following one after another. Consider this example: \setupcolumns[     n=2, ] \setuplinenumbering[     step=5,     method=page, ] \def\Lab#1{% \pagereference[#1]% \pagereference[column:#1]% \someline[#1]% } \def\Ref#1{

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Oliver von Criegern
egular and consistent naming of commands in ConTeXt, why this is not so in the case of references. For example, to refer to a page, I need \pagereference (for the target) and \at (for the reference); to refer to a line, I need \someline (for the target) and \inline (for the reference), but only if I

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Hans Hagen
efer to a page, I need \pagereference (for the target) and \at (for the reference); to refer to a line, I need \someline (for the target) and \inline (for the reference), but only if I want it to automatically add the word "line" or something else before the number, otherwise I have to

Re: [NTG-context] Cross references to column numbers

2019-09-09 Thread Henri Menke
> Besides, I am wondering, regarding the generally very regular and consistent >> naming of commands in ConTeXt, why this is not so in the case of references. >> For example, to refer to a page, I need \pagereference (for the target) and >> \at (for the reference); to refer t

Re: [NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-06 Thread Oliver von Criegern
Many thanks for your response, but unfortunately it does not solve my problem. In your solution, var in TestVarB is the identifier of the reference, which is "1", but I need the value of the reference, that is, the number of the line where the \someline command is being called, wh

Re: [NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-05 Thread Hans Hagen
}\par% The line reference is not expanded before being passed to Lua.\getbuffer[testtext]\someline[1]LABEL 1 \stoplinenumbering\stoptext||| \TestLua just passes the argument to the Lua command TestVar, which prints it to stdout and returns it to TeX. The pdf result looks good at first glance, s

[NTG-context] Cross-reference expansion with ConTeXt and processing with LuaTeX

2019-09-04 Thread Oliver von Criegern
fore being passed to Lua.\getbuffer[testtext]\someline[1]LABEL 1 \stoplinenumbering\stoptext||| \TestLua just passes the argument to the Lua command TestVar, which prints it to stdout and returns it to TeX. The pdf result looks good at first glance, showing the correct values as expected, but in

Re: [NTG-context] Cross references to column numbers

2019-09-02 Thread Oliver von Criegern
ne, I need \someline (for the target) and \inline (for the reference), but only if I want it to automatically add the word "line" or something else before the number, otherwise I have to use \inlinerange. It took me some time to find that out. Wouldn't it be easier to have just one co

[NTG-context] Cross references to column numbers

2019-08-12 Thread Oliver von Criegern
stent naming of commands in ConTeXt, why this is not so in the case of references. For example, to refer to a page, I need \pagereference (for the target) and \at (for the reference); to refer to a line, I need \someline (for the target) and \inline (for the reference), but only if I want

Re: [NTG-context] Faux font

2013-05-22 Thread Sietse Brouwer
nt also showed kerns, in pretty colors? I can't remember. Cheers, Sietse % Converting every letter into a rectangle. \def\somecharacter#1% {\setbox0=\hbox{#1}% \blackrule[width=\wd0,height=\ht0,depth=\dp0]} \def\someline% {\noindent \processtokens\somecharacter\somecharacter\relax\space

Re: [NTG-context] Critical editions with ConTeXt

2012-07-20 Thread Sietse Brouwer
e and refer to it later in text: \someline[tag]; refer back with \inline[tag] or \inlinerange[tag] (the former has a spurious space before the number). The low-level backreferences are \in[lr:b:tag] and \in[lr:e:tag]; see page-lin.mkiv (d) ditto for line ranges: \startlines[tag] ... \stoplines[tag];

Re: [NTG-context] new beta

2011-10-02 Thread emmanuela . asante
eference ... }{\the \linerefcounter }} \endgroup \mkstartlinereference ...wstartlinereference {#1}} \ignorespaces \someline [#1]->\mkstartlinereference {#1}

Re: [NTG-context] new beta

2011-10-02 Thread Thomas A. Schmitz
\ignorespaces \someline [#1]->\mkstartlinereference {#1} \mkstoplinereference {#1} l.10 ...ical{labore et dolore magna aliquyam erat} , sed diam voluptua. At which may have something to do with the new

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
e_numbers http://wiki.contextgarden.net/Reference/en/inline http://wiki.contextgarden.net/Reference/en/someline http://wiki.contextgarden.net/Reference/en/startline http://wiki.contextgarden.net/Reference/en/inlinerange I hope that helps others. Best wishes, Stefan ___

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
[line:single] and also \inline{typelines}[line:range]. > > See line~\inlinerange[line:single] and also lines~\inlinerange[line:range]. > > \starttyping > line 1 > line 2/BTEX\startline[line:range]/ETEX > line 3/BTEX\someline[line:single]/ETEX > line 4 > line 5/BTEX\stopline[line:ran

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
ttyping line 1 line 2/BTEX\startline[line:range]/ETEX line 3/BTEX\someline[line:single]/ETEX line 4 line 5/BTEX\stopline[line:range]/ETEX line 6 \stoptyping \stoptext Wolfgang ___ If your question is of interest to oth

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller
}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping \stoptext MkIV: \setuptyping[numbering=line,escape=yes] \starttext In the following typing, \inline[line:intyping] is really interesting. \starttyping line 1 line 2 line 3/BTEX\someline[line:intyping]/ETEX

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
g] is really interesting. > \starttyping > This line is so interesting. > \stoptyping > \stoptext MkIV: \setuptyping[numbering=line,escape=yes] \starttext In the following typing, \inline[line:intyping] is really interesting. \starttyping line 1 line 2 line 3/BTEX\someline[line:intypin

Re: [NTG-context] \inline[…]

2009-11-07 Thread Hans Hagen
id not help. \starttext \startlinenumbering \someline[a]We thrive in information--thick worlds because of our marvelous and everyday ca-pacity to select, …\someline[b] \stoplinenumbering \inline[a] or \inline[b] \stoptext should work ok i

[NTG-context] \inline[…]

2009-11-07 Thread Andreas Harder
Hello Hans! If referencing to the same line, the line will be displayed twice. I tried Wolfgangs patch: http://archive.contextgarden.net/message/20091018.091419.18877aa9.en.html but it did not help. \starttext \startlinenumbering \someline[a]We thrive in information--thick worlds because

[NTG-context] Error with the new luatex

2009-10-30 Thread Alain Delmotte
Hi! I could compile the following document (part of it givne here): == \starttext \startlinenumbering Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large--scale user;\someline[here] the designer should also write the

[NTG-context] Error with \inline[…]

2009-10-29 Thread Andreas Harder
Hello Hans. With the current beta referencing lines is broken again. It used to work yesterday. Here is a test file and the error message: \starttext \startlinenumbering \input tufte \someline[lin:b] \startline[lin:a] \input tufte \stopline[lin:a] \stoplinenumbering \inline[lin:b

Re: [NTG-context] \starbuffer in own macros

2009-10-18 Thread Andreas Harder
Am 18.10.2009 um 11:14 schrieb Wolfgang Schuster: Am 17.10.2009 um 22:29 schrieb Andreas Harder: Hi all, now that \inline[ref] etc. work—whereas in the case of \someline [ref] \inline[ref] always jumps to the else-branch of its definition and outputs the same line twice—I tried

Re: [NTG-context] \starbuffer in own macros

2009-10-18 Thread Wolfgang Schuster
Am 17.10.2009 um 22:29 schrieb Andreas Harder: Hi all, now that \inline[ref] etc. work—whereas in the case of \someline [ref] \inline[ref] always jumps to the else-branch of its definition and outputs the same line twice—I tried, obviously naive, to realize the following functionality

[NTG-context] \starbuffer in own macros

2009-10-17 Thread Andreas Harder
Hi all, now that \inline[ref] etc. work—whereas in the case of \someline[ref] \inline[ref] always jumps to the else-branch of its definition and outputs the same line twice—I tried, obviously naive, to realize the following functionality (attachment). test-linenumbering4.tex Description

Re: [NTG-context] Line Numbering and References

2009-10-14 Thread Wolfgang Schuster
something wrong with the \mksomelinereference command and 'ctxlua' with it's argument appears in the text. \starttext \startlinenumbering Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large--scale user;\someline [here]

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
rinting papersize][settings] \showsetups \showstruts # \showstruts \showsymbolset[name] # \snaptogrid \someline[reference] \somewhere{text}{text}[reference] \sort[text]{text} \space \splitfloat[settings]{text}{text} # \splitstring # \SR # \start \stop # \start \stop \startalignment[width|left|rig

Re: [NTG-context] %%BoundingBox: (atend)

2004-06-03 Thread Taco Hoekwater
On Wed, 2 Jun 2004 20:13:10 +0200 (CEST), Peter wrote: > On Wed, 2 Jun 2004, Taco Hoekwater wrote: > > > + { if ($SomeLine =~ /^%%BoundingBox:(?!\s+\(atend\))/io) > > Yes, this seems to be good. > > But how is texutil used in this situation? with

Re: [NTG-context] %%BoundingBox: (atend)

2004-06-02 Thread Peter Münster
On Wed, 2 Jun 2004, Taco Hoekwater wrote: > + { if ($SomeLine =~ /^%%BoundingBox:(?!\s+\(atend\))/io) Yes, this seems to be good. But how is texutil used in this situation? I've tried "texexec test" and "texexec --texutil test", but texutil is neve

Re: [NTG-context] %%BoundingBox: (atend)

2004-06-02 Thread Taco Hoekwater
2004-06-02 15:38:17.454329753 +0200 @@ -2129,7 +2129,7 @@ if (($BBoxFound) && ((substr $SomeLine,0,1) ne "%")) { last } if ($BBoxFound<2) - { if ($SomeLine =~ /^%%BoundingBox:/io) + { if ($SomeLi