Re: [NTG-context] Page background image

2012-04-06 Thread Kip Warner
On Thu, 2012-04-05 at 04:41 +0200, Wolfgang Schuster wrote:
 \defineoverlay[backgroundfigure][\overlayfigure{mill}]
 
 \setupbackgrounds[page][background=backgroundfigure]
 
 \starttext
 \dorecurse{12}{\page[empty]}
 \stoptext
 
 Wolfgang

Thanks Wolfgang  Aditya. Both solutions are useful.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] line numbering with two columns

2012-04-06 Thread jmengel
hi, i was trying to get line numbers in two columns in mkiv to appear  
on the left side for both columns when i noticed this bug.


\setuplinenumbering[location=text]

\starttext

\startcolumns
\startlinenumbering
\input knuth
\stoplinenumbering
\stopcolumns

\stoptext

 - jeremy
___
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] Wiki: examples

2012-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suggestion:

As ConTeXt-generated examples (automatically generated by context ... 
/context) on wiki are often:

- too long and
- their font is often too big compared to the other font used on the wiki page.

(E.g. http://wiki.contextgarden.net/Command/definedescription.)

(WinXP, normally using Opera browser with its default font settings.)

Personally, when I want to show both ConTeXt source and result (preferred, as it's not 
necessary to create context-wiki source and context-valid source), I'm using 
the following setup:

\setuppapersize[A5] % To narrow the result
\setupbodyfont[8pt] % To make font size closer to that of wiki
\setuppagenumbering[location=] % Page numbers are unnecessary in most cases

(E.g. http://wiki.contextgarden.net/Command/defineenumeration.)

- What setups do YOU normally use?

- Do you think it would be useful to specify a recommendation for setup for 
context .../ examples?

- If so, where to place it? To 
http://wiki.contextgarden.net/How_to_edit_wiki_pages? Or elsewhere?

Your opinions are welcome.

Best regards,

Lukas


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

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

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

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


Re: [NTG-context] Wiki: examples

2012-04-06 Thread Taco Hoekwater

On 04/06/2012 09:56 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


\setuppapersize[A5] % To narrow the result
\setupbodyfont[8pt] % To make font size closer to that of wiki


I've added those two settings to the php image generation script.

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

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


[NTG-context] Nested itemize

2012-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there an option for \startitemize or \setupitemize or \setupitemgroup:


\startitemize
  \item A
\startitemize
  \item B
\stopitemize
\stopitemize


to get:

1. A
  1.1 B (= nested item has its parent numbers, too)

or rather

1. A
1.1 B (= nested item has its parent numbers, too; no indenting of nested items)

instead of

1. A
  1. B (= normal result)
?

Maybe a similar problem was discussed some days before but not exactly this 
case...

TIA.

Best regards,

Lukas


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

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

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

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


Re: [NTG-context] Nested itemize

2012-04-06 Thread Wolfgang Schuster

Am 06.04.2012 um 17:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 is there an option for \startitemize or \setupitemize or \setupitemgroup:
 
 
 \startitemize
  \item A
\startitemize
  \item B
\stopitemize
 \stopitemize
 
 
 to get:
 
 1. A
  1.1 B (= nested item has its parent numbers, too)
 
 or rather
 
 1. A
 1.1 B (= nested item has its parent numbers, too; no indenting of nested 
 items)
 
 instead of
 
 1. A
  1. B (= normal result)
 ?


The “repeat” is needed to show the number on the next level, the “intext” 
prevents the items from being indented.

\starttext

\startitemize[n,repeat,intext]
  \item A
  \startitemize[A,broad]
\item B
  \stopitemize
\stopitemize

\stoptext

BTW: A minimal example should contain \starttext/\stoptext and in your case 
also the options for itemize.

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] issue with columns

2012-04-06 Thread Pablo Rodríguez
Hi there,

I'm experiencing a weird result when typesetting columns:

\starttext
The first line not using columns.
\startcolumns[n=2]
\input knuth
\column
\input tufte
\stopcolumns
The second line not using columns.
\startcolumns
\input linden
\column
\input ward
\stopcolumns
\stoptext

I don't know why ward isn't typeset on the first page?

What am I doing wrong here?

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] compilation broken in latest beta

2012-04-06 Thread Pablo Rodríguez
Hi there,

after upgrading today to latest beta, some of my documents don't compile.

I'm afraid I cannot provide a minimal sample. Here is the error log:

source /opt/ctxbeta/tex/setuptex  context --purgeall prueba.tex (in
directory: /home/ousia)
mtx-context | run 1: luatex
--fmt=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
--lua=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
--backend=pdf ./prueba.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
 \write18 enabled.
(prueba.tex
ConTeXt  ver: 2012.04.02 22:23 MKIV  fmt: 2012.4.6  int: english/english
system   cont-new.mkiv loaded
(/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   prueba.top loaded
(prueba.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'simplefonts'
(../../opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+
/opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/ctxbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsbodyfont 10.5pt is defined (can better be done global)
fontsbodyfont 12.6pt is defined (can better be done global)
fontsbodyfont 8.4pt is defined (can better be done global)
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
system   command \url is already defined
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Enclosed Cyrillic Letters-1
backend  xmp  using file
'/opt/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
pagesflushing realpage 2, userpage 1
structures   begin of sectionblock frontpart
structuresectioning  title @ level 2 : 0.0 - \headtext {content}
! Undefined control sequence.
system   tex  error on line 11 in file prueba.tex: Undefined
control sequence ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16 \setupsectionblock[bodypart] [page=]
17 \setupsectionblock[backpart] [page=]
18 \setupsectionblock[appendix] [page=]
19 \setuphead[part][page=firstpagebreak]
20
\setuphead[chapter][style=\itc,align=center,after={\blank[3*line]},page=firstpagebreak]
21 \setuppagenumbering[alternative=doublesided,location={botton,middle}]
\12:77:abc ...trc_lists_get_reference_attribute
  \v!all
\strc_lists_get_des...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the
\t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname
  \dostoptagged
\listextrapa...
l.11 {}
\ctxcommand ...\directlua \zerocount {commands.#1}
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged
...
l.62
?
! Emergency stop.
system   tex  error on line 11 in file prueba.tex: Emergency
stop ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16 

[NTG-context] Sorting descriptions alphabetically

2012-04-06 Thread Malte Stien
Hi all,

I have a chapter with a bunch of definitions. I defined myself a description 
for that purpose, as in:

  \definedescription[definition][alternative=hanging, headstyle=bold, 
align=flushleft, style=normal, width=fit, margin=1cm]

My definitions obviously come out in the order I defined them in the .tex file. 
I was just wondering whether there is some clever way to have generated in 
alphabetic order. I could obviously sort them myself in the .tex file, but if 
there was some way ConTeXt could handle that, that would be very convenient 
given the number I am dealing with.

Thank you,
Malte.

___
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] compilation broken in latest beta

2012-04-06 Thread John Devereux
Pablo Rodríguez oi...@web.de writes:

 Hi there,

 after upgrading today to latest beta, some of my documents don't compile.

 I'm afraid I cannot provide a minimal sample. Here is the error log:


[...]

Here is a minimal sample:

 \starttext
 \completecontent
 \section{One}
 some text
 \stoptext

 \setupinterlinespace[line=3.15ex] compiles fine in other documents. What
 am I missing here?

 Thanks for your help,

Hi Pablo,

I think this may be the same as my table of contents bug I have asked
about a couple of days ago.

There has been a strange (for this list) silence about it.

I want my money back!

-- 

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

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

Re: [NTG-context] Sorting descriptions alphabetically

2012-04-06 Thread Wolfgang Schuster

Am 06.04.2012 um 19:42 schrieb Malte Stien:

 Hi all,
 
 I have a chapter with a bunch of definitions. I defined myself a description 
 for that purpose, as in:
 
  \definedescription[definition][alternative=hanging, headstyle=bold, 
 align=flushleft, style=normal, width=fit, margin=1cm]
 
 My definitions obviously come out in the order I defined them in the .tex 
 file. I was just wondering whether there is some clever way to have generated 
 in alphabetic order. I could obviously sort them myself in the .tex file, but 
 if there was some way ConTeXt could handle that, that would be very 
 convenient given the number I am dealing with.

Cou can use ConTeXt’s sorting mechanism but you have to be careful about the 
content of your descriptions.

\usemodule[annotation]

\define[2]\DefintionCommand
  {\begingroup \simplifycommands \let\par\space
   \xdef\DefinitionContent{\placeannotationcontent}%
   \endgroup
   
\expanded{\definitions[\DefinitionContent]{\startdefinitiondescription[title={\placeannotationtitle}]\placeannotationcontent\stopdefinitiondescription}}}

\defineannotation[definition][alternative=command,command=\DefintionCommand]

\definesorting[definitions]
\definedescription[definitiondescription][alternative=hanging,headstyle=bold,align=flushleft,style=normal,width=fit,margin=1cm]


\starttext \showframe

\startdefinition[title=Ward]
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old|-|age patient who smokes many packs
of cigarettes per day |=| and we humans are the cigarettes.
\stopdefinition

\startdefinition[title=Knuth]
Thus, I came to the conclusion that the designer of a new
system must not only be the implementer and first
large||scale user; the designer should also write the first
user manual.

The separation of any of these four components would have
hurt \TeX\ significantly. If I had not participated fully in
all these activities, literally hundreds of improvements
would never have been made, because I would never have
thought of them or perceived why they were important.

But a system cannot be successful if it is too strongly
influenced by a single person. Once the initial design is
complete and fairly robust, the real test begins as people
with many different viewpoints undertake their own
experiments.
\stopdefinition

\startdefinition[title=Zapf]
Coming back to the use of typefaces in electronic
publishing: many of the new typographers receive their
knowledge and information about the rules of typography
from books, from computer magazines or the instruction
manuals which they get with the purchase of a PC or
software. There is not so much basic instruction, as of
now, as there was in the old days, showing the differences
between good and bad typographic design. Many people are
just fascinated by their PC's tricks, and think that a
widely||praised program, called up on the screen, will make
everything automatic from now on.
\stopdefinition

\placelistofsorts[definitions][criterium=all]

\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] compilation broken in latest beta

2012-04-06 Thread Hans Hagen

On 6-4-2012 20:36, John Devereux wrote:


There has been a strange (for this list) silence about it.


I'll look into it (side effect of patch for Steffen, who else).


I want my money back!


You can contact Mojca for sending a donation for the context user group ...

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] lucida ot

2012-04-06 Thread Mari Voipio
Hello!

On Fri, Mar 16, 2012 at 22:50, Hans Hagen pra...@wxs.nl wrote:
 It's now possible to order the new lucida open type (+math) fonts.

If I ask nicely, could somebody who understands these things update
the following wiki page accordingly?

http://wiki.contextgarden.net/Lucida


(I think my problem is that I can't figure out how to update the
TeXShop combo on my Mac. But it is also possible I'm being a clueless
idiot, so I'd really appreciate some extra hints.)


Giving up for tonight,

Mari
___
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] compilation broken in latest beta

2012-04-06 Thread Hans Hagen

On 6-4-2012 22:04, Hans Hagen wrote:

On 6-4-2012 20:36, John Devereux wrote:


There has been a strange (for this list) silence about it.


I'll look into it (side effect of patch for Steffen, who else).


I made a fix but it needs testing .. this fix can possibly break some 
cross referencing (not permanent, just oversights). A new beta has been 
uploaded but if one depends on cross referencing one might skip this beta.


The problem is that we need to store what page a reference is on and 
that involves (at least currently) injecting a node. However, that needs 
to be done in such a way that it does not interfere. But, because more 
properties are involved, there is a decoupling between setting those and 
injecting this node.


Wolfgang: this relates to Steffens list issue. We now store the latelua 
in \b_strc_destination_nodes and flush that later using
\strc_references_flush_destination_nodes. There were several places 
where that flush now had to be added. Maybe some more is needed. (When I 
arrive at cleaning up referencing I'll make better variants.)


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] Money back (to the community) (was: compilation broken in latest beta)

2012-04-06 Thread Mojca Miklavec
On Fri, Apr 6, 2012 at 22:04, Hans Hagen wrote:
 On 6-4-2012 20:36, John Devereux wrote:

 I want my money back!

 You can contact Mojca for sending a donation for the context user group ...

Sure.

http://group.contextgarden.net

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] lucida ot

2012-04-06 Thread Hans Hagen

On 6-4-2012 23:15, Mari Voipio wrote:

Hello!

On Fri, Mar 16, 2012 at 22:50, Hans Hagenpra...@wxs.nl  wrote:

It's now possible to order the new lucida open type (+math) fonts.


If I ask nicely, could somebody who understands these things update
the following wiki page accordingly?

http://wiki.contextgarden.net/Lucida


(I think my problem is that I can't figure out how to update the
TeXShop combo on my Mac. But it is also possible I'm being a clueless
idiot, so I'd really appreciate some extra hints.)


Just copy the *.otf files to for instance a directory

  yourtexroot/tex/texmf-fonts/fonts/opentype/data/lucidaot

and then run

  mtxrun --generate

after that

  \setupbodyfont[lucidaot]

should work.

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
___