Re: [NTG-context] [bibliography] publications layout

2011-05-24 Thread Thomas A. Schmitz


On May 24, 2011, at 11:05 AM, Pontus Lurcock wrote:

? I'm using ams there and realized that the title tag of @book is  
not
treated that way (so with @book there are caps inside the title  
without

extra {} in the bib-file).


This is the case for most bibliography styles: journal articles only
get capitals for the first letter, proper nouns, chemical symbols,  
etc.;

Book Titles get Capital Letters for Most Words.


This is controlled by the bst style you use. If you look into the  
directory


$CONTEXT/tex/texmf-context/bibtex/bst/context/

you'll find a number of them. They contain



FUNCTION {do.t.out}
{ duplicate$ empty$
{ pop$ pop$ write$}
{ { swap$ t change.case$ * } * * write$ pop$ newline$ }
  if$
}

this is the function that changes uppercase to lowercase (I have no  
idea why this was ever considered a good thing, but scientists, as  
opposed to scholars in the humanities, can be very strange people).  
Further on, you'll find that this function is used in e.g.



FUNCTION {format.arttitle}
{  \arttitle title do.t.out }


if you change this to


FUNCTION {format.arttitle}
{  \arttitle title do.out }

the case will not be changed. And: this is something I found out by  
sheer bloody-mindedness, I don't have the faintest idea about bst- 
syntax, and from what I hear, most people think it's a bloody mess. So  
use at your own risk...


HTH

Thomas
___
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] bug in luatex on osx-ppc

2011-05-24 Thread Otared Kavian
Hi Thomas,

Some time ago I had an analogous problem related to a new version of LuaTeX (on 
Mac OS X 10.6.7, Intel processor). I can't say anything about the error message 
you get, but what I did was the following:
--- I erased the content of texmf cache, that is in my case
/context-minimal/tex/texmf-cache/luatex-cache
--- and I ran again first-setup.sh
after that everything was working fine.

Best regards: OK

On 24 mai 2011, at 11:26, Thomas A. Schmitz wrote:

 Hi all,
 
 after updating the minimals to the latest beta on osx-ppc, I can't compile 
 any document, I always get this error:
 
 context test
 
 mtx-context | run 1: luatex 
 --fmt=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
  
 --lua=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
  --backend=pdf ./test
 This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
 \write18 enabled.
 Could not undump 51859 1-byte item(s): fd:4: unexpected end of file.
 
 mtx-context | fatal error: return code: 1%
 
 This happens both with the binary in the minimals (0.70.1) and when I compile 
 the latest trunk (0.71.0), so I'm a bit lost here - it looks like a problem 
 in the executables, right?
 
 All best
 
 Thomas
 ___
 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] bug in luatex on osx-ppc

2011-05-24 Thread Thomas A. Schmitz


On May 24, 2011, at 12:01 PM, Otared Kavian wrote:


Hi Thomas,

Some time ago I had an analogous problem related to a new version of  
LuaTeX (on Mac OS X 10.6.7, Intel processor). I can't say anything  
about the error message you get, but what I did was the following:

--- I erased the content of texmf cache, that is in my case
/context-minimal/tex/texmf-cache/luatex-cache
--- and I ran again first-setup.sh
after that everything was working fine.

Best regards: OK


Hi Otared,

thanks, but I've done this already a couple of time; I think  the  
problem is somewhat deeper.


Thomas
___
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] bug in luatex on osx-ppc

2011-05-24 Thread Taco Hoekwater




Op 24 mei 2011 om 11:26 heeft Thomas A. Schmitz thomas.schm...@uni-bonn.de 
het volgende geschreven:

 Hi all,
 
 after updating the minimals to the latest beta on osx-ppc, I can't compile 
 any document, I always get this error:
 
 context test
 
 mtx-context | run 1: luatex 
 --fmt=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
  
 --lua=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
  --backend=pdf ./test
 This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
 \write18 enabled.
 Could not undump 51859 1-byte item(s): fd:4: unexpected end of file.
 
 mtx-context | fatal error: return code: 1%
 
 This happens both with the binary in the minimals (0.70.1) and when I compile 
 the latest trunk (0.71.0), so I'm a bit lost here - it looks like a problem 
 in the executables, right?
 
Yes, I believe so as well. Do you have any idea when the trouble started?
As I do not have a ppc machine, it will be a nightmare to find the problem 
unless you have a clear idea when it started (ideally a revision number, even).

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] math: too big space between function and argument

2011-05-24 Thread Paul Menzel
Dear ConTeXt folks,


to markup the probability measure and the parenthesis around the
argument, I defined the following command.

\define[1]\P{{\mathbf P}\left( #1 \right)}

Unfortunately the space between the P and the left ( is a little big in
my opinion. Is that correct or should/can I fix that somehow?


Thanks,

Paul


mathbold.pdf
Description: Adobe PDF document
\define[1]\P{{\mathbf P}\left( #1 \right)}
\starttext
The following equation contains probabilities.

\placeformula
\startformula
\P{A ∪ B} = \P{A} + \P{B} - \P{A ∩ B}
\stopformula
\stoptext


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] math: using bold charaters for number sets

2011-05-24 Thread Paul Menzel
Dear ConTeXt folks,


according to [1] the number sets were originally set using bold
characters and only on the blackboard the double strokes were used.

ConTeXt defines for example `\naturalnumbers` or `\reals` [2] which are
set using double strokes.

How can I redefine those to be just bold?


Thanks,

Paul


PS: Does somebody actually use these commands (`\naturalnumbers`, …`) or
do you define for example `\N`?


[1] http://projekte.dante.de/DanteFAQ/MathematischerFormelsatz#22
[2] http://wiki.contextgarden.net/Blackboard_bold


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
___

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:

 Hi,
 
 Is there a simple way to obtain the following result in the table of content :
 
 Contents
 CHAPTER 1
 Title of chapter2
 1.1Title of section2
 
 (the chapter title underneath its number and left aligned, just like 
 everything else)
 
 The following code used to do the job with MkII but it doesn't anymore with 
 MkIV :
 
 \setuplabeltext[chapter=CHAPTER~]
 \setuplist[chapter][label=yes, style={\blank[0cm]}]
   
 \starttext
 
 \startfrontmatter
 \completecontent
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Title of chapter}
 \section{Title of section}
 \stopbodymatter
 
 \stoptext 
 
 Instead, I get something like this (I hope it turns out readable through the 
 email) :
 
 Contents
 CHAPTER 1
   Title of chapter2
 1.1Title of section2
 
 where the 2 lines of the chapter, together with their alignment with the 
 frame, get tossed to the right...

I do get with MkIV the first example like you expect but “style={\blank[0cm]}”
is the wrong way. Such a layout can be easily done with your own list-command
for chapter but the labeltext is tricky:

\setuplabeltext[chapter=CHAPTER~]

% \define[3]\ChapterList % no label!
%   {#1\crlf#2\wordright{#3}}

% \define[3]\ChapterList % fixed label, wrong for appendices!
%   {\labeltext{chapter}#1\crlf#2\wordright{#3}}

\define[3]\ChapterList
  {\currentlistsymbol\crlf#2\wordright{#3}}

\setuplist[chapter][label=yes,alternative=command,command=\ChapterList]

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Title of chapter}
\section{Title of section}
\stopbodymatter

\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] alternating items in an itemization

2011-05-24 Thread Wolfgang Schuster

Am 23.05.2011 um 22:08 schrieb Jesse Alama:

 I'd like to define an itemization that has two kinds of items, representing a 
 dialogue between two people.  (One could imagine extending this to more than 
 two.)  I'd like to have something like this:
 
 \startdialogue
 \john What did you have for breakfast?
 \mary I skipped breakfast today.
 \john Oh, why?
 \mary Because I wasn't hungry.  I was too distraught at what had happened the 
 previous night.
 \stopdialogue
 
 The \john and \mary parts would each be their own paragaphs.  The paragraphs 
 would be colored with different text backgrounds, and joined up with one 
 another  (that is, the blocks of text representing the paragraphs for the 
 different speakers would be adjacent to one another).


Solution 1:

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]
\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineenumeration
  [john]
  [text=John: ,
  width=3em,
 number=no,
   location=left,
 before={\starttextbackground[john-background]},
  after=\stoptextbackground]

\defineenumeration
  [mary][john]
  [  text=Mary: ,
   before={\starttextbackground[mary-background]},
after=\stoptextbackground]

\starttext

\john What did you have for breakfast?\par
\mary I skipped breakfast today.\par
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had happened 
the previous night.\stopmary

\stoptext

Solution 2:

\usemodule[annotation]

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]
\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineannotation
  [john]
  [   text=John,
 stopper=: ,
 inbetween=,
before={\starttextbackground[john-background]},
 after={\stoptextbackground},
   spacebefore=nowhite]

\defineannotation
  [mary][john]
  [  text=Mary,
   before={\starttextbackground[mary-background]},
after={\stoptextbackground}]

\starttext

\john{What did you have for breakfast?}
\mary{I skipped breakfast today.}
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had happened 
the previous night.\stopmary

\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] Aligning numbers in the footnote block

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 09:24 schrieb Oliver Buerschaper:

 Dear all,
 
 is there a way to align the numbers in the footnote block (flush) right as is 
 done without the key location=left in the following? I don't want the 
 numbers in the margin though…
 
 ---
 \setupdescriptions
[footnote]
[location=left,
 distance=1ex]

\setupnotedefinition
  [footnote]
  [ location=left,
   headalign=flushright,
   width=1em,
distance=1ex]

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] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


That was very useful !!
Again, thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 13:42:41 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
I do get with MkIV the first example like you expect but 
“style={\blank[0cm]}”is the wrong way. Such a layout can be easily done with 
your own list-commandfor chapter but the labeltext is tricky:
\setuplabeltext[chapter=CHAPTER~]
% \define[3]\ChapterList % no label!%   {#1\crlf#2\wordright{#3}}
% \define[3]\ChapterList % fixed label, wrong for appendices!%   
{\labeltext{chapter}#1\crlf#2\wordright{#3}}
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\wordright{#3}}
\setuplist[chapter][label=yes,alternative=command,command=\ChapterList]
\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\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
___
   ___
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] Aligning numbers in the footnote block

2011-05-24 Thread Oliver Buerschaper
 \setupnotedefinition
  [footnote]
  [ location=left,
   headalign=flushright,
   width=1em,
distance=1ex]

This comes very close to what I have in mind :-)

Is it possible to not fix the width globally but rather use the largest actual 
width encountered in any single footnote block? That is, a footnote block with 
only single digits would still align left with the textblock boundary as would 
a footnote block with two digit numbers only (I'm using tabular figures) and  
just for mixed one and two digit blocks the right alignment would actually 
become visible…

Many thanks,
Oliver


___
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] Aligning numbers in the footnote block

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 15:15 schrieb Oliver Buerschaper:

 \setupnotedefinition
 [footnote]
 [ location=left,
  headalign=flushright,
  width=1em,
   distance=1ex]
 
 This comes very close to what I have in mind :-)
 
 Is it possible to not fix the width globally but rather use the largest 
 actual width encountered in any single footnote block? That is, a footnote 
 block with only single digits would still align left with the textblock 
 boundary as would a footnote block with two digit numbers only (I'm using 
 tabular figures) and  just for mixed one and two digit blocks the right 
 alignment would actually become visible…

http://www.ntg.nl/pipermail/ntg-context/2011/055590.html

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] math: too big space between function and argument

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 13:14 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 to markup the probability measure and the parenthesis around the
 argument, I defined the following command.
 
   \define[1]\P{{\mathbf P}\left( #1 \right)}
 
 Unfortunately the space between the P and the left ( is a little big in
 my opinion. Is that correct or should/can I fix that somehow?

You can insert negative kerning with “\!”.

\define[1]\P{{\mathbf P}\!\left(#1\right)}

BTW: You redefine the already existing \P (expands to ¶) command.

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] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new command, or somewhere 
else ?


Mathieu



From: mathieudup...@hotmail.com
To: ntg-context@ntg.nl
Date: Tue, 24 May 2011 09:09:39 -0400
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate lines)









That was very useful !!
Again, thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 13:42:41 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
I do get with MkIV the first example like you expect but 
“style={\blank[0cm]}”is the wrong way. Such a layout can be easily done with 
your own list-commandfor chapter but the labeltext is tricky:
\setuplabeltext[chapter=CHAPTER~]
% \define[3]\ChapterList % no label!%   {#1\crlf#2\wordright{#3}}
% \define[3]\ChapterList % fixed label, wrong for appendices!%   
{\labeltext{chapter}#1\crlf#2\wordright{#3}}
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\wordright{#3}}
\setuplist[chapter][label=yes,alternative=command,command=\ChapterList]
\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\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
___
   

___
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] math: too big space between function and argument

2011-05-24 Thread Aditya Mahajan

On Tue, 24 May 2011, Paul Menzel wrote:


Dear ConTeXt folks,


to markup the probability measure and the parenthesis around the
argument, I defined the following command.

\define[1]\P{{\mathbf P}\left( #1 \right)}

Unfortunately the space between the P and the left ( is a little big in
my opinion. Is that correct or should/can I fix that somehow?


Getting these spaces is tricky; especially if you consider spaces before 
and after the definition. Choose your pick:


\starttext
 \startformula
  A{\mathbf P}\left( ABC \right)B \quad
  A\mathop{\kern\zeropoint\mathbf P}\left( ABC \right)B \quad
  A{\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad
  A\mathop{\kern\zeropoint\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B 
\quad
 \stopformula
\stoptext

Some information from the mathsets module (which does not work with MkIV). 
The entry is the latex bug database is not viewable now.


%D The \type{\left} and \type{\right} generate a math atom of type inner,
%D while for math sets, we want a math open atom. To see the difference,
%D consider
%D
%D \startbuffer
%D \startformula
%D  2\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad
%D  2\biggl( \frac {3}{4} \biggr)
%D \stopformula
%D
%D and
%D
%D \startformula
%D  \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad
%D  \Pr\biggl( \frac {3}{4} \biggr)
%D \stopformula
%D \stopbuffer
%D \typebuffer
%D
%D which gives (notice the spacing before the parenthesis)
%D
%D \getbuffer
%D
%D I will assume that if \type{text} is something, then
%D the default behaviour is desirable, if \type{text} is empty, then I add
%D \type{\mathopen} and \type{\mathclose}.  Using \type{\mathopen} to correct
%D the spacing is due to Frank Mittelbach, see
%D 
\hyphenatedurl{http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/3853}
%D
%D Mathset module ensures that we get the correct spacing in both cases
%D \startbuffer
%D \definemathset[SET][left=(,right=)]
%D \startformula
%D  2\SET{\frac{3}{4}} \qquad \hbox{ and } \qquad
%D  \PR{ \frac{3}{4} }
%D \stopformula
%D \stopbuffer
%D \getbuffer[PR] \getbuffer which was typed as \typebuffer
%D
%D Also, if its argument is a single character, \type{\mathop} centers it 
to

%D with respect to the math||axis. Compare the outputs of
%D
%D \startbuffer
%D \ruledhbox{$\mathop{y}\nolimits_x\left\{A\,\middle|\,B\right\}$}
%D \ruledhbox{$\mathop{\kern\zeropoint 
y}\nolimits_x\left\{A\,\middle|\,B\right\}$}
%D \stopbuffer
%D
%D \typebuffer
%D \getbuffer
%D
%D I have added a \type{\kern\zeropoint} to prevent 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] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 15:33 schrieb Mathieu DUPONT:

 
 If now I add the line :
 
 \setupcombinedlist[content][alternative=c]
 
 it doesn't add the dots to the chapter lines anymore,
 and I can't add
 
 \setuplist[chapter][alternative=c]
 
 since the alternative parameter is already taken by the new command
 
 Is there a way to add the dots option within my new command, or somewhere 
 else ?

\define[3]\ChapterList
  {\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}

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] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


Thank you !However, this resulted in something weird with my appendices, but 
adding \blank in the front fixes the problem :
\define[3]\ChapterList  
{\blank\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
I am starting to think there is something mysterious with this \blank command...


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 16:04:44 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 15:33 schrieb Mathieu DUPONT:If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new command, or somewhere 
else ?
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
Wolfgang


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 16:13 schrieb Mathieu DUPONT:

 
 Thank you !
 However, this resulted in something weird with my appendices, but adding 
 \blank in the front fixes the problem :
 
 \define[3]\ChapterList
   {\blank\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
 
 I am starting to think there is something mysterious with this \blank 
 command...

Not really, the commands just ends the last line and inserts a blank line.
When you don’t want an empty line you can define the chapter entry as:

\define[3]\ChapterList
  {\par\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par}

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] alternating items in an itemization

2011-05-24 Thread Jesse Alama

On 2011-05-24 14:16:16 +0200, Wolfgang Schuster said:


Am 23.05.2011 um 22:08 schrieb Jesse Alama:

I'd like to define an itemization that has two kinds of items, 
representing a dialogue between two people.  (One could imagine 
extending this to more than two.)  I'd like to have something like this:


\startdialogue
\john What did you have for breakfast?
\mary I skipped breakfast today.
\john Oh, why?
\mary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.

\stopdialogue

The \john and \mary parts would each be their own paragaphs.  The 
paragraphs would be colored with different text backgrounds, and joined 
up with one another  (that is, the blocks of text representing the 
paragraphs for the different speakers would be adjacent to one another).



Solution 1:

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]

\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineenumeration



 [john]
  [text=John: ,
  width=3em,
 number=no,
   location=left,
 before={\starttextbackground[john-background]},
  after=\stoptextbackground]

\defineenumeration
  [mary][john]
  [  text=Mary: ,
   before={\starttextbackground[mary-background]},
after=\stoptextbackground]

\starttext

\john What did you have for breakfast?\par
\mary I skipped breakfast today.\par
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.\stopmary


\stoptext

Solution 2:

\usemodule[annotation]

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]

\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineannotation



 [john]
  [   text=John,
 stopper=: ,
 inbetween=,
before={\starttextbackground[john-background]},
 after={\stoptextbackground},
   spacebefore=nowhite]

\defineannotation
  [mary][john]
  [  text=Mary,
   before={\starttextbackground[mary-background]},
after={\stoptextbackground}]

\starttext

\john{What did you have for breakfast?}
\mary{I skipped breakfast today.}
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.\stopmary


\stoptext


Thanks!  These fit the bill.  (I note, though, that in the 
annotation-based solution, the texts John and Mary don't show up. 
Otherwise the annotation solution is just what I am looking for.)



___
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] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


Things are getting much clearer now.Thank you !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 16:20:13 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 16:13 schrieb Mathieu DUPONT:Thank you !However, this resulted 
in something weird with my appendices, but adding \blank in the front fixes the 
problem :
\define[3]\ChapterList  
{\blank\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
I am starting to think there is something mysterious with this \blank command...
Not really, the commands just ends the last line and inserts a blank line.When 
you don’t want an empty line you can define the chapter entry as:
\define[3]\ChapterList  
{\par\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par}
Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] alternating items in an itemization

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 16:24 schrieb Jesse Alama:

 Thanks!  These fit the bill.  (I note, though, that in the annotation-based 
 solution, the texts John and Mary don't show up. Otherwise the annotation 
 solution is just what I am looking for.)

I noticed this too and uploaded a new version (it was already fixed in my local 
version).

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] Simplefonts, latest beta and binoms

2011-05-24 Thread Guanhao Yin
On Mon, May 23, 2011 at 12:31:35PM +0200, Wolfgang Schuster wrote:

 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module

So, is it possible to use the simplefonts module with Type1 LM Math?
___
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] Current Mk IV doc?

2011-05-24 Thread Peter Davis
Where can I find the most recent ConTeXt documentation?  The files I found
here:

http://wiki.contextgarden.net/Main_Page

show November 2001 as the date.  Is there anything newer?

Thanks!

-pd

-- 

The Tech Curmudgeon
http://www.techcurmudgeon.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Simplefonts, latest beta and binoms

2011-05-24 Thread Wolfgang Schuster

Am 24.05.2011 um 16:47 schrieb Guanhao Yin:

 On Mon, May 23, 2011 at 12:31:35PM +0200, Wolfgang Schuster wrote:
 
 It’s the fault of the OpenType version of the LM Math fonts which
 are used when you use the simplefonts module
 
 So, is it possible to use the simplefonts module with Type1 LM Math?

No but you can use my calluna typescripts:

\usetypescriptfile[type-calluna]

\definetypeface[mainface][rm][serif][calluna][default]
\definetypeface[mainface][mm][math] [modern] [computer-modern]

\setupbodyfont[mainface]

\starttext

Calluna and Latin Modern Math

\startformula
\binom{1}{2}
\stopformula

\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] Current Mk IV doc?

2011-05-24 Thread Mathieu DUPONT


Here are some :

2009 Reference Manual :

http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf

2011 Commands :
http://doc.baidu.com/view/61f4691b227916888486d72a.html

2011 Metafun :
http://tex.loria.fr/formats/context/metafun-p.pdf



Mathieu



Date: Tue, 24 May 2011 10:47:52 -0400
From: p...@pfdstudio.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Current Mk IV doc?

Where can I find the most recent ConTeXt documentation?  The files I found here:

http://wiki.contextgarden.net/Main_Page


show November 2001 as the date.  Is there anything newer?

Thanks!

-pd
-- 
The Tech Curmudgeon
http://www.techcurmudgeon.com



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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] Punctuation in bibliography

2011-05-24 Thread yoraxe
Am 24.05.2011 09:49, schrieb Oliver Buerschaper:
 Dear all,
 
 is there a way for the bibliography style to scan back for punctuation marks 
 before it inserts punctuation of its own?

Would be nice to know. In my publication list after all titles are two
points, like:
 That's the title. .
Realy ugly and I don't know why. Is that a known problem?
___
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] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
 Would be nice to know. In my publication list after all titles are two
 points, like:
That's the title. .
 Realy ugly and I don't know why. Is that a known problem?

Well, that you can easily avoid by not putting a full stop after the title in 
the database if I'm not mistaken :-) Usually you wouldn't consider the full 
stop a part of the title (e.g. in a newspaper), however, if your title is a 
question, well, then you need a question mark, right?

Oliver
___
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] Punctuation in bibliography

2011-05-24 Thread yoraxe
Am 24.05.2011 18:48, schrieb Oliver Buerschaper:
 Would be nice to know. In my publication list after all titles are two
 points, like:
   That's the title. .
 Realy ugly and I don't know why. Is that a known problem?
 
 Well, that you can easily avoid by not putting a full stop after the title in 
 the database if I'm not mistaken :-) Usually you wouldn't consider the full 
 stop a part of the title (e.g. in a newspaper), however, if your title is a 
 question, well, then you need a question mark, right?

I didn't put a full stop after the title.
___
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] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
 Would be nice to know. In my publication list after all titles are two
 points, like:
  That's the title. .
 Realy ugly and I don't know why. Is that a known problem?
 
 Well, that you can easily avoid by not putting a full stop after the title 
 in the database if I'm not mistaken :-) Usually you wouldn't consider the 
 full stop a part of the title (e.g. in a newspaper), however, if your title 
 is a question, well, then you need a question mark, right?
 
 I didn't put a full stop after the title.

Can you provide a minimal example?

Oliver
___
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] Punctuation in bibliography

2011-05-24 Thread yoraxe
Am 24.05.2011 19:38, schrieb Oliver Buerschaper:
 Would be nice to know. In my publication list after all titles are two
 points, like:
 That's the title. .
 Realy ugly and I don't know why. Is that a known problem?

 Well, that you can easily avoid by not putting a full stop after the title 
 in the database if I'm not mistaken :-) Usually you wouldn't consider the 
 full stop a part of the title (e.g. in a newspaper), however, if your title 
 is a question, well, then you need a question mark, right?

 I didn't put a full stop after the title.
 
 Can you provide a minimal example?

\setupbibtex[database=bib]
\setuppublications[numbering=yes] % Show reference numbers in the
generated list.
\starttext
\placepublications[criterium=all]
\stoptext

with bib.bib:

@BOOKLET{ref1,
  author = {Author},
  title = {Title},
  year = {2005},
}

creates the attached pdf-file.


bib.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] math: using bold charaters for number sets

2011-05-24 Thread Hans Hagen

On 24-5-2011 1:23, Paul Menzel wrote:

Dear ConTeXt folks,


according to [1] the number sets were originally set using bold
characters and only on the blackboard the double strokes were used.

ConTeXt defines for example `\naturalnumbers` or `\reals` [2] which are
set using double strokes.

How can I redefine those to be just bold?


I've made something for an upcoming beta:

\startformula
\reals
{\mathbf R}
\utfchar{0211D}
\utfchar{1D411}
\stopformula

\setupmathematics
  [rendering=1]

\startformula
\reals
{\mathbf R}
\utfchar{0211D}
\utfchar{1D411}
\stopformula

That give the desired result. But we need to set up some rendering 
vectors so I need to discuss it with Aditya first.


And of course Aditya want as export

m:miℝ/m:mi
m:mi퐑/m:mi
m:miℝ/m:mi
m:mi퐑/m:mi

So that is also taken care of.

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] math: using bold charaters for number sets

2011-05-24 Thread Aditya Mahajan

On Tue, 24 May 2011, Hans Hagen wrote:


On 24-5-2011 1:23, Paul Menzel wrote:

Dear ConTeXt folks,


according to [1] the number sets were originally set using bold
characters and only on the blackboard the double strokes were used.

ConTeXt defines for example `\naturalnumbers` or `\reals` [2] which are
set using double strokes.

How can I redefine those to be just bold?


I've made something for an upcoming beta:

\startformula
   \reals
   {\mathbf R}
   \utfchar{0211D}
   \utfchar{1D411}
\stopformula

\setupmathematics
 [rendering=1]


I will prefer something more verbose than rendering=1. Perhaps, 
numbersets=blackboard and numbersets=bold.



\startformula
   \reals
   {\mathbf R}
   \utfchar{0211D}
   \utfchar{1D411}
\stopformula

That give the desired result. But we need to set up some rendering vectors so 
I need to discuss it with Aditya first.


A bit tricky. Is \reals == ℝ? That is, what if I type ℝ should the 
output be bold R, or should ℝ always map to the corresponding slot in the 
unicode math font?



And of course Aditya want as export

m:miℝ/m:mi
m:mi퐑/m:mi
m:miℝ/m:mi
m:mi퐑/m:mi

So that is also taken care of.


Thanks :)

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] math: using bold charaters for number sets

2011-05-24 Thread Hans Hagen

On 24-5-2011 9:46, Aditya Mahajan wrote:


I will prefer something more verbose than rendering=1. Perhaps,
numbersets=blackboard and numbersets=bold.


Sure, but I needed a quick test -)


A bit tricky. Is \reals == ℝ? That is, what if I type ℝ should the
output be bold R, or should ℝ always map to the corresponding slot in
the unicode math font?


- the export is the original (but \reals becomes ℝ)
- the rendering becomes ℝ or bold-R

you can play with the beta on the ftp server ... (math-ren.lua: we can 
consider runtime vector loading)


\setupbackend[export=yes]

\starttext

\startTEXpage
\startformula
\reals {\mathbf R} \utfchar{0211D} \utfchar{1D411}
\stopformula
\setupmathematics[symbolset=blackboard-to-bold]
\startformula
\reals {\mathbf R} \utfchar{0211D} \utfchar{1D411}
\stopformula
\stopTEXpage

\stoptext

There is also support for:

\setupmathematics
  [symbolset={blackboard-to-bold,adityas-favourutes}]

Maybe we should start thinking of \definemathematics.

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] Punctuation in bibliography

2011-05-24 Thread Pontus Lurcock
Yes, I get it too. It's because booklet expects a publisher name;
if you add a line

  publisher = {Publisher},

to the bibtex entry you can see this.

I think this can be fixed in
context/tex/texmf-context/tex/context/bib/bibl-apa.tex by changing
this function:

\setuppublicationlayout[booklet]{%
   \insertauthors{}{ }{\insertthekey{}{. }{}}%
   \insertpubyear{(}{). }{}%
   \inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
   \insertedition{ }{ edition.}{}%
   \insertpublisher{ }{.}{.}%
   \insertpages{}{p. }{}%
   \insertnote{ }{.}{}%
}

Alter the following line --

   \insertpublisher{ }{.}{.}%

to

   \insertpublisher{ }{.}{}%

-- then I think you'll need to remake the formats (see 
http://wiki.contextgarden.net/ConTeXt_Minimals#Remaking_formats ).

See
http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf
section 6 for some explanation of what's going on here.

Sorry I don't have time to test any of this right now but it should point
you in the right diretion at least.

Pont
___
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] Current Mk IV doc?

2011-05-24 Thread Marc Trius
On Tue, 24 May 2011 11:11:19 -0400
Mathieu DUPONT mathieudup...@hotmail.com wrote:

 
 
 Here are some :
 
 2009 Reference Manual :
 
 http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf
 
 2011 Commands :
 http://doc.baidu.com/view/61f4691b227916888486d72a.html

Is there a way to download the commands pdf without registering with Baidu? It 
would help if one did not need to read Chinese to do so...

Thanks,
Marc Trius

 
 2011 Metafun :
 http://tex.loria.fr/formats/context/metafun-p.pdf
 
 
 
 Mathieu
 
 
 
 Date: Tue, 24 May 2011 10:47:52 -0400
 From: p...@pfdstudio.com
 To: ntg-context@ntg.nl
 Subject: [NTG-context] Current Mk IV doc?
 
 Where can I find the most recent ConTeXt documentation?  The files I found 
 here:
 
 http://wiki.contextgarden.net/Main_Page
 
 
 show November 2001 as the date.  Is there anything newer?
 
 Thanks!
 
 -pd
 -- 
 The Tech Curmudgeon
 http://www.techcurmudgeon.com
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  

-- 
Marc Trius derpay...@riseup.net

The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment. --- George Orwell
___
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] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-24 Thread Mathieu DUPONT


Hi,
Is there a way to have, in the table of contents, the titles (of chapters, 
sections, subsections, etc.) with a different interline spacing than the rest 
of the TOC ?My TOC interline spacing is set at 1.5 (4.2ex), but I would like to 
have the long titles on multiples lines being only single interline spaced 
(2.8ex).Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !

\setupinterlinespace[line=4.2ex]   %  1.5 interline
\setuplabeltext[chapter=CHAPITRE~]\define[3]\ChapterList{   
\blank\par\noindent\currentlistsymbol\crlf  #2\enspace\listdots\enspace 
#3\par\blank[0.1cm]}\setupcombinedlist[content][level=3,alternative=c]\setuplist[chapter][
  label=yes,  alternative=command,command=\ChapterList,   ]
\starttext
\completecontent
\startbodymatter\chapter{THIS VERY VERY VERY VERY VERY VERY VERY VERY LONG 
TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)}\section{THIS VERY VERY 
VERY VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED 
(line=2.8ex)}\subsection{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE 
INTERLINE-SPACED (line=2.8ex)}\stopbodymatter
\stoptext 


Mathieu

  ___
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] Current Mk IV doc?

2011-05-24 Thread Mathieu DUPONT


Here :
http://www.pragma-ade.com/general/qrcs/setup-en.pdf



Mathieu



 Date: Tue, 24 May 2011 17:12:57 -0500
 From: derpay...@riseup.net
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Current Mk IV doc?
 
 On Tue, 24 May 2011 11:11:19 -0400
 Mathieu DUPONT mathieudup...@hotmail.com wrote:
 
  
  
  Here are some :
  
  2009 Reference Manual :
  
  http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf
  
  2011 Commands :
  http://doc.baidu.com/view/61f4691b227916888486d72a.html
 
 Is there a way to download the commands pdf without registering with Baidu? 
 It would help if one did not need to read Chinese to do so...
 
 Thanks,
 Marc Trius
 
  
  2011 Metafun :
  http://tex.loria.fr/formats/context/metafun-p.pdf
  
  
  
  Mathieu
  
  
  
  Date: Tue, 24 May 2011 10:47:52 -0400
  From: p...@pfdstudio.com
  To: ntg-context@ntg.nl
  Subject: [NTG-context] Current Mk IV doc?
  
  Where can I find the most recent ConTeXt documentation?  The files I found 
  here:
  
  http://wiki.contextgarden.net/Main_Page
  
  
  show November 2001 as the date.  Is there anything newer?
  
  Thanks!
  
  -pd
  -- 
  The Tech Curmudgeon
  http://www.techcurmudgeon.com
  
  
  
  ___
  If your question is of interest to others as well, please add an entry to 
  the Wiki!
  
  maillist : ntg-context@ntg.nl / 
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  ___
 
 
 -- 
 Marc Trius derpay...@riseup.net
 
 The enemy is the gramophone mind, whether or not one agrees with the record 
 that is being played at the moment. --- George Orwell
 ___
 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] Current Mk IV doc?

2011-05-24 Thread Marc Trius
Thanks :)

Marc


On Tue, 24 May 2011 18:23:25 -0400
Mathieu DUPONT mathieudup...@hotmail.com wrote:

 
 
 Here :
 http://www.pragma-ade.com/general/qrcs/setup-en.pdf
 
 
 
 Mathieu
 
 
 
  Date: Tue, 24 May 2011 17:12:57 -0500
  From: derpay...@riseup.net
  To: ntg-context@ntg.nl
  Subject: Re: [NTG-context] Current Mk IV doc?
  
  On Tue, 24 May 2011 11:11:19 -0400
  Mathieu DUPONT mathieudup...@hotmail.com wrote:
  
   
   
   Here are some :
   
   2009 Reference Manual :
   
   http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf
   
   2011 Commands :
   http://doc.baidu.com/view/61f4691b227916888486d72a.html
  
  Is there a way to download the commands pdf without registering with Baidu? 
  It would help if one did not need to read Chinese to do so...
  
  Thanks,
  Marc Trius
  
   
   2011 Metafun :
   http://tex.loria.fr/formats/context/metafun-p.pdf
   
   
   
   Mathieu
   
   
   
   Date: Tue, 24 May 2011 10:47:52 -0400
   From: p...@pfdstudio.com
   To: ntg-context@ntg.nl
   Subject: [NTG-context] Current Mk IV doc?
   
   Where can I find the most recent ConTeXt documentation?  The files I 
   found here:
   
   http://wiki.contextgarden.net/Main_Page
   
   
   show November 2001 as the date.  Is there anything newer?
   
   Thanks!
   
   -pd
   -- 
   The Tech Curmudgeon
   http://www.techcurmudgeon.com
   
   
   
   ___
   If your question is of interest to others as well, please add an entry to 
   the Wiki!
   
   maillist : ntg-context@ntg.nl / 
   http://www.ntg.nl/mailman/listinfo/ntg-context
   webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
   archive  : http://foundry.supelec.fr/projects/contextrev/
   wiki : http://contextgarden.net
   ___

  
  -- 
  Marc Trius derpay...@riseup.net
  
  The enemy is the gramophone mind, whether or not one agrees with the 
  record that is being played at the moment. --- George Orwell
  ___
  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
  ___
 

-- 
Marc Trius derpay...@riseup.net

The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment. --- George Orwell
___
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] Current Mk IV doc?

2011-05-24 Thread Otared Kavian

Hi,

You can also do the following in a terminal window:
texexec --int=en --pdf --global --result=setup-en --purge x-set-12.mkiv

(you can replace « en » with another language such as « fr » for French, or « 
mkiv » with « mkii »).

This is a tip taken from the file 

context-minimal/tex/texmf-context/doc/context/document/general/manuals/tiptrick.pdf

Best regards: OK

On 25 mai 2011, at 00:23, Mathieu DUPONT wrote:

 
 Here :
 
 http://www.pragma-ade.com/general/qrcs/setup-en.pdf
 
 
 
 Mathieu


___
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] getmarking and empty chapter number

2011-05-24 Thread Oliver Buerschaper
 %D \macros
 %D   {doiftextelse, doiftext}
 %D
 %D When \type {\doifelse} cum suis hopelessly fail, for
 %D instance because we pass data, we can fall back on the next
 %D macro:
 %D
 %D \starttyping
 %D \doiftextelse {data} {then branch} {else branch}
 %D \doiftext {data} {then branch}
 %D \stoptyping

Works neatly! Thanks a lot.

Oliver
___
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] OT: What reference management software do you use?

2011-05-24 Thread Stefan Müller

On 23.05.2011 23:47, Thomas A. Schmitz wrote:

As to the question why strings: Pontus's answer named one important aspect. I have several .bib files which contain 
nothing but string definitions: one with abbreviated, one with full journal titles; one with English strings 
(reprint, Munich) and one with the German equivalent (Nachdruck, München). 
Including the right file(s) will then provide the desired output.


That sounds quite reasonable. I haven't thought of that yet, as I 
haven't written a lot of bibliographies and they were all in English.


If I have for example mybib.bib, en.bib and de.bib, how would I tell 
ConTeXt that it should use mybib.bib as database and en.bib for string 
replacement?

  \setupbibtex[database={mybib.bib,en.bib}]
?

Stefan
___
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] Aligning numbers in the footnote block

2011-05-24 Thread Oliver Buerschaper
Dear all,

is there a way to align the numbers in the footnote block (flush) right as is 
done without the key location=left in the following? I don't want the numbers 
in the margin though…

---
\setupdescriptions
[footnote]
[location=left,
 distance=1ex]

\setupnote
[footnote]
[numbercommand=]


\starttext

This\footnote{This} is\footnote{is} a\footnote{a} little\footnote{little}
test\footnote{test} for\footnote{for} the\footnote{the} look\footnote{look}
of\footnote{of} footnotes\footnote{footnotes}

\stoptext
---

Many thanks,
Oliver
___
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] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-24 Thread Hans Hagen

On 24-5-2011 7:39, Mojca Miklavec wrote:

On Mon, May 23, 2011 at 22:58, Aditya Mahajan wrote:


Are all mac OS installations 64 bit? Or is osx-intel used in 32bit Mac and
osx-64 used in 64bit Mac?


osx-intel is for 32-bit Macs (still from time when Apple only
distinguished between ppc/intel) and osx-ppc for 32-bit PowerPC.

However you cannot buy 32-bit hardware any more and you cannot choose
to install a 32-bit system on 64-bit hardware (unless you install
ancient OS which nobody does and which might not even work due to lack
of drivers). So anyone who has bought a mac after Snow Leopard has
been released (late 2009?) has 64-bit Mac OS X.


http://osxbook.com/blog/2009/08/31/is-your-machine-good-enough-for-snow-leopard-k64/

-
  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] [bibliography] publications layout

2011-05-24 Thread Stefan Müller



On 24.05.2011 00:57, Pontus Lurcock wrote:

On Tue 24 May 2011, finkler wrote:


in my publication list from the bibliography, every word, except the
first starts in small case letters. How can I change this?


This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex

Pont


Hi,

is the bibliograph style as mentioned in If your document design 
specification requires a different style of capitalisation, you should 
acquire a bibliography style that doesn’t enforce BibTeX’s default 
rules. from the website you suggested, the same thing I set up with

  \setuppublications[alternative=...]
? I'm using ams there and realized that the title tag of @book is not 
treated that way (so with @book there are caps inside the title without 
extra {} in the bib-file).


Stefan
___
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] Punctuation in bibliography

2011-05-24 Thread Oliver Buerschaper
Dear all,

is there a way for the bibliography style to scan back for punctuation marks 
before it inserts punctuation of its own? Please see

---
\startpublication
[a={Ellen Dissanayake},
 k=DIS:wha,
 t=book,
 y=1988]
\author{Ellen}[E.]{}{Dissanayake}
\lang{en}
\pubname{University of Washington Press}
\pubyear{1988}
\title{What is Art for?}
\stoppublication

\setuppublications
[alternative=apa]



\starttext

\cite[DIS:wha]

\placepublications
[criterium=all]

\stoptext
---

It would be great if I could make the full stop after the question mark 
disappear…

Many thanks for any help,
Oliver
___
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] Non-breakable space in export to XML

2011-05-24 Thread Hans Hagen

On 24-5-2011 7:02, Aditya Mahajan wrote:

Hi,

When exporting to xml (with \setupbackend[export=yes]), the
non-breakable space (~) gets exported to regular space 0x32. Shouldn't
it rather be exported to 0x00A0?


Hard to check in an editor, these special spaces.

Anyhow, attached is a proof of concept ... I need to rewrite a bit of 
spacing code so it also needs some testing and guess who has to do that 
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
-
\setupbackend[export=yes]

\setupbodyfont[dejavu]

\input typo-chr.mkiv

\starttext

test test\nobreakspace test

12345\par
12\figurespace45\par
12.34\par
12\punctuationspace34\par

\stoptext


oepsoeps.pdf
Description: Adobe PDF document
?xml version='1.0' encoding='UTF-8' standalone='yes' ?

!-- input filename   : oepsoeps  --
!-- processing date  : 05/24/11 10:25:10 --
!-- context version  : 2011.05.22 23:41  --
!-- exporter version : 0.20  --

document language=en file=oepsoeps date=05/24/11 10:25:10 context=2011.05.22 23:41 version=0.20 xmlns:m=http://www.w3.org/1998/Math/MathML;
test test test

  break/
 12345

  break/
 12 45

  break/
 12.34

  break/
 12 34 
/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] [bibliography] publications layout

2011-05-24 Thread Pontus Lurcock
On Tue 24 May 2011, Stefan Müller wrote:

 is the bibliograph style as mentioned in If your document design  
 specification requires a different style of capitalisation, you should  
 acquire a bibliography style that doesn’t enforce BibTeX’s default  
 rules. from the website you suggested, the same thing I set up with
   \setuppublications[alternative=...]

Yes, I believe so (though I get a bit confused with BibTeX, so I could
be wrong). Personally I use the suggested solution of wrapping
‘proper’ capital latters in {}. If you need a custom style that
doesn't decapitalize article titles, that's beyond my BibTeXpertise
but maybe there is someone else here who can help.

 ? I'm using ams there and realized that the title tag of @book is not  
 treated that way (so with @book there are caps inside the title without  
 extra {} in the bib-file).

This is the case for most bibliography styles: journal articles only
get capitals for the first letter, proper nouns, chemical symbols, etc.;
Book Titles get Capital Letters for Most Words.

Pont
___
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] bug in luatex on osx-ppc

2011-05-24 Thread Thomas A. Schmitz

Hi all,

after updating the minimals to the latest beta on osx-ppc, I can't  
compile any document, I always get this error:


context test

mtx-context | run 1: luatex --fmt=/Users/tas/context/tex/texmf- 
cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/ 
cont-en --lua=/Users/tas/context/tex/texmf-cache/luatex-cache/ 
context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui -- 
backend=pdf ./test

This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
 \write18 enabled.
Could not undump 51859 1-byte item(s): fd:4: unexpected end of file.

mtx-context | fatal error: return code: 1%

This happens both with the binary in the minimals (0.70.1) and when I  
compile the latest trunk (0.71.0), so I'm a bit lost here - it looks  
like a problem in the executables, right?


All best

Thomas
___
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] where to put an \index{foo} ?

2011-05-24 Thread Steffen Wolfrum
Hi,

either I set an \index{foo} in front of the word it refers to, or after that 
word:
The second can lead to wrong line wrapping when a full stop follows (see Case 
1),
and the first can lead into a line ending with a space before wrapping (see 
Case 2).

:o(

Is there a third option?


Thanks,
Steffen

---

\showframe

\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

\definetolerancemethod
 [horizontal]
 [MySpace]
 {\spaceskip3.02pt plus1.8pt minus1.0pt\relax}

\setupalign[line,block,hanging]
\setuptolerance[MySpace]

\setupindenting[10pt,yes]

\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]

\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]


\starttext

{\em Case 1: line wrap before dot}

\noindent dieses ist dabei typisch für den Bereich der Architekten- oder
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\blank

{\em Case 2: line wrap after visible space}

Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
\index{Künast}Künast und Jürgen Trittin ...
\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
___