Re: [NTG-context] Postscript Type1 fonts MK IV

2010-08-30 Thread John Magolske
* Khaled Hosny khaledho...@eglug.org [100829 08:37]:
 On Sat, Aug 28, 2010 at 11:50:38PM -0700, John Magolske wrote:
  
  Also, the SabonLT-Roman.afm file that came from Linotype has a section
  titled StartKernData, but .afm files generated using type1afm,
  fontforge, font2afm, etc. have no kerning section. Would using such
  .afm files cause sub-standard output with regard to kerning?
 
 FontForge can load mac type1 kerning, see:
 http://fontforge.sourceforge.net/faq.html#FOND-kern

Thanks, useful information linked there:

  The mac stored kerning information in the FOND resource associated
  with a bitmap font (it is not stored in the file with the postscript
  font). If you wish kerning data for a mac postscript font, you must
  find a font file containing a bitmap font with the same family and
  style as the postscript.

Reading this, I went into the directory of the font in question,
found the *.bmap file and ran `fondu -afm` on it. This created afm files
for all the fonts in that family, each file including a StartKernData
section with plenty of kerning data.

So I feel closer...at least I know how to create afm files that
include kerning data. But unfortunately, I still can't get these
fonts to work with ConTeXt. It must have something to do with the
font itself, as the SabonLT-Roman.afm and SabonLT-Roman.pfb I placed
in the ~/.fonts directory are working fine.

John

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


[NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Xan xan
Hi,

I want to migrate one LaTeX document to ConTeXt document. I only want to
put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


Anyone could say me the exact values I have to put in **layout**?

Thanks,
Xan.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan xan
Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same point. In
LaTeX is the item text itself who starts at the same point, not the romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: I have a new email address. The old has problems with sending emails.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Hans Hagen

On 29-8-2010 7:11, Xan xan wrote:

Hi,

I want to migrate one LaTeX document to ConTeXt document. I only want to
put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


Anyone could say me the exact values I have to put in **layout**?


You first have to figure out what the exact latex values are. I suppose 
that they are documented somewhere or can be deduced from the document 
class (maybe make a list for more popular document classes).


At some point there can be a module doing things like

\definelayout[latex-article][...]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] section conversion gets lost in MKIV

2010-08-30 Thread Mojca Miklavec
Dear list,

Here's a minimal example that work correct in MKII, but wrong in MKIV:

\setupsection
[chapter]
[conversion=Characters]
\setupsection
[section]
[conversion=]

\starttext
\chapter{first}
\section{subfirst}
\stoptext

It results in
A first
1.1 subfirst
while it should keep A.1 instead of 1.1 for the section numbering.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] problem with the removing of glue node in scrp-cjk.lua

2010-08-30 Thread 李延瑞
Hi Hans,

In scrp-cjk.lua, the function process can eat some glue node between
CJK glyphs. But the following glue nodes between CJK glyph and
half_width_open/half_width_close glyphs should not be eaten.

For example:

\starttext
中国 (Chinese) 的未来
\stoptext

Its output need stay the same.

Therefore I think the function process need add some codes for the
test of half_width_open/half_width_close glyphs. This is a patch for
it.

--- /opt/context/tex/texmf-context/tex/context/base/scrp-cjk.lua
2010-08-20
01:35:20.0 +0800
+++ /home/garfileo/scrp-cjk.lua 2010-08-30 17:08:31.0 +0800
@@ -553,7 +553,8 @@
 if not pcjk or not ncjk
 or pcjk == korean or ncjk == korean
 or pcjk == other  or ncjk == other
-or pcjk == jamo_final or ncjk ==
jamo_initial then
+or pcjk == jamo_final or ncjk == jamo_initial
+   or pcjk == half_width_close or ncjk == 
half_width_open then
 previous = start
 else -- if head ~= first then
 remove_node(head,first,true)

-- 
Best regards,

Li Yanrui (李延瑞)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Xan xan
-- Forwarded message --
From: Xan xan xancor...@gmail.com
Date: 2010/8/30
Subject: Re: [NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins
To: Hans Hagen pra...@wxs.nl


There is a technical explanation in The Not so Short Introduction to
LaTeX [tobi.oetiker.ch/lshort/lshort.pdf]
(page 129)

It's too much for me. I supose there are equivalencies in ConTeXt but
too bit tech for me.

Thanks,
Xan.

2010/8/30 Hans Hagen pra...@wxs.nl

 On 29-8-2010 7:11, Xan xan wrote:

 Hi,

 I want to migrate one LaTeX document to ConTeXt document. I only want to
 put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


 Anyone could say me the exact values I have to put in **layout**?

 You first have to figure out what the exact latex values are. I suppose that 
 they are documented somewhere or can be deduced from the document class 
 (maybe make a list for more popular document classes).

 At some point there can be a module doing things like

 \definelayout[latex-article][...]

 Hans

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan xan
Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same
point. In LaTeX is the item text itself who starts at the same point,
not the romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: I have a new email address. The old has problems with sending emails.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Postscript Type1 fonts MK IV

2010-08-30 Thread Khaled Hosny
On Sun, Aug 29, 2010 at 11:17:18PM -0700, John Magolske wrote:
 * Khaled Hosny khaledho...@eglug.org [100829 08:37]:
  On Sat, Aug 28, 2010 at 11:50:38PM -0700, John Magolske wrote:
   
   Also, the SabonLT-Roman.afm file that came from Linotype has a section
   titled StartKernData, but .afm files generated using type1afm,
   fontforge, font2afm, etc. have no kerning section. Would using such
   .afm files cause sub-standard output with regard to kerning?
  
  FontForge can load mac type1 kerning, see:
  http://fontforge.sourceforge.net/faq.html#FOND-kern
 
 Thanks, useful information linked there:
 
   The mac stored kerning information in the FOND resource associated
   with a bitmap font (it is not stored in the file with the postscript
   font). If you wish kerning data for a mac postscript font, you must
   find a font file containing a bitmap font with the same family and
   style as the postscript.
 
 Reading this, I went into the directory of the font in question,
 found the *.bmap file and ran `fondu -afm` on it. This created afm files
 for all the fonts in that family, each file including a StartKernData
 section with plenty of kerning data.
 
 So I feel closer...at least I know how to create afm files that
 include kerning data. But unfortunately, I still can't get these
 fonts to work with ConTeXt. It must have something to do with the
 font itself, as the SabonLT-Roman.afm and SabonLT-Roman.pfb I placed
 in the ~/.fonts directory are working fine.

Try Taco's suggestion, I myself got unpredictable results with ~/.fonts,
try instead ~/texmf/fonts/{afm,type1} or even ~/texmf/fonts/data

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Hans Hagen

On 30-8-2010 11:23, Xan xan wrote:


There is a technical explanation in The Not so Short Introduction to
LaTeX [tobi.oetiker.ch/lshort/lshort.pdf]
(page 129)

It's too much for me. I supose there are equivalencies in ConTeXt but
too bit tech for me.


sure, setuplayout can be used to define any layout I guess but I'm not 
going to read latex manuals (not even short ones) and reverse latex 
dimensions myself so it's up to other users then


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] section conversion gets lost in MKIV

2010-08-30 Thread Hans Hagen

On 30-8-2010 10:34, Mojca Miklavec wrote:

Dear list,

Here's a minimal example that work correct in MKII, but wrong in MKIV:

\setupsection
[chapter]
[conversion=Characters]
\setupsection
[section]
[conversion=]

\starttext
\chapter{first}
\section{subfirst}
\stoptext

It results in
 A first
 1.1 subfirst
while it should keep A.1 instead of 1.1 for the section numbering.


The new way is:

\definestructureconversionset[MySet][numbers,Characters][numbers] % [per 
level] [default]


\setupsection
  [chapter]
  [sectionconversionset=MySet]

\starttext

\chapter{first}
\section{subfirst}

\stoptext

What you observe is 'conversion' being inherited and makins both the 
conversionsets and conversion work as you want will mess up much code so 
I think that I will remove the 'conversion' key completely in favor of 
the set. Keep in mind that we now keep more status info around and more 
or less local conversion settings (after all then can be changed each 
moment) is not part of that.


So, a next release will drop 'conversion' ... better not that 
unpredictable.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] io.readnumber / l-io.lua (with patch)

2010-08-30 Thread Philipp Gesang
Hi, the function io.readnumber fails to call itself. I append a
patch. Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
--- l-io.lua2010-08-18 17:37:25.0 +0200
+++ /home/laokoon/versuche/lua/dok/examples/io/l-io.lua 2010-08-30 
14:01:02.0 +0200
@@ -186,7 +186,7 @@
 end
 end
 
-function io.readnumber(f,n,m)
+local function readnumber(f,n,m)
 if m then
 f:seek(set,n)
 n = m
@@ -201,7 +201,7 @@
 return 256^3 * a + 256^2 * b + 256*c + d
 elseif n == 8 then
 local a, b = readnumber(f,4), readnumber(f,4)
-return 256 * b + c
+return 256 * a + b
 elseif n == 12 then
 local a, b, c = readnumber(f,4), readnumber(f,4), readnumber(f,4)
 return 256^2 * a + 256 * b + c
@@ -210,6 +210,8 @@
 end
 end
 
+io.readnumber = readnumber
+
 function io.readstring(f,n,m)
 if m then
 f:seek(set,n)


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


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same point. 
In LaTeX is the item text itself who starts at the same point, not the 
romans.



I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} = 
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in 
${\cal P}$,

\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: Please CCme.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same point. 
In LaTeX is the item text itself who starts at the same point, not the 
romans.


Can anyone help me?

Thanks,
Xan.

PS: Please CCme.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: startenumerate in romans a la LaTeX

2010-08-30 Thread Xan


Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same point.
In LaTeX is the item text itself who starts at the same point, not the
romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: Please CCme.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] io.readnumber / l-io.lua (with patch)

2010-08-30 Thread Hans Hagen

On 30-8-2010 2:11, Philipp Gesang wrote:

Hi, the function io.readnumber fails to call itself. I append a
patch. Philipp

ok

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] fixed columns height

2010-08-30 Thread Jano Kula

Hello,

looking for the multicolums of fixed height I've found the solution from 
Wolfgang [1], which doesn't work with latest beta (mkiv):


\usemodule[streams]

\definestreamlayer[test][method=overlay]

\setupbackgrounds[page][background=test]

\starttext

\startstreamlayer[test]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer

\setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}

\stoptext

Here is the scenario: tree columns of fixed height should be placed at 
the precise place (end of the page, so they can also float there).


It is necessary to measure their natural height, also, to check if all 
the material fits in the the specified height or find some other way to 
check if the material is lost or not.


Do you have any hints?

Thanks,

Jano

[1] http://thread.gmane.org/gmane.comp.tex.context/55324/focus=55433


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Taco Hoekwater

On 08/28/2010 09:31 PM, Xan wrote:

- right indentation of items: in context items start at the same point.
In LaTeX is the item text itself who starts at the same point, not the
romans.


I do not understand this sentence. Does this do what you want?



\defineitemgroup[enumerate]

\setupenumerate[1][romannumerals]
\setupenumerate[1][width=1cm,stopper=,left=(,right=)]

\starttext
\startenumerate

\item A

\item B

\item C

\stopenumerate
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making a feedback form

2010-08-30 Thread Cecil Westerhof
Op zondag 29 aug 2010 13:43 CEST schreef Hans Hagen:

 there is the widgets manual on the website .. still valid

 Thanks. This is for interactive feedback forms and I need paper ones,
 but I think I can use it.

 ok, paper is easier, mostly itemize (which has some features for that) and
 framed and so then

 I'll look into that. I also need checkboxes, but htere was something
 like that in widgets.

 yes, but using pdf fill in forms for that is overkill, better define a
 symbol for that

I think I'll use '[  ]' for that. That is what I use in my current
OpenOffice document.


 aren't there users out there who have made forms already who can provide
 examples?

It looks like not. Well it is for me to take up the gauntlet then.
I'll try to make a set off macros and when successful, I'll put them
on the WiKi.

I am thinking about the following:

A macro to input several fields. The input's the same length and
starting at the same character every time position. Like (looks only
correct with a mono-spaced font):
Contact Details:
Company:  
Name: 
Address:  
ZIP City: 
E-mail:   
Phone:
GSM:  

Which would be called with something like:
\multiple-input{
Contact Details
40
Company
Name
Address
ZIP City
E-mail
Phone
GSM
}

And properly make a macro for this one also, because this will be info
that is requested often.

Next will be creating check (or radio) buttons. Would it be a good
idea to use different 'boxes' for those? I was thinking about:
Did you find this workshop useful?
[  ] Yes
[  ] No
[  ] A little bit

This would be generated with:
\radio-buttons{
Did you find this workshop useful?
Yes
No
A little bit
}

Next would be a construction like (always using the complete line):
What did you find the most useful?





















This would be generated with:
\multiline-input{
what did you find the most useful?
10
}

Is this an useful way to tackle this?
Are there other input elements I should define?
Elements should always be on one page. How can I make sure this will
be the case?
Any tips about how to write those macros?

-- 
Cecil Westerhof
M cldwester...@gmail.com

O ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Renaming file breaks texexec

2010-08-30 Thread Cecil Westerhof
Op zaterdag 28 aug 2010 13:31 CEST schreef Taco Hoekwater:

 I want to try to make a logo. When executing:
 texexec ConTeXtWikiLogo
 there is generated:
 -rw-r--r-- 1 cecil users 17K aug 28 12:55 ConTeXtWikiLogo.pdf

 When I give:
 cp ConTeXtWikiLogo.tex BASHLogo.tex
 texexec BASHLogo
 there is generated:
 -rw-r--r-- 1 cecil users 1,3K aug 28 12:57 BASHLogo.pdf
 which is a completely wrong file.

 What could be happening here?

 Unless you are including an image using \jobname, I suggest posting
 the logs of both the wrong and the right run.

I attached the tex file and both log files.

% logo.mp: creates a blue traffic sign-style context logo
% Copyright 2008 Taco Hoekwater
% You are free to use this code any way you can
% Modified by Wolfgang Schuster
% Modified by Xan
% References:
% - Original design [http://www.ntg.nl/pipermail/ntg-context/attachments/20090312/3056772b/attachment.zip ]
% - Thread discussion related to that [http://www.ntg.nl/pipermail/ntg-context/2009/038851.html]
% This file should be processed with ConTeXt (texexec file)
 
\setupcolors[state=start,textcolor=white]
 
\startMPenvironment[global]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,ss,144pt]
\stopMPenvironment
 
\starttext
 
\startMPpage[offset=0pt]
color darkblue,textcolor;
darkblue := (0.0625,0,.412); % 0f006b =
textcolor := (1,1,1);
def rect (expr xl,yl,r) =
  pickup pencircle scaled 1;
  draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)--
   (xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle
withcolor textcolor;
enddef;
 
f:= 14;
h:=8;
v:=4;
 
fill fullcircle scaled 408 shifted (112,0)
withcolor darkblue;
label (textext(\bf C), (0,v*f) ) withcolor textcolor ;
label (textext(\bf O), (f*h,2*v*f) ) withcolor textcolor ;
label (textext(\bf N), (2*f*h,v*f) ) withcolor textcolor ;
label (textext(\bf T), (0,-v*f) ) withcolor textcolor ;
label (textext(\bf E), (f*h,0) ) withcolor textcolor ;
label (textext(\bf X), (f*h*2,-v*f)) withcolor textcolor ;
label (textext(\bf T), (f*h,-2*v*f)) withcolor textcolor ;
r := h*f;
 
rect (0,v*f,r);
rect (f*h,2*v*f,r);
rect (2*f*h,v*f,r);
rect (0,-v*f,r);
rect (f*h,0,r);
rect (f*h*2,-v*f,r);
rect (f*h,-2*v*f,r);
\stopMPpage
 
\stoptext
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE) (format=cont-en 2010.7.5)  28 AUG 2010 12:55
entering extended mode
 %-line parsing enabled.
 (/usr/lib/texmf/web2c/natural.tcx)
**ConTeXtWikiLogo.tex \emergencyend
(./ConTeXtWikiLogo.tex

ConTeXt  ver: 2009.08.19 17:10 MKII  fmt: 2010.7.5  int: english/english

system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-tmf.tex
(/usr/share/texmf/tex/context/base/type-tmf.mkii))
(/usr/share/texmf/tex/context/base/type-siz.tex
(/usr/share/texmf/tex/context/base/type-siz.mkii))
(/usr/share/texmf/tex/context/base/type-one.tex
(/usr/share/texmf/tex/context/base/type-one.mkii)))
system  : ConTeXtWikiLogo.top loaded
(./ConTeXtWikiLogo.top)
bodyfont: 12pt rm is loaded
language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 us-
ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3 da-ec:ec-6-2:2
 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2 fr-ec:ec-1
0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2 it-
ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2 pt-ec:ec-17
-2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2 pl-qx:qx-21-
2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2 sk-ec:ec-25
-2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2 agr-agr:agr-30
-2:2 fi-ec:ec-31-2:2 hu-ec:ec-32-2:2 ru-t2a:t2a-34-2:2 uk-t2a:t2a-3
5-3:3 loaded
specials: dvips loaded
\openout3 = `ConTeXtWikiLogo.tui'.

\openout0 = `ConTeXtWikiLogo-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

systems : system commands are disabled
language: language en is active
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.mkii
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
color   : mpcmyk color space is supported
color   : mpspot color space is supported
color   : system rgb is global activated
(./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo)
(./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo)
(./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo)
(./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo) (./ConTeXtWikiLogo.tuo)
systems : begin file ConTeXtWikiLogo at line 18
\openout7 = `ConTeXtWikiLogo-mpgraph.mp'.

\openout6 = `ConTeXtWikiLogo-mpgraph.mpb'.

runsystem(texmfstart 

Re: [NTG-context] Renaming file breaks texexec

2010-08-30 Thread Taco Hoekwater

On 08/30/2010 04:11 PM, Cecil Westerhof wrote:

Op zaterdag 28 aug 2010 13:31 CEST schreef Taco Hoekwater:


I want to try to make a logo. When executing:
texexec ConTeXtWikiLogo
there is generated:
-rw-r--r-- 1 cecil users 17K aug 28 12:55 ConTeXtWikiLogo.pdf

When I give:
cp ConTeXtWikiLogo.tex BASHLogo.tex
texexec BASHLogo
there is generated:
-rw-r--r-- 1 cecil users 1,3K aug 28 12:57 BASHLogo.pdf
which is a completely wrong file.

What could be happening here?


Unless you are including an image using \jobname, I suggest posting
the logs of both the wrong and the right run.


I attached the tex file and both log files.


The on-the-fly generation of metapost images is off because
the setting for shell_escape in your texmf.cnf does not allow
execution of system commands.

The reason why the original filename worked is because in thatcase
the image (ConTeXtWikiLogo-mpgraph.1) has already been generated
earlier (or separately).

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Filling boxes

2010-08-30 Thread Cecil Westerhof
Op zaterdag 28 aug 2010 16:20 CEST schreef Wolfgang Schuster:

 \setuplayout[header=0cm,footer=0.25cm]

 \defineframed
 [action]
 [width=5cm,height=3cm,offset=none,frameoffset=.5\linewidth]

 \defineframed
 [base]
 [width=3cm,height=2cm,offset=none,frameoffset=.5\linewidth]

 \setupfooter[style={\switchtobodyfont[6pt]}]

 \newcounter\treecounter

 \setvariables
 [tree]
 [1=One,
 2=Two,
 3=Three,
 4=Four,
 4={\switchtobodyfont[9pt]\input ward },
 5=Five,
 6=Six,
 7=Seven]

Changed this to:
\setvariables
  [tree]
  [1='Some very long text to try to get to much text for the box to fit in. 
There is a lot of room. Just some other text to finish it of. With this line 
added, there is to much text.',
   2=Two,
   3=Three,
   4=Four,
   5=Five,
   6=Six,
   7=Seven,
   8=Eight,
   9=Nine,
   10=Ten,
   11=Eleven,
   12=Twelf,
   13=Thirtheen
  ]

That comes quit a bit to what I want. When I use this and then I
execute:
texexec --batchmode --purge --silent testTree.tex
an error is signalled. When I remove the last sentence from the first
parameter, it signals success.

My only remaining problem is that I want to use parameters to input
the values for the boxes. How would I do that?



 \def\CheckBoxContent
 {\begingroup
 \setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}%
 \ifdim\ht\scratchbox\vsize
 \forcequitjob{tree}%
 \else
 \box\scratchbox
 \fi
 \endgroup}

 \starttext

 \setupfootertexts[\copyright Decebal Computing, http://www.decebal.nl]

 \setupalign[middle]\offinterlineskip

 {\definedfont[Bold at 32pt]De taken kerstboom}

 \blank

 \dorecurse{3}
 {\noindent\dorecurse\recurselevel
 {\increment\treecounter
 \action{\CheckBoxContent}}\par}

 \dorecurse{7}
 {\increment\treecounter\noindent\base{\CheckBoxContent}\par}

 \stoptext

-- 
Cecil Westerhof
M cldwester...@gmail.com

O ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Renaming file breaks texexec

2010-08-30 Thread Cecil Westerhof
Op maandag 30 aug 2010 16:15 CEST schreef Taco Hoekwater:

 The on-the-fly generation of metapost images is off because
 the setting for shell_escape in your texmf.cnf does not allow
 execution of system commands.

I have two files:
/etc/texmf/web2c/texmf.cnf
/usr/lib/texmf/web2c/texmf.cnf

Which one do I have to change? And what do I need to change?

-- 
Cecil Westerhof
M cldwester...@gmail.com

O ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Jörg Hagmann



On 08/28/2010 09:31 PM, Xan wrote:

- right indentation of items: in context items start at the same point.
In LaTeX is the item text itself who starts at the same point, not the
romans.


The Romans always start too late, try the Celts!

JH
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Renaming file breaks texexec

2010-08-30 Thread Taco Hoekwater

On 08/30/2010 05:13 PM, Cecil Westerhof wrote:

Op maandag 30 aug 2010 16:15 CEST schreef Taco Hoekwater:


The on-the-fly generation of metapost images is off because
the setting for shell_escape in your texmf.cnf does not allow
execution of system commands.


I have two files:
 /etc/texmf/web2c/texmf.cnf
 /usr/lib/texmf/web2c/texmf.cnf

Which one do I have to change? And what do I need to change?


The one that is reported by

$ kpsewhich texmf.cnf

search for shell_escape, and set the value to 't', like this:

shell_escape = t

Best wishes,
Taco


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Hans Hagen

On 30-8-2010 5:03, Mojca Miklavec wrote:


it is possible to reverse-engineer the dimensions, but I crossed
against something I don't understand straight away. The distance
between paper border and text is [1]+[3]=1 inch + 0pt + 22pt (but that
doesn't seem to be the case in A4 paper setting anyway), while width
of left margin in [10] = 106pt which makes the margin stick out of
paper, right?


That drawing on p 129 is somewhat puzzling.

I get the impression that somehow these old-time 1in built-in dvi 
offsets are being used; in context these have been zeroed out right from 
the start



but the drawing in TNSS is lying a bit (or maybe ConTeXt is wrong ... :).


how can you doubt !

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with the installation of the minimals on Win XP

2010-08-30 Thread Florian Baudach
I tried but it didn't work :(.
I a must confess I am not a experienced windows user. Perhaps my problems
with the minimals depend on the security settings on my office Pc :-?

Greetings
FloMo

2010/8/26 Vyatcheslav Yatskovsky yatskov...@gmail.com

 Hi!

 Why not to use my Win installer? ;)

 @Mojca or someone at the server: I see that
 http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.execontains
  quite old version of the installer. Can you please update it if I
 send you the files?

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

 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with the installation of the minimals on Win XP

2010-08-30 Thread Mojca Miklavec
On Mon, Aug 30, 2010 at 18:58, Florian Baudach wrote:
 I tried but it didn't work :(.
 I a must confess I am not a experienced windows user. Perhaps my problems
 with the minimals depend on the security settings on my office Pc :-?
 Greetings

Did you try to download the installer from scratch?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] framed text over multiple pages

2010-08-30 Thread Mojca Miklavec
Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.

At the moment I have

\startframedtext
  [width=\textwidth,
   background=color,
   backgroundcolor=mycolor1,
   frame=off,
   leftframe=on,
   framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages. I would be grateful
for any hint/pointer to the manual. I've found a document that does
underlining of words in paragraphs, but this seems like an easier
problem anyway.

Thank you very much,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Aditya Mahajan

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


At the moment I have

\startframedtext
 [width=\textwidth,
  background=color,
  backgroundcolor=mycolor1,
  frame=off,
  leftframe=on,
  framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages.


backgrounds and textbackgrounds. IIRC, they are documented in the details 
manual.


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Mojca Miklavec
On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:
 On Mon, 30 Aug 2010, Mojca Miklavec wrote:

 I'm trying to find the command (in manual, wiki or mailing list) that
 enables using background behind text spanning over multiple pages.

 Hey, you are getting rusty :-)

I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.

If I spend too much time solving ConTeXt-related issues this week, I
will run out of time and won't be able to go to the ConTeXt conference
... :) :) :) I don't want to repeat the history this month.

 At the moment I have

 \startframedtext
  [width=\textwidth,
  background=color,
  backgroundcolor=mycolor1,
  frame=off,
  leftframe=on,
  framecolor=mycolor2]

 but I remember that there used to be a command that allowed doing the
 same, but spanning the text over multiple pages.

 backgrounds and textbackgrounds. IIRC, they are documented in the details
 manual.

Oh, sure, thanks a lot. However ... \definetextbackground doesn't seem
to support leftframe=on. That means that I need to use metapost to
draw it ... (or just continue searching) ... or even better ... ignore
my idea to draw the left frame and just continue writing ...

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


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Aditya Mahajan

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


I will believe that you are writing something when I see your thesis :-) I 
have heard rumours that it exists.



At the moment I have

\startframedtext
 [width=\textwidth,
 background=color,
 backgroundcolor=mycolor1,
 frame=off,
 leftframe=on,
 framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages.


backgrounds and textbackgrounds. IIRC, they are documented in the details
manual.


Oh, sure, thanks a lot. However ... \definetextbackground doesn't seem
to support leftframe=on. That means that I need to use metapost to
draw it ... (or just continue searching) ... or even better ... ignore
my idea to draw the left frame and just continue writing ...


Drawing a left frame using a metapost shouldn't be too hard.

draw leftboundary OverlayBox withpen pencircle scaled 1bp withcolor red ;

(or something like that).

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making a feedback form

2010-08-30 Thread Henning Hraban Ramm

Am 2010-08-30 um 16:02 schrieb Cecil Westerhof:
aren't there users out there who have made forms already who can  
provide

examples?


It looks like not. Well it is for me to take up the gauntlet then.
I'll try to make a set off macros and when successful, I'll put them
on the WiKi.


Here's my old roleplaying character sheet with LOTS of fields:
http://github.com/fiee/ConTeXt/tree/master/midgard

Perhaps can use some stuff from it.

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 7:42, Mojca Miklavec wrote:

On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


hey, these textbackgrounds have been in mkii for a long time ... 
actually I must see if I can make them better in mkiv


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 8:11, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


I will believe that you are writing something when I see your thesis :-)
I have heard rumours that it exists.


We expect her to take a copy to the conference. At least we need to 
check if she used tex at all. Or maybe it was just excessive use of 
\fakewords and \fakeformula after page 10.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 7:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


imagine how more better mkiv would have been if Mojca had been using it ...

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___