Re: [NTG-context] issue with \usesymbols[mvs]

2010-12-14 Thread Hans Hagen

On 14-12-2010 7:03, views63 wrote:


define fonts  forced type ttf of marvosym not found
define fonts  font with name marvosym is not found
define fonts  unknown font marvosym, loading aborted
define fonts  unable to define marvosym.ttf as \**currentsymbolfont**
backends  using xmp file
'/opt/context/tex/texmf-context/tex/context/base


mkiv assumes marvosym.ttf to be present

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] how to insert a imagefile like a letter?

2010-12-14 Thread Wolfgang Schuster

Am 14.12.2010 um 05:49 schrieb Jonas Stein:

 bell.pdf provides a small bell in black and white as 
 vectordrawing
 
 
 i'd like to get that bell in height of the current letter f
 on the position where i type \bell
 
 my first test with
 \externalfigure[bell][width=1em]
 creates a bell with lentgh of 1em... but
 
 
 \define[]\bell{\externalfigure[bell][width=1em]\ }
 .
 .
 \starttext
 \bell
 .
 .
 
 
 fails.
 
 How can i get a small bell? 

\definefiguresymbol[bell][bell]

\starttext
… \symbol{bell} …
\stoptext

Wolfgang


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

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


[NTG-context] Is there a way to split TABLE and TABLE caption for longtables

2010-12-14 Thread barney schwartz
Group, Hans. Wolfgang, Help PLEASE

I have numerous loong tables to publish. attached find minimal example.

I need these tables to mimic \longtables LaTeX package.

I got a recode from Wolfgang using the TABLE module which works well for the
header, footer and TABLEbody however:

I need table caption and tablefoot to state:

table xx (continue)

Also it would be perfect if the top of the continued page(s) were open and
the footer for the continued page(s) said:

table xxx (continued)

Is there a way to accomplishe this feat of magic within ConTeXt?

I have tried all I can think of to no avail. I have been on this problem now
for 3 weeks. If no solution then I am afraid that I must resort back to
LaTeX and memoir class. I am truely hoping NOT to go back.

barney


chap5a.tex
Description: TeX document
___
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] installation on debian testing/unstable

2010-12-14 Thread Alan BRASLAU
On Tuesday 14 December 2010 02:03:17 Jonas Stein wrote:
 within the time Norbert Preining prepared a new .deb package
 including context (2010.07.30-1)
 
 its status is experimental for now.
 
 There will be context 2009 in debian 6.0 stable.
 So this might be a good solution for most debian users for the next
 months (or years).
 
 i have just testet it on debian testing (squeeze) and it works fine.
 
 Here is how to do it:
 
 1. Download the .deb
 http://packages.debian.org/experimental/all/context/download
 
 2. run as root
 dpkg -i context_2010.07.30-1_all.deb
 
 3. work with context.
 
 Thanks a lot to Norbert!
 
 Kind regards,

Or add the following line at the bottom of /etc/apt/sources.list
deb http://ftp.XX.debian.org/debian experimental main

where XX is your local mirror

and run as root:
$ apt-get update
$ apt-get install context/experimental


Alan
___
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] writebetweenlist regression (mkiv)

2010-12-14 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 On 13-12-2010 11:20, Steffen Wolfrum wrote:

 Am 08.11.2010 um 23:03 schrieb Marco:


 Hello there.

 Currently \writebetweenlist doesn't work as advised. It inserts the
 argument before the last entry of the list. The minimal example is
 provided by the reference itself.

 http://wiki.contextgarden.net/Reference/en/writebetweenlist

 The rule is correctly inserted at http://live.contextgarden.net/ and in
 the ConTeXt shipped with TeXlive 2010 (2010.05.24), but not with the
 current beta and the 2010.07.30 version. mkii works fine.

 It prints

 --rule--
 List entry A
 List entry B

 Unfortunately, I can confirm this with current version:

 ver: 2010.12.12 17:06 MKIV

 Help please!

 There is a good reason for this. Inbetween has multiple usage and
 these are conflicting:

 - in order to get the right page info associated it needs to be
 anchored in the text stream
 - in that case a node can interfere with spacing and can come unexpected
 - sometimes direct flushing is needed, sometimes delayed

 btw, all these issues have been observed by users every now and then

 Now, if unexpected interference is the hardest to track down,
 inbetween is an immediate action. In principle one can influence that
 but it's not that intuitive. So, I've now added an option to (1) the
 flushers and (2) the list placers.

 The following example shows this:

 \definelist[testlist][criterium=all]

 \starttext

 Regular list entries are bound to a specific location in order to
 get the right pagenumber etc.\ associated. When pushing something
 inbetween (in mkiv) it ends up directtly in the list. This is the
 default because otherwise users will wonder why spacing might get
 messed up (due to an unseen but present node). It is possible to
 force a location by explicitly setting \type {location} to \type
 {here}.

 Another way to force a certain order is to set the \type {order}
 variable when placing a list. The \type {command} option only
 pushes commands into the right order, and \type {all} orders all
 entries (which might be too much). In this case no specific
 location is needed with the inbetween method. Maybe additional
 mechanisms show up some day.

 \subject{normal}  \placelist[testlist]
 \subject{command} \placelist[testlist][order=command]
 \subject{all} \placelist[testlist][order=all]

 \page \input tufte

 \writetolist [testlist]   {1} {One}
 \writebetweenlist[testlist] {\blackrule[color=red,width=\hsize]}

 \writebetweenlist[testlist][location=here]{\blackrule[color=blue,width=\hsize]}
 \writetolist [testlist]   {2} {Second}
 \writetolist [testlist][location=none]{W} {Whatever}
 \writebetweenlist[testlist] {\blackrule[color=green,width=\hsize]}

 \stoptext

 I admit that it's not an easy mechanism but any default would at some
 point trigger complaints. So it probably needs to be wikified.

 Hans


Thanks for this. It's been wikified in the reference wiki:
http://wiki.contextgarden.net/Reference/en/writebetweenlist

Bests 

-- 
Marco

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

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


[NTG-context] Help: tweaking bibliography style

2010-12-14 Thread Nicola
Hi,
currently, in my document, an article reference looks like this:

[1] Thor, A. U. (2010). ConTeXt is great. My Own Publishing, 2(4), 23-34.

with the title in italics. How to make the year appear at the end and 
how to make the publisher in italics, too? I would like such changes to 
apply to other types of references as well (books, inproceedings, etc...)

Second, \cite[Thor:2010,Bar:2009] produces something like [6 and 9]. How 
do I get rid of 'and' and get simply [6,9]?

This is my current setup (mainly code copied from the Wiki):

\usemodule[bib]
\setupbibtex[database=my-biblio,sort=author]
\def\bracketed#1{\hbox to 20pt{\hfill [{#1}]}}
\setuppublications[
   sorttype=bib,
   numbering=yes,
   numbercommand=\bracketed
]
\unprotect\def\UCauthor#1#2#3#4#5%
{\bf\bibdoif{#2}{#2\bibalternative\c!vonsep}%
   #3\bibalternative\c!surnamesep
\bibdoif{#5}{#5\bibalternative\c!juniorsep}%
\bibdoif{#4}{#4\unskip}}
\protect
\setuppublicationlist[
   artauthor=\UCauthor,
   editor=\UCauthor,
   author=\UCauthor,
   namesep={, },
   lastnamesep={, },
   finalnamesep={, }
]

A last, less important, question: the Wiki suggests to 
\usemodule[bibltx]. If I do so, I get the warning “module bibltx not 
found”. It seems that omitting that module has no consequences. Is it 
needed at all? If so, for what?

Nicola

___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Henning Hraban Ramm wrote:


Am 2010-12-13 um 15:21 schrieb Verhaag, G.C.H.M.:

I use the latest ConTeXt MkIV version on a Linux (kernel 2.4) based  
PC; so I use LuaTeX!



Good, that's most easy for fonts.

I understand that I don't need to use texfont when using ttf-fonts,  
with this version of ConTeXt.



Right.


But still need to write the proper typescripts, right?



Not if you use the simplefonts module (except you have a unregular  
font family) or someone else already wrote them ;-)



Does the same apply to opentype fonts?




Yes.


Greetlings from Lake Constance!
Hraban



Hi,

Thanks for the tips! But now a real example. I've downloaded a font file 
called:


PlymouthRock 'SnowDusted'.ttf,

(Just a nice font to write Christmas cards; view it with Konqueror!)

and put it into texmf-fonts/tex/truetype/plymouthrock/snowdusted directory.

But what to do next is unclear to me!

Frankly speaking, fonts are a very delicate and tricky aspect of TeX, 
which I've never understood, despite all the available documentation, sorry!


Regards,
Gerard Verhaag
___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Wolfgang Schuster

Am 14.12.2010 um 11:15 schrieb Verhaag, G.C.H.M.:

 Thanks for the tips! But now a real example. I've downloaded a font file 
 called:
 
 PlymouthRock 'SnowDusted'.ttf,
 
 (Just a nice font to write Christmas cards; view it with Konqueror!)
 
 and put it into texmf-fonts/tex/truetype/plymouthrock/snowdusted directory.

Wrong directory, you need

   texmf-fonts/fonts/data

subdirectories below data are optional.

After that run „context --generate“ to inform context about the new file,
after that you can use it in your document with

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

To use the font for the whole document you can try:

\usemodule[simplefonts]
\setmainfont[SnowDusted]
\starttext
SnowDusted
\stoptext

Regards,
Wolfgang


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

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


Re: [NTG-context] issue with \usesymbols[mvs]

2010-12-14 Thread views63
Thank you, I see.

2010/12/14 Hans Hagen pra...@wxs.nl:
 On 14-12-2010 7:03, views63 wrote:

 define fonts  forced type ttf of marvosym not found
 define fonts  font with name marvosym is not found
 define fonts  unknown font marvosym, loading aborted
 define fonts  unable to define marvosym.ttf as \**currentsymbolfont**
 backends  using xmp file
 '/opt/context/tex/texmf-context/tex/context/base

 mkiv assumes marvosym.ttf to be present

 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] writebetweenlist regression (mkiv)

2010-12-14 Thread Steffen Wolfrum

Am 14.12.2010 um 10:26 schrieb Marco Pessotto:

 Hans Hagen pra...@wxs.nl writes:
 
 On 13-12-2010 11:20, Steffen Wolfrum wrote:
 
 Am 08.11.2010 um 23:03 schrieb Marco:
 
 
 Hello there.
 
 Currently \writebetweenlist doesn't work as advised. It inserts the
 argument before the last entry of the list. The minimal example is
 provided by the reference itself.
 
 http://wiki.contextgarden.net/Reference/en/writebetweenlist
 
 The rule is correctly inserted at http://live.contextgarden.net/ and in
 the ConTeXt shipped with TeXlive 2010 (2010.05.24), but not with the
 current beta and the 2010.07.30 version. mkii works fine.
 
 It prints
 
 --rule--
 List entry A
 List entry B
 
 Unfortunately, I can confirm this with current version:
 
 ver: 2010.12.12 17:06 MKIV
 
 Help please!
 
 There is a good reason for this. Inbetween has multiple usage and
 these are conflicting:
 
 - in order to get the right page info associated it needs to be
 anchored in the text stream
 - in that case a node can interfere with spacing and can come unexpected
 - sometimes direct flushing is needed, sometimes delayed
 
 btw, all these issues have been observed by users every now and then
 
 Now, if unexpected interference is the hardest to track down,
 inbetween is an immediate action. In principle one can influence that
 but it's not that intuitive. So, I've now added an option to (1) the
 flushers and (2) the list placers.
 
 The following example shows this:
 
 \definelist[testlist][criterium=all]
 
 \starttext
 
Regular list entries are bound to a specific location in order to
get the right pagenumber etc.\ associated. When pushing something
inbetween (in mkiv) it ends up directtly in the list. This is the
default because otherwise users will wonder why spacing might get
messed up (due to an unseen but present node). It is possible to
force a location by explicitly setting \type {location} to \type
{here}.
 
Another way to force a certain order is to set the \type {order}
variable when placing a list. The \type {command} option only
pushes commands into the right order, and \type {all} orders all
entries (which might be too much). In this case no specific
location is needed with the inbetween method. Maybe additional
mechanisms show up some day.
 
\subject{normal}  \placelist[testlist]
\subject{command} \placelist[testlist][order=command]
\subject{all} \placelist[testlist][order=all]
 
\page \input tufte
 
\writetolist [testlist]   {1} {One}
\writebetweenlist[testlist] {\blackrule[color=red,width=\hsize]}
 
 \writebetweenlist[testlist][location=here]{\blackrule[color=blue,width=\hsize]}
\writetolist [testlist]   {2} {Second}
\writetolist [testlist][location=none]{W} {Whatever}
\writebetweenlist[testlist] {\blackrule[color=green,width=\hsize]}
 
 \stoptext
 
 I admit that it's not an easy mechanism but any default would at some
 point trigger complaints. So it probably needs to be wikified.
 
 Hans
 
 
 Thanks for this. It's been wikified in the reference wiki:
 http://wiki.contextgarden.net/Reference/en/writebetweenlist



Thank you Hans for that extension
and thank you Marco for prompt wikifying!

Steffen

___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Wolfgang Schuster wrote:


Am 14.12.2010 um 11:15 schrieb Verhaag, G.C.H.M.:

 


Thanks for the tips! But now a real example. I've downloaded a font file called:

PlymouthRock 'SnowDusted'.ttf,

(Just a nice font to write Christmas cards; view it with Konqueror!)

and put it into texmf-fonts/tex/truetype/plymouthrock/snowdusted directory.
   



Wrong directory, you need

  texmf-fonts/fonts/data

subdirectories below data are optional.

After that run „context --generate“ to inform context about the new file,
after that you can use it in your document with

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

To use the font for the whole document you can try:

\usemodule[simplefonts]
\setmainfont[SnowDusted]
\starttext
SnowDusted
\stoptext

Regards,
Wolfgang


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

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

 


Hi,

I've put the ttf-file into the texmf-fonts/fonts/data directory, without 
the subdirectories, right?


After that I ran: context --generate.

Wolfgang, the file parameter of the definefont command is unclear to me, 
can you explain that to me?


Can I check for the new font with for example the mtxrun command?

Example is not yet working with the new font, sorry!

Regards,
Gerard
___
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 upper part

2010-12-14 Thread luigi scarso
In mkii can I define a section before \part, ie something like
\definesection[section-0]
\definehead[book][section=section-0]

(part is
\definehead[part][section=section-1]
)
?TIA

-- 
luigi
___
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 upper part

2010-12-14 Thread Aditya Mahajan

On Tue, 14 Dec 2010, luigi scarso wrote:


In mkii can I define a section before \part, ie something like
\definesection[section-0]
\definehead[book][section=section-0]

(part is
\definehead[part][section=section-1]
)
?TIA


Half in jest, half serious:

\definehead[book][section=section-1]
\definehead[part][section=section-2]
\definehead[chapter][section=section-3]

and so on :)

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] Section upper part

2010-12-14 Thread luigi scarso
On Tue, Dec 14, 2010 at 12:09 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Tue, 14 Dec 2010, luigi scarso wrote:

 In mkii can I define a section before \part, ie something like
 \definesection[section-0]
 \definehead[book][section=section-0]

 (part is
 \definehead[part][section=section-1]
 )
 ?TIA

 Half in jest, half serious:

 \definehead[book][section=section-1]
 \definehead[part][section=section-2]
 \definehead[chapter][section=section-3]
 
 and so on :)
yes, but the default setup for part is not like the chapter's one.
My question is: can I go under part ?

-- 
luigi
___
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] Horizontal space in math subscript generated by Lua

2010-12-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I encountered a strange effect. Let's have a code that generates the same math, 
firstly by Ctx and secondly by Lua:

---
\starttext
  \startformula
M_{t,WnT} = 1000
  \stopformula

  \startluacode
context.startformula()
  context(M_{t,WnT} = 1000)
context.stopformula()
  \stopluacode
\stoptext
---

You can see the result - the space between W and n in lower index is smaller when 
generated (natively) by Ctx than that in math generated by Lua. (The latter case may affect a bit 
disturbingly to the reader.)

It seems also that space between (subscript) T and = varies.

So why these differences? How to avoid the extra-space when Lua generates math 
subscript?

Best regards,

Lukas


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

Tel: +420 244 062 238
Fax: +420 244 461 038attachment: t-MaSubs.gif

t-MaSubs.mkiv
Description: Binary data


t-MaSubs.pdf
Description: Adobe PDF document
___
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] latest beta

2010-12-14 Thread Alan BRASLAU
On Thursday 09 December 2010 16:47:03 Thomas Schmitz wrote:
 Hi Hans,
 
 the latest beta is looking for files
 
 ! I can't find file
 `/mnt/shared/context/tex/texmf-context/tex/context/base/symb-mis.tex'.
 
 and
 
 ! I can't find file
 `/mnt/shared/context/tex/texmf-context/tex/context/base/symb-nav.tex'.
 
 only symb-mis.mki(i|v) and symb-nav.mki(i|v) are present.
 
 All best
 
 Thomas

Confirmed.

I also regularly have problems loading mkfiles upon update of the minimals; the 
algorithm looking for them is not robust.

Alan
___
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] beta

2010-12-14 Thread Alan BRASLAU
backgroundscreen is broken. minimal example:

\starttext
\setupbackgrounds [page] [background=screen,backgroundscreen=.65]
Some text.
\stoptext





! LuaTeX error main ctx instance:1: unexpected symbol near ')'.
\dosetrastercolor ..._raster_,\@@rastervalue ))}
  
\BeforeGroup ...medparameter \c!backgroundscreen }
  \bgroup \aftergroup 
\After...
argument ...amedparameter \c!backgroundscreen ]{
  \dofilledbox }
\secondoftwoarguments #1#2-#2
  
\dodobackgroundbox ...urrentbackground \endcsname 
  }}}\wd \extraframebox 
\zer...
\dododobackgroundbox ... \else \dodobackgroundbox 
  \expandafter 
\dododobackgr...
...
l.6 \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] Section upper part

2010-12-14 Thread Wolfgang Schuster

Am 14.12.2010 um 12:15 schrieb luigi scarso:

 My question is: can I go under part ?

Sectionblocks!

Wolfgang

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

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


Re: [NTG-context] Minimal ConTeXt and texfont!

2010-12-14 Thread Mojca Miklavec
On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:

 Hi,

 I've put the ttf-file into the texmf-fonts/fonts/data directory, without the
 subdirectories, right?

You either have to put the font into
texmf-fonts/fonts/truetype/anywhere
or
texmf-fonts/fonts/data/anywhere

(You can use texmf-fonts, texmf-local, I think that also ~/texmf would work.)

The first folder fonts/truetype is appropriate for TrueType fonts only
and is a more general location inside TDS (valid for other
distributions as well). Any font-related file may go to fonts/data.

You forgot the fonts subfolder in your earlier message.

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] Minimal ConTeXt and texfont!

2010-12-14 Thread Marco Pessotto
Mojca Miklavec mojca.miklavec.li...@gmail.com writes:

 On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:

 Hi,

 I've put the ttf-file into the texmf-fonts/fonts/data directory, without the
 subdirectories, right?

 You either have to put the font into
 texmf-fonts/fonts/truetype/anywhere
 or
 texmf-fonts/fonts/data/anywhere

 (You can use texmf-fonts, texmf-local, I think that also ~/texmf would work.)

 The first folder fonts/truetype is appropriate for TrueType fonts only
 and is a more general location inside TDS (valid for other
 distributions as well). Any font-related file may go to fonts/data.

 You forgot the fonts subfolder in your earlier message.

 Mojca
 

Try this sequece:

copy the .ttf in contextroot/tex/texmf-fonts/fonts/truetype/anywhere

mktexlsr

mtxrun --script fonts --reload

context --generate

and finally check with

mtxrun --script font --list if it appears in the list

In my experience (i.e., if i recall correctly) mktexlsr is needed even
if you use only mkiv.

Bests

-- 
Marco

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

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


Re: [NTG-context] Minimal ConTeXt and texfont!

2010-12-14 Thread Marco Pessotto
Marco Pessotto melmo...@gmail.com writes:

 Mojca Miklavec mojca.miklavec.li...@gmail.com writes:

 On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:

 Hi,

 I've put the ttf-file into the texmf-fonts/fonts/data directory, without the
 subdirectories, right?

 You either have to put the font into
 texmf-fonts/fonts/truetype/anywhere
 or
 texmf-fonts/fonts/data/anywhere

 (You can use texmf-fonts, texmf-local, I think that also ~/texmf would work.)

 The first folder fonts/truetype is appropriate for TrueType fonts only
 and is a more general location inside TDS (valid for other
 distributions as well). Any font-related file may go to fonts/data.

 You forgot the fonts subfolder in your earlier message.

 Mojca
 

 Try this sequece:

 copy the .ttf in contextroot/tex/texmf-fonts/fonts/truetype/anywhere

Sorry, I meant contextroot/tex/texmf-local/fonts/truetype/anywhere


 mktexlsr

 mtxrun --script fonts --reload

 context --generate

 and finally check with

 mtxrun --script font --list if it appears in the list

 In my experience (i.e., if i recall correctly) mktexlsr is needed even
 if you use only mkiv.

 Bests

-- 
Marco

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

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


Re: [NTG-context] beta

2010-12-14 Thread Hans Hagen

On 14-12-2010 12:37, Alan BRASLAU wrote:

backgroundscreen is broken. minimal example:

\starttext
\setupbackgrounds [page] [background=screen,backgroundscreen=.65]
Some text.
\stoptext





! LuaTeX errormain ctx instance:1: unexpected symbol near ')'.
\dosetrastercolor ..._raster_,\@@rastervalue ))}


one ) too many

(i'm moving some functions to the command namespace and it crept in)

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

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


Re: [NTG-context] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Marco Pessotto wrote:


Mojca Miklavec mojca.miklavec.li...@gmail.com writes:

 


On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:
   


Hi,

I've put the ttf-file into the texmf-fonts/fonts/data directory, without the
subdirectories, right?
 


You either have to put the font into
   texmf-fonts/fonts/truetype/anywhere
or
   texmf-fonts/fonts/data/anywhere

(You can use texmf-fonts, texmf-local, I think that also ~/texmf would work.)

The first folder fonts/truetype is appropriate for TrueType fonts only
and is a more general location inside TDS (valid for other
distributions as well). Any font-related file may go to fonts/data.

You forgot the fonts subfolder in your earlier message.

Mojca

   



Try this sequece:

copy the .ttf in contextroot/tex/texmf-fonts/fonts/truetype/anywhere

mktexlsr

mtxrun --script fonts --reload

context --generate

and finally check with

mtxrun --script font --list if it appears in the list

In my experience (i.e., if i recall correctly) mktexlsr is needed even
if you use only mkiv.

Bests

 


Hi,

Well I've put my ttf into:  texmf-fonts/fonts/data, and entered the 
following sequence of commands:


mktexlsr

mtxrun --scripts fonts --reload

context --generate

Then I checked using the following command:

mtxrun --script fonts --list --all --pattern=*snow*

which yielded the following output:

plymouthrocksnowdusted plymouthrocksnowdusted   
PlymouthSnowDusted.ttf
plymouthrocksnowdustednormal   plymouthrocksnowdusted   
PlymouthSnowDusted.ttf


So this seams to be okay!

Next I used the proposed context file:

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

This however gives the following output (only part of it!):
...
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test at line 2
define fonts font with name snowdusted is not found
define fonts unknown font snowdusted, loading aborted
define fonts unable to define snowdusted as \**snowdust**
pagesflushing realpage 1, userpage 1, subpage 1
systems : end file test at line 4
system  : cont-err loaded
...

What does the file-parameter do? I'm somehow lost now, sorry!

Regards,
Gerard

--
Afz.: Geert C.H.M. Verhaag
 St. Jorisstraat 29
 5954 AN Beesel
 NETHERLANDS

 Tel.: +31-(0)774742493, E-mail: verhaagg...@ziggo.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] how to insert a imagefile like a letter?

2010-12-14 Thread Jonas Stein
 bell.pdf provides a small bell in black and white as 
 vectordrawing
 i'd like to get that bell in height of the current letter f
 on the position where i type \bell
 
 my first test with
 \externalfigure[bell][width=1em]
 creates a bell with lentgh of 1em... but
 
 How can i get a small bell? 

 \definefiguresymbol[bell][bell]

 \starttext
 … \symbol{bell} …
 \stoptext

that works fine. Thank you.

the bell has the size of a small 'n' how can i scale it to the
size of an 'f'?

\definefiguresymbol[bell][bell] 
\define[]\bell{\symbol{bell}}
 \starttext
 … \bell …
 \stoptext

fails. Why?

-- 
Jonas Stein n...@jonasstein.de

___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Marco Pessotto
Verhaag, G.C.H.M. verhaagg...@ziggo.nl writes:

 Well I've put my ttf into:  texmf-fonts/fonts/data, and entered the
 following sequence of commands:

 mktexlsr

 mtxrun --scripts fonts --reload

 context --generate

 Then I checked using the following command:

 mtxrun --script fonts --list --all --pattern=*snow*

 which yielded the following output:

 plymouthrocksnowdusted plymouthrocksnowdusted
 PlymouthSnowDusted.ttf
 plymouthrocksnowdustednormal   plymouthrocksnowdusted
 PlymouthSnowDusted.ttf

 So this seams to be okay!

 Next I used the proposed context file:

 \definefont[snowdust][file:snowdusted*default]
 \starttext
 \snowdust SnowDusted
 \stoptext

try instead 
\usemodule[simplefonts] % load the module
\setmainfont[PlymouthRock 'SnowDusted']

I don't know if the '' in the family name will break the module.
I downloaded the file and checked with otfinfo -a file.ttf to get the
family name. You should do the same.

http://wiki.contextgarden.net/Fonts_in_LuaTeX#With_the__simplefonts_module

-- 
Marco

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

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


Re: [NTG-context] Minimal ConTeXt and texfont!

2010-12-14 Thread Taco Hoekwater

On 12/14/2010 02:06 PM, Verhaag, G.C.H.M. wrote:

Marco Pessotto wrote:


Mojca Miklavec mojca.miklavec.li...@gmail.com writes:




On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:


Hi,

I've put the ttf-file into the texmf-fonts/fonts/data directory,
without the
subdirectories, right?


You either have to put the font into
texmf-fonts/fonts/truetype/anywhere
or
texmf-fonts/fonts/data/anywhere

(You can use texmf-fonts, texmf-local, I think that also ~/texmf
would work.)

The first folder fonts/truetype is appropriate for TrueType fonts only
and is a more general location inside TDS (valid for other
distributions as well). Any font-related file may go to fonts/data.

You forgot the fonts subfolder in your earlier message.

Mojca




Try this sequece:

copy the .ttf in contextroot/tex/texmf-fonts/fonts/truetype/anywhere

mktexlsr

mtxrun --script fonts --reload

context --generate

and finally check with

mtxrun --script font --list if it appears in the list

In my experience (i.e., if i recall correctly) mktexlsr is needed even
if you use only mkiv.

Bests




Hi,

Well I've put my ttf into: texmf-fonts/fonts/data, and entered the
following sequence of commands:

mktexlsr

mtxrun --scripts fonts --reload

context --generate

Then I checked using the following command:

mtxrun --script fonts --list --all --pattern=*snow*

which yielded the following output:

plymouthrocksnowdusted plymouthrocksnowdusted PlymouthSnowDusted.ttf
plymouthrocksnowdustednormal plymouthrocksnowdusted PlymouthSnowDusted.ttf

So this seams to be okay!

Next I used the proposed context file:

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

This however gives the following output (only part of it!):
...
bodyfont : 12pt rm is loaded
language : language en is active
systems : begin file test at line 2
define fonts  font with name snowdusted is not found
define fonts  unknown font snowdusted, loading aborted
define fonts  unable to define snowdusted as \**snowdust**
pages  flushing realpage 1, userpage 1, subpage 1
systems : end file test at line 4
system : cont-err loaded
...

What does the file-parameter do? I'm somehow lost now, sorry!


The file: tries to find a font by file name. In your case,
it fails because the font is not called 'snowdusted.ttf',
it is 'plymouthsnowdusted.ttf' (the filename is lowercased
automatically). So,

  \definefont[snowdust][file:plymouthsnowdusted*default]

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


Re: [NTG-context] Minimal ConTeXt and texfont!

2010-12-14 Thread Florian Wobbe
On Dec 14, 2010, at 14:06 , Verhaag, G.C.H.M. wrote:

 mtxrun --script fonts --list --all --pattern=*snow*
 
 which yielded the following output:
 
 plymouthrocksnowdusted plymouthrocksnowdusted   PlymouthSnowDusted.ttf
 plymouthrocksnowdustednormal   plymouthrocksnowdusted   PlymouthSnowDusted.ttf
 
 So this seams to be okay!
 
 Next I used the proposed context file:
 
 \definefont[snowdust][file:snowdusted*default]

Hi, this should work:
\definefont[snowdust][name:plymouthrocksnowdusted]

Florian

 \starttext
 \snowdust SnowDusted
 \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] how to insert a imagefile like a letter?

2010-12-14 Thread Jaroslav Hajtmar

Hello Jonas,
I did not know about \definefiguresymbol - it's a great idea.
I would not tackled through framed. For example:

\def\bell{\framed[offset=none, frame=off, 
width=1em]{\externalfigure[bell.pdf][width=1em]}}

It does not solve your problem?

Jaroslav



Dne 14.12.2010 14:10, Jonas Stein napsal(a):

bell.pdf provides a small bell in black and white as
vectordrawing
i'd like to get that bell in height of the current letter f
on the position where i type \bell

my first test with
\externalfigure[bell][width=1em]
creates a bell with lentgh of 1em... but

How can i get a small bell?
   

\definefiguresymbol[bell][bell]

\starttext
… \symbol{bell} …
\stoptext
 

that works fine. Thank you.

the bell has the size of a small 'n' how can i scale it to the
size of an 'f'?

\definefiguresymbol[bell][bell]
\define[]\bell{\symbol{bell}}
  \starttext
  … \bell …
  \stoptext

fails. Why?

   


___
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] how to insert a imagefile like a letter?

2010-12-14 Thread Jaroslav Hajtmar

Hello Jonas,
here is dimensional correction according to the dimensions in the parameter:

\def\bell#1{\setbox0=\hbox{#1}\framed[offset=none, frame=off, 
width=\the\wd0, 
height=\the\ht0]{\externalfigure[bell.pdf][width=\the\wd0,height=\the\ht0]}}


Jaroslav



Dne 14.12.2010 14:10, Jonas Stein napsal(a):

bell.pdf provides a small bell in black and white as
vectordrawing
i'd like to get that bell in height of the current letter f
on the position where i type \bell

my first test with
\externalfigure[bell][width=1em]
creates a bell with lentgh of 1em... but

How can i get a small bell?
   

\definefiguresymbol[bell][bell]

\starttext
… \symbol{bell} …
\stoptext
 

that works fine. Thank you.

the bell has the size of a small 'n' how can i scale it to the
size of an 'f'?

\definefiguresymbol[bell][bell]
\define[]\bell{\symbol{bell}}
  \starttext
  … \bell …
  \stoptext

fails. Why?

   


___
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] How to avoid that \writetolist becomes a page-breaker

2010-12-14 Thread Marco Pessotto

Probably due to my abuse of \writetolist, I noticed that inserting
\writetolist right after \subject makes TeX to think that it can break
the page there without problems.

See the following minimal example:

%===cut here=

\definelist[myrandompart]

\starttext

\dorecurse{12}{
\input reich 
}
\subject{\bf Wrong!}
\writetolist[myrandompart]{It's a test}

\input knuth

\page

\dorecurse{12}{
\input reich 
}
\subject{\bf Correct!}
%\writetolist[myrandompart]{It's a test}

\input knuth

%===cut here=

I'm pretty sure the solution is out there.
Some hints would be very welcome.

Thanks in advance

-- 
Marco

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

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


[NTG-context] Marginal line numbers

2010-12-14 Thread Jon Crump
All,

Thanks to Thomas's help, I've been making my way up the learning curve.

My TEI xml has empty lb elements indicating lines in the original and
corresponding lb elements in the translation. I'd like to be able to
set these numbers in the margin so that readers may coordinate the
lineation. So far I have this:

\startxmlsetups xml:lb
\lineNumbers{\xmlatt{#1}{n}}
\xmlflush{#1}
\stopxmlsetups

\defineinmargin [lineNumbers] [outer] [normal]

which works, but I'd like to be able to set only every fifth or tenth
line number. Is there a way to perform some arithmetic on the value of
the n attribute and then execute \lineNumbers accordingly?

for example:

if n%5 == 0 then \lineNumbers else ignore lb

Thanks,
Jon
___
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] how to redefine section headers

2010-12-14 Thread Philipp A.
hi!

i want to achieve the effect i see when using the following code, only in a
semantically correct way (and without defining a \MyHeader macro like in
some examples)

\setuphead[section][numbercommand=\headtext{section}~]
\setupheadtext[de][section=Aufgabe]
\def\task{\section{}}

so if my document looks like

\starttext
\task
\task
\stoptext

this should render to:
Aufgabe 1 Aufgabe 2

(i hope the mailing list delivers html mail)

And maybe somebody knows a cool way to do this:

\starttext
\task
\task[Graphs]
\stoptext


Aufgabe 1 Aufgabe 2: Graphs

thank you!
___
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] how to insert a imagefile like a letter?

2010-12-14 Thread Wolfgang Schuster

Am 14.12.2010 um 14:10 schrieb Jonas Stein:

 bell.pdf provides a small bell in black and white as 
 vectordrawing
 i'd like to get that bell in height of the current letter f
 on the position where i type \bell
 
 my first test with
 \externalfigure[bell][width=1em]
 creates a bell with lentgh of 1em... but
 
 How can i get a small bell? 
 
 \definefiguresymbol[bell][bell]
 
 \starttext
 … \symbol{bell} …
 \stoptext
 
 that works fine. Thank you.
 
 the bell has the size of a small 'n' how can i scale it to the
 size of an 'f'?
 
 \definefiguresymbol[bell][bell] 

\definefiguresymbol[bell][bell][height=2ex]

 \define[]\bell{\symbol{bell}}

\define\bell{\externalfigure[bell][height=2ex]}

Why do you need a command, symbols are the perfect tool for this
and with a symbol you can even do this:

\startitemize[bell]
\item One
\item Two
\item Three
\stopitemize

Wolfgang

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

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


Re: [NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-14 Thread Marco Pessotto
Marco Pessotto melmo...@gmail.com writes:

 Probably due to my abuse of \writetolist, I noticed that inserting
 \writetolist right after \subject makes TeX to think that it can break
 the page there without problems.

 See the following minimal example:

 %===cut here=

 \definelist[myrandompart]

 \starttext

 \dorecurse{12}{
 \input reich 
 }
 \subject{\bf Wrong!}
 \writetolist[myrandompart]{It's a test}

 \input knuth

 \page

 \dorecurse{12}{
 \input reich 
 }
 \subject{\bf Correct!}
 %\writetolist[myrandompart]{It's a test}

 \input knuth

 %===cut here=

 I'm pretty sure the solution is out there.
 Some hints would be very welcome.

 Thanks in advance

To answer to my own question, it looks like that

\subject{\bf My title!}
\dontleavehmode
\writetolist[myrandompart]{}{It's a test}

works. The question if is this the right thing to do, still remains,
though

-- 
Marco

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

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


Re: [NTG-context] how to redefine section headers

2010-12-14 Thread Wolfgang Schuster

Am 14.12.2010 um 21:34 schrieb Philipp A.:

 hi!
 
 i want to achieve the effect i see when using the following code, only in a 
 semantically correct way (and without defining a \MyHeader macro like in some 
 examples)
 
 […]
 And maybe somebody knows a cool way to do this:
 
 \starttext
 \task
 \task[Graphs]
 \stoptext
 
 
 Aufgabe 1
 
 Aufgabe 2: Graphs
 

\setuplabeltext[de][aufgabe={Aufgabe ,}]

\define[1]\TaskCommand
  {\doifsomething{#1}{: #1}}

\definehead[thetask][section]

\setuphead
  [thetask]
  [style=sansbold,
   bodypartlabel=aufgabe,
   distance=0pt,
   deeptextcommand=\TaskCommand]

\definecomplexorsimpleempty\task

\def\complextask[#1]{\thetask{#1}}

\mainlanguage[de]

\starttext
\task
\task[Graphs]
\stoptext

Wolfgang

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

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


Re: [NTG-context] how to redefine section headers

2010-12-14 Thread Philipp A.
2010/12/14 Wolfgang Schuster schuster.wolfg...@googlemail.com

 \setuplabeltext[de][aufgabe={Aufgabe ,}]

 \define[1]\TaskCommand
   {\doifsomething{#1}{: #1}}

 \definehead[thetask][section]

 \setuphead
   [thetask]
   [style=sansbold,
bodypartlabel=aufgabe,
distance=0pt,
deeptextcommand=\TaskCommand]

 \definecomplexorsimpleempty\task

 \def\complextask[#1]{\thetask{#1}}

 \mainlanguage[de]


thank you very much!

this is now officially my favoutite mailing list!

best regards,
philipp
___
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
___