[NTG-context] large right brace grouping lines of equations

2011-01-28 Thread Jeong Dalyoung
Dear all,

First, thanks Wolfgang and Hans for suggestions about the chapter head.

Using \cases, I can use large left brace for lines of equations. But, how to 
put a large right brace after lines of equations which groups them.

Is it possible in the \startformula\startalign ... \stopalign\stopformula?

Thanks

Best regards,

Dalyoung

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TTF fonts and MKIV

2011-01-28 Thread David Rogers

* John Culleton  [2011-01-28 16:39]:


Is there a short, simple guide somewhere that shows how to use TTF and
OTF fonts in Context? I downloaded the new Fonts chapter but it goes
deep into the weeds on typescripts etc.  I am looking for a method
that allows me to do in Context what I can already do in most other
DTP programs: simply designate for use a font or font family that
exists in /usr/share/fonts without typescripts, complex and confusing
aliasing schemes or tfm files.



The Simplefont module by Wolfgang Schuster is very good for my (not
highly demanding) purposes. Certainly it is intended to do just what you
describe.

--
David
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-28 Thread Reviczky, Adam
Dear Hans,

>>1) alignment for the first field
>>% begin of example
>>\starttext
>>
>>\setupfield
>>[ShortLine]
>>[label,frame,horizontal]
>>[offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80]
>>[height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off]
>>[height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]
>>
>>\definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl]
>>
>>\startalignment[middle]
>>\field [Email] [your email]
>>\par
>>\field [Email] [your email]
>>\stopalignment
>>
>>\stoptext
>>% end of example
>>(beta20110124.pdf‎: from beta 2011.01.24 as it should do, and 
>>beta20110125.pdf‎: since beta 2011.01.25 doesn't align)

I think I've narrowed down the problem to the javascripts.usescripts function 
inside java-ini.lua.
I'm not quite sure what the problem is though, but commenting out 
"context.input(foundname)" solves the alignment issue as a temporary workaround.
Can you see what's wrong here?

Thanks,
Adam
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] prevent gobbling of spaces when omitting optional argument

2011-01-28 Thread Florian Wobbe
Hi,

please consider the following minimal example:

\def\before{\dodoubleempty\dobefore}%
\def\dobefore[#1][#2]{before}

\starttext
\before[] after (should be: \before[]\ after without explicit \type{\ })\par
\before[]after\par
\before[][] after\par % this works
\before[][]after\par
\stoptext

How can I prevent gobbling the following space, when the second optional 
argument is not given (i.e. first line). The macro itself should not insert 
space if the command is followed by any other character (2nd and 4th line).

Thanks,
Florian

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TTF fonts and MKIV

2011-01-28 Thread Marco Pessotto
John Culleton  writes:

> Is there a short, simple guide somewhere that shows how to use TTF and 
> OTF fonts in Context? I downloaded the new Fonts chapter but it goes 
> deep into the weeds on typescripts etc.  I am looking for a method 
> that allows me to do in Context what I can already do in most other 
> DTP programs: simply designate for use a font or font family that 
> exists in /usr/share/fonts without typescripts, complex and confusing 
> aliasing schemes or tfm files. 

http://wiki.contextgarden.net/Fonts_in_LuaTex


-- 
Marco

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] TTF fonts and MKIV

2011-01-28 Thread John Culleton
Is there a short, simple guide somewhere that shows how to use TTF and 
OTF fonts in Context? I downloaded the new Fonts chapter but it goes 
deep into the weeds on typescripts etc.  I am looking for a method 
that allows me to do in Context what I can already do in most other 
DTP programs: simply designate for use a font or font family that 
exists in /usr/share/fonts without typescripts, complex and confusing 
aliasing schemes or tfm files. 


-- 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/p/books/4055.html
Typesetting and indexing http://wexfordpress.com
book sales http://wexfordpress.net
Free  barcode: http://www.tux.org/~milgram/bookland/

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \bufferprefix in MKIV

2011-01-28 Thread Aditya Mahajan

On Fri, 28 Jan 2011, Henning Hraban Ramm wrote:


Am 2011-01-27 um 20:08 schrieb Aditya Mahajan:

On a unrelated note, I have been thinking if I can extend the filter module 
to take care of features provided by lilypond and gnuplot modules. IIUC, in 
both these modules, the input is transformed before being written to an 
output file, then an external filter is run and the output is read back 
again. If we  restrict ourselves to MkIV, then the transforming the input 
can be done in a lua function; the filter module already takes care of the 
rest of the book-keeping.


Do you think that it makes sense to have such a feature? Then you could 
just define the gnuplot module as:


\usemodule[filter]

\defineexternalfilter[GNUPLOT]
 [filter={gnuplot --appropriate options},
  conitnue=yes,
  transformation=thirddata.GNUPLOT.transformation,
 ]

where thirddata.GNUPLOT.transformation is a lua function that does all the 
fancy processing.


What do you think?


I already replaced the LilyPond module by a filter setup, see
http://wiki.contextgarden.net/LilyPond

It doesn't work completely the same, but good enough.
And since every user has different needs, the filter approach is more 
flexible and thus better than a bunch of hardcoded setup options.


Making the interface configurable is not too difficult. Here[1] is an 
example that replicates the main functionality of the gnuplot module (a 
separate inclusions environment and named figures, using the pdf 
terminal). I will also look at the functionality of the lilypond module in 
detail and see if I can replicate all features.


[1]: https://github.com/adityam/filter/blob/dev/tests/gnuplot.tex

Aditya
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Hans Hagen

On 28-1-2011 8:02, Wolfgang Schuster wrote:


 context.startnointerference()


ok, patched


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Peter Rolf
Am 28.01.2011 20:02, schrieb Wolfgang Schuster:
> 
> Am 28.01.2011 um 18:58 schrieb Hans Hagen:
> 
>> On 28-1-2011 4:20, Peter Rolf wrote:
>>> Hi Hans,
>>>
>>> I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
>>> donno what this is... it's no skip nor a simple spurious space (as I use
>>> \removeunwantedspaces in front of that macro).
>>> A minimal example is attached. No urgent case...
>>
>> if you're bored and have enough time you can run with \tracinglal and see 
>> where a blank space is inserted
>
\tracingall is information overkill for me :-D


> The spaces come from java-imp-fld.mkiv, you can get rid of them by modifying
> the “javascripts.usescripts” function in java-ini.lua (end of the file):
> 
> function javascripts.usescripts(name)
> if name ~= variables.reset then
> commands.uselibrary(name,patterns,function(name,foundname)
> context.startnointerference()
> context.startreadingfile()
> context.input(foundname)
> context.showcolormessage("javascript",1,name)
> context.stopreadingfile()
> context.stopnointerference()
> end)
> end
> end
>

Many thanks Wolfgang!


> Wolfgang
> 
> ___
> 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-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Wolfgang Schuster

Am 28.01.2011 um 18:58 schrieb Hans Hagen:

> On 28-1-2011 4:20, Peter Rolf wrote:
>> Hi Hans,
>> 
>> I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
>> donno what this is... it's no skip nor a simple spurious space (as I use
>> \removeunwantedspaces in front of that macro).
>> A minimal example is attached. No urgent case...
> 
> if you're bored and have enough time you can run with \tracinglal and see 
> where a blank space is inserted

The spaces come from java-imp-fld.mkiv, you can get rid of them by modifying
the “javascripts.usescripts” function in java-ini.lua (end of the file):

function javascripts.usescripts(name)
if name ~= variables.reset then
commands.uselibrary(name,patterns,function(name,foundname)
context.startnointerference()
context.startreadingfile()
context.input(foundname)
context.showcolormessage("javascript",1,name)
context.stopreadingfile()
context.stopnointerference()
end)
end
end

Wolfgang

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Hans Hagen

On 28-1-2011 4:20, Peter Rolf wrote:

Hi Hans,

I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
donno what this is... it's no skip nor a simple spurious space (as I use
\removeunwantedspaces in front of that macro).
A minimal example is attached. No urgent case...


if you're bored and have enough time you can run with \tracinglal and 
see where a blank space is inserted



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] first-setup for windows

2011-01-28 Thread Hans Hagen

On 28-1-2011 4:57, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua'
today
although it did yesterday.


(I forgot to notice that the computer was powered-off once (= yesterday)
and started up again (= today morning).


the only thing i can think is a change in path settings when the 
computer was on; there is nothing persistent in memory (would be too 
clever)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] first-setup for windows

2011-01-28 Thread Mojca Miklavec
2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. :
>
> Does first-setup.bat update itself?

No. The idea is that the file should not change anyway (and you might
want to modify it yourself by changing version of context or by
removing the --make switch for example).

> I mean: several days ago you sent a
> slightly modified 'first-setup.bat' by e-mail and later you have modified it
> again.

Yes. Because Hans noticed a typo and I fixed that one.

> So just to be sure I'm not or I won't be using the "not so perfect"
> 'first-setup.bat[.txt]'...

Mojca
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] first-setup for windows

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 28 Jan 2011 16:29:03 +0100, Mojca Miklavec 
 wrote:


2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. :


- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
although it did yesterday.


(I forgot to notice that the computer was powered-off once (= yesterday) and 
started up again (= today morning).

So yesterday, the whole day after the update I was able to compile any Ctx source. Than the 
computer was powered off. Today the computer was started and when I tried to compile the same Ctx 
sources, I got "cannot find context.lua nor mtx-context.lua". I had to run "mtxrun 
--generate" and all started to work again. And it will be all right till the next update.)


No idea. ConTeXt beta didn't change since yesterday at all.


OK. I'll keep on observing and trying to figure out why.


(Yesterday first-setup.bat file was a bit faulty, but now it
should be fixed.)



Does first-setup.bat update itself? I mean: several days ago you sent a slightly modified 
'first-setup.bat' by e-mail and later you have modified it again. So just to be sure I'm 
not or I won't be using the "not so perfect" 'first-setup.bat[.txt]'...

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] first-setup for windows

2011-01-28 Thread Mojca Miklavec
2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. :
>
> - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
> although it did yesterday.

No idea. ConTeXt beta didn't change since yesterday at all.

> (I'm aware of cache directory, in my case at
> 'c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\'.
> Does Ctx/mxtrun generate also any [temporary] files elsewhere, e.g. in
> "Document and Settings" or "Application Data" or where TMP/TEMP system
> variable points?)

No. In MikTeX the cache is generated somewhere else, but ConTeXt
doesn't touch anything. (Vyatcheslav's installer sets PATH, but normal
installer doesn't.)

> Could you explain, please?

I don't know what the explanation could be. I tried to delete
texmf-cache and run the installer again, but I didn't experience any
problem. (Yesterday first-setup.bat file was a bit faulty, but now it
should be fixed.)

Mojca
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Comment on new "Page Design" Chapter for new manual.

2011-01-28 Thread Hans Hagen

On 27-1-2011 11:41, John Culleton wrote:

The question of page dimensions can be very confusing for the raw
beginner. I suggest the something like the following as a lead in:
---
For a printed page we really have to deal with three different sets of
dimensions. The body of the text exclusive of headers, footers etc. is
called the type block. In TeX the measurements of the type block are
called \hsize and \vsize. When text is being laid out each paragraph
is generally no wider than the \hsize and when \vsize is exceeded the
page is ended and a new one is started.


hsize and vsize are more general and depend on where one accesses them, 
setting them will seldom work out well as they get set (and 
synchronized) depending on \setuplayout asignments



The actual page size of the finished document is measured with
\pdfpagewidth and \pdfpageheight. For most documents this is the last
set of dimensions needed. In a few cases "camera ready copy" is
required which means that the final printed page image is centered on a
larger piece of paper stock, often with trim marks indicating the
boundaries of the page size.


pdfpagewidth and pdfpageheight are not to be used directly in context, 
\setuppapersize is to be used; setting the dimensions directly will have 
side effects



For example here are the dimensions for a book recently printed:
hsize =4.25 in
vsize =7 in

pdfpagewidth = 6 in
pdfpageheight = 9 in

stockwidth = 8.5 in
stockheight = 11 in.





-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Peter Rolf
Hi Hans,

I have overseen an unwanted horizontal skip in my menu test graphic. Mh,
donno what this is... it's no skip nor a simple spurious space (as I use
\removeunwantedspaces in front of that macro).
A minimal example is attached. No urgent case...

Best wishes,  Peter
\setupinteraction[state=start]

\definelayer[foo][width=300pt,height=300pt]
\setlayerframed[foo][width=300pt,height=300pt]{foo}


\starttext

\startbuffer[test]
\framed[offset=overlay]{\tooltip{\CONTEXT}{a \TEX\ macropackage}}
\stopbuffer

\setlayerframed[foo][x=0pt,y=0pt][offset=overlay]{\getbuffer[test]} % big skip 
in front of text
\flushlayer[foo]

\stoptext
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for existence of a Ctx buffer by Lua

2011-01-28 Thread Hans Hagen

On 28-1-2011 3:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

how to test by Lua whether a Ctx buffer exists?


\doifelsebuffer


---
\startbuffer[A]
Aaa aaa
\stopbuffer

\starttext
\getbuffer[A]
Test
%\getbuffer[NonExisting]
Vvv
\stoptext
---

To get something like 'context.buffers.A' -> no-nil and
'context.buffers.NonExisting' -> nil?

Best regards,

Lukas





--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Test for existence of a Ctx buffer by Lua

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to test by Lua whether a Ctx buffer exists?

---
\startbuffer[A]
  Aaa aaa
\stopbuffer

\starttext
  \getbuffer[A]
  Test
  %\getbuffer[NonExisting]
  Vvv
\stoptext
---

To get something like 'context.buffers.A' -> no-nil and 
'context.buffers.NonExisting' -> nil?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \bufferprefix in MKIV

2011-01-28 Thread Henning Hraban Ramm

Am 2011-01-27 um 20:08 schrieb Aditya Mahajan:

On a unrelated note, I have been thinking if I can extend the filter  
module to take care of features provided by lilypond and gnuplot  
modules. IIUC, in both these modules, the input is transformed  
before being written to an output file, then an external filter is  
run and the output is read back again. If we  restrict ourselves to  
MkIV, then the transforming the input can be done in a lua function;  
the filter module already takes care of the rest of the book-keeping.


Do you think that it makes sense to have such a feature? Then you  
could just define the gnuplot module as:


\usemodule[filter]

\defineexternalfilter[GNUPLOT]
  [filter={gnuplot --appropriate options},
   conitnue=yes,
   transformation=thirddata.GNUPLOT.transformation,
  ]

where thirddata.GNUPLOT.transformation is a lua function that does  
all the fancy processing.


What do you think?


I already replaced the LilyPond module by a filter setup, see
http://wiki.contextgarden.net/LilyPond

It doesn't work completely the same, but good enough.
And since every user has different needs, the filter approach is more  
flexible and thus better than a bunch of hardcoded setup options.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Solved: how to make 3-line header?

2011-01-28 Thread Hans Hagen

On 28-1-2011 11:29, Hans Hagen wrote:

On 28-1-2011 10:31, Jeong Dalyoung wrote:

Dear all,

It is solved by using \chapter{title \crlf subtile}.

I am sorry for this noise.

If there is a nice way, please let me know.


this is ok


more precisely: \crlf is valid in a title, as is other tex code


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Solved: how to make 3-line header?

2011-01-28 Thread Hans Hagen

On 28-1-2011 10:31, Jeong Dalyoung wrote:

Dear all,

It is solved by using \chapter{title \crlf subtile}.

I am sorry for this noise.

If there is a nice way, please let me know.


this is ok

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Comment on new "Page Design" Chapter for new manual.

2011-01-28 Thread Taco Hoekwater


Hi John,

On 01/27/2011 11:41 PM, John Culleton wrote:

The question of page dimensions can be very confusing for the raw
beginner. I suggest the something like the following as a lead in:


Thanks, duly noted. I'll keep this in mind for the next revision.

Best wishes,
Taco
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Solved: how to make 3-line header?

2011-01-28 Thread Jeong Dalyoung
Dear all,

It is solved by using \chapter{title \crlf subtile}.

I am sorry for this noise.

If there is a nice way, please let me know.

Thanks.

Best regards,

Dalyoung
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \bufferprefix in MKIV

2011-01-28 Thread Hans Hagen

On 28-1-2011 12:49, Mojca Miklavec wrote:

On Fri, Jan 28, 2011 at 00:37, Aditya Mahajan wrote:


etc. Not to mention less maintenance for everyone.


Well ... I do almost-zero-maintainance as must be apparent from the
logs if anyone keeps them :) :) :)

We can take a look together to see if the modules can be made to work
nicely with each other.

Mojca

(But ... the gnuplot module needs to keep working for MKII. I don't
want to sacrifice that.)


just make two modules then and freeze the mkii one; it's painful to have 
all that testing for version code in there and cripple the mkiv support 
by that


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2011-01-28 Thread Hans Hagen

On 28-1-2011 6:55, Alan BRASLAU wrote:

Hans,

Typing the full path name (in response to the prompt)
satisfies the program, and the installation process proceeds.
Mistyping the file name causes the prompt to be repeated,
so I assume that the file is indeed there.


ok, but is it mentioned in the filedatabase for that tree, the lua file



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___