Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Peter Münster
On Fri, Apr 18 2008, Wolfgang Schuster wrote:

> > Then, for some reason that I forgot, I switched to scrlttr2.cls. And I
> > patched it to get the same minimum-50%-feature. Unfortunately, this patch is
> > no more working with recent versions of scrlttr2...
> > (-> http://pmrb.free.fr/work/OS/LaTeX/lettre.lco )
> >
> > I would welcome such a feature in your module!
> 
> I dont't have such a feature in the module I find it interesting.
> 
> Page breaks before the signature can still happen at the moment
> because I hadn't done anything against this problem but it is on
> my Todo list.

I don't know, if lettre.lco is readable for you, so here the idea in
clear-text:
- some vertical spaces (for example around the opening, between paragraphs,
  around the subject line, etc) can be decreased or increased by a global
  stretch-value (called "tension" in my file)
- at the first texexec run, this value has to be reset to 0
- if the last page gets filled to <50%, then trigger a next texexec-run,
  with a decremented stretch-value for a filling <25% and an incremented
  value for a filling >25%, until the last page is filled to >50%.

I think, there is already a command like \savetwopassdata or similar, so it
should be easy with ConTeXt. If you want, I can try to integrate this
feature after your public release.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 10:48 PM, Peter Münster <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 17 2008, Wolfgang Schuster wrote:
>
> > After nearly one and a helf years and 2 major revisions I have
> > nearly finished my module and would will make it now available
> > also to other users. But before I make my last stable version
> > online I want to discuss a few points with interested users.
>
> Hello Wolfgang,
>
> Already in advance: thank you very much!  With such a module, I can finally
> forget really all about LaTeX. Sometimes I still use scrlttr2.cls and at
> these moments I swear to write a letter module one day. Now I know, that I
> won't need to do this difficult (for me) task.

You're free to your own interface for the module, i.e. it is possible
to change the way to change the user interface. I provide besides
my default interface also one to use the one from Donald Knuth in
the TeXBook and also the interface from Hans Hagens m-letter.

> > Before I start to give you information about my module and
> > give you the chance to mention your own wishes or thoughts
> > about the inteface I'm interested what do you use currently to
> > write you own correspondence (letter, invoices etc.).
>
> First, I used lettre.cls (LaTeX class). It has one really great feature:
> the vertical spaces are recalculated at every pass, in order to get a last
> page filled at least to 50%. Without this, you can easily get a second page
> with only the closing and the signature.
>
> Then, for some reason that I forgot, I switched to scrlttr2.cls. And I
> patched it to get the same minimum-50%-feature. Unfortunately, this patch is
> no more working with recent versions of scrlttr2...
> (-> http://pmrb.free.fr/work/OS/LaTeX/lettre.lco )
>
> I would welcome such a feature in your module!

I dont't have such a feature in the module I find it interesting.

Page breaks before the signature can still happen at the moment
because I hadn't done anything against this problem but it is on
my Todo list.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 5:34 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:
> Am 2008-04-17 um 17:08 schrieb Wolfgang Schuster:
> >> You need a closing ("Sincerely,") and signature, and don't forget
> >> enough
> >> topspace to accommodate a company logo/letterhead :-)
> >
> > You set closing and signature also with the optional argument for
> > \startletter
> >
> > \startletter
> >   [opening=Dear Idris\textcomma,
> >closing=Sincerely\textcomma,
> >signature=Wolfgang Schuster]
>
> Would you support an externalfigure for the signature?
>
> e.g.
>
> Yours,
> [my fancy signature graphics]
> Henning Hraban Ramm

You could write

\setupletter
  [data]
  [signature={\externalfigure[my_fancy_signature][height=2\lineheight]}]

Greetings
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Roll-Your-Own Stand-Alone (Was re. ConTeXt ultraminimals)

2008-04-17 Thread Joel C. Salomon
On Thu, Apr 17, 2008 at 5:19 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
>  > I'm going to defer working on [Perl & Ruby].
>
>  we dont't need full perl and ruby; perl only when you want to use
>  mptopdf, which is not needed because texexec can do the same; so, a
>  small ruby is enough

So does anyone on the list have any experience in packaging a
stripped-down Ruby?

>  > I'm going to defer including SciTE until I have a working stand-alone 
> ConTeXt
>
>  there is a startup script in the cdwincontext zip

Do you mean cscite.bat?  Looks like a good place to start.

--Joel
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Roll-Your-Own Stand-Alone (Was re. ConTeXt ultraminimals)

2008-04-17 Thread Hans Hagen
Joel C. Salomon wrote:

> I'm working on ConTeXt+SciTE-on-a-USB-Stick.  A downloadable program
> is still far off, as is a version that can be put on PortableApps.com,
> but I've gotten to the point of mapping out the basic parameters:
> 
> • We need to have a start-up program, which will set up the
> environment and start SciTE and/or a command prompt.
> • Legacy-free is nice, but if ConTeXt+XeTeX (which I'll call "mkiii"
> whether that's an official name or no) requires texexec then we need

just mkii, at least for a long time -)

> to include Ruby anyway, so we may as well keep PDFTeX (mkii), BUT:
> • Since my Windows machine already has Perl, Python, & Ruby, I'm going
> to defer working on that last point.

we dont't need full perl and ruby; perl only when you want to use 
mptopdf, which is not needed because texexec can do the same; so, a 
small ruby is enough

> • In fact, I'm going to defer including SciTE also, until I have a
> working stand-alone ConTeXt…

there is a startup script in the cdwincontext zip

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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Roll-Your-Own Stand-Alone (Was re. ConTeXt ultraminimals)

2008-04-17 Thread Joel C. Salomon
On Thu, Apr 17, 2008 at 4:07 PM, Joel C. Salomon <[EMAIL PROTECTED]> wrote:
>  I've put my rsync invocations on the wiki.

BTW, I realize that the rsync calls will have to change whenever the
directory tree does, so maybe handing this off to mtx-update is a
better idea.  I need to think on this some more.

>  Also, the commands I'm using to generate my formats are on that page.
>  Could someone please check them for sanity?

Well, I tried them, and I can typeset a "hello world" document with
PDFTeX, XeTeX, and luaTeX.  Looks good so far.

--Joel
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Peter Münster
On Thu, Apr 17 2008, Taco Hoekwater wrote:

>* Quite a bit of correspondence is invoices and quotes,
>  with automatic calculations in them (VAT etc).

Hello Taco,

Quite funny: Just 3 days ago, I wrote t-invoice.tex for my personal needs,
just 1 command and very very simple:
\startInvoice
\invoiceItem[description=Ballon eau chaude, price={5063,4 + 1115,87}]
\invoiceItem[description=Vase d'expansion, price={386,25}]
\invoiceItem[description=Plan d'implantation du bâtiment, price={257,14}]
\invoiceItem[description=Branchement d'eau, price={2891,62}]
\stopInvoice

\stopInvoice prints the total.



Here the definitions (can be enhanced and/or wikified):

\startluacode
-- namespace
thirddata = thirddata or { }
thirddata.invoices = {}
thirddata.invoices.total = 0
thirddata.invoices.pos = 1

-- get price with right format
-- p: the price
-- return price with right format
function thirddata.invoices.format(p)
local s = string.format("%.2f", p)
s = s:gsub("%.", ",")
return s
end

-- print new item
-- d: the description
-- p: the price
function thirddata.invoices.new_item(d, p)
thirddata.invoices.total = thirddata.invoices.total + p
tex.print("\\bTR\\bTD" .. string.format("%03d", thirddata.invoices.pos) 
..
  "\\eTD\\bTD " .. d .. "\\eTD\\bTD " ..
  thirddata.invoices.format(p) .. "\\eTD\\eTR")
thirddata.invoices.pos = thirddata.invoices.pos + 1
end
\stopluacode

\def\invoiceItem{\dosingleargument\doinvoiceItem}
\def\doinvoiceItem[#1]{\getparameters[IV][#1]
  \ctxlua{thirddata.invoices.new_item("\IVdescription",
\ctxlua{local s = string.gsub("\IVprice", ",", "."); tex.print(s)})}}

\def\invoiceTotal{%
  \ctxlua{tex.print(thirddata.invoices.format(thirddata.invoices.total))}}

\def\startInvoice{\start
  \setupTABLE[frame=off,textwidth=\textwidth,option=stretch]
  \setupTABLE[r][first][bottomframe=on]
  \setupTABLE[r][2,last][top=\blank]
  \setupTABLE[c][first,2][align=flushleft]
  \setupTABLE[c][last][align={flushright,lohi}]
  \bTABLE\bTR\bTH Position \eTH\bTH Description \eTH\bTH Prix \eTH\eTR}

\def\stopInvoice{\bTR\bTD[nc=2,align=flushright]Total:\eTD
  \bTD \invoiceTotal\eTD\eTR\eTABLE\stop}


Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Peter Münster
On Thu, Apr 17 2008, Wolfgang Schuster wrote:

> After nearly one and a helf years and 2 major revisions I have
> nearly finished my module and would will make it now available
> also to other users. But before I make my last stable version
> online I want to discuss a few points with interested users.

Hello Wolfgang,

Already in advance: thank you very much!  With such a module, I can finally
forget really all about LaTeX. Sometimes I still use scrlttr2.cls and at
these moments I swear to write a letter module one day. Now I know, that I
won't need to do this difficult (for me) task.


> Before I start to give you information about my module and
> give you the chance to mention your own wishes or thoughts
> about the inteface I'm interested what do you use currently to
> write you own correspondence (letter, invoices etc.).

First, I used lettre.cls (LaTeX class). It has one really great feature:
the vertical spaces are recalculated at every pass, in order to get a last
page filled at least to 50%. Without this, you can easily get a second page
with only the closing and the signature.

Then, for some reason that I forgot, I switched to scrlttr2.cls. And I
patched it to get the same minimum-50%-feature. Unfortunately, this patch is
no more working with recent versions of scrlttr2...
(-> http://pmrb.free.fr/work/OS/LaTeX/lettre.lco )

I would welcome such a feature in your module!

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Roll-Your-Own Stand-Alone (Was re. ConTeXt ultraminimals)

2008-04-17 Thread Joel C. Salomon
I'm working on ConTeXt+SciTE-on-a-USB-Stick.  A downloadable program
is still far off, as is a version that can be put on PortableApps.com,
but I've gotten to the point of mapping out the basic parameters:

• We need to have a start-up program, which will set up the
environment and start SciTE and/or a command prompt.
• Legacy-free is nice, but if ConTeXt+XeTeX (which I'll call "mkiii"
whether that's an official name or no) requires texexec then we need
to include Ruby anyway, so we may as well keep PDFTeX (mkii), BUT:
• Since my Windows machine already has Perl, Python, & Ruby, I'm going
to defer working on that last point.
• In fact, I'm going to defer including SciTE also, until I have a
working stand-alone ConTeXt…

I've put my rsync invocations on the wiki.  (Since the calls are so
closely tied to the directory structure of the Minimals, I added them
to  as an
example of how to use & customize them, but I'll move it if folks
think it belongs elsewhere.)

Also, the commands I'm using to generate my formats are on that page.
Could someone please check them for sanity?

--Joel
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Gour
> "Wolfgang" == <[EMAIL PROTECTED]> writes:

Wolfgang> LaTeX has two packages to create invoices and we could also
Wolfgang> have one for ConTeXt but it makes only sense to use it with
Wolfgang> LuaTeX, TeX's arithmetic to limited for longer calculations.

Let me just say that I'd found a use for invoices and letters in ConTeXt
with LuaTeX...


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D



pgp3CzIGx6HiK.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliographic Databases

2008-04-17 Thread Andreas Wagner
Hello Robin, hello list,

* Robin Kirkham wrote on Apr/18/2008:
> I want to set up a shared bibliographic reference database for my  research 
> group, and I'm looking at 
> software like refbase http://refbase.sourceforge.net/ or refdb 
> http://refdb.sourceforge.net/ to  replace 
> the somewhat random collection of personal BibTeX .bib files  we have.
>
> Does anyone have any experience or advice to offer in using such  things, and 
> hooking them up to ConTeXt?  
> Most of these systems will  of course emit a .bib file which will obviously 
> work, but will any  emit the 
> .bbl so I can forget about BibTeX?  Will luatex one day  connect to a bib 
> database and fetch the details 
> of a cited  reference?  Is there a ConTeXt "approved" way forward for this 
> sort  of thing?

Not that I am able to help you very much further, but I am right now in a 
similar situation. I am in the 
process of setting up a db with wikindx http://wikindx.sf.net/ The main 
developer is obviously not working 
with any TeX flavour, but there is some Bibtex im-/export (which also concerns 
only .bib files) that I am 
ATM fiddling with, but I thought I might add that one to the list of databases 
you mentioned.

Cheers,
Andreas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bibliographic Databases

2008-04-17 Thread Robin Kirkham
Dear all,

I want to set up a shared bibliographic reference database for my  
research group, and I'm looking at software like refbase http:// 
refbase.sourceforge.net/ or refdb http://refdb.sourceforge.net/ to  
replace the somewhat random collection of personal BibTeX .bib files  
we have.

Does anyone have any experience or advice to offer in using such  
things, and hooking them up to ConTeXt?  Most of these systems will  
of course emit a .bib file which will obviously work, but will any  
emit the .bbl so I can forget about BibTeX?  Will luatex one day  
connect to a bib database and fetch the details of a cited  
reference?  Is there a ConTeXt "approved" way forward for this sort  
of thing?

Thanks in advance, Robin
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] announce of new version of Context Minimals Installer for Windows

2008-04-17 Thread Joel C. Salomon
On Thu, Apr 17, 2008 at 3:51 AM, Vyatcheslav Yatskovsky
<[EMAIL PROTECTED]> wrote:
>  I've commited new version of Context Minimals Installer for Windows.
>
>  
> http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe

Could you please update the online source as well?

--Joel
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mswincontext.zip

2008-04-17 Thread Hans Hagen
Mojca Miklavec wrote:
>>  and ruby, perl, unzip, xml tools.
> 
> It's not "public" yet, but I have prepared ruby, perl & scite. If you
> can send me exact urls and instructions, I will add xml tools as well.
> gswin is on the stack (didn't touch it yet).

http://xmlsoft.org/XSLT/xsltproc2.html

-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange problem with metapost graphics

2008-04-17 Thread Jean Magnan de Bornier
Le 17 avril à 13:17:44 Hans Hagen <[EMAIL PROTECTED]> écrit notamment:

| Jean Magnan de Bornier wrote:
| > Hi all, 
| > Here is minimal example of some trouble I have:
| > 
| > ...
| > \startMPinclusions
| >  numeric u; u=1cm;
| > \stopMPinclusions
| > \starttext
| > \startuseMPgraphic{dummy}
| > drawarrow (0,0)..(8u,0);
| > label.bot(\sometxt{temps}, (7u,-.5u));
| > \stopuseMPgraphic
| > \placefigure[fig:Uncontratdanslaflèchedutemps]{Un contrat dans la flèche du 
temps}{\useMPgraphic{dummy}}
| > 
| > 
| > \startuseMPgraphic{ummy}
| >   pair A[];
| >   A[0]:=(-1u, -1u);
| >   A[1]:=( 6u, -1u);
| >   A[2]:=( 6u,  4u);
| >   A[3]:=(-1u,  4u);
| >   draw A[0]--A[1]--A[2]--A[3]--cycle withpen pencircle scaled 1pt;
| > label.bot(\sometxt{Dupont}, A[0]);
| > label.top(\sometxt{Smith}, A[2]);
| > \stopuseMPgraphic
| > \placefigure[fig:Boîte d'Edgeworth]{Boîte d'Edgeworth}{\useMPgraphic{ummy}}
| > \stoptext
| > .
| > 
| > The trouble is that this compiles nicely with pdftex, a little less nicely
| > with xetex, and badly with luatex, tested at home and on context live.
| > 
| > - xetex: the label in the first graphic appears with bad size.
| > 
| > - luatex: first label in the second graphic appears with bad size and font,
| > and second label disappears; but if I comment out the label in the first
| > graphic, the second graphic is as expected.
| > 
| > Any idea?
>
| at the end of mp-mlib.mp add
>
| def resettextexts =
|  _tt_n_ := 0 ;
| enddef ;
>
| extra_endfig   := extra_endfig   & "resettextexts ; " ;
>
| then run
>
| ctxtools --touch
| context --make (or texexec --make --luatex)

Done! But same result :-(

-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mswincontext.zip

2008-04-17 Thread Mojca Miklavec
>  and ruby, perl, unzip, xml tools.

It's not "public" yet, but I have prepared ruby, perl & scite. If you
can send me exact urls and instructions, I will add xml tools as well.
gswin is on the stack (didn't touch it yet).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug with typing in mkiv

2008-04-17 Thread Aditya Mahajan
On Thu, 17 Apr 2008, Aditya Mahajan wrote:

> Hi Hans,
>
> In MKIV, \starttyping ignores the block if it starts with a blank line.
> For example,

Another bug (not sure if it is a bug, just something that is different 
from mkii).

In mkiv, starttyping block gets indented; mkii used to ignore indentation.

For example, compare mkii and mkiv output:

\setupindenting[5cm,yes]

\starttext

blah blah blah

\starttyping
blah blah
blah blah
\stoptyping
\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bug with typing in mkiv

2008-04-17 Thread Aditya Mahajan
Hi Hans,

In MKIV, \starttyping ignores the block if it starts with a blank line. 
For example,

\starttext

blah blah blah

\starttyping

Can you see me
\stoptyping
\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Windows tools in XeTeX - what do they do?

2008-04-17 Thread Hans Hagen
Mojca Miklavec wrote:
> Hello,
> 
> There are some new executables in w32tex's XeTeX.
> 
> sfconv.exe
> teckit_compile.exe
> txtconv.exe
> 
> What are they used for (I have no windows computer here to try)?

just wait till something fails ... the less binaries the better

-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Windows tools in XeTeX - what do they do?

2008-04-17 Thread Mojca Miklavec
Sorry, wrong mailing list ...

Mojca

On Thu, Apr 17, 2008 at 5:40 PM, Mojca Miklavec
<[EMAIL PROTECTED]> wrote:
> Hello,
>
>  There are some new executables in w32tex's XeTeX.
>
>  sfconv.exe
>  teckit_compile.exe
>  txtconv.exe
>
>  What are they used for (I have no windows computer here to try)?
>
>  So far, I only kept extracting the following files:
>
>  fc-cache.exe
>  fc-list.exe
>  icudt38.dll
>  kpathsea35671.dll
>  msvcp71.dll
>  msvcr71.dll
>  xdvipdfmx.exe
>  xetex.dll
>  xetex.exe
>
>  and wonder whether the other files are needed too or not.
>
>  Thanks,
> 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Windows tools in XeTeX - what do they do?

2008-04-17 Thread Mojca Miklavec
Hello,

There are some new executables in w32tex's XeTeX.

sfconv.exe
teckit_compile.exe
txtconv.exe

What are they used for (I have no windows computer here to try)?

So far, I only kept extracting the following files:

fc-cache.exe
fc-list.exe
icudt38.dll
kpathsea35671.dll
msvcp71.dll
msvcr71.dll
xdvipdfmx.exe
xetex.dll
xetex.exe

and wonder whether the other files are needed too or not.

Thanks,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Henning Hraban Ramm
Am 2008-04-17 um 17:08 schrieb Wolfgang Schuster:
>> You need a closing ("Sincerely,") and signature, and don't forget  
>> enough
>> topspace to accommodate a company logo/letterhead :-)
>
> You set closing and signature also with the optional argument for  
> \startletter
>
> \startletter
>   [opening=Dear Idris\textcomma,
>closing=Sincerely\textcomma,
>signature=Wolfgang Schuster]

Would you support an externalfigure for the signature?

e.g.

Yours,
[my fancy signature graphics]
Henning Hraban Ramm


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Henning Hraban Ramm
Am 2008-04-17 um 16:32 schrieb Wolfgang Schuster:
>> I normally use InDesign for my business letters and invoices.
> Dou you use a template for your letters.

Not an InDesign template file (.idt), but a single document (with  
master pages) for every purpose (German/Swiss/English, letter/ 
invoice, private/business) that I overwrite every time. (I save a  
copy if the matter is important.)

> LaTeX has two packages to create invoices and we could also
> have one for ConTeXt but it makes only sense to use it with LuaTeX,
> TeX's arithmetic to limited for longer calculations.

For other purposes I simply write my TeX code with a script, mostly  
only one file that contains the "dynamical" data and gets included.

E.g.
- cover for backup CD/DVDs (that script even has a GUI - it reads a  
disk; shows the directory tree, so you can select which parts you'd  
like to be visible; writes a TeX file; calls ConTeXt and opens the PDF)

- my address book (pulls and formats data from a MySQL database)

- business cards for one big company (I receive an Excel file with  
personnel data, save it as CSV and "convert" that to ConTeXt, PDF  
with one page per person gets imposed and printed on cardboard with  
pre-printed logo)

>> Another problem were different letter heads for first, odd and even
>> pages.
>
> Different header for the first and another one for the following  
> headers
> is simple and possible with my module. The option to change the layout
> for odd and even pages is currently not supported but should be
> possible but it has to be integrated in the normal interface.

My sheets have a pre-printed logo, I use the same for all pages of a  
letter.

On the first page I need address and bank data.

On even pages (back side) there's no logo, so I don't need the big  
top border.

Normally I leave out the first even page, e.g. my job application  
starts with an one-side letter, the following data (CV, references  
etc.) uses front and back page.

The application had the additional difficulty that there's the photo  
on the CV page, and I wanted the title in white *on* the photo...

At least in the "online" PDF - I used modes to produce both printed  
version (without logo, because that's pre-printed on my sheets) and  
email version (with logo)

>> (It would have been *much* easier to use InDesign for that stuff,
>> like for most other designs that I do...)
>
> This is also possible with ConTeXt because you could setup layers
> to place content dependent on left and right pages and the page layout
> could also change for left and right pages as long as you don't change
> the text width.

I used layers and setups, but I had difficulties switching them on  
and off. And what not - can't remember everything.




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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread John Devereux
"Mojca Miklavec" <[EMAIL PROTECTED]> writes:

> On Thu, Apr 17, 2008 at 4:27 PM, John Devereux wrote:
>> "Mojca Miklavec" writes:
>>
>>  > Do you have any suggestions about how to reduce the number of files in
>>  > some sensible way?
>>
>>  The ideal would be an option when processing the source file, to turn
>>  off file deletion. Like
>>
>>  texexec document.tex --keep-temporaries
>>
>>  So by default the source directory would be kept clean, but when
>>  "debugging" the intermediate files would be available.
>>
>>  Or perhaps some option passed to \startGNUPLOTscript (or
>>  \useGNUPLOTgraphic) if that is possible?
>>
>>   \startGNUPLOTscript[example][keeptemporaryfile=yes]
>
> This sounds fine (having a --debug-like option), but one more question
> - what about caching existing results? (If all files are deleted, then
> it's not possible to ask for --ifchanged, so gnuplot needs to be run
> each time.)

Actually the configurable temp dir would be OK too.

  texexec document.tex --tempdir=./temporaries

Regarding cacheing, this would be nice but I don't know if it can be
done. I think you still need to run gnuplot in case the data has
changed.

>>  That might be better otherwise debugging a big document could result
>>  it hundreds of files.
>>
>>  Another possibility would be to put the files in /tmp.
>
> That's not too practical.



-- 

John Devereux
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 4:12 PM, Idris Samawi Hamid
<[EMAIL PROTECTED]> wrote:
> Hi Wolfgang,
>
> On Thu, 17 Apr 2008 02:13:54 -0600, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>
> > Take the following minimal example
> >
> > \usemodule[letter]
> >
> > \setupletter
> >   [sender]
> >   [name={Mike Meiers},
> >address={Mustergasse 12\\25694 Musterstadt}]
> >
> > \setupletter
> >   [address]
> >   [name={Hans Hansen},
> >address={Zielweg 34\\78561 Tiny Town}]
> >
> > \starttext
> >
> > \startletter
> >   [opening={Dear Hans,}]
> >
> > letter text
> >
> > \stopletter
> >
> > \stoptext
>
> You need a closing ("Sincerely,") and signature, and don't forget enough
> topspace to accommodate a company logo/letterhead :-)

You set closing and signature also with the optional argument for \startletter

\startletter
  [opening=Dear Idris\textcomma,
   closing=Sincerely\textcomma,
   signature=Wolfgang Schuster]

You could define your own letterhead but by default I use just
name and address from the sender.

> FWIW: Here is the basic structure of my setup (based on someone else's
> work, I forget his name):
> =
> \protect
>
> %\setuppapersize[A4][A4]
> \setuppapersize[letter][letter]
>
> \setuplayout[header=.5in,
>  topspace=1.37in,
>  backspace=1.5in,
>  footer=0mm,
>  %header=0in,
>  %,width=middle,
>  width=middle,
> lines=60,
>  height=middle] % margins etc.
>
> \setupbodyfontenvironment[default][em=italic]
> \setuppagenumbering[state=stop]
>
> \long\def\addresser#1{\leavevmode\blank[1*line]
>   \lbox{#1}}
>
> % Defines field for receiver's address and places it at right position.
> \long\def\addressee#1{\rbox{#1}}
>
> % Subject line, in bold face.
> \long\def\lettersubject#1{\blank[2*line]{\BF %Re:
> #1}}
>
> \long\def\letteropening#1{\blank[line]#1} % opening...
>
> \definestartstop
>   [letter]
>   [before={\blank[line]\setupwhitespace[medium]},
> after={}]
>
> \long\def\letterclosing#1#2{\vbox{\blank[line]#1\blank[3*line]#2}} % and
> the closing formula
>
> \unprotect

Simple but working solution but a formal german requires a little
bit more work because most of the field use fixed positions whereas
blocks styles are written from top to bottom and each field use only
as much space as the text needs.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread Mojca Miklavec
On Thu, Apr 17, 2008 at 4:27 PM, John Devereux wrote:
> "Mojca Miklavec" writes:
>
>  > Do you have any suggestions about how to reduce the number of files in
>  > some sensible way?
>
>  The ideal would be an option when processing the source file, to turn
>  off file deletion. Like
>
>  texexec document.tex --keep-temporaries
>
>  So by default the source directory would be kept clean, but when
>  "debugging" the intermediate files would be available.
>
>  Or perhaps some option passed to \startGNUPLOTscript (or
>  \useGNUPLOTgraphic) if that is possible?
>
>   \startGNUPLOTscript[example][keeptemporaryfile=yes]

This sounds fine (having a --debug-like option), but one more question
- what about caching existing results? (If all files are deleted, then
it's not possible to ask for --ifchanged, so gnuplot needs to be run
each time.)

>  That might be better otherwise debugging a big document could result
>  it hundreds of files.
>
>  Another possibility would be to put the files in /tmp.

That's not too practical.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 4:17 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:
> Am 2008-04-17 um 10:13 schrieb Wolfgang Schuster:
> > Before I start to give you information about my module and
> > give you the chance to mention your own wishes or thoughts
> > about the inteface I'm interested what do you use currently to
> > write you own correspondence (letter, invoices etc.).
>
> I normally use InDesign for my business letters and invoices.

Dou you use a template for your letters.

LaTeX has two packages to create invoices and we could also
have one for ConTeXt but it makes only sense to use it with LuaTeX,
TeX's arithmetic to limited for longer calculations.

> But I coded my last job applications completely in ConTeXt and
> adapted Holger Schöner's environment for my needs.
>
> I remember it was not that easy to get my address and logo exactly in
> the same places as in my InDesign template - I use sheets with some
> pre-printed elements.
>
> Another problem were different letter heads for first, odd and even
> pages.

Different header for the first and another one for the following headers
is simple and possible with my module. The option to change the layout
for odd and even pages is currently not supported but should be
possible but it has to be integrated in the normal interface.

> (It would have been *much* easier to use InDesign for that stuff,
> like for most other designs that I do...)

This is also possible with ConTeXt because you could setup layers
to place content dependent on left and right pages and the page layout
could also change for left and right pages as long as you don't change
the text width.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread Mojca Miklavec
On Thu, Apr 17, 2008 at 4:23 PM, Henning Hraban Ramm wrote:
> Am 2008-04-17 um 15:42 schrieb Mojca Miklavec:
>
> > Do you have any suggestions about how to reduce the number of files in
>  > some sensible way?
>
>  I don't use gnuplot, but it's the same problem with lilypond - lots
>  of files cluttering my project directory.
>
>  It would be a good solution if we could write all those temp files to
>  a configurable directory (that one can delete or not).

A configurable directory would indeed be the perfect solution (also
for other temp files).

>  The problem is probably that our client app (gnuplot, lilypond) or at
>  least ConTeXt's "has changed" testing depends on that files.

Which is not always desirable. If I have
plot 'data.dat'
and change data, then the graph won't be recompiled.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread John Devereux
"Mojca Miklavec" <[EMAIL PROTECTED]> writes:

> On Wed, Apr 16, 2008 at 9:24 PM, John Devereux wrote:
>> "Mojca Miklavec" writes:
>>
>>  I really like gnuplot and the gnuplot module. It is great to be able
>>  to include the data inline with the document. And it would be nice to
>>  see it part of the distribution. I am using a stock debian gnuplot, so
>>  I don't know the implications of the context and TikZ terminals.
>
> No major difference. But it would (should, at least) be compatible
> with all the three: LaTeX/plain/ConTeXt.
>
>>  Does
>>  it mean I would not end up with so many  *-gnuplot-* files? :)
>
> When I have developed the terminal with enormous Hans's and Taco's
> help, I have asked him to implement some functionality to delete the
> files with ctxtools --purge. He has implemented some functionality
> (\registertempfile or something - need to check), but it deletes the
> files automatically at the end of run, so one either needs to:
> - delete the files
> - leave the files
> - no option to delete files with ctxtools
> The problem with deleting the files immediately is that if you make a
> trivial mistake in the gnuplot script, gnuplot won't create any
> output, and it's rather difficult to spot the error in the long bunch
> of ConTeXt messages. You just get no graphic, any you wonder why.
>
> Do you have any suggestions about how to reduce the number of files in
> some sensible way?

The ideal would be an option when processing the source file, to turn
off file deletion. Like

texexec document.tex --keep-temporaries

So by default the source directory would be kept clean, but when
"debugging" the intermediate files would be available.

Or perhaps some option passed to \startGNUPLOTscript (or
\useGNUPLOTgraphic) if that is possible?

 \startGNUPLOTscript[example][keeptemporaryfile=yes]

That might be better otherwise debugging a big document could result
it hundreds of files.

Another possibility would be to put the files in /tmp.

-- 

John Devereux
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread Henning Hraban Ramm
Am 2008-04-17 um 15:42 schrieb Mojca Miklavec:
> Do you have any suggestions about how to reduce the number of files in
> some sensible way?

I don't use gnuplot, but it's the same problem with lilypond - lots  
of files cluttering my project directory.

It would be a good solution if we could write all those temp files to  
a configurable directory (that one can delete or not).
The problem is probably that our client app (gnuplot, lilypond) or at  
least ConTeXt's "has changed" testing depends on that files.
If you find a solution for gnuplot I'd like to copy it for lilypond.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 4:07 PM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
> >  > Happy to read that I'm not the only one !
> >  > But with a « great letter module » (with french positions, of course :))…
> >
> >  Show me a few example or give me values for the positions (address block,
> >  opening, line distance etc.)
> >
> >  I can only provide solutions if you give me information.
>
> Of course. I must find them… maybe the french association of TeX user.
>
> What do you think about a wiki page about this in order to put all the
> specifications ?

I don't care, you could also send me a picture with boxes and the values
but I created now a page on the wiki http://wiki.contextgarden.net/letter
where you can collcet your information.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Henning Hraban Ramm
Am 2008-04-17 um 10:13 schrieb Wolfgang Schuster:
> Before I start to give you information about my module and
> give you the chance to mention your own wishes or thoughts
> about the inteface I'm interested what do you use currently to
> write you own correspondence (letter, invoices etc.).

I normally use InDesign for my business letters and invoices.

But I coded my last job applications completely in ConTeXt and  
adapted Holger Schöner's environment for my needs.

I remember it was not that easy to get my address and logo exactly in  
the same places as in my InDesign template - I use sheets with some  
pre-printed elements.

Another problem were different letter heads for first, odd and even  
pages.

(It would have been *much* easier to use InDesign for that stuff,  
like for most other designs that I do...)


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Idris Samawi Hamid
Hi Wolfgang,

On Thu, 17 Apr 2008 02:13:54 -0600, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:

> Take the following minimal example
>
> \usemodule[letter]
>
> \setupletter
>   [sender]
>   [name={Mike Meiers},
>address={Mustergasse 12\\25694 Musterstadt}]
>
> \setupletter
>   [address]
>   [name={Hans Hansen},
>address={Zielweg 34\\78561 Tiny Town}]
>
> \starttext
>
> \startletter
>   [opening={Dear Hans,}]
>
> letter text
>
> \stopletter
>
> \stoptext

You need a closing ("Sincerely,") and signature, and don't forget enough  
topspace to accommodate a company logo/letterhead :-)

FWIW: Here is the basic structure of my setup (based on someone else's  
work, I forget his name):
=
\protect

%\setuppapersize[A4][A4]
\setuppapersize[letter][letter]

\setuplayout[header=.5in,
  topspace=1.37in,
  backspace=1.5in,
  footer=0mm,
  %header=0in,
  %,width=middle,
  width=middle,
 lines=60,
  height=middle] % margins etc.

\setupbodyfontenvironment[default][em=italic]
\setuppagenumbering[state=stop]

\long\def\addresser#1{\leavevmode\blank[1*line]
   \lbox{#1}}

% Defines field for receiver's address and places it at right position.
\long\def\addressee#1{\rbox{#1}}

% Subject line, in bold face.
\long\def\lettersubject#1{\blank[2*line]{\BF %Re:
 #1}}

\long\def\letteropening#1{\blank[line]#1} % opening...

\definestartstop
   [letter]
   [before={\blank[line]\setupwhitespace[medium]},
 after={}]

\long\def\letterclosing#1#2{\vbox{\blank[line]#1\blank[3*line]#2}} % and  
the closing formula

\unprotect

=

Best wishes
Idris


-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gnuplot module

2008-04-17 Thread Mojca Miklavec
On Wed, Apr 16, 2008 at 9:24 PM, John Devereux wrote:
> "Mojca Miklavec" writes:
>
>  I really like gnuplot and the gnuplot module. It is great to be able
>  to include the data inline with the document. And it would be nice to
>  see it part of the distribution. I am using a stock debian gnuplot, so
>  I don't know the implications of the context and TikZ terminals.

No major difference. But it would (should, at least) be compatible
with all the three: LaTeX/plain/ConTeXt.

>  Does
>  it mean I would not end up with so many  *-gnuplot-* files? :)

When I have developed the terminal with enormous Hans's and Taco's
help, I have asked him to implement some functionality to delete the
files with ctxtools --purge. He has implemented some functionality
(\registertempfile or something - need to check), but it deletes the
files automatically at the end of run, so one either needs to:
- delete the files
- leave the files
- no option to delete files with ctxtools
The problem with deleting the files immediately is that if you make a
trivial mistake in the gnuplot script, gnuplot won't create any
output, and it's rather difficult to spot the error in the long bunch
of ConTeXt messages. You just get no graphic, any you wonder why.

Do you have any suggestions about how to reduce the number of files in
some sensible way?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Olivier Guéry
On Thu, Apr 17, 2008 at 2:40 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
>
>  Wolfgang Schuster wrote:
>  >
>  > The discussion
>  >
>  > Before I start to give you information about my module and
>  > give you the chance to mention your own wishes or thoughts
>  > about the inteface I'm interested what do you use currently to
>  > write you own correspondence (letter, invoices etc.).
>
>  This may be a surprise, but I use only oowriter/oocalc
>  currently. Why?
>
>* I have many different envelopes to cater for, with and
>  without address windows.
>
>* I sometimes need DIN letters, but sometimes just an
>  informal note to accompany an item
>
>* Quite a bit of correspondence is invoices and quotes,
>  with automatic calculations in them (VAT etc).
>
>  Most of this can be done in tex/luatex of course, but it
>  is a lot of effort compared to hitting  a few extra
>  times in oowriter.  Now, if there was a great letter module
>  for context  ;-)

Happy to read that I'm not the only one !
But with a « great letter module » (with french positions, of course :))…

Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Olivier Guéry
>  > Happy to read that I'm not the only one !
>  > But with a « great letter module » (with french positions, of course :))…
>
>  Show me a few example or give me values for the positions (address block,
>  opening, line distance etc.)
>
>  I can only provide solutions if you give me information.

Of course. I must find them… maybe the french association of TeX user.

What do you think about a wiki page about this in order to put all the
specifications ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
> >  > The discussion
> >  >
> >  > Before I start to give you information about my module and
> >  > give you the chance to mention your own wishes or thoughts
> >  > about the inteface I'm interested what do you use currently to
> >  > write you own correspondence (letter, invoices etc.).
> >
> >  This may be a surprise, but I use only oowriter/oocalc
> >  currently. Why?
> >
> >* I have many different envelopes to cater for, with and
> >  without address windows.
> >
> >* I sometimes need DIN letters, but sometimes just an
> >  informal note to accompany an item
> >
> >* Quite a bit of correspondence is invoices and quotes,
> >  with automatic calculations in them (VAT etc).
> >
> >  Most of this can be done in tex/luatex of course, but it
> >  is a lot of effort compared to hitting  a few extra
> >  times in oowriter.  Now, if there was a great letter module
> >  for context  ;-)
>
> Happy to read that I'm not the only one !
> But with a « great letter module » (with french positions, of course :))…

Show me a few example or give me values for the positions (address block,
opening, line distance etc.)

I can only provide solutions if you give me information.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mswincontext.zip

2008-04-17 Thread Yue Wang
>  > ok, we need to add scite to
>
>  and docs tree, and...
>
and ruby, perl, unzip, xml tools.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
On Thu, Apr 17, 2008 at 2:40 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
>
> Wolfgang Schuster wrote:
> >
> > The discussion
> >
> > Before I start to give you information about my module and
> > give you the chance to mention your own wishes or thoughts
> > about the inteface I'm interested what do you use currently to
> > write you own correspondence (letter, invoices etc.).
>
> This may be a surprise, but I use only oowriter/oocalc
> currently. Why?
>
>   * I have many different envelopes to cater for, with and
> without address windows.

This is why I seperate content and layout, the input for the data
and text is always the same but layout and fields/information
depend on the output.

>   * I sometimes need DIN letters, but sometimes just an
> informal note to accompany an item

Nothing can be more formal than a german letter in DIN style,
lots of rules with fixed values from the typewriter and many
exceptions.

>   * Quite a bit of correspondence is invoices and quotes,
> with automatic calculations in them (VAT etc).

I already played with a few basic styles but this should go into
a seperate module and should be a MkIV only thing to get
correct values in the output, although MkII is possible but
I won't trust the results.

> Most of this can be done in tex/luatex of course, but it
> is a lot of effort compared to hitting  a few extra
> times in oowriter.  Now, if there was a great letter module
> for context  ;-)

Hans provides a Example interface for his own interface
but I never got it working for myself but a simple user interface
would be nice.

Ideas for the input are welcome, it is completely independant
from the backend and I could also offer the original interface
from Donal Knuth.

> > Before I release I first public bety version of the modul I
> > want to hear which interface to set the letter information do
> > you prefer and do you have things do want in the module.
>
> I definately would like an easy way to switch envelope
> formats, and automatic page 1 of ... would be nice too.

As I told, saw what you want and I could write a letter style.

The total number of page can be set with subpagenumber and
I tried hard to get it working with MkII and MKIV and spend a few
hours to find the last remaining bugs.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mswincontext.zip

2008-04-17 Thread Idris Samawi Hamid
On Wed, 16 Apr 2008 13:18:49 -0600, Hans Hagen <[EMAIL PROTECTED]> wrote:

>> There has not been an update to mswincontext.zip since last August...  
>> Are
>> there any plans to update this? For years now mswincontext.zip has been  
>> my
>> one and only TeX distribution. With the new TeX-Gyre and Latin Modern
>> fonts, as well as the rest of our developments, I think the time is way
>> overdue for a new release. And it is safer to install a fresh  
>> distribution
>> than to muck around with replacing the fonts etc.
>
> i could update it ...

Please do!

> but i was wondering if i still should supply it
> now that we have a new minimals system ...

Well, mswincontext is rather "maximal", not minimal :-)

> ok, we need to add scite to

and docs tree, and...

Thanks and

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] announce of new version of Context Minimals Installer for Windows

2008-04-17 Thread Mojca Miklavec
On Thu, Apr 17, 2008 at 9:51 AM, Vyatcheslav Yatskovsky wrote:
>
> And why it reloads all files, not synchronize them?

Maybe that has happend only after you have upgraded rsync. Does in
still reload everything if you try it for the second time?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Arthur Reutenauer
> This may be a surprise, but I use only oowriter/oocalc
> currently. Why?

 Traitor ;-)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Taco Hoekwater


Wolfgang Schuster wrote:
> 
> The discussion
> 
> Before I start to give you information about my module and
> give you the chance to mention your own wishes or thoughts
> about the inteface I'm interested what do you use currently to
> write you own correspondence (letter, invoices etc.).

This may be a surprise, but I use only oowriter/oocalc
currently. Why?

   * I have many different envelopes to cater for, with and
 without address windows.

   * I sometimes need DIN letters, but sometimes just an
 informal note to accompany an item

   * Quite a bit of correspondence is invoices and quotes,
 with automatic calculations in them (VAT etc).

Most of this can be done in tex/luatex of course, but it
is a lot of effort compared to hitting  a few extra
times in oowriter.  Now, if there was a great letter module
for context  ;-)


> Before I release I first public bety version of the modul I
> want to hear which interface to set the letter information do
> you prefer and do you have things do want in the module. 

I definately would like an easy way to switch envelope
formats, and automatic page 1 of ... would be nice too.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange problem with metapost graphics

2008-04-17 Thread Hans Hagen
Jean Magnan de Bornier wrote:
> Hi all, 
> Here is minimal example of some trouble I have:
> 
> ...
> \startMPinclusions
>  numeric u; u=1cm;
> \stopMPinclusions
> \starttext
> \startuseMPgraphic{dummy}
> drawarrow (0,0)..(8u,0);
> label.bot(\sometxt{temps}, (7u,-.5u));
> \stopuseMPgraphic
> \placefigure[fig:Uncontratdanslaflèchedutemps]{Un contrat dans la flèche du 
> temps}{\useMPgraphic{dummy}}
> 
> 
> \startuseMPgraphic{ummy}
>   pair A[];
>   A[0]:=(-1u, -1u);
>   A[1]:=( 6u, -1u);
>   A[2]:=( 6u,  4u);
>   A[3]:=(-1u,  4u);
>   draw A[0]--A[1]--A[2]--A[3]--cycle withpen pencircle scaled 1pt;
> label.bot(\sometxt{Dupont}, A[0]);
> label.top(\sometxt{Smith}, A[2]);
> \stopuseMPgraphic
> \placefigure[fig:Boîte d'Edgeworth]{Boîte d'Edgeworth}{\useMPgraphic{ummy}}
> \stoptext
> .
> 
> The trouble is that this compiles nicely with pdftex, a little less nicely
> with xetex, and badly with luatex, tested at home and on context live.
> 
> - xetex: the label in the first graphic appears with bad size.
> 
> - luatex: first label in the second graphic appears with bad size and font,
> and second label disappears; but if I comment out the label in the first
> graphic, the second graphic is as expected.
> 
> Any idea?

at the end of mp-mlib.mp add

def resettextexts =
 _tt_n_ := 0 ;
enddef ;

extra_endfig   := extra_endfig   & "resettextexts ; " ;

then run

ctxtools --touch
context --make (or texexec --make --luatex)


-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange problem with metapost graphics

2008-04-17 Thread Taco Hoekwater
Jean Magnan de Bornier wrote:
> 
> - luatex: first label in the second graphic appears with bad size and font,
> and second label disappears; but if I comment out the label in the first
> graphic, the second graphic is as expected.
> 
> Any idea?

A much smaller luatex test is possible:

\startuseMPgraphic{a}
label.bot(textext("a"), origin);
\stopuseMPgraphic
\useMPgraphic{a}
\startuseMPgraphic{b}
label.bot(textext("b"), origin);
\stopuseMPgraphic
\useMPgraphic{b}

There is some problem with the textext array indices, it seems:

report >> error: >> (0,0,_tt_w_2,0,0,1)
! Transform components aren't all known.

yscaled
 ...square.xscaled._tt_w_[_tt_n_]yscaled
 
(_tt_h_[_tt_n_]+_tt_d_[_tt...
image->...ture;currentpicture:=nullpicture;(TEXT2)
   ;currentpicture.endgroup
textext->...ipt"ts"withpostscript.decimal._tt_n_;)
   fi.endgroup
<*> ...; ;randomseed:=1403; label.bot(textext("b")
   , origin); ;
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange problem with metapost graphics

2008-04-17 Thread Yue Wang
Hi.

XeTeX result always have some offset compared to the pdftex result. I
don't know why.
Moreover, it is impossible to use opentype (at least I never  use it
successfully.).

Yue Wang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange problem with metapost graphics

2008-04-17 Thread Jean Magnan de Bornier
Hi all, 
Here is minimal example of some trouble I have:

...
\startMPinclusions
 numeric u; u=1cm;
\stopMPinclusions
\starttext
\startuseMPgraphic{dummy}
drawarrow (0,0)..(8u,0);
label.bot(\sometxt{temps}, (7u,-.5u));
\stopuseMPgraphic
\placefigure[fig:Uncontratdanslaflèchedutemps]{Un contrat dans la flèche du 
temps}{\useMPgraphic{dummy}}


\startuseMPgraphic{ummy}
  pair A[];
  A[0]:=(-1u, -1u);
  A[1]:=( 6u, -1u);
  A[2]:=( 6u,  4u);
  A[3]:=(-1u,  4u);
  draw A[0]--A[1]--A[2]--A[3]--cycle withpen pencircle scaled 1pt;
label.bot(\sometxt{Dupont}, A[0]);
label.top(\sometxt{Smith}, A[2]);
\stopuseMPgraphic
\placefigure[fig:Boîte d'Edgeworth]{Boîte d'Edgeworth}{\useMPgraphic{ummy}}
\stoptext
.

The trouble is that this compiles nicely with pdftex, a little less nicely
with xetex, and badly with luatex, tested at home and on context live.

- xetex: the label in the first graphic appears with bad size.

- luatex: first label in the second graphic appears with bad size and font,
and second label disappears; but if I comment out the label in the first
graphic, the second graphic is as expected.

Any idea?
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Adding custom key/value pairs

2008-04-17 Thread Wolfgang Schuster
On Tue, Apr 15, 2008 at 5:34 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> Hi Wolfgang,
>
>
> On Tue, 15 Apr 2008, Wolfgang Schuster wrote:
>
> > On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> >> On Mon, 14 Apr 2008, Taco Hoekwater wrote:
> >>
> >>> Wolfgang Schuster wrote:
> 
>  Why not, I have nothing against a few predefined title pages layouts.
> >>>
> >>> Somewhat related: it would be nice if there was some common code for
> >>> titles (books as well as articles).
> >>>
> >>> [snip]
> >>>
> >>> Anyway, the maps module contains all the code to do everything. And
> >>> the same is true for the TUG module. And for quite a few others I have
> >>> laying around. Lots of duplicate code all over, so a common framework
> >>> would be great. I've been meaning to write one for a long time, but
> >>> somehow I never quite get around to actually doing it.
> >>>
> >>> Just saying this to let you know that I would really welcome a module
> >>> with commands like \setuptitle, \definetitle, and \placetitle.
> >>
> >> I agree with that. It will be really nice to have a module that does a few
> >> "simple" titles (alternate=(a|b|c), etc.) For one of my personal modules,
> >> I was following something along the lines of the maps module. But I find
> >> Wolfgang's solution on the wiki to be more ConTeXtish than what all other
> >> modules use.
> >
> > Hi Aditya,
> >
> > could you use a few lines what do you expect from a 
> > placetitle/placetitlepage
> > command or a titlepage environment.
>
> Some of the things that I use \placetitle for:
>
> * Writing academic papers. Currenly, I have a macro that I use like this:
>
> \article
>[title ={...},
> author={...},
>publication={...},% This just goes to pdf subtitle
>date={...},
>bottom={...}, %text placed at page bottom,
>  %usually current revision number
>thanks={...}, %placed on the footer of the first page
>]
>
> \startabstract
> ...
> \stopabstract
>
> \startkeywords
> 
> \stopkeywords
>
> The abstract environment places a head ("Abstract") followed by its
> content. The formatting depends on whether it is a journal article, or a
> conference article.
>
> keyword also places a head followed by its content.
>
> Currently, what I have is that \article places all its contents, and so do
> abstract and keyword. So, I do not have to store anything.
>
> * TUGBoat articles: This uses a style file originally by Hans, which I
> have modified considerably, but still uses the same interface.
>
> This uses
>
> \setvariables
>[tugboat]
>[title={...},
> author={...},
> address={...},
> email={...},
> year={...},
> volume={..},
> number={...},
> page={...}]
>
> The title and the author go to the document title. The address and email
> go at the end of the article. The year, volume, number, and page go to the
> header and footer of the article.
>
> The rest of the article is somethng like
>
> \starttext
> \startArticle
>
> \startAbstract
> 
> \stopAbstract
> ...
>
> \stopArticle
> \stoptext
>
> This structure is the reason I think something like \setuptitle (or
> \setupdocumenttitle) is needed.
>
> * Practex journal, which uses
>
> http://wiki.contextgarden.net/Modules/Pracjourn
>
> * My Ways which use
>
> http://wiki.contextgarden.net/Modules/MyWay
>
> * and finally Maps which use
>
> http://wiki.contextgarden.net/Modules/Maps
>
> 
>
> Notice that almost all of them so similar things, but in slightly
> different manner. What I wish for is a common interface, and I really like
> your idea of \setuptitle. In fact, I think that something like that should
> be part of the core.

I module should be enogh for the start, makes it easier to test without
the need to create a new relase or replace one of the core files and to
generate a new format file.

> The module does not need to take care of all the formatting requirements:
> just provide the interface. For a particular publications, the module for
> that publication can modify the \placetitle command to do what they want.
> With this, the user documentation can just say that use
>
> \setuptitle[title=...,author=..., date=] %and maybe setups={...}
>
> So, we will have a consistent user inteferface for all documents.
>
> > What should we do with the abstract, did it depend on the document title ...
>
> In general, the formatting of the abstract will depend on the kind of the
> document. Just need something like
>
> \definetitlesubstructure% or something more appropriate
>   [abstract]
>   [headtext={Abstract},
>headstyle=bold,
>headcolor=blue,
>headalign=middle,
>inbetween=\blank,%between the head and the body
>style=small, %for the contents
>color=black, %for the contents
>   ]

I would replace headetext with \setuphead[abstract] and the format
for the table of content (is this what do you mean with "for the content")
with \setuplist 

Re: [NTG-context] Adding custom key/value pairs

2008-04-17 Thread Taco Hoekwater


Wolfgang Schuster wrote:
> 
> Can't the abstract just placed after the text has been set with
> \start/\stopabstract.

Better not, because placement and spacing around and between
and relative ordering of abstracts and keywords are often bound
to very specific rules. Rules you don't want to burden users
with, like

   "if there is an english abstract, it should come before the
german abstract. If there are freestyle keywords on top of the
required classifications, they should follow the abstracts with
a space above of 12pt and below of 12ot, otherwise there should
be space below the classifications of 24pt, unless a motto
(see below) is also given".

You get the idea? Journal editors can be evil bastards sometimes

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [dev-context] New context release

2008-04-17 Thread Norbert Preining
On Do, 17 Apr 2008, Jonathan Kew wrote:
> If I do this, and create a tag "2007.1" in TL with the updated
> branch2007 version, are you able to use this as the base for your

Of course, that would be great. And if you want to be nice to me, too,
send me a simple diff (svn diff output) of what you did and I am
settled.

> package? I presume you don't use the actual binaries from TL Master/

No, of course not.

> bin anyway, so what matters is what we have in the source tree.

Right.

Big thanks a lot.

That leaves the changes to euenc, fontspec, xltx..., ??? TO do or not
to?

Best wishes

Norbert

---
Dr. Norbert Preining <[EMAIL PROTECTED]>Vienna University of Technology
Debian Developer <[EMAIL PROTECTED]> Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
CHIPPING ONGAR (n.)
The disgust and embarrassment (or 'ongar') felt by an observer in the
presence of a person festooned with kirbies (q.v.) when they don't
know them well enough to tell them to wipe them off, invariably this
'ongar' is accompanied by an involuntary staccato twitching of the leg
(or 'chipping')
--- Douglas Adams, The Meaning of Liff
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pb with ConTeXt ver: 2008.04.16 17:34 and mkiv

2008-04-17 Thread Otared Kavian
Problem solved as mysteriously as it appeared, after updating anew  
ConTeXt…

Thanks for your attention: OK

On 17 avr. 08, at 01:15, Mojca Miklavec wrote:

> On Wed, Apr 16, 2008 at 10:42 PM, Otared Kavian wrote:
>>
>> For your information, I am running this on MacBook Pro Intel running
>> MacOS X 10.5.2, and I follow Thomas Schmitz' indications to install
>> LuaTeX.
>>
>
> Thomas - you should be happy not to attend the conference, else you
> would probably be punished there for all the problems that Mac users
> experience with LuaTeX recently :)
>
> Mojca
>
> PS: do not be taken seriously, of course :)
> (I gave up the idea of enabling luatex system-wide already after some
> unsuccessful tries last year.)
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] t-bib and interactivity for url= and doi=

2008-04-17 Thread Taco Hoekwater


Tobias Burnus wrote:
> Tobias Burnus wrote:
>  > Taco Hoekwater wrote:
>>> I can fix that pretty easily, but a small real-life testfile will be 
>>> helpful, also for the DOI problem.  
>> See attached TeX file.
> Here is it again. Any idea? (Sorry for the length, but 
> \setuppublicationlayout and \startpublication make it a bit lengthy.) 

Problem moved to my shortlist (and yes, that is fairly short, just
a few days worth of work).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] t-bib and interactivity for url= and doi=

2008-04-17 Thread Tobias Burnus
Tobias Burnus wrote:
 > Taco Hoekwater wrote:
>> I can fix that pretty easily, but a small real-life testfile will be 
>> helpful, also for the DOI problem.  
> See attached TeX file.
Here is it again. Any idea? (Sorry for the length, but 
\setuppublicationlayout and \startpublication make it a bit lengthy.) 
See typset text in the TeX file (very bottom of this mail) about how the 
issues; I verified with ConTeXt Live (pdfeTeX and LuaTeX) that it is not 
a local problem.

Thanks,

Tobias

%

\usemodule[bib]
\setupinteraction[state=start]
\setupurl[style=,urlspace=yes]
\chardef\urlhyphenmethod=1 % Hyphenate very agressively (=1), use =0 for default

\setuppublications[alternative=aps,interaction=start]
\setuppublications[numbering=yes,refcommand=num]

\setuppublicationlist[
width=3in,
authoretallimit=40,
editoretallimit=40,
artauthoretallimit=40,
interaction=start]

\unprotect
\setuppublicationlayout[article]{%
   \insertartauthors{}{ }{\insertthekey{}{ }{}}%
   \insertarttitle
{\unskip, \bgroup\it }%
{\/\egroup }{}%
   \insertjournal{\unskip, \bgroup }{\egroup}
{}% \insertcrossref{In }{}{}}%
   \insertvolume
{  \bgroup \bf }
{\egroup %\insertissue{(}{)}{}%
 \insertfirstpage{, }{}{}}
{\insertfirstpage{ }{}{}}%
   \insertpubyear{ (}{). }{\unskip.}%
   \insertdoi{ DOI: }{.}{}%
   \insertbiburl{ }{.}{}%
   \insertNote{ }{.}{}%
   \insertcomment{}{.}{}%
}
\protect

\startpublication[k=Almbladh1985,t=article,
a={{Almbladh},{von Barth}},y=1985,o={10.1103/PhysRevB.31.3231},
n=21,s=AvB85]
\artauthor[]{C.-O.}[C.-O.]{}{Almbladh}
\artauthor[]{U.}[U.]{von}{Barth}
\pubyear{1985}
\arttitle{Exact results for the charge and spin densities, exchange-correlation
  potentials, and density-functional eigenvalues}
\journal{Physical Review B}
\volume{31}
\issue{6}
\pages{3231-3244}
\doi{10.1103/PhysRevB.31.3231}
\stoppublication


\starttext
Let's cite it \cite[Almbladh1985]. The following should write
\quote{DOI:10.1103/PhysRevB.31.3231}, but it is prefixed by
\quote{http://dx.doi.org/}:
\cite[alternative=doi,left={DOI:},right=][Almbladh1985]

But my actual problem is \dots

\subsection{References}
\dots that the following DOI link does not work:

\placepublications[criterium=chapter]
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] announce of new version of Context Minimals Installer for Windows

2008-04-17 Thread Vyatcheslav Yatskovsky
Hello

I've commited new version of Context Minimals Installer for Windows.

http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe

Added possibility to select between Beta and Stable (current) version
+ new rsync + internal changes.

---

The question to Hans: why --force switch is now required for
mtx-update script? And why it reloads all files, not
synchronize them?
-- 
Best regards
Vyatcheslav Yatskovsky

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Discussion: correspondence with ConTeXt

2008-04-17 Thread Wolfgang Schuster
Hi all,


Preface


most of the discussions in the last weeks on the list
concerned LuaTeX and MkIV with the topic fonts, xml and bugs,
currently not implemented functions and bug and in the last
few days also mplib. I will try start with this mail a
hopefully interesting discuassions wuth many people about the
current state to use ConTeXt for correspondence in personal
and business live.



Introduction


Although ConTeXt has many features and can be used for nearly
every type of document with many features to adapt the layout
to ones personal requirements we have still a few places where
something is missing or force us to use another tool. I will
focus myself for the moment on the missing support for a real
module to write letter and other correspondence.



The Past and the present


A few modules had been written in the past to write letter but
wether they are not available like Hans own module or it is to
complicated to use.

Hans own module m-letter.tex was never included in the main
distribution and the documentation [1] was never finished but
it is now possible to find a older version in the list
archives. The strong point on the module are the possibility
to change the size and position of the address and reference
fields but it was nearly impossible to add extra information
like values for sender or to make big changes in the layout.

The second option to write a letter was and is Holger Schöners
letterstyle environment [2], he provided a layout for german
letters with a DIN style and macros to store address and
sender information. What looked like a good solution to me at
first glance had also many disadvatages, the names for the
fields in the refrence line used hard to memorize name like
\lettersenderkey... and no high level interface to set them.
Another point to me which prevented me from using the style
was the hard way to change the layout, the environment
provided commands to change the values but all was done with
simple definition and no setup command.

A few user write their own simple setups and environemnts to
write letter [2,3] but none of them was really confugrable or
provided a real interface.



The future


The lack of any good soution for this topic forced me to write
my own letter module for ConTeXt. I started myself with Hans
letter module and added a extra field to add my own address
but this was at a time where I was still new to ConTeXt and
most of the content in m-letter.tex where confusing to me and
I had problem to adapt the layout to my own requirements.
After I gained a little bit more knowledge in TeX and ConTeXt
is started to write a new module from scratch with the option
to load style files and set the information for the address
and all other information with a better interface.

After nearly one and a helf years and 2 major revisions I have
nearly finished my module and would will make it now available
also to other users. But before I make my last stable version
online I want to discuss a few points with interested users.



The discussion


Before I start to give you information about my module and
give you the chance to mention your own wishes or thoughts
about the inteface I'm interested what do you use currently to
write you own correspondence (letter, invoices etc.).

After this interesting question for me I will now make a few
information about my module available.

The module use by default the definition for german business
letters as layout where the position for the address block and
the reference line are defined. To change the layout for your
own letter I provide the option to change the default settings
with the one for all command \setupletterstyle, you could use
it to set the page layout, the position for the different
blocks for address and sender information and also for the
bodyfontsize and parskip and parindent. To use once defined
for many letter you could save them in so called letterstyle
files which can be loaded either with the module
\usemodule[letter][style=...] or within the letter with the
command \useletterstyle[...].

The lettertext is written between the \startletter ...
\stopletter environment and it is possible to write in
adcouemnt as many letters as you want, you could write serial
letters and use the correspodence modul to save the address
information in a XMl file.

The values for letter are set with the \setupletter command
but this is one of the still open points, the current
implemtation requires sometimes to many lines for just a few
information and I plan to replace it with a simpler system.

Take the following minimal example

\usemodule[letter]

\setupletter
  [sender]
  [name={Mike Meiers},
   address={Mustergasse 12\\25694 Musterstadt}]

\setupletter
  [address]
  [name={Hans Hansen},
   address={Zielweg 34\\78561 Tiny Town}]

\starttext

\startletter
  [opening={Dear Hans,}]

letter text

\stopletter

\stoptext

As you can see the opening for the letter is set as optional
argument for \startletter because it is al

Re: [NTG-context] [dev-context] New context release

2008-04-17 Thread Jonathan Kew
On 17 Apr 2008, at 7:23 am, Norbert Preining wrote:

> On Do, 17 Apr 2008, Will Robertson wrote:
>> Sorry, I didn't know how you went about actually creating this  
>> package.
>
> The packages are created from the actual TeX Live release, or better
> from the security branch of the subversion repository, the tag  
> 2007.1 or
> how it is called.

There's a tag "2007.0", which matches the actual release DVD, and  
there's a "branch2007" which has had a few bug fixes applied (mostly  
bugfixes in xetex, also apparently some security fixes in dviljk).

What I suggest is that I review xetex bug-fixes since the 2007  
release, and back-port the most important ones to branch2007 in TeX  
Live; we can also include the \suppressfontnotfounderror or whatever  
it's called, for the sake of the new context. But we won't try to  
include any of the major new features (like Graphite font support, or  
the new ICU version, etc), which would make for a massive patch.

This would give you a "xetex 0.996-patch2" in Lenny (what's in  
branch2007 is currently 0.996-patch1), should work for both context  
and non-context users, and should be non-invasive as far as the rest  
of TL is concerned.

If I do this, and create a tag "2007.1" in TL with the updated  
branch2007 version, are you able to use this as the base for your  
package? I presume you don't use the actual binaries from TL Master/ 
bin anyway, so what matters is what we have in the source tree.

JK

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] announce of new version of Context Minimals Installer for Windows

2008-04-17 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
> Hello
> 
> I've commited new version of Context Minimals Installer for Windows.
> 
> http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe
> 
> Added possibility to select between Beta and Stable (current) version
> + new rsync + internal changes.
> 
> ---
> 
> The question to Hans: why --force switch is now required for
> mtx-update script? And why it reloads all files, not
> synchronize them?

--force is needed because i don't want to spoil my trees when i'm testing

i dunno why it does not synchronize ... is there a status file? did you 
--update?


-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unable to generate luatex formats

2008-04-17 Thread Hans Hagen
Joel C. Salomon wrote:
> On Wed, Apr 16, 2008 at 4:32 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
>> did you update luatex, texlua, texluac?

they all should be the same binary but with different names

-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [dev-context] New context release

2008-04-17 Thread Jonathan Kew

On 17 Apr 2008, at 1:09 am, Mojca Miklavec wrote:

> On Thu, Apr 17, 2008 at 1:42 AM, Jonathan Kew wrote:
>> On 16 Apr 2008, at 7:56 pm, Norbert Preining wrote:
>>
>>  Given that there won't be TL2008 in lenny, I think it would be very
>> desirable to update xetex to a more recent version than 0.996 as  
>> shipped
>> with TL2007.
>
>> (I don't know much about the context situation).
>
> ConTeXt would be happy to have the \supressfontnotfounderror fix
> available (which means: happy to have a binary version of XeTeX later
> than the one in TL 2007),

OK, but for Debian it'll need to be provided as a source patch, we  
can't simply give them a binary.

JK

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unable to generate luatex formats

2008-04-17 Thread Taco Hoekwater


Joel C. Salomon wrote:
> On Wed, Apr 16, 2008 at 4:32 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
>> did you update luatex, texlua, texluac?
> 
> How can I tell?

The banners (first line of luatex --version, texlua --version,
texluac --version) should all be the same and mention at least
snapshot-0.25.2

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-17 Thread Taco Hoekwater
Hans Hagen wrote:
> Joel C. Salomon wrote:
>> On Sat, Apr 12, 2008 at 3:02 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:
>>>  > Slight tangent: Is there any support for using any of the OpenType
>>>  > math fonts (I know of Cambria Math, STIX, and Asana Math—this last on
>>>  > tug.org) in mkiv?
>>>
>>>  cambria ... probably in the near future (as tex gyre will also have math
>>>  and), since stix is type 1 and spread over many fonts, it will not be
>>>  supported (that is: i will not make the typescripts for pdftex, but
>>>  someoneelse may see it as a challenge)
>> So will Stix be supported in mkiv or ConTeXt+XeTeX?
> 
> quite probably not

You can read that as:

   It depends on whether the released version of the Stix fonts will
   be packaged in a predictable manner.

It should either follow the cambria math example (otf, for mkiv) or
the cm/ams example (pfb, for mkii) to make it work in context.
 From the beta program so far, neither seems to be likely to happen,
but we will have to wait and see (some more).


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [dev-context] New context release

2008-04-17 Thread Will Robertson

On 17/04/2008, at 3:08 PM, Norbert Preining wrote:

Honestly, I fear to open a pandora's box here.


Bleah, I can see your concern.
Sorry, I didn't know how you went about actually creating this package.

It sounds like it would be easiest to stick with the official releases  
of TeXLive, despite the long-ish lag-time.


W

smime.p7s
Description: S/MIME cryptographic signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [dev-context] New context release

2008-04-17 Thread Will Robertson

On 17/04/2008, at 2:48 PM, Norbert Preining wrote:

And we should at the same time update the necessary packages (is euenc
and fontspec enough?)


xltxtra has seen a couple of bug fixes too.
That one -is- in the current repository.

W

smime.p7s
Description: S/MIME cryptographic signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___