[NTG-context] overlays not working

2010-03-22 Thread ARCOR
Hello context gurus,
while learning about page design, I used Hans Hagen's sample file named Simple 
Cover Page from the wiki as a starting point. But it does not work. The 
overlay will not show up. The text itself is typeset properly. What I found 
out:

Source:
http://wiki.contextgarden.net/Simple_Cover_Page saved as test.tex.

Procedure:
1   using TeX Live 2009 texexec --xtx test.tex  No 
overlay, text ok
2   using TeX Live 2009 texexec --pdf test.tex  No 
overlay, text ok
3   using online engine on live.contextgarden.net (pdfTeX)  No overlay, 
text ok
4   using online engine on live.contextgarden.net (XeTeX)   No overlay, 
text ok
5   using ConTeXt minimals  context test.texAll 
working just fine

System:
ubuntu 9.10 (karmic koala) amd64, TeX Live 2009 without any modifications

The only successful procedure was (5) with the most current ConTeXt-minimals 
distribution and therefore using the Mk IV version. Is the file not suitable 
for Mk II? Is something wrong with Mk II in TeX Live 2009?

What am I doing wrong here?

Best regards,
Michael Ewe, Germany
___
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] overlays not working

2010-03-22 Thread luigi scarso
On Sun, Mar 21, 2010 at 10:44 AM, ARCOR michael@arcor.de wrote:
 Hello context gurus,
 while learning about page design, I used Hans Hagen's sample file named 
 Simple
 Cover Page from the wiki as a starting point. But it does not work. The
 overlay will not show up. The text itself is typeset properly. What I found
 out:

 Source:
 http://wiki.contextgarden.net/Simple_Cover_Page saved as test.tex.

 Procedure:
 1       using TeX Live 2009             texexec --xtx test.tex          No 
 overlay, text ok
 2       using TeX Live 2009             texexec --pdf test.tex          No 
 overlay, text ok
 3       using online engine on live.contextgarden.net (pdfTeX)  No overlay, 
 text ok
 4       using online engine on live.contextgarden.net (XeTeX)   No overlay, 
 text ok
 5       using ConTeXt minimals  context test.tex                        All 
 working just fine

6  using ConTeXt minimals  texexec test.tex                        All
working just fine
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] overlays not working

2010-03-22 Thread Aditya Mahajan

On Sun, 21 Mar 2010, ARCOR wrote:


Hello context gurus,
while learning about page design, I used Hans Hagen's sample file named Simple
Cover Page from the wiki as a starting point. But it does not work. The
overlay will not show up. The text itself is typeset properly. What I found
out:


To run metapost you either need to enable \write18 
(http://wiki.contextgarden.net/write18) or add \runMPgraphicsfalse on the 
top of your file.


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] Problem with \c{a}

2010-03-22 Thread Hans Hagen

On 21-3-2010 22:20, Mikael Persson wrote:


The problem now is that \aogonek seems not to be defined in LaTeX. I
guess I can define it manually. It would be nice to use the same bib
file for both LaTeX and ConTeXt docs...


maybe utf8 ...

Hans

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

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


Re: [NTG-context] sort-lan.lua line 157

2010-03-22 Thread Hans Hagen

On 21-3-2010 17:52, Philipp Gesang wrote:

Hi,


I had a look at sort-lan.lua, here are lines 156--158:

 ['y']= 38, -- y
 ['z']= 49, -- z
 [uc(0x017E)] = 40, -- zcaron

I guess the correct value for “z” should be “39”?


indeed

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

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


[NTG-context] startlanguagespecifics missing in mkiv

2010-03-22 Thread Hans van der Meer
The following macro is present in mkii but obviously missing in mkiv.  
Why?

I have a use for it.

ConTeXt  ver: 2010.03.20 22:59 MKIV  fmt: 2010.3.21  int: english/ 
english

! Undefined control sequence.
l.184 \startlanguagespecifics
 [nl]

In mkii in lang-spe.mkii
\def\startlanguagespecifics%% we use double to
  {\bgroup ... \dodoubleempty\dostartlanguagespecifics} % get rid of  
spaces


Hans van der Meer




___
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] bib things broken in mkiv?

2010-03-22 Thread Hans van der Meer
The following I didn't use for some time. Is it replaced or broken in  
mkiv?
Is there a quick fix? I must retypsetting something I need on short  
notice.


\setuppublications	[numbering=short,refcommand=data] % separate -- see  
doc p2

systems : begin file literature at line 8
(../literature.tex (/Users/hans/Documents/TeX/context/beta/tex/texmf- 
context/tex/context/base/m-obsolete.tex

systems : skipping obsolete module
)
system  : module bib loaded
publications: loading database from literature.bbl
(../literature.bbl)
publications: loading formatting style from bibl-apa
(/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/ 
bib/bibl-apa.tex)

! Parameters must be numbered consecutively.
to be read again
   ##
argument \def \@@pbinumbercommand 
1{\bibgetvars  
\currentpublicationkey }

\p!compareprocessaction ...commalistelement {#3}#2
  \expandafter  
\quitcommalis...

\next1 #1,-\p!doprocessaction {#1}
   \doprocesscommaitem
argument ...bibgetvars \currentpublicationkey },
   \v!bib =\def  
\@@pbinumbe...

\processnextcommalist ...dodoprocesscommaitem #4#5
  ,]\relax \global  
\advance ...

...
l.17 ...ications[numbering=short,refcommand=data]
   % separate -- see  
doc p2


Hans van der Meer




___
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] bib things broken in mkiv?

2010-03-22 Thread Taco Hoekwater


Hans van der Meer wrote:
 The following I didn't use for some time. Is it replaced or broken in mkiv?
 Is there a quick fix? I must retypsetting something I need on short notice.

Perhaps the quickest fix is to downgrade your context release for a bit.

This looks like an expansion bug, but I have no idea what could have
changed nor when.

Best wishes,
Taco


 \setuppublications [numbering=short,refcommand=data] % separate -- see
 doc p2
 systems : begin file literature at line 8
 (../literature.tex
 (/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/base/m-obsolete.tex
 systems : skipping obsolete module
 )
 system  : module bib loaded
 publications: loading database from literature.bbl
 (../literature.bbl)
 publications: loading formatting style from bibl-apa
 (/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/bib/bibl-apa.tex)
 ! Parameters must be numbered consecutively.
 to be read again 
##
 argument \def \@@pbinumbercommand 
 1{\bibgetvars
 \currentpublicationkey }
 \p!compareprocessaction ...commalistelement {#3}#2
   \expandafter
 \quitcommalis...
 \next1 #1,-\p!doprocessaction {#1}
\doprocesscommaitem 
 argument ...bibgetvars \currentpublicationkey },
\v!bib =\def
 \@@pbinumbe...
 \processnextcommalist ...dodoprocesscommaitem #4#5
   ,]\relax \global
 \advance ...
 ...
 l.17 ...ications [numbering=short,refcommand=data]
% separate -- see doc p2
 
 Hans van der Meer
 
 
 
 
 
 
 
 ___
 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] startlanguagespecifics missing in mkiv

2010-03-22 Thread Hans Hagen

On 22-3-2010 10:44, Hans van der Meer wrote:

The following macro is present in mkii but obviously missing in mkiv. Why?
I have a use for it.

ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.21 int: english/english
! Undefined control sequence.
l.184 \startlanguagespecifics
[nl]

In mkii in lang-spe.mkii
\def\startlanguagespecifics% % we use double to
{\bgroup ... \dodoubleempty\dostartlanguagespecifics} % get rid of spaces


it was normally used for special active charactertrickery and that's gone

Hans


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

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


[NTG-context] xml and catcode switching

2010-03-22 Thread Philipp Gesang
Hi,


I'm formatting lots of urls and as some of them have ampersands in them
I switch  to letter wherever they are placed.  This works fine unless
combined with XML which seems to impose its own catcodes on things.  How
could I fix things in the following example?

Thanks for any suggestions,


Philipp

···8··
\useURL
  [testurl]
  [http://elibrary.karelia.ru/book.shtml?levelID=004002id=2570cType=2]
  []
  [http://elibrary.karelia.ru/book.shtml?levelID=004002id=2570cType=2]  % 
these ampersands cause it

\startxmlsetups urltest
\xmlsetsetup{urltest}{main|url}{xml:*}
\stopxmlsetups

\xmlregistersetup{urltest}

\startxmlsetups xml:main
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:url
\begingroup
  \catcode`\=11
  \from[testurl]
\endgroup
\stopxmlsetups

\startbuffer[urltestbuf]
main
  url/
/main
\stopbuffer

\starttext
Test
{\catcode`\=11 \from[testurl]}   % this one works: no xml
\xmlprocessbuffer{urltest}{urltestbuf}{}
Test
\stoptext
···8··



-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] bib things broken in mkiv?

2010-03-22 Thread Hans Hagen

On 22-3-2010 10:51, Taco Hoekwater wrote:



Hans van der Meer wrote:

The following I didn't use for some time. Is it replaced or broken in mkiv?
Is there a quick fix? I must retypsetting something I need on short notice.


Perhaps the quickest fix is to downgrade your context release for a bit.

This looks like an expansion bug, but I have no idea what could have
changed nor when.


mayhe hans can track down what command is triggering it, probably some 
command in the bib databae file


Hans

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

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


Re: [NTG-context] Problem in sorting bibtex entries

2010-03-22 Thread Mikael Persson
On Thu, Mar 18, 2010 at 12:28 PM, Mikael Persson mic...@gmail.com wrote:
 Dear Taco and list,

 I have a problem (with the latest minimals) sorting bibtex entries:

 Consider the following example:

 % bibbug.tex
 \usemodule[bib]

 \setuppublications[
        sorttype=bbl,
 ]

 \setupbibtex[
        database=mp,
 ]

 \starttext
 See~\cite{resi3,resi4} and also~\cite{resi2,resi1}.

 \placepublications[criterium=all]
 \stoptext
 % end of bibbug.tex

 I get an eror:
 ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83:
 attempt to compare two nil values
 stack traceback:
        ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in
 function ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80
        [C]: in function 'sort'
        ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in 
 function 'flush'
        main ctx instance:1: in main chunk.
 \typesetpubslist ...hacks.flush(\@@pbsorttype )}
                                                  \doendoflist
 \dodoplacepublications ...sttrue \typesetpubslist
                                                  \inpublistfalse \endgroup ...
 l.14 \placepublications[criterium=all]

 If I uncomment the sorttype=bbl line, it compiles.

 Attached is the tex file, the log file, and my bib file.

 Best regards, Mikael


Nobody has an idea about this sorting problem? Hans?

Best regards, Mikael
___
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] descriptions failing in mkiv

2010-03-22 Thread Hans van der Meer

I made use of descriptions in mkii. For example:
% Define the intro for the annotation
% Block opened on \startquestion and closed on \stopquestion
% \startannotation{} ... \stopannotation; {} required
\definedescription[annotationblock][%
\c!margin=\v!no,\c!location=\v!top,\c!width=\v!broad,%
\c!headstyle=\@@exmintrostyle,\c!style=\@@exmstyle,%
\c!before=,\c!inbetween=,\c!after=,%
\c!text=\placeannotationstart]
etcetera

The error message in latest context beta is:

! Use of \@@startdescription doesn't match its definition.
\doifnextoptionalelse ...\nextoptionalcommandyes {
  #1}\def  
\nextoptionalcomma...

\setuptextrules ...odoubleargument \getparameters
  [\??tl ]
\placeannotationstart ...aloffset \setuptextrules
  [\c!style = 
\@@exmintrostyl...

\dododescriptioncomponent ...onparameter \c!label
  }\xdef  
\currentdescription...

\@@makedescription ...},\c!bookmark =,\c!list =][]
   
\@@dostartdescriptionindeed

\dodogotopar -\@@makedescription []{}
  \BeforePar \emptytoks
...

Can someone tell me if it is known to be broken in mkiv? Before  
delving too deep in the code myself


Hans van der Meer




___
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] Problem in sorting bibtex entries

2010-03-22 Thread Jean Magnan de Bornier
Le 22 mars à 10:56:45 Mikael Persson mic...@gmail.com écrit notamment:

| On Thu, Mar 18, 2010 at 12:28 PM, Mikael Persson mic...@gmail.com wrote:
|  Dear Taco and list,
| 
|  I have a problem (with the latest minimals) sorting bibtex entries:
| 
|  Consider the following example:
| 
|  % bibbug.tex
|  \usemodule[bib]
| 
|  \setuppublications[
|         sorttype=bbl,
|  ]
| 
|  \setupbibtex[
|         database=mp,
|  ]
| 
|  \starttext
|  See~\cite{resi3,resi4} and also~\cite{resi2,resi1}.
| 
|  \placepublications[criterium=all]
|  \stoptext
|  % end of bibbug.tex
| 
|  I get an eror:
|  ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83:
|  attempt to compare two nil values
|  stack traceback:
|         ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in
|  function ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80
|         [C]: in function 'sort'
|         ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in 
function 'flush'
|         main ctx instance:1: in main chunk.
|  \typesetpubslist ...hacks.flush(\@@pbsorttype )}
|                                                   \doendoflist
|  \dodoplacepublications ...sttrue \typesetpubslist
|                                                   \inpublistfalse \endgroup 
...
|  l.14 \placepublications[criterium=all]
| 
|  If I uncomment the sorttype=bbl line, it compiles.
| 
|  Attached is the tex file, the log file, and my bib file.
| 
|  Best regards, Mikael
| 

| Nobody has an idea about this sorting problem? Hans?

| Best regards, Mikael

I've had the same problem for some time...
(but can't offer any solution...)

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

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


[NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Mojca Miklavec
Hello,

I would like to set a different header on left and right page, but I
would like it to be centered on page. How do I do that?

The command
\setupheadertexts[a][b]
puts a b on one page and b a on the other while
\setupheadertexts[a][b][c][d]
puts a b on one page and c d on the other. On single-sided
layouts I could use
\setupheadertexts[a]
or
\setupheadertexts[][a][]
but using 6 parameters on double-sided doesn't work.

I am now hacking with

\setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
\def\myheaderright{\hbox to textwidth+10mm{...}}
but that's a bit ugly.

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] bib things broken in mkiv?

2010-03-22 Thread Jaroslav Hajtmar

I have similar problem. Try modify parameters of  \setuppublications macro.
Any parameters get result without error (for me) (but format is diferent)
J.

I have (for Czech lang.)\setuppublications[setupinteraction=start, 
alternative=ams, sorttype=cite, criterium=cite]

When I compile mkiv and mkii, efect is unmatched.



Dne 22.3.2010 10:49, Hans van der Meer napsal(a):
The following I didn't use for some time. Is it replaced or broken in 
mkiv?
Is there a quick fix? I must retypsetting something I need on short 
notice.


\setuppublications [numbering=short,refcommand=data] % separate -- see 
doc p2

systems : begin file literature at line 8
(../literature.tex 
(/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/base/m-obsolete.tex

systems : skipping obsolete module
)
system  : module bib loaded
publications: loading database from literature.bbl
(../literature.bbl)
publications: loading formatting style from bibl-apa
(/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/bib/bibl-apa.tex)
! Parameters must be numbered consecutively.
to be read again
   ##
argument \def \@@pbinumbercommand 
1{\bibgetvars 
\currentpublicationkey }

\p!compareprocessaction ...commalistelement {#3}#2
  \expandafter 
\quitcommalis...

\next1 #1,-\p!doprocessaction {#1}
   \doprocesscommaitem
argument ...bibgetvars \currentpublicationkey },
   \v!bib =\def 
\@@pbinumbe...

\processnextcommalist ...dodoprocesscommaitem #4#5
  ,]\relax \global 
\advance ...

...
l.17 ...ications [numbering=short,refcommand=data]
   % separate -- see 
doc p2


Hans van der Meer





___
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] header in the middle on doublesided layout

2010-03-22 Thread luigi scarso
On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 Hello,

 I would like to set a different header on left and right page, but I
 would like it to be centered on page. How do I do that?

 The command
    \setupheadertexts[a][b]
 puts a     b on one page and b     a on the other while
    \setupheadertexts[a][b][c][d]
 puts a     b on one page and c     d on the other. On single-sided
 layouts I could use
    \setupheadertexts[a]
 or
    \setupheadertexts[][a][]
 but using 6 parameters on double-sided doesn't work.

 I am now hacking with
    
 \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
    \def\myheaderright{\hbox to textwidth+10mm{...}}
 but that's a bit ugly.

 Mojca
Why don't you use setups ?
%
\showframe

\setuppagenumbering[alternative=doublesided,location=footer]

\startsetups Header:Left
\vbox to \headerheight{\vss
\ruledhbox{\centerline{  \getmarking[chapter][first]  }}
\vss}
\stopsetups

\startsetups Header:Right
\vbox to \headerheight{\vss
\ruledhbox{\centerline{ \getmarking[chapter][first] }}
\vss}
\stopsetups


\setupheadertexts[\setups{Header:Left}][][\setups{Header:Right}][]

\starttext
\dorecurse{4}{\chapter{ch \recurselevel} \section{sec \recurselevel}\page}
\stoptext
%%%


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

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


Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 12:29 PM, Mojca Miklavec wrote:

 Hello,
 
 I would like to set a different header on left and right page, but I
 would like it to be centered on page. How do I do that?
 
 The command
\setupheadertexts[a][b]
 puts a b on one page and b a on the other while
\setupheadertexts[a][b][c][d]
 puts a b on one page and c d on the other. On single-sided
 layouts I could use
\setupheadertexts[a]
 or
\setupheadertexts[][a][]
 but using 6 parameters on double-sided doesn't work.
 
 I am now hacking with

 \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
\def\myheaderright{\hbox to textwidth+10mm{...}}
 but that's a bit ugly.
 
 Mojca

Also see 
http://wiki.contextgarden.net/Headers_and_Footers#Headers_with_centered_content

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] bib things broken in mkiv?

2010-03-22 Thread Hans van der Meer
Sorry it took a few hours before responding, but first things first  
(luckily old setup of mkii turned to be working still).


Pinpointed the origin of the error message to this call:
   \the\everysetuppublications
I will search a bit further, but perhaps Taco has already enough clues  
from this experiment.

Something with processcomma?
By the way, could it be related to some other error I get in mkiv in  
processing a description? There in the log similarly something with  
parameterlists seems at hand:

! Use of \@@startdescription doesn't match its definition.
\doifnextoptionalelse ...\nextoptionalcommandyes {
  #1}\def  
\nextoptionalcomma...

\setuptextrules ...odoubleargument \getparameters
  [\??tl ]

Back to bib: From inserted code from bibl-tra.mkiv:

\writestatus{HVDM-TESTING =}{\string 
\setuppublicationlist[numbering=short,refcommand=data]}

\unprotect
\def\dosetuppublications[#1]%
  {\getparameters[\??pb][\c!alternative=,#1]%
\writestatus{HVDM-TESTING =}{after \string\getparameters  
1}%

   \doifsomething\@@pbalternative
 {\readsysfile{bibl-\@@pbalternative.tex}
{\showmessage\m!publications{6}{bibl-\@@pbalternative}}
{\showmessage\m!publications{1}{bibl-\@@pbalternative}}%
  \let\@@pbalternative\empty}%
   \getparameters[\??pb][#1]% as bibl-* can have set things back
\writestatus{HVDM-TESTING =}{after \string\getparameters  
2}%

   \the\everysetuppublications
\writestatus{HVDM-TESTING =}{after \string\the\string 
\everysetuppublications}%

   \ignorespaces}
\protect
\usepublications[literature]
\setuppublications  [alternative=apa]
\setuppublications	[numbering=short,refcommand=data] % separate -- see  
doc p2


And in the log:

HVDM-TESTING =: after \getparameters1
publications: loading formatting style from bibl-apa
(/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/context/ 
bib/bibl-apa.tex

HVDM-TESTING =: after \getparameters1
HVDM-TESTING =: after \getparameters2
HVDM-TESTING =: after \the\everysetuppublications
)
HVDM-TESTING =: after \getparameters2
HVDM-TESTING =: after \the\everysetuppublications
HVDM-TESTING =: after \getparameters1
HVDM-TESTING =: after \getparameters2
! Parameters must be numbered consecutively.
to be read again
   ##
argument \def \@@pbinumbercommand 
1{\bibgetvars  
\currentpublicationkey }

\p!compareprocessaction ...commalistelement {#3}#2
  \expandafter  
\quitcommalis...

\next1 #1,-\p!doprocessaction {#1}
   \doprocesscommaitem
argument ...bibgetvars \currentpublicationkey },
   \v!bib =\def  
\@@pbinumbe...

\processnextcommalist ...dodoprocesscommaitem #4#5
  ,]\relax \global  
\advance ...

...
l.32 ...ications[numbering=short,refcommand=data]

On 22 mrt 2010, at 10:56, Hans Hagen wrote:


On 22-3-2010 10:51, Taco Hoekwater wrote:



Hans van der Meer wrote:
The following I didn't use for some time. Is it replaced or broken  
in mkiv?
Is there a quick fix? I must retypsetting something I need on  
short notice.


Perhaps the quickest fix is to downgrade your context release for a  
bit.


This looks like an expansion bug, but I have no idea what could have
changed nor when.


mayhe hans can track down what command is triggering it, probably  
some command in the bib databae file


Hans



Hans van der Meer


___
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] \hyphenation problems

2010-03-22 Thread Tom
I am very confused. Inserting 
{\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in
Example in very large type being placed in my output and seems not to
affect the hyphenation or justification.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Monday, March 22, 2010 1:21 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \hyphenation problems

Am 22.03.10 02:48, schrieb Tom:
 When I wrap text around the right side of a figure, the justification
along
 the right margin is a bit ragged in a couple of places. One problem is
that
 it can't hyphenate cfbdatawarehouse.com, even when I provide the
hyphenation
 via a \hyphenation command.  The malhyphenation error seems to be caused
by
 the embedded dot.

 Another line ends with last letter of the last word on the line (head)
 extending into the margin. That word cannot be hyphenated. How does on get
 the justification to work correctly in such cases?

\starttext
{\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21}
\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] bib things broken in mkiv?

2010-03-22 Thread Hans van der Meer

Further tracked the error down to calling:
\setuppublications[numbering=short]
while \setuppublications[nrefcommand=data] does not give the error.

Hans van der Meer




On 22 mrt 2010, at 13:53, Hans van der Meer wrote:

Sorry it took a few hours before responding, but first things first  
(luckily old setup of mkii turned to be working still).


Pinpointed the origin of the error message to this call:
   \the\everysetuppublications
I will search a bit further, but perhaps Taco has already enough  
clues from this experiment.

Something with processcomma?
By the way, could it be related to some other error I get in mkiv in  
processing a description? There in the log similarly something with  
parameterlists seems at hand:

! Use of \@@startdescription doesn't match its definition.
\doifnextoptionalelse ...\nextoptionalcommandyes {
  #1}\def  
\nextoptionalcomma...

\setuptextrules ...odoubleargument \getparameters
  [\??tl ]

Back to bib: From inserted code from bibl-tra.mkiv:

\writestatus{HVDM-TESTING =}{\string 
\setuppublicationlist[numbering=short,refcommand=data]}

\unprotect
\def\dosetuppublications[#1]%
  {\getparameters[\??pb][\c!alternative=,#1]%
\writestatus{HVDM-TESTING =}{after \string 
\getparameters 1}%

   \doifsomething\@@pbalternative
 {\readsysfile{bibl-\@@pbalternative.tex}
{\showmessage\m!publications{6}{bibl-\@@pbalternative}}
{\showmessage\m!publications{1}{bibl-\@@pbalternative}}%
  \let\@@pbalternative\empty}%
   \getparameters[\??pb][#1]% as bibl-* can have set things back
\writestatus{HVDM-TESTING =}{after \string 
\getparameters 2}%

   \the\everysetuppublications
\writestatus{HVDM-TESTING =}{after \string\the\string 
\everysetuppublications}%

   \ignorespaces}
\protect
\usepublications[literature]
\setuppublications  [alternative=apa]
\setuppublications	[numbering=short,refcommand=data] % separate --  
see doc p2


And in the log:

HVDM-TESTING =: after \getparameters1
publications: loading formatting style from bibl-apa
(/Users/hans/Documents/TeX/context/beta/tex/texmf-context/tex/ 
context/bib/bibl-apa.tex

HVDM-TESTING =: after \getparameters1
HVDM-TESTING =: after \getparameters2
HVDM-TESTING =: after \the\everysetuppublications
)
HVDM-TESTING =: after \getparameters2
HVDM-TESTING =: after \the\everysetuppublications
HVDM-TESTING =: after \getparameters1
HVDM-TESTING =: after \getparameters2
! Parameters must be numbered consecutively.
to be read again
   ##
argument \def \@@pbinumbercommand 
1{\bibgetvars  
\currentpublicationkey }

\p!compareprocessaction ...commalistelement {#3}#2
  \expandafter  
\quitcommalis...

\next1 #1,-\p!doprocessaction {#1}
   \doprocesscommaitem
argument ...bibgetvars \currentpublicationkey },
   \v!bib =\def  
\@@pbinumbe...

\processnextcommalist ...dodoprocesscommaitem #4#5
  ,]\relax \global  
\advance ...

...
l.32 ...ications[numbering=short,refcommand=data]

On 22 mrt 2010, at 10:56, Hans Hagen wrote:


On 22-3-2010 10:51, Taco Hoekwater wrote:



Hans van der Meer wrote:
The following I didn't use for some time. Is it replaced or  
broken in mkiv?
Is there a quick fix? I must retypsetting something I need on  
short notice.


Perhaps the quickest fix is to downgrade your context release for  
a bit.


This looks like an expansion bug, but I have no idea what could have
changed nor when.


mayhe hans can track down what command is triggering it, probably  
some command in the bib databae file


Hans



Hans van der Meer


___
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] \hyphenation problems

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 2:01 PM, Tom wrote:

 I am very confused. Inserting 
 {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in
 Example in very large type being placed in my output and seems not to
 affect the hyphenation or justification.

I think Wolfgang was trying to steer you to this: 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

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] synctex broken

2010-03-22 Thread Taco Hoekwater
Hi,

For those of you willing to build and test the TRUNK of luatex:

Synctex support should be fixed in the latest revision (3536).

Best wishes,
Taco

Taco Hoekwater wrote:
 Steffen Wolfrum wrote:
 Am 21.03.2010 um 12:19 schrieb Hans Hagen:

 On 21-3-2010 10:53, Steffen Wolfrum wrote:
 Hi,

 with yesterdays beta (ConTeXt  ver: 2010.03.20 22:59 MKIV) synctex
 seems to be broken:
 no response in none direction (source-pdf).
 unrelated to context as synctex is an engine feature


 please have a look at this:

 If I run a example with the same minimal-context-distro twice,
 one with texexec, another with context the result is...

 ... here synctex is working:
 source /Users/steffen/context/tex/setuptex /Users/steffen/context/tex
 texexec $1

 (and from einleitung.tex.synctex.gz:
 SyncTeX Version:1
 Input:1:einleitung.tex
 Input:28:./einleitung-info.tmp
 Input:29:/Users/steffen/context/tex/texmf-context/tex/context/base/sort-def.mkii

 Input:30:/Users/steffen/context/tex/texmf-context/tex/context/base/sort-lan.mkii

 Output:pdf)


 ... here synctex is NOT working:
 source /Users/steffen/context/tex/setuptex /Users/steffen/context/tex
 context $1

 (and from einleitung.tex.synctex.gz:
 SyncTeX Version:1
 Input:1:/Users/steffen/Desktop/synctextest/Kapitel/einleitung.tex
 Output:dvi)

 So synctex does not work with MkIV in general?
 
 Synctex support in luatex appears broken at the moment, Akira reported
 a problem as well.
 
 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
 ___
 
___
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] \hyphenation problems

2010-03-22 Thread Tom
Boy, am I thick. Here is an example that demonstrates the problem. You
should be able to see that cfbdatawarehouse.com did not hyphenate. To get
the malhyphenation error, it is necessary to uncomment the \hyphenation
command. Changing the width of the figure to 2.0 inches will demonstrate
additional ragged right problems. An unrelated issue is that the leading for
the caption is larger than I would like.

\definepapersize[6X9][width=6.14in, height=9.21in]
\setuppapersize[6X9][6X9]

\setuplayout[
 width=middle,
 height=middle,
 backspace=.75 in,
 topspace=.5 in,
 header=.25 in,
 footer=0 in,
 headerdistance=.25 in,
 footerdistance=0 in,
 bottomspace=0.9 in,
 cutspace=.875 in,
]
\setupcaptions[location=bottom,number=no,style=rm,align=middle]

%\hyphenation{cfb-da-ta-ware-house-.-com}

\starttext

\placefigure [left]
 {{\centerline {\switchtobodyfont[9pt] Joel Wheelock in track uniform}} 
  {\centerline {\switchtobodyfont[9pt]{\it Cumberland County Historical}}}
  {\centerline {\switchtobodyfont[9pt]{\it Society, Carlisle, PA
 {\externalfigure[dummy][width=1.8 in]}


On the whole he was a good coach and deserves praise for developing such a
fine squad out of so many raw recruits, for we must remember that only a few
of our last year's Varsity men came back this year. The school's yearbook
recorded 1917 as a 3--4 season but {\it cfbdatawarehouse.com} includes two
more games, a forfeit by Temple and a 73--0 thrashing of Millersburg, giving
Wheelock a 5--4 record for his only year as a head coach.

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Thomas A. Schmitz
Sent: Monday, March 22, 2010 9:14 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \hyphenation problems


On Mar 22, 2010, at 2:01 PM, Tom wrote:

 I am very confused. Inserting 
 {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in
 Example in very large type being placed in my output and seems not to
 affect the hyphenation or justification.

I think Wolfgang was trying to steer you to this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

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
___


[NTG-context] lbrack?

2010-03-22 Thread Hans van der Meer

This program:
\setupbodyfont[lmodern]
\starttext
\type{$\lbrace$} $\lbrace$\crlf
\type{$\lbrack$} $\lbrack$\crlf
\stoptext

This does typeset a left brace but chokes on \lbrack.
I took my copy of the TeX Book and find \brack as one of the defined  
delimiters in chapter 17. How come?


ConTeXt  ver: 2010.03.20 22:59 MKIV  fmt: 2010.3.21  int: english/ 
english

fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test.tex at line 2
! Undefined control sequence.
recently read \lbrack

l.4 \type{$\lbrack$} $\lbrack
  $\crlf
?

Hans van der Meer




___
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] lbrack?

2010-03-22 Thread Aditya Mahajan

On Mon, 22 Mar 2010, Hans van der Meer wrote:


This program:
\setupbodyfont[lmodern]
\starttext
\type{$\lbrace$} $\lbrace$\crlf
\type{$\lbrack$} $\lbrack$\crlf
\stoptext

This does typeset a left brace but chokes on \lbrack.
I took my copy of the TeX Book and find \brack as one of the defined 
delimiters in chapter 17. How come?


ConTeXt  ver: 2010.03.20 22:59 MKIV  fmt: 2010.3.21  int: english/english
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test.tex at line 2
! Undefined control sequence.
recently read \lbrack

l.4 \type{$\lbrack$} $\lbrack
$\crlf
?


For some reason it is defined as \lbracket in MkIV and undefined in MkII. 
Does anyone use \lbracket? If not, we can change it to \lbrack. Otherwise, 
we can also have both \lbrack and \lbracket defined.


Any thoughts?

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] \hyphenation problems

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 3:16 PM, Tom wrote:

 Boy, am I thick. Here is an example that demonstrates the problem. You
 should be able to see that cfbdatawarehouse.com did not hyphenate. To get
 the malhyphenation error, it is necessary to uncomment the \hyphenation
 command. Changing the width of the figure to 2.0 inches will demonstrate
 additional ragged right problems. An unrelated issue is that the leading for
 the caption is larger than I would like.

:-) Not sure if I can solve all your problems, but here are a few pointers:

1. for the url, you could use a command which provides a url that can be 
hyphenated. Surprisingly enough, it is called \hyphenatedurl{}.

2. TeX doesn't hyphenate in certain situations, e.g., when a word is already 
hyphenated (and apparently when it contains a period). In ConTeXt, you can wrap 
these symbols into ||, and TeX will happily hyphenate (see section 7.8 of 
cont-eni). In your case, you can write cfbdatawarehouse|.|com

3. Your caption: well, since you do not apply the bodyfontswitch to all of the 
lines, but to each line individually, you never give ConTeXt a chance to 
calculate the interlinespace. You shouldn't format individual lines, but use 
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the 
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?

4. As for words sticking out in the margin: TeX does its best, but sometimes, 
no good line breaks can be found. A certain word processor will then go on and 
stretch your interword space and even interletter space within words. TeX 
doesn't do that and will let words stick out to warn you. If you don't want to 
/ can't edit the text, you'll have to allow it to be less strict. You should 
read about \setuptolerance in cont-eni, section 4.13.

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] \hyphenation problems

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:03, schrieb Thomas A. Schmitz:

4. As for words sticking out in the margin: TeX does its best, but sometimes, 
no good line breaks can be found. A certain word processor will then go on and 
stretch your interword space and even interletter space within words. TeX 
doesn't do that and will let words stick out to warn you. If you don't want to 
/ can't edit the text, you'll have to allow it to be less strict. You should 
read about \setuptolerance in cont-eni, section 4.13.
   

You can tell TeX to stretch the interword space, version 3 introduced
the \emergencystretch comand, you can use it in ConTeXt with

  \setupalign[stretch]

or

  \setuptolerance[horizontal,stretch]

In combination with protrusion and font expansion this prevents nearly
all overfull boxes in the running text (at least for me).

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] lbrack?

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:00, schrieb Aditya Mahajan:
For some reason it is defined as \lbracket in MkIV and undefined in 
MkII. Does anyone use \lbracket? If not, we can change it to \lbrack. 
Otherwise, we can also have both \lbrack and \lbracket defined.


Any thoughts?
Either both or the long form only, memory is no longer a reason to 
create funny names like \infty (can we add \infinity please)


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] object in use

2010-03-22 Thread Hans van der Meer
Any idea what can cause the following error? I never encountered such  
a thing so I don't know where to start hunting. The error is new in  
mkiv, did not occur in mkii.


! LuaTeX error ...beta/tex/texmf-context/tex/context/base/lpdf-ini.lua: 
534: pdf.immediateobj() object in use

stack traceback:
[C]: in function 'pdfimmediateobj'
	...beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:534: in  
function '?'
	...beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:462: in  
function 'run'
	...beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:485: in  
function 'finalizedocument'

main ctx instance:1: in main chunk.
inserted text ...einjections.finalizedocument()}

inserted text \the \everylastbackendshipout
  \flushtextdata
\actualshipout ...e \relax \the \everylastshipout
  \global  
\everylastshipout ...

\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno  
\afters...

\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the  
\everyaftershipout \a...

\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
   
\resetselectiepagina \incr...

...
l.41 \stopproduct

Hans van der Meer




___
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] \hyphenation problems

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:03, schrieb Thomas A. Schmitz:

3. Your caption: well, since you do not apply the bodyfontswitch to all of the 
lines, but to each line individually, you never give ConTeXt a chance to 
calculate the interlinespace. You shouldn't format individual lines, but use 
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the 
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?
   

\setupcaptions
[number=no,
style={\switchtobodyfont[9pt]\raggedcenter}]

\starttext

\placefigure
[left]
{Joel Wheelock in track uniform\crlf
\it Cumberland County Historical\crlf
Society, Carlisle, PA}
{\externalfigure[dummy][width=1.8in]}

On the whole he was a good coach and deserves praise for developing such a
fine squad out of so many raw recruits, for we must remember that only a few
of our last year's Varsity men came back this year. The school's yearbook
recorded 1917 as a 3–4 season but {\it cfbdatawarehouse.com} includes two
more games, a forfeit by Temple and a 73–0 thrashing of Millersburg, giving
Wheelock a 5–4 record for his only year as a head coach.

\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] \hyphenation problems

2010-03-22 Thread Peter Rolf
Am 22.03.2010 15:16, schrieb Tom:
 Boy, am I thick. Here is an example that demonstrates the problem. You
 should be able to see that cfbdatawarehouse.com did not hyphenate. To get
 the malhyphenation error, it is necessary to uncomment the \hyphenation
 command. Changing the width of the figure to 2.0 inches will demonstrate
 additional ragged right problems. An unrelated issue is that the leading for
 the caption is larger than I would like.
 

same topic, different example. look at the attached picture to see how
the original text 'rgb(255,255,255)' was broken. quite funny :)

hyphenation has its limitations. i finally used a simple macro to get
the desired result.

\def\RGB(#1,#2,#3){\bgroup\nohyphens rgb\allowbreak
(#1,\allowbreak#2,\allowbreak#3)\egroup}


best wishes,

Peter

 \definepapersize[6X9][width=6.14in, height=9.21in]
 \setuppapersize[6X9][6X9]
 
 \setuplayout[
  width=middle,
  height=middle,
  backspace=.75 in,
  topspace=.5 in,
  header=.25 in,
  footer=0 in,
  headerdistance=.25 in,
  footerdistance=0 in,
  bottomspace=0.9 in,
  cutspace=.875 in,
 ]
 \setupcaptions[location=bottom,number=no,style=rm,align=middle]
 
 %\hyphenation{cfb-da-ta-ware-house-.-com}
 
 \starttext
 
 \placefigure [left]
  {{\centerline {\switchtobodyfont[9pt] Joel Wheelock in track uniform}} 
   {\centerline {\switchtobodyfont[9pt]{\it Cumberland County Historical}}}
   {\centerline {\switchtobodyfont[9pt]{\it Society, Carlisle, PA
  {\externalfigure[dummy][width=1.8 in]}
 
 
 On the whole he was a good coach and deserves praise for developing such a
 fine squad out of so many raw recruits, for we must remember that only a few
 of our last year's Varsity men came back this year. The school's yearbook
 recorded 1917 as a 3--4 season but {\it cfbdatawarehouse.com} includes two
 more games, a forfeit by Temple and a 73--0 thrashing of Millersburg, giving
 Wheelock a 5--4 record for his only year as a head coach.
 
 \stoptext
 
 Tom Benjey
 717-258-9733 voice
 717-243-0074 fax
 Twitter: @TomBenjey
 
 
 
 
 -Original Message-
 From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
 Behalf Of Thomas A. Schmitz
 Sent: Monday, March 22, 2010 9:14 AM
 To: mailing list for ConTeXt users
 Subject: Re: [NTG-context] \hyphenation problems
 
 
 On Mar 22, 2010, at 2:01 PM, Tom wrote:
 
 I am very confused. Inserting 
 {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in
 Example in very large type being placed in my output and seems not to
 affect the hyphenation or justification.
 
 I think Wolfgang was trying to steer you to this:
 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
 
 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
 ___
 


attachment: linebreak.png___
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] lbrack?

2010-03-22 Thread Hans van der Meer


On 22 mrt 2010, at 16:18, Wolfgang Schuster wrote:


Am 22.03.10 16:00, schrieb Aditya Mahajan:
For some reason it is defined as \lbracket in MkIV and undefined in  
MkII. Does anyone use \lbracket? If not, we can change it to  
\lbrack. Otherwise, we can also have both \lbrack and \lbracket  
defined.


Any thoughts?
Either both or the long form only, memory is no longer a reason to  
create funny names like \infty (can we add \infinity please)


I strongly disagree with the idea not defining the forms \lbrack and  
\lbrace. Fact is that Knuth defined them in the base of TeX's math. We  
should at least stay compatible with that. And please do not also kill  
\infty. Why then not also change \equiv to \equivalent, \approx to  
\approximate etc, etc? If we start diverging in that way, we loose all  
ground. To me that sounds as a horror scenario.


Hans van der Meer

___
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] header in the middle on doublesided layout

2010-03-22 Thread luigi scarso
On Mon, Mar 22, 2010 at 12:58 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec
 mojca.miklavec.li...@gmail.com wrote:
 Hello,

 I would like to set a different header on left and right page, but I
 would like it to be centered on page. How do I do that?

 The command
    \setupheadertexts[a][b]
 puts a     b on one page and b     a on the other while
    \setupheadertexts[a][b][c][d]
 puts a     b on one page and c     d on the other. On single-sided
 layouts I could use
    \setupheadertexts[a]
 or
    \setupheadertexts[][a][]
 but using 6 parameters on double-sided doesn't work.

 I am now hacking with
    
 \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
    \def\myheaderright{\hbox to textwidth+10mm{...}}
 but that's a bit ugly.

 Mojca
 Why don't you use setups ?

Sorry, the first was wrong.
%

\showframe

\setuppagenumbering[alternative=doublesided,location=footer]

\startsetups Header:Left
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Left \getmarking[chapter][first]}}
\vss}
\stopsetups


\startsetups Header:Right
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Right \getmarking[chapter][last]}}
\vss}
\stopsetups


\setupheadertexts[\setups{Header:Left}][][][\setups{Header:Right}]

\starttext
\dorecurse{4}{%
\edef\T{\recurselevel}
\expandafter\chapter\expandafter{\recurselevel{}Chapter } \section{Section}}
\stoptext


 %%%

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

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


Re: [NTG-context] lbrack?

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:32, schrieb Hans van der Meer:

Any thoughts?
Either both or the long form only, memory is no longer a reason to 
create funny names like \infty (can we add \infinity please)
I strongly disagree with the idea not defining the forms \lbrack and 
\lbrace.

How do you understand both?
Fact is that Knuth defined them in the base of TeX's math. We should 
at least stay compatible with that. And please do not also kill 
\infty. Why then not also change \equiv to \equivalent, \approx to 
\approximate etc, etc? If we start diverging in that way, we loose all 
ground. To me that sounds as a horror scenario.
Who said anything about removing \infty, when you read between the lines 
I asked if we can add \infinity as long form for \infty.


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] header in the middle on doublesided layout

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:35, schrieb luigi scarso:

\starttext
\dorecurse{4}{%
\edef\T{\recurselevel}
\expandafter\chapter\expandafter{\recurselevel{}Chapter } \section{Section}}
\stoptext
   

\dorecurse{4}{\chapter{#1 Chapter}\section{Section}}

or

\dorecurse{4}{\expanded{\chapter{\recurselevel{} Chapter}}\section{Section}}

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] lbrack?

2010-03-22 Thread Hans van der Meer


On 22 mrt 2010, at 16:37, Wolfgang Schuster wrote:


Am 22.03.10 16:32, schrieb Hans van der Meer:

Any thoughts?
Either both or the long form only, memory is no longer a reason to  
create funny names like \infty (can we add \infinity please)
I strongly disagree with the idea not defining the forms \lbrack  
and \lbrace.

How do you understand both?
Fact is that Knuth defined them in the base of TeX's math. We  
should at least stay compatible with that. And please do not also  
kill \infty. Why then not also change \equiv to \equivalent,  
\approx to \approximate etc, etc? If we start diverging in that  
way, we loose all ground. To me that sounds as a horror scenario.
Who said anything about removing \infty, when you read between the  
lines I asked if we can add \infinity as long form for \infty.



Good. I have absolute no objection to adding \infinity as an extra to  
\infty. However, I would plea for a process whereby can be determined  
which names to add. Will it for example be \infinity? Or do we choose  
\infinite? Otherwise it might lead to a plethora of nearly similar  
names for all those Knuth'ian short names.


Hans van der Meer

___
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] header in the middle on doublesided layout

2010-03-22 Thread luigi scarso
On Mon, Mar 22, 2010 at 4:40 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Am 22.03.10 16:35, schrieb luigi scarso:

 \starttext
 \dorecurse{4}{%
 \edef\T{\recurselevel}
 \expandafter\chapter\expandafter{\recurselevel{}Chapter }
 \section{Section}}
 \stoptext


 \dorecurse{4}{\chapter{#1 Chapter}\section{Section}}
Runaway argument?
{\dorecurse {4}{\chapter {##1 Chapter}\section {Section}} \stoptext
! File ended while scanning use of \xdorecurse.
inserted text
\par
* ./test.tex



 or
 \dorecurse{4}{\expanded{\chapter{\recurselevel{} Chapter}}\section{Section}}


Runaway argument?
{\dorecurse {4}{\expanded {\chapter {\recurselevel {} Chapter}}\section \ETC.
! File ended while scanning use of \xdorecurse.
inserted text
\par
* ./test.tex



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

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


Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Wolfgang Schuster

\starttext

\dorecurse{4}{\chapter{#1 Chapter}\section{Section}}

\dorecurse{4}{\expanded{\chapter{\recurselevel{} Chapter}}\section{Section}}

\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] header in the middle on doublesided layout

2010-03-22 Thread luigi scarso
On Mon, Mar 22, 2010 at 5:02 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 \starttext

 \dorecurse{4}{\chapter{#1 Chapter}\section{Section}}

 \dorecurse{4}{\expanded{\chapter{\recurselevel{} Chapter}}\section{Section}}

 \stoptext

 Wolfgang

aha, now I've seen :'ve put them inside my first \direcurse{4}{%..
BTW mkii and miv are different here.


%%%
\showframe

\setuppagenumbering[alternative=doublesided,location=footer]

\startsetups Header:Left
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Left \getmarking[chapter][first]}}
\vss}
\stopsetups


\startsetups Header:Right
\vbox to \headerheight{\vss
\ruledhbox{\centerline{\strut Header:Right \getmarking[chapter][last]}}
\vss}
\stopsetups


\setupheadertexts[\setups{Header:Left}][][][\setups{Header:Right}]

\starttext
\dorecurse{4}{%
\expandafter\chapter\expandafter{\recurselevel{}Chapter } \section{Section}
}
\dorecurse{4}{\chapter{#1 Chapter}\section{Section}}
\dorecurse{4}{\expanded{\chapter{ Chapter (\recurselevel)}}\section{Section}}
\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
 ___




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

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


Re: [NTG-context] lbrack?

2010-03-22 Thread Aditya Mahajan

On Mon, 22 Mar 2010, Hans van der Meer wrote:



On 22 mrt 2010, at 16:37, Wolfgang Schuster wrote:


Am 22.03.10 16:32, schrieb Hans van der Meer:

Any thoughts?
Either both or the long form only, memory is no longer a reason to create 
funny names like \infty (can we add \infinity please)
I strongly disagree with the idea not defining the forms \lbrack and 
\lbrace.

How do you understand both?
Fact is that Knuth defined them in the base of TeX's math. We should at 
least stay compatible with that. And please do not also kill \infty. Why 
then not also change \equiv to \equivalent, \approx to \approximate etc, 
etc? If we start diverging in that way, we loose all ground. To me that 
sounds as a horror scenario.
Who said anything about removing \infty, when you read between the lines I 
asked if we can add \infinity as long form for \infty.



Good. I have absolute no objection to adding \infinity as an extra to \infty. 
However, I would plea for a process whereby can be determined which names to 
add.


If you want to have a process for debating names, then I do not think that 
the list in char-def is every going to be 10% full. Even right now, we 
have not been able to add all the existing short names.


As a start, I think that we should support all full names in mathml. 
Someone has already gone through the painful process of having a consensus 
on the symbol names, so lets just use that. We can worry about the more 
obscure symbols later.



Will it for example be \infinity? Or do we choose \infinite?


In this case, the choice is easy. The symbol has only one name: infinity. 
Mathml has an entity called infinity. I have not heard it being called 
infinite.


Otherwise it might lead to a plethora of nearly similar names for all 
those Knuth'ian short names.


I agree. But I doubt that having a debate about the full name of the 
symbol is going to help. Different fields use different names for the same 
symbol. Knuth short names are not perfect to being with. My personal 
favorites being \cap and \cup for \intersection and \union.


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
___


[NTG-context] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Michail Vidiassov

Dear All,

I am running Mac OS X 10.6.2, latest minimals
luatex is beta-0.52.0-2010031913, Mach-O 64-bit executable x86_64

the fillowing file test.tex fails to compile with context test.tex

\nopdfcompression
\startluacode
local attr = lpdf.dictionary {}
pdf.immediateobj(streamfile,test.tex,attr())
-- pdf.immediateobj(stream,test.tex,attr())
\stopluacode
\starttext
\startTEXpage
Test.
\stopTEXpage
\stoptext

complaining

MTXrun | fatal error: no return code, message: luatex: execution interrupted

and producing PDF file test.pdf where, it seems, luatex has problems
with file size. PDF file starts as follows (note empty Length)
%PDF-1.6
some binary data
9 0 obj 

/Length



stream
\nopdfcompression
\startluacode
local attr = lpdf.dictionary {}
pdf.immediateobj(streamfile,test.tex,attr())
-- pdf.immediateobj(stream,test.tex,attr())
\stopluacode
\starttext
\startTEXpage
Test.
\stopTEXpage
\stoptext
binary garbage
binary garbage
...

The latest minimals under Mac OS X 10.5.8 running on PPC
(luatex beta-0.52.0-2010031913, Mach-o executable ppc)
have no such problem.

Please, test it on your system. Does it work for you?
Is something broken in my setup or we are to complain to 
developers/builders/investigate luatex workings ourselves?


Sincerely, Michail

PS. If I uncomment pdf.immediateobj(stream, and comment
pdf.immediateobj(streamfile, things do work.
PPS. The code above is a minimal test case, I am really revisiting
 3D annotations.
___
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] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Taco Hoekwater


Michail Vidiassov wrote:
 
 complaining
 
 MTXrun | fatal error: no return code, message: luatex: execution
 interrupted

That's clearly a big crash. Does your luatex have revision numbers
in the banner already?

Anway, it runs ok here with rev. 3535 on linux 32. Don't have
access to a 64-bit machine right now.

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

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


Re: [NTG-context] object in use

2010-03-22 Thread Taco Hoekwater


Hans van der Meer wrote:
 Any idea what can cause the following error? I never encountered such a

The error is caused by line 534 in lpdf-ini.lua, which is called
from line 462, which is called from line 485 (the lpdf.finalizedocument
function). But that was in the traceback already.

I guess you will get this error if lpdf.finalizedocument is called
twice. How this can happen, I have no idea. As the author of the source
file resulting in this error, you are in a much better position to
figure this out than I am ;)

Best wishes,
Taco

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

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


Re: [NTG-context] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 17:35, schrieb Taco Hoekwater:

Michail Vidiassov wrote:
   

complaining

MTXrun | fatal error: no return code, message: luatex: execution
interrupted
 

That's clearly a big crash. Does your luatex have revision numbers
in the banner already?
   

Mac OS 10.6.2

This is LuaTeX, Version beta-0.53.0-2010032217 (rev 3536)

MTXrun | fatal error: no return code, message: luatex: execution interrupted

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] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Taco Hoekwater


Wolfgang Schuster wrote:
 Am 22.03.10 17:35, schrieb Taco Hoekwater:
 Michail Vidiassov wrote:
   
 complaining

 MTXrun | fatal error: no return code, message: luatex: execution
 interrupted
  
 That's clearly a big crash. Does your luatex have revision numbers
 in the banner already?

 Mac OS 10.6.2
 
 This is LuaTeX, Version beta-0.53.0-2010032217 (rev 3536)
 
 MTXrun | fatal error: no return code, message: luatex: execution
 interrupted

Unless you can backtrace this yourself, it should go into the tracker.
Once the crash point is found, it should be a simple fix (probably
some 64bit vs 32bit thing).
___
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] descriptions failing in mkiv

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 11:01, schrieb Hans van der Meer:

I made use of descriptions in mkii. For example:
% Define the intro for the annotation
% Block opened on \startquestion and closed on \stopquestion
% \startannotation{} ... \stopannotation; {} required
\definedescription[annotationblock][%
\c!margin=\v!no,\c!location=\v!top,\c!width=\v!broad,%
\c!headstyle=\@@exmintrostyle,\c!style=\@@exmstyle,%
\c!before=,\c!inbetween=,\c!after=,%
\c!text=\placeannotationstart]
etcetera

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

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] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Michail Vidiassov



On Mon, 22 Mar 2010, Taco Hoekwater wrote:


Anway, it runs ok here with rev. 3535 on linux 32. Don't have
access to a 64-bit machine right now.


latest minimals 
Debian 5.0.4, Linux debian 2.6.2-2-amd64

luatex beta-0.52.0-2010031622 ELF 64-bit LSB executable, x86-64, dynamically 
linked for GNU/Linux 2.6.4

Runs OK.



___
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] descriptions failing in mkiv

2010-03-22 Thread Hans van der Meer
Problem no longer existing. From another typeset text it later turned  
out to be the lack of \lbrack which manifested itself here as this  
error.
And of course I always try to make a minimal example in the first  
place as I know its importance, but will not succeed everytime.


Hans van der Meer




On 22 mrt 2010, at 18:14, Wolfgang Schuster wrote:


Am 22.03.10 11:01, schrieb Hans van der Meer:


I made use of descriptions in mkii. For example:
% Define the intro for the annotation
% Block opened on \startquestion and closed on \stopquestion
% \startannotation{} ... \stopannotation; {} required
\definedescription[annotationblock][%
 \c!margin=\v!no,\c!location=\v!top,\c!width=\v!broad,%
 \c!headstyle=\@@exmintrostyle,\c!style=\@@exmstyle,%
 \c!before=,\c!inbetween=,\c!after=,%
 \c!text=\placeannotationstart]
etcetera

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

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] contextgarden.net is running again

2010-03-22 Thread Patrick Gundlach
Hi,

Hans van der Meer reported a broken minimals update. This was due to changes in 
the nameserver handling. Now the move to the new domain hoster is complete and 
everything should be back to normal.

Thanks for your patience,

Patrick

___
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] Missing math symbols (MK-IV)

2010-03-22 Thread gummybears
Hi,

In a previous email I commented that the integral symbols, when using the
unicode font Cambria or Asana,
don't look ok. It has to do with the way e.g \iint, \iiint etc are
constructed. Whether or
not the symbol is present in the unicode font, the tex macro \repeatintegral
is used
(fallback option). I don't want to use the Cambria or Asana font entirely,
as the other math typesetting
doesn't look nice. Just for the missing symbols.

Found an earlier post (Thomas A. Schmitz titled symbols in luatex date
2008-01-02) where
a solution was presented by Wolfgang Schuster. Basically I am using his
solution
and came up with the following (only works ok in text mode). Also looked at
definemathcharacter
but not sure how to make it work with unicode fonts (could not find any
documentation,
looked at the source files, but don't know what to fill in for the 6
parameters to definemathcharacter)

Question : what is the right way I can make this work (definemathcharacter,
something else) ?
Question : some of these symbols are defined in char-def.lua but missing in
math-vfu.lua.
What is needed to make them active ? Can I do it myself and send a list of
missing symbols with their unicode value ?

Thanks for the help.

% test of some math symbols
\starttypescript[serif][mathsymbols][name]
  \definefontsynonym [Serif] [name:asana][features=default]
\stoptypescript
\starttypescript[MathSymbols]
\definetypeface [MathSymbols] [rm] [serif] [mathsymbols] [default]
\stoptypescript
\usetypescript[MathSymbols]

% undefine iint, iiint, nt
\definemathcommand [iint]   {}
\definemathcommand [iiint]  {}
\definemathcommand [nt] {}
% define my own
\definecharacter integral
{\bgroup\switchtobodyfont[MathSymbols]\char222B\egroup}
\definecharacter dblintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222C\egroup}
\definecharacter tripleintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222D\egroup}
\definecharacter contourintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222E\egroup}
\definecharacter surfaceintegral
{\bgroup\switchtobodyfont[MathSymbols]\char222F\egroup}
\definecharacter volumeintegral
{\bgroup\switchtobodyfont[MathSymbols]\char2230\egroup}
\starttext
integral \integral double integral \dblintegral triple integral
\tripleintegral
\startformula
\startalign[n=2]
\NC \text{integral} \NC \text{\integral}_{a}^{b} \NR
\NC \text{double integral} \NC \text{\dblintegral}_{a}^{b}\NR
\NC \text{triple integral} \NC \text{\tripleintegral}\NR
\NC \text{contour integral} \NC \text{\contourintegral}_{a}^{b} \NR
\NC \text{surface integral} \NC \text{\surfaceintegral}_{a}^{b} \NR
\NC \text{volume integral}  \NC \text{\volumeintegral}_{a}^{b} \NR
\stopalign
\stopformula
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \hyphenation problems

2010-03-22 Thread Tom
As the Pennsylvania Dutch say, Wonderful good. The captions are now fine
except when used in combinations of two images. Then the font and spacing is
the same as for the text. The \setupcaption seems to be ignored for
combinations.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Thomas A. Schmitz
Sent: Monday, March 22, 2010 11:03 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \hyphenation problems


On Mar 22, 2010, at 3:16 PM, Tom wrote:

 Boy, am I thick. Here is an example that demonstrates the problem. You
 should be able to see that cfbdatawarehouse.com did not hyphenate. To get
 the malhyphenation error, it is necessary to uncomment the \hyphenation
 command. Changing the width of the figure to 2.0 inches will demonstrate
 additional ragged right problems. An unrelated issue is that the leading
for
 the caption is larger than I would like.

:-) Not sure if I can solve all your problems, but here are a few pointers:

1. for the url, you could use a command which provides a url that can be
hyphenated. Surprisingly enough, it is called \hyphenatedurl{}.

2. TeX doesn't hyphenate in certain situations, e.g., when a word is already
hyphenated (and apparently when it contains a period). In ConTeXt, you can
wrap these symbols into ||, and TeX will happily hyphenate (see section 7.8
of cont-eni). In your case, you can write cfbdatawarehouse|.|com

3. Your caption: well, since you do not apply the bodyfontswitch to all of
the lines, but to each line individually, you never give ConTeXt a chance to
calculate the interlinespace. You shouldn't format individual lines, but use
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?

4. As for words sticking out in the margin: TeX does its best, but
sometimes, no good line breaks can be found. A certain word processor will
then go on and stretch your interword space and even interletter space
within words. TeX doesn't do that and will let words stick out to warn you.
If you don't want to / can't edit the text, you'll have to allow it to be
less strict. You should read about \setuptolerance in cont-eni, section
4.13.

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

___


___
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] beta: \underbar is broken (mkiv)

2010-03-22 Thread Peter Rolf
Hi,

the underbar line is drawn vertically here.

\starttext
sonder\underbar{bar}
\stoptext

MTXrun | current version: 2010.03.20 22:59
This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535)

Peter
___
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] object in use

2010-03-22 Thread Hans Hagen

On 22-3-2010 16:20, Hans van der Meer wrote:

Any idea what can cause the following error? I never encountered such a
thing so I don't know where to start hunting. The error is new in mkiv,
did not occur in mkii.


sure, as mkiv has a complete different backend

can you run with

\enabletrackers[backend.resources]

and see what gets flushed?


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

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


Re: [NTG-context] lbrack?

2010-03-22 Thread Hans Hagen

On 22-3-2010 16:32, Hans van der Meer wrote:


On 22 mrt 2010, at 16:18, Wolfgang Schuster wrote:


Am 22.03.10 16:00, schrieb Aditya Mahajan:

For some reason it is defined as \lbracket in MkIV and undefined in
MkII. Does anyone use \lbracket? If not, we can change it to \lbrack.
Otherwise, we can also have both \lbrack and \lbracket defined.

Any thoughts?

Either both or the long form only, memory is no longer a reason to
create funny names like \infty (can we add \infinity please)


I strongly disagree with the idea not defining the forms \lbrack and
\lbrace. Fact is that Knuth defined them in the base of TeX's math. We
should at least stay compatible with that. And please do not also kill
\infty. Why then not also change \equiv to \equivalent, \approx to
\approximate etc, etc? If we start diverging in that way, we loose all
ground. To me that sounds as a horror scenario.


actually i'd like \mathequivalent as core command and then we can have 
\eq as shortcut


(just as we have \eacute etc)


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

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


Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-22 Thread Hans van der Meer

Just checked here in
ConTeXt  ver: 2010.03.20 22:59 MKIV  fmt: 2010.3.21  int: english/ 
english

Can confirm that:

\starttext
sonder\underbar{bar}

gives vertical bar, but the following (note the blank line after  
starttext) does not.


\starttext

sonder\underbar{bar}

met vriendelijke groet
Hans van der Meer




On 22 mrt 2010, at 21:06, Peter Rolf wrote:


Hi,

the underbar line is drawn vertically here.

\starttext
sonder\underbar{bar}
\stoptext

MTXrun | current version: 2010.03.20 22:59
This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535)

Peter
___
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] luatex pdf.immediateobj(streamfile error on Mac OS X Intel 64

2010-03-22 Thread Mojca Miklavec
On Mon, Mar 22, 2010 at 17:35, Taco Hoekwater wrote:


 Michail Vidiassov wrote:

 complaining

 MTXrun | fatal error: no return code, message: luatex: execution
 interrupted

 That's clearly a big crash. Does your luatex have revision numbers
 in the banner already?

No (but I can tell you that it's the released version of beta-0.52).
Binaries in minimals don't contain the SVN revision number information
(maybe I just need to figure out which additional folder I need to
sync, so that svn info will work properly; before you have introduced
compilation of revision numbers into the binary, I decided to use
rsync --exclude '.svn' ... and I need to fix that).

I can confirm the crash and confirm that the 32-bit and PPC version of
the same luatex version doesn't crash.

Mojca

PS: this is the first time that I see the following error in mkiv
since a long time:

 context str.tex
MTXrun | run 1: luatex
--fmt=/Users/mojca/context/tex/texmf-cache/luatex-cache/context/bce2a35a5270714da084d11faf744f76/formats/cont-en
--lua=/Users/mojca/context/tex/texmf-cache/luatex-cache/context/bce2a35a5270714da084d11faf744f76/formats/cont-en.lui
--backend=pdf ./str.tex
This is LuaTeX, Version beta-0.52.0-2010031913
 \write18 enabled.

(Fatal format file error; I'm stymied)MTXrun | fatal error: return code: 1

Minimal steps to reproduce it: overwrite one luatex binary with
another. The format gets regenerated automatically when ConTeXt
version changes, but apparently not when LuaTeX chenges.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-22 Thread Hans Hagen

On 22-3-2010 21:06, Peter Rolf wrote:

Hi,

the underbar line is drawn vertically here.

\starttext
sonder\underbar{bar}
\stoptext

MTXrun | current version: 2010.03.20 22:59
This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535)


looks like a but in luatex ... when i use a long word we get a rule with 
much ht/dp while in fact quite some wd is set; the node reports the 
right values ... i'll test it with taco tommorrow


Hans

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

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


Re: [NTG-context] bib things broken in mkiv?

2010-03-22 Thread Hans Hagen

On 22-3-2010 14:08, Hans van der Meer wrote:

Further tracked the error down to calling:
\setuppublications[numbering=short]
while \setuppublications[nrefcommand=data] does not give the error.


are there tex commands in yout bin database?


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

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


Re: [NTG-context] lbrack?

2010-03-22 Thread Hans Hagen

On 22-3-2010 16:00, Aditya Mahajan wrote:

On Mon, 22 Mar 2010, Hans van der Meer wrote:


This program:
\setupbodyfont[lmodern]
\starttext
\type{$\lbrace$} $\lbrace$\crlf
\type{$\lbrack$} $\lbrack$\crlf
\stoptext

This does typeset a left brace but chokes on \lbrack.
I took my copy of the TeX Book and find \brack as one of the defined
delimiters in chapter 17. How come?

ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.21 int: english/english
fonts : preloading latin modern fonts
bodyfont : 12pt rm is loaded
language : language en is active
systems : begin file test.tex at line 2
! Undefined control sequence.
recently read \lbrack

l.4 \type{$\lbrack$} $\lbrack
$\crlf
?


For some reason it is defined as \lbracket in MkIV and undefined in
MkII. Does anyone use \lbracket? If not, we can change it to \lbrack.
Otherwise, we can also have both \lbrack and \lbracket defined.

Any thoughts?



i'll change it to lbrack + rbrack ... indeed we should use mml names in 
char-def and then have a list of equivalents but it has a low priority


Hans


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

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


Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Mojca Miklavec
On Mon, Mar 22, 2010 at 12:58, luigi scarso wrote:
 On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec wrote:

 I would like to set a different header on left and right page, but I
 would like it to be centered on page. How do I do that?

 I am now hacking with
    
 \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
    \def\myheaderright{\hbox to textwidth+10mm{...}}
 but that's a bit ugly.

 Mojca
 Why don't you use setups ?

I do use setups on the outer level (not on the inner), but that hardly
makes a difference (\setups{Header:Left} and \myleftheader are almost
equal).

\startsetups[header with logo]
  \doifmodeelse
{twosided}
{\setupheadertexts
[\hbox{\kern-5mm\myheaderright}][]
[][\hbox{\myheaderleft\kern-5mm}]}
{\setupheadertexts[\myheaderright]}
\stopsetups

and then another structure full of hboxes, struts  kerns ... but I
find it ugly to use explicit kerning just to get the header alignment
right.

But apparently everyone is hacking with boxes here. That's also OK if
there's no better option.

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

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


Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Hans Hagen

On 22-3-2010 22:04, Mojca Miklavec wrote:

On Mon, Mar 22, 2010 at 12:58, luigi scarso wrote:

On Mon, Mar 22, 2010 at 12:29 PM, Mojca Miklavec wrote:


I would like to set a different header on left and right page, but I
would like it to be centered on page. How do I do that?

I am now hacking with

\setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
\def\myheaderright{\hbox to textwidth+10mm{...}}
but that's a bit ugly.

Mojca

Why don't you use setups ?


I do use setups on the outer level (not on the inner), but that hardly
makes a difference (\setups{Header:Left} and \myleftheader are almost
equal).

\startsetups[header with logo]
   \doifmodeelse
 {twosided}
 {\setupheadertexts
 [\hbox{\kern-5mm\myheaderright}][]
 [][\hbox{\myheaderleft\kern-5mm}]}
 {\setupheadertexts[\myheaderright]}
\stopsetups

and then another structure full of hboxes, struts  kerns ... but I
find it ugly to use explicit kerning just to get the header alignment
right.

But apparently everyone is hacking with boxes here. That's also OK if
there's no better option.


\kern0pt should work or else

\kern0pt\strut

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

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


Re: [NTG-context] lbrack?

2010-03-22 Thread Aditya Mahajan

On Mon, 22 Mar 2010, Hans Hagen wrote:


On 22-3-2010 16:32, Hans van der Meer wrote:


On 22 mrt 2010, at 16:18, Wolfgang Schuster wrote:


Am 22.03.10 16:00, schrieb Aditya Mahajan:

For some reason it is defined as \lbracket in MkIV and undefined in
MkII. Does anyone use \lbracket? If not, we can change it to \lbrack.
Otherwise, we can also have both \lbrack and \lbracket defined.

Any thoughts?

Either both or the long form only, memory is no longer a reason to
create funny names like \infty (can we add \infinity please)


I strongly disagree with the idea not defining the forms \lbrack and
\lbrace. Fact is that Knuth defined them in the base of TeX's math. We
should at least stay compatible with that. And please do not also kill
\infty. Why then not also change \equiv to \equivalent, \approx to
\approximate etc, etc? If we start diverging in that way, we loose all
ground. To me that sounds as a horror scenario.


actually i'd like \mathequivalent as core command and then we can have \eq as 
shortcut


That sounds good. Do you want the shortcuts to be defined in char-def or 
someplace else?


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] lbrack?

2010-03-22 Thread Hans Hagen

On 22-3-2010 22:38, Aditya Mahajan wrote:


That sounds good. Do you want the shortcuts to be defined in char-def or
someplace else?


let's make a list and then put the long ones in chardef and the short 
ones in a mkiv file


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

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


Re: [NTG-context] new contextbeta distribution broken?

2010-03-22 Thread views63
2010/3/21 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.03.10 13:13, schrieb Hans van der Meer:

 Suddenly got this error from: \setupinterlinespace[big]

 Fixed.

 MTXrun | current version: 2010.03.20 22:59

 Wolfgang

put it  in front of  \starttext  is invalid
___
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
___