[NTG-context] how to prevent page-break after \blank

2010-07-22 Thread Peter Münster
Hello,

How is it possible to prevent a page break after the \blank?

\starttext
\dorecurse{730}{text }
\blank[small]
\page[no] % does not work
bla bla bla
\stoptext

TIA for any help, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] how to prevent page-break after \blank

2010-07-22 Thread Peter Münster
On Thu, Jul 22 2010, Peter Münster wrote:

 How is it possible to prevent a page break after the \blank?
 
 \starttext
 \dorecurse{730}{text }
 \blank[small]
 \page[no] % does not work
 bla bla bla
 \stoptext

Solution:

\starttext
\dorecurse{730}{text }
\blank[small, samepage]
bla bla bla
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
Hi all,

what would be an elegant way to make out the current interpreter from inside
lua?

For now I'm branching things at the top of the script like this:

···8··
if arg[-1] == texlua then
utf=unicode.utf8
else
require lpeg
utf=string
end
···8··

because I have neither slnunicode nor a built-in lpeg on my system's lua
installation. The problem is that luatex has arg[-1] == nil but arg[0]
== luatex, and context sets all args to nil, so my crude way of
determining the interpreter by cl args fails with both.

I tried something like local string = utf or string as well, but this works
only in context which has utf==unicode.utf8 or something.

Thanks for your help

Philipp

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


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

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


[NTG-context] Tracking down error in publication list

2010-07-22 Thread Richard Stephens
Hello,

I am preparing a document with a publication list generated from BibTeX but
I get the following error:

! LuaTeX error .../context/texmf-context/tex/context/base/bibl-tra.lua:83:
attempt to compare nil with number
stack traceback:
.../context/texmf-context/tex/context/base/bibl-tra.lua:83: in function
.../context/texmf-context/tex/context/base/bibl-tra.lua:80
 [C]: in function 'sort'
.../context/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
...
to be read again


Is there a way I can narrow down what and where the problem is? At the
moment I'm stumped.
I've tried removing some of the \cite commands recently added, but to no
avail. Is the problem in the BibTeX file or in
my document?

Any help would be much appreciated.

Regards,

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188
Registered in England and Wales.
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose
the contents to another person, use it for any purpose or store or copy the 
information in
any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
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] lua args or how to identify the interpreter

2010-07-22 Thread Hans Hagen

On 22-7-2010 11:51, Philipp Gesang wrote:

Hi all,

what would be an elegant way to make out the current interpreter from inside
lua?

For now I'm branching things at the top of the script like this:

···8··
if arg[-1] == texlua then
 utf=unicode.utf8
else
 require lpeg
 utf=string
end
···8··


if you run your script with mtxrun then you can ask for arguments using

environment.argument
environment.files



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

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


Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
On 2010-07-22 11:55:38, Hans Hagen wrote:
 On 22-7-2010 11:51, Philipp Gesang wrote:
 Hi all,
 
 what would be an elegant way to make out the current interpreter from inside
 lua?
 
 For now I'm branching things at the top of the script like this:
 
 ···8··
 if arg[-1] == texlua then
  utf=unicode.utf8
 else
  require lpeg
  utf=string
 end
 ···8··
 
 if you run your script with mtxrun then you can ask for arguments using
 
 environment.argument
 environment.files

Hi Hans,

thank you, I was rather looking for some unified way of identifying the
lua interpreter that would work with the 4 machines I mentioned. Nevermind,
individually testing, while it does not really look good, works fine:

···8··
if context then
  interp = context
elseif arg[0] == luatex then
  interp = luatex
elseif arg[-1] == texlua then
  interp = texlua
else
  interp = plainlua
end
···8··


 
 
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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


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

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


Re: [NTG-context] problem with publication lists in mkiv

2010-07-22 Thread Thomas A. Schmitz
OK, I'm replying to my own question to add one further detail: I have now found 
a minimal example that demonstrates the error with \writetolist: if you process 
the following file with mkiv, a spurious vertical space is added before the 
first line of text; everything works as expected in mkii. And the vertical 
space in the bibliography (shown in the example below) is still unsolved. So 
there definitely is a bug somewhere in mkiv. 

All best

Thomas

\definelist[MyTopics][criterium=all]

\setuplist[MyTopics]
  [pagenumber=no]

\showframe

\starttext

\writetolist[MyTopics]{Word}{} Hello

\stoptext

On Jul 15, 2010, at 9:11 AM, Thomas A. Schmitz wrote:

 Hi all, 
 
 since a few betas ago, I'm experiencing the problem that some commands add 
 unwanted vertical space in mkiv. I think this is the case with \writetolist, 
 but I need to prepare an example for that. I have prepared an example for 
 publication lists: the following code produces the expected output in mkii. 
 In mkiv, it adds vertical space for every item that is added to the 
 bibliography. Maybe some unescaped line-endings somewhere in the code?
 
 All best 
 
 Thomas
 
 \startpublication[k=intertestualita,t=book,
 a={intertestualita},y=1995,
 n=2552,s=int95]
 \pubyear{1995}
 \title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
  novembre 1994}
 \city{Amsterdam}
 \pubname{Hakkert}
 \stoppublication
 
 \startpublication[k=gibsonlearning,t=article,
 a={gibsonlearning},y=2004,
 n=991,s=gib04]
 \pubyear{2004}
 \arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
  Treatises on Progymnasmata}
 \journal{Classical Philology}
 \volume{99}
 \pages{103--129}
 \stoppublication
 
 
 \startpublication[k=ackrillaristotle,t=book,
 a={{Ackrill}},y=1981,
 n=305,s=Ack81]
 \author[]{J.~L.}[J.~L.]{}{Ackrill}
 \pubyear{1981}
 \title{Aristotle the Philosopher}
 \city{Oxford}
 \pubname{Oxford UP}
 \stoppublication
 
 
 \setuppublications[state=start]
 
 \starttext
 
 \section{Edited Volumes}
 
 test test test test test test test test test test test test test test 
 
 \nocite[intertestualita,gibsonlearning,ackrillaristotle]
 
 \placepublications[criterium=cite]
 
 \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
 ___

___
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] slightly OT: tablets

2010-07-22 Thread William Adams
On Jul 21, 2010, at 7:18 PM, Oliver Buerschaper wrote:

 Does that mean you can make handwritten annotations with, say, a graphics 
 tablet?

Yes, so long as one isn't expecting to be able to convert the handwritten 
annotation into recognized text.

Another option is printing a .pdf into a Journal or other notebook style 
program (e.g., OneNote) which while it makes the underlying file into an image, 
allows richer, more natural annotation in an ink-aware program.

William

-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread William Adams
On Jul 21, 2010, at 7:26 PM, Tom wrote:

 Using TexLive MKII, I can create a PDF that looks great directly from it,
 unfortunately it isn't PDF/X-1a:2001.

There's a LaTeX package which will create .pdfs conformant to that 
specification --- perhaps the code could be ported over?

If not, use pdf2ps to get a PostScript file from the .pdf, then distill the .ps 
file w/ the correct settings.

William
-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

___
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] two problems for bib module

2010-07-22 Thread Thomas A. Schmitz
Hi Yanrui,

I'm afraid I can't really help you with your problems; I have just a thought on 
# 2.: at it's core, bibtex is still a 7-bit application. Development on 
replacements has begun - there's bibtexu, which is in TL2010, there's biber; 
none of them is quite mature yet. If memory serves right, Hans said that in the 
future, he wants to bypass bibtex altogether and develop something of his own. 
So, long story short: if you use Chinese characters in a .bib file, it's 
hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt 
can do about that as things stand now.

All best

Thomas

On Jul 19, 2010, at 10:51 AM, Li Yanrui (李延瑞) wrote:

 Hi all,
 
 I have the following problems when I use the bib module.
 
 1. For the cite of 'authoryear', how to make it being clickable link?
 
 This is a minimum example:
 
 %%%
 %% filename: test.tex
 \setupinteraction[state=start]
 \setupbibtex[database=ref]
 
 \setupcite[authoryear]
 \setuppublications[refcommand=authoryear]
 
 \starttext
 
 A: \cite[zixuwuyou].
 
 \title{References}
 \placepublications[criterium=all]
 
 \stoptext
 
 %%%
 
 %% filename: ref.bib
 @article{zixuwuyou,
  title={{Several problems for bib module}},
  author={Zhou, Y. and Suri, S. and Yanry, L.},
  journal={Journal of Bala bala},
  volume={46},
  number={6},
  pages={833--857},
  year={1999},
  publisher={Bala Bala}
 }
 
 2. In .bib file for Chinese (maybe cjk more exact) references, because
 the 'and' separator can not work, we have to use some Chinese
 punctuations as separator, such as Chinese comma. In this case, the
 cite of author's et.al. can not work.
 
 The following is an example (needed AdobeSongStd-Light.otf).
 
 
 %% filename: test.tex
 
 \starttypescript[serif][zhfont]
 \definefontsynonym[western][name:latinmodernromanregular]
 \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
 \definefontsynonym[fbsong][western][fallbacks=song]
 \definefontsynonym[Serif][fbsong]
 \definefontsynonym[SerifItalic][fbsong]
 \stoptypescript
 
 \starttypescript[myfonts]
 \definetypeface[myfonts][rm][serif][zhfont]
 \stoptypescript
 
 \usetypescript[myfonts]
 \setupbodyfont[myfonts,rm,11pt]
 
 \setupinteraction[state=start]
 \setupbibtex[database=ref]
 
 \setupcite[authoryear][andtext={,}]
 \setuppublications[refcommand=authoryear,sorttype=bbl]
 
 \starttext
 
 A: \cite[谢2008]
 
 \title{References}
 \placepublications[criterium=all]
 
 \stoptext
 
 
 %% filename: ref.bib
 
 @article{谢2008,
  title={中国工业生产率的增长与收敛},
  author={谢千里,罗斯基,张轶凡},
  journal={经济学(季刊)},
  volume={7},
  number={3},
  pages={809--826},
  year={2008}
 }
 
 
 -- 
 Best regards,
 
 Li Yanrui (李延瑞)
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread Tom

-Original Message-
On Jul 21, 2010, at 7:26 PM, Tom wrote:

 Using TexLive MKII, I can create a PDF that looks great directly from it,
 unfortunately it isn't PDF/X-1a:2001.

There's a LaTeX package which will create .pdfs conformant to that
specification --- perhaps the code could be ported over?

If not, use pdf2ps to get a PostScript file from the .pdf, then distill the
.ps file w/ the correct settings.

William
-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

Thanks for the tip, William. I am running TexLive MKII on a Windows system
and it doesn't seem to have pdf2ps. Bummer.

BTW, are you located in Mechanicsburg? If so, it's a small world.

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





___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread William Adams
On Jul 22, 2010, at 9:17 AM, Tom wrote:

 Thanks for the tip, William. I am running TexLive MKII on a Windows system
 and it doesn't seem to have pdf2ps. Bummer.

If you install Ghostscript you'll get it.

If not, install a nice, generic PostScript driver, then print to a PostScript 
file using Adobe Reader, then distill the .ps file.

 BTW, are you located in Mechanicsburg? If so, it's a small world.

Not from here (moved up from Virginia a couple of years ago), but living here 
now. Drop me a line off-list --- we'll have to get together.

William

-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

___
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

2010-07-22 Thread Hans Hagen

Hi,

I uploaded a beta. This is a prelude to an end-of-the-month current that 
will be released along with luatex 0.61.


This release supports tagged pdf, but it will go unnoticed if you don't 
have full acrobat. Tagging is enabled with:


\setupstructure[state=start]

Normally tagging takes place automatically but you can add your own 
using \startelement[whatever] ... \stopelement and labels can be changed 
with \setuptaglabeltext [en] [elementname=yourfavourite].


Hans

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

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


[NTG-context] Textbackgrounds

2010-07-22 Thread Andreas Harder
Hi all,

I've played with text backgrounds. Please have a look at the following example.

\definetextbackground
  [test]
  [location=paragraph,
   % frame=off,  % - no round corners anymore
   corner=round, % - corner=1|2|3… would be nice
   leftoffset=.5\bodyfontsize,
   rightoffset=.5\bodyfontsize,
   topoffset=.5\bodyfontsize,
   bottomoffset=.5\bodyfontsize]

\setuphead
  [subject]
  [after=,
   command=\MyHead]

\def\MyHead#1#2%
  {\framed
[background=color,
 backgroundcolor=gray,
 frame=off,
 offset=.5\bodyfontsize,
 corner=3]{#1#2}}

\starttext
\subject{Test}
\starttest
  \input tufte
\stoptest
\stoptext

There is a nasty little space between the two backgrounds. How can I avoid it? 
Further the left borders of the frame are not aligned.

I appreciate your help.

Andreas
___
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] Textbackgrounds

2010-07-22 Thread Hans Hagen

On 22-7-2010 3:50, Andreas Harder wrote:

\definetextbackground
   [test]
   [location=paragraph,
% frame=off,  % -  no round corners anymore
corner=round, % -  corner=1|2|3… would be nice
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize]

\setuphead
   [subject]
   [after=,
command=\MyHead]

\def\MyHead#1#2%
   {\framed
 [background=color,
  backgroundcolor=gray,
  frame=off,
  offset=.5\bodyfontsize,
  corner=3]{#1#2}}

\starttext
\subject{Test}
\starttest
   \input tufte
\stoptest
\stoptext


\setuphead
  [subject]
  [after=\nointerlineskip,
   command=\MyHead]


--

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

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


Re: [NTG-context] problem with publication lists in mkiv

2010-07-22 Thread Hans Hagen

On 22-7-2010 12:58, Thomas A. Schmitz wrote:

OK, I'm replying to my own question to add one further detail: I have now found 
a minimal example that demonstrates the error with \writetolist: if you process 
the following file with mkiv, a spurious vertical space is added before the 
first line of text; everything works as expected in mkii. And the vertical 
space in the bibliography (shown in the example below) is still unsolved. So 
there definitely is a bug somewhere in mkiv.


is the current beta better?


All best

Thomas

\definelist[MyTopics][criterium=all]

\setuplist[MyTopics]
   [pagenumber=no]

\showframe

\starttext

\writetolist[MyTopics]{Word}{} Hello

\stoptext

On Jul 15, 2010, at 9:11 AM, Thomas A. Schmitz wrote:


Hi all,

since a few betas ago, I'm experiencing the problem that some commands add 
unwanted vertical space in mkiv. I think this is the case with \writetolist, 
but I need to prepare an example for that. I have prepared an example for 
publication lists: the following code produces the expected output in mkii. In 
mkiv, it adds vertical space for every item that is added to the bibliography. 
Maybe some unescaped line-endings somewhere in the code?

All best

Thomas

\startpublication[k=intertestualita,t=book,
a={intertestualita},y=1995,
n=2552,s=int95]
\pubyear{1995}
\title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
  novembre 1994}
\city{Amsterdam}
\pubname{Hakkert}
\stoppublication

\startpublication[k=gibsonlearning,t=article,
a={gibsonlearning},y=2004,
n=991,s=gib04]
\pubyear{2004}
\arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
  Treatises on Progymnasmata}
\journal{Classical Philology}
\volume{99}
\pages{103--129}
\stoppublication


\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=305,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

test test test test test test test test test test test test test test

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

\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
___


___
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
___



--

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

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


Re: [NTG-context] Tracking down error in publication list

2010-07-22 Thread Hans Hagen

On 22-7-2010 11:54, Richard Stephens wrote:

Hello,

I am preparing a document with a publication list generated from BibTeX but
I get the following error:

! LuaTeX error .../context/texmf-context/tex/context/base/bibl-tra.lua:83:
attempt to compare nil with number
stack traceback:
/context/texmf-context/tex/context/base/bibl-tra.lua:83: in function
.../context/texmf-context/tex/context/base/bibl-tra.lua:80
  [C]: in function 'sort'
/context/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

to be read again


Is there a way I can narrow down what and where the problem is? At the
moment I'm stumped.


minimal example needed

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

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


[NTG-context] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Vedran Miletić
Minimal nonworking example:

% Taken from the wiki
\starttypescript [Bonum]
\definetypeface [Bonum] [rm] [serif] [bonum] [default]
\definetypeface [Bonum] [ss] [sans]  [adventor]  [default] [rscale=0.887]
\definetypeface [Bonum] [tt] [mono]  [cursor][default] [rscale=1.163]
\definetypeface [Bonum] [mm] [math]  [euler] [default] [rscale=1.050]
\stoptypescript

\usetypescript[Bonum]
\setupbodyfont[Bonum,12pt]

\starttext
\startitemize[4]
\item bla
\item bla
\stopitemize
\stoptext

It's actually independent of the font used, same thing happens if
roman font is replaced with palatino or modern.

Regards,

-- 
Vedran Miletić
___
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 publication lists in mkiv

2010-07-22 Thread Thomas A. Schmitz

On Jul 22, 2010, at 4:38 PM, Hans Hagen wrote:

 On 22-7-2010 12:58, Thomas A. Schmitz wrote:
 OK, I'm replying to my own question to add one further detail: I have now 
 found a minimal example that demonstrates the error with \writetolist: if 
 you process the following file with mkiv, a spurious vertical space is added 
 before the first line of text; everything works as expected in mkii. And the 
 vertical space in the bibliography (shown in the example below) is still 
 unsolved. So there definitely is a bug somewhere in mkiv.
 
 is the current beta better?

Partially: the vertical space with \writetolist is gone; but no bibliography is 
produced :-)

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] problem with publication lists in mkiv

2010-07-22 Thread Hans Hagen

On 22-7-2010 4:57, Thomas A. Schmitz wrote:


On Jul 22, 2010, at 4:38 PM, Hans Hagen wrote:


On 22-7-2010 12:58, Thomas A. Schmitz wrote:

OK, I'm replying to my own question to add one further detail: I have now found 
a minimal example that demonstrates the error with \writetolist: if you process 
the following file with mkiv, a spurious vertical space is added before the 
first line of text; everything works as expected in mkii. And the vertical 
space in the bibliography (shown in the example below) is still unsolved. So 
there definitely is a bug somewhere in mkiv.


is the current beta better?


Partially: the vertical space with \writetolist is gone; but no bibliography is 
produced :-)


so what was that small test file?

Hans

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

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


Re: [NTG-context] beta

2010-07-22 Thread Otared Kavian
Dear Hans,

I updated my minimal installation, but noticed that since the end of last June 
I get the same version: after any updating, upon doing
context --version
I get:

MTXrun | main context file: 
/context-minimal/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.06.23 12:45

Maybe have you changed the way the versions are numbered, but I wanted to make 
sure whether this is is normal or not.

However I should say that everything works fine and as expected.

With my best regards: OK
  
On 22 juil. 2010, at 15:40, Hans Hagen wrote:

 Hi,
 
 I uploaded a beta. This is a prelude to an end-of-the-month current that will 
 be released along with luatex 0.61.
 
 This release supports tagged pdf, but it will go unnoticed if you don't have 
 full acrobat. Tagging is enabled with:
 
 \setupstructure[state=start]
 
 Normally tagging takes place automatically but you can add your own using 
 \startelement[whatever] ... \stopelement and labels can be changed with 
 \setuptaglabeltext [en] [elementname=yourfavourite].
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


___
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] two problems for bib module

2010-07-22 Thread Hans Hagen

On 22-7-2010 2:27, Thomas A. Schmitz wrote:


I'm afraid I can't really help you with your problems; I have just a thought on 
# 2.: at it's core, bibtex is still a 7-bit application. Development on 
replacements has begun - there's bibtexu, which is in TL2010, there's biber; 
none of them is quite mature yet. If memory serves right, Hans said that in the 
future, he wants to bypass bibtex altogether and develop something of his own. 
So, long story short: if you use Chinese characters in a .bib file, it's 
hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt 
can do about that as things stand now.


in principle it is possible but i need testers etc etc etc as i never 
use this feature myself


the attached example does not use bibtex at all, the bib file is read 
into mem (could also be an xml file) and it never sees bibtex


there is a bxml-apa.mkiv file that you'l probably recognize ..

\settrue \tracebibtexformat

can be fun too

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
\setuplayout[backspace=1cm,topspace=.5cm,header=.5cm,footer=0cm,width=middle,height=middle]

\setuppapersize[S8][S8]

\starttypescript[serif][zhfont]
\definefontsynonym[western][name:latinmodernromanregular]
\definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[fbsong][western][fallbacks=song]
\definefontsynonym[Serif][fbsong]
\definefontsynonym[SerifItalic][fbsong]
\stoptypescript

\starttypescript[myfonts]
\definetypeface[myfonts][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfonts]
\setupbodyfont[myfonts,rm,11pt]

\starttext

\definebibtexsession  [somebibtex]
\registerbibtexfile   [somebibtex] [cjk.bib]
\preparebibtexsession [somebibtex] [convert,strip]

% \setuplist[somebibtex][before={\blank[medium]},after={\blank[medium]}] % hm

% \settrue \tracebibtexformat

\setupbibtexpublications[somebibtex][before={\blank[small]},after={\blank[small]}]

\startxmlsetups bibtex:bibtex
\xmlfilter{#1}{/entry/command(bibtex:format)}
\stopxmlsetups

\startxmlsetups bibtex:show
\xmlshow{#1}
\stopxmlsetups

\applytobibtexsession[somebibtex][bibtex:list]

cite: \bibtexcitation[somebibtex][test-entry] (中国工业生产率的增长与收敛)

% \applytobibtexsession[somebibtex][bibtex:show]

\blank dataref: \bibtexdataref   [somebibtex][test-entry]\blank
\blank typeref: \bibtextyperef   [somebibtex][test-entry]\blank
\blank key ref: \bibtexkeyref[somebibtex][test-entry]\blank
\blank serial  ref: \bibtexserialref [somebibtex][test-entry]\blank
\blank url ref: \bibtexurlref[somebibtex][test-entry]\blank
\blank doi ref: \bibtexdoiref[somebibtex][test-entry]\blank
\blank short   ref: \bibtexshortref  [somebibtex][test-entry]\blank
\blank yearref: \bibtexyearref   [somebibtex][test-entry]\blank
\blank author  ref: \bibtexauthorref [somebibtex][test-entry]\blank
\blank authoryear  ref: \bibtexauthoryearref [somebibtex][test-entry]\blank
\blank authoryears ref: \bibtexauthoryearsref[somebibtex][test-entry]\blank

\placebibtexpublications[somebibtex]

\stoptext


progressive-005.pdf
Description: Adobe PDF document
@article{ test-entry,
  title   = {中国工业生产率的增长与收敛},
  author  = {谢千里,罗斯基,张轶凡},
  journal = {经济学(季刊)},
  volume  = {7},
  number  = {3},
  pages   = {809--826},
  year= {2008}
}

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

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


Re: [NTG-context] beta

2010-07-22 Thread Vedran Miletić
2010/7/22 Otared Kavian ota...@gmail.com:
 Dear Hans,

 I updated my minimal installation, but noticed that since the end of last 
 June I get the same version: after any updating, upon doing
 context --version
 I get:

 MTXrun | main context file: 
 /context-minimal/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.06.23 12:45

 Maybe have you changed the way the versions are numbered, but I wanted to 
 make sure whether this is is normal or not.

 However I should say that everything works fine and as expected.

 With my best regards: OK

Same here. Perhaps Mojca is busy and minimals didn't get updated.

Regards,

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

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


Re: [NTG-context] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:03, Otared Kavian wrote:

Dear Hans,

I updated my minimal installation, but noticed that since the end of last June 
I get the same version: after any updating, upon doing
context --version
I get:

MTXrun | main context file: 
/context-minimal/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.06.23 12:45

Maybe have you changed the way the versions are numbered, but I wanted to make 
sure whether this is is normal or not.


not that i know of (or i might have forgotten already)

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

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


[NTG-context] Paragraph or item goes on a new page along with section (MkIV only)

2010-07-22 Thread Vedran Miletić
Consider the following code:

\setuphead[section][style={\tfd}]

\starttext

\section{bla bla}

\dorecurse{4}{\input tufte}

This is just some text that shows what happens.

\section{bla bla bla}

\input tufte

\stoptext

In MkII, This is just some text that shows what happens. goes on the
first page (which makes sense), while in MkIV it goes on second just
before section name.

Itemize behaves in similar way, if it is used just before section,
last item in the itemization list goes on second page.

A bug?

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

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


Re: [NTG-context] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:07, Vedran Miletić wrote:

2010/7/22 Otared Kavianota...@gmail.com:

Dear Hans,

I updated my minimal installation, but noticed that since the end of last June 
I get the same version: after any updating, upon doing
context --version
I get:

MTXrun | main context file: 
/context-minimal/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.06.23 12:45

Maybe have you changed the way the versions are numbered, but I wanted to make 
sure whether this is is normal or not.

However I should say that everything works fine and as expected.

With my best regards: OK


Same here. Perhaps Mojca is busy and minimals didn't get updated.


\edef\contextversion{2010.07.22 15:19}

zip on the website, synced each hour on the garden

Hans

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

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


Re: [NTG-context] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Otared Kavian
Hi Vedran,

Your example shows indeed that
\startitemize[3]
works fine but
\startitemize[4]
does not, with
ConTeXt version 2010.06.23 12:45.

(Actually \startitemize[x] works fine when x=1, or 2 or 3, and does not work as 
expected when x  3).
However with mkii everything is fine.

Best regards: OK


On 22 juil. 2010, at 16:54, Vedran Miletić wrote:

 Minimal nonworking example:
 
 % Taken from the wiki
 \starttypescript [Bonum]
\definetypeface [Bonum] [rm] [serif] [bonum] [default]
\definetypeface [Bonum] [ss] [sans]  [adventor]  [default] [rscale=0.887]
\definetypeface [Bonum] [tt] [mono]  [cursor][default] [rscale=1.163]
\definetypeface [Bonum] [mm] [math]  [euler] [default] [rscale=1.050]
 \stoptypescript
 
 \usetypescript[Bonum]
 \setupbodyfont[Bonum,12pt]
 
 \starttext
 \startitemize[4]
 \item bla
 \item bla
 \stopitemize
 \stoptext
 
 It's actually independent of the font used, same thing happens if
 roman font is replaced with palatino or modern.
 
 Regards,
 
 -- 
 Vedran Miletić
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



___
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] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Hans Hagen

On 22-7-2010 4:54, Vedran Miletić wrote:

\starttypescript [Bonum]
 \definetypeface [Bonum] [rm] [serif] [bonum] [default]
 \definetypeface [Bonum] [ss] [sans]  [adventor]  [default] [rscale=0.887]
 \definetypeface [Bonum] [tt] [mono]  [cursor][default] [rscale=1.163]
 \definetypeface [Bonum] [mm] [math]  [euler] [default] [rscale=1.050]
\stoptypescript

\usetypescript[Bonum]
\setupbodyfont[Bonum,12pt]

\starttext
\startitemize[4]
\item bla
\item bla
\stopitemize
\stoptext


works ok here (mkiv) ...

actually, in recent versions you can say

\setupbodyfont[Bonum,12pt]

as it will search for the right typescript (so, in this case no 
\usetypescript is needed)


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

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


Re: [NTG-context] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Hans Hagen

On 22-7-2010 4:54, Vedran Miletić wrote:

Minimal nonworking example:

% Taken from the wiki
\starttypescript [Bonum]
 \definetypeface [Bonum] [rm] [serif] [bonum] [default]
 \definetypeface [Bonum] [ss] [sans]  [adventor]  [default] [rscale=0.887]
 \definetypeface [Bonum] [tt] [mono]  [cursor][default] [rscale=1.163]
 \definetypeface [Bonum] [mm] [math]  [euler] [default] [rscale=1.050]
\stoptypescript

\usetypescript[Bonum]
\setupbodyfont[Bonum,12pt]

\starttext
\startitemize[4]
\item bla
\item bla
\stopitemize
\stoptext

It's actually independent of the font used, same thing happens if
roman font is replaced with palatino or modern.


btw, don't use euler or use euler-nova:

\definetypeface [Bonum] [mm] [math]  [euler-nova][default] [rscale=1.050]

(euler will be completed later this year)

Hans

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

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


Re: [NTG-context] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:16, Otared Kavian wrote:

Hi Vedran,

Your example shows indeed that
\startitemize[3]
works fine but
\startitemize[4]
does not, with
ConTeXt version 2010.06.23 12:45.

(Actually \startitemize[x] works fine when x=1, or 2 or 3, and does not work as 
expected when x  3).
However with mkii everything is fine.


for historical reasons we use math symbols and not all math fonts are 
complete



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

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


Re: [NTG-context] beta

2010-07-22 Thread Otared Kavian
Hi Hans,

Thanks for your attention.
I looked in context.tex after updating and I do have
\edef\contextversion{2010.06.23 12:45}

Does this mean that somehow context.tex is not updated? The file on the minimal 
is indeed created on
Wednsday June 23, 2010, at 12:45

Best regards: OK

On 22 juil. 2010, at 17:14, Hans Hagen wrote:

 On 22-7-2010 5:07, Vedran Miletić wrote:
 2010/7/22 Otared Kavianota...@gmail.com:
 Dear Hans,
 
 I updated my minimal installation, but noticed that since the end of last 
 June I get the same version: after any updating, upon doing
 context --version
 I get:
 
 MTXrun | main context file: 
 /context-minimal/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.06.23 12:45
 
 Maybe have you changed the way the versions are numbered, but I wanted to 
 make sure whether this is is normal or not.
 
 However I should say that everything works fine and as expected.
 
 With my best regards: OK
 
 Same here. Perhaps Mojca is busy and minimals didn't get updated.
 
 \edef\contextversion{2010.07.22 15:19}
 
 zip on the website, synced each hour on the garden
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


___
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] Paragraph or item goes on a new page along with section (MkIV only)

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:14, Vedran Miletić wrote:

Consider the following code:

\setuphead[section][style={\tfd}]

\starttext

\section{bla bla}

\dorecurse{4}{\input tufte}

This is just some text that shows what happens.

\section{bla bla bla}

\input tufte

\stoptext

In MkII, This is just some text that shows what happens. goes on the
first page (which makes sense), while in MkIV it goes on second just
before section name.

Itemize behaves in similar way, if it is used just before section,
last item in the itemization list goes on second page.

A bug?


just in the process of optimizing it ... you can run some tests with

\let\dopreventbreakafterstructureheadauto\relax

and see if heads end up along at the bottom

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

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


Re: [NTG-context] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:23, Otared Kavian wrote:

Hi Hans,

Thanks for your attention.
I looked in context.tex after updating and I do have
\edef\contextversion{2010.06.23 12:45}

Does this mean that somehow context.tex is not updated? The file on the minimal 
is indeed created on
Wednsday June 23, 2010, at 12:45


strange

Hans

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

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


Re: [NTG-context] problem with publication lists in mkiv

2010-07-22 Thread Thomas A. Schmitz

On Jul 22, 2010, at 5:01 PM, Hans Hagen wrote:

 so what was that small test file?
 
 Hans


Here comes:

\startpublication[k=intertestualita,t=book,
a={intertestualita},y=1995,
n=2552,s=int95]
\pubyear{1995}
\title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
 \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
 novembre 1994}
\city{Amsterdam}
\pubname{Hakkert}
\stoppublication

\startpublication[k=gibsonlearning,t=article,
a={gibsonlearning},y=2004,
n=991,s=gib04]
\pubyear{2004}
\arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
 Treatises on Progymnasmata}
\journal{Classical Philology}
\volume{99}
\pages{103--129}
\stoppublication


\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=305,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

test test test test test test test test test test test test test test

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

\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] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:34, Vnpenguin wrote:


Since one week, I update my minimal ConTeXt almost everyday (Win32
version), but the version is alway the same:


sure, as i didn't update context for a week

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

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


Re: [NTG-context] beta

2010-07-22 Thread Otared Kavian
On 22 juil. 2010, at 17:14, Hans Hagen wrote:
 
 \edef\contextversion{2010.07.22 15:19}
 
 zip on the website, synced each hour on the garden
 
 Hans

Hi,

After downloading the zipped files and making the formats « manually », I do 
get the new version:
ConTeXt version 2010.07.22 15:19

So this means that something has changed in first-setup.sh, and for some reason 
context.tex (and maybe a few other files…) are not thoroughly synched with the 
zip file on the Pragma's website.

Best regards: 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] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 5:33, Thomas A. Schmitz wrote:


On Jul 22, 2010, at 5:23 PM, Otared Kavian wrote:


Hi Hans,

Thanks for your attention.
I looked in context.tex after updating and I do have
\edef\contextversion{2010.06.23 12:45}

Does this mean that somehow context.tex is not updated? The file on the minimal 
is indeed created on
Wednsday June 23, 2010, at 12:45

Best regards: OK


FYI: I observed the same behavior and fetched the new beta manually this 
afternoon.



strange, when i fetch the zip from the website it has a context.tex of july

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

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


Re: [NTG-context] beta

2010-07-22 Thread Taco Hoekwater
Hi,

Otared Kavian wrote:
 
 So this means that something has changed in first-setup.sh, and for some 
 reason context.tex (and maybe a few other files…) are not thoroughly synched 
 with the zip file on the Pragma's website.

The minimals do not sync from the public website but from an internal
server, and it turns out that the zip files on that machine are not
up to date yet. Hans is looking into it.

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

2010-07-22 Thread Thomas A. Schmitz

On Jul 22, 2010, at 5:43 PM, Hans Hagen wrote:

 On 22-7-2010 5:33, Thomas A. Schmitz wrote:
 
 On Jul 22, 2010, at 5:23 PM, Otared Kavian wrote:
 
 Hi Hans,
 
 Thanks for your attention.
 I looked in context.tex after updating and I do have
 \edef\contextversion{2010.06.23 12:45}
 
 Does this mean that somehow context.tex is not updated? The file on the 
 minimal is indeed created on
 Wednsday June 23, 2010, at 12:45
 
 Best regards: OK
 
 FYI: I observed the same behavior and fetched the new beta manually this 
 afternoon.
 
 
 strange, when i fetch the zip from the website it has a context.tex of july
 
Yes, but what people are referring to is: running first-setup.sh in the 
minimals, which will then run

mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force 
--engine=all --context=beta --platform=$platform --texroot=$PWD/tex $@

used to fetch the latest beta automatically, but it doesn't any longer.

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] Paragraph or item goes on a new page along with section (MkIV only)

2010-07-22 Thread Peter Münster
On Thu, Jul 22 2010, Hans Hagen wrote:

 just in the process of optimizing it ...

Great Hans!
You will then update the tracker item
http://tracker.luatex.org/view.php?id=389 ?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] beta

2010-07-22 Thread Vnpenguin
On Thu, Jul 22, 2010 at 17:51, Taco Hoekwater t...@elvenkind.com wrote:
 Hi,

 Otared Kavian wrote:

 So this means that something has changed in first-setup.sh, and for some 
 reason context.tex (and maybe a few other files…) are not thoroughly synched 
 with the zip file on the Pragma's website.

 The minimals do not sync from the public website but from an internal
 server, and it turns out that the zip files on that machine are not
 up to date yet. Hans is looking into it.


Just update with first-setup.bat and I have version 2010.07.22 19:04
of ConTeXt now :)

Thanks,
___
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] Textbackgrounds

2010-07-22 Thread Andreas Harder

Am 22.07.2010 um 16:37 schrieb Hans Hagen:

 On 22-7-2010 3:50, Andreas Harder wrote:
 \definetextbackground
   [test]
   [location=paragraph,
% frame=off,  % -  no round corners anymore
corner=round, % -  corner=1|2|3… would be nice
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize]
 
 \setuphead
   [subject]
   [after=,
command=\MyHead]
 
 \def\MyHead#1#2%
   {\framed
 [background=color,
  backgroundcolor=gray,
  frame=off,
  offset=.5\bodyfontsize,
  corner=3]{#1#2}}
 
 \starttext
 \subject{Test}
 \starttest
   \input tufte
 \stoptest
 \stoptext
 
 \setuphead
  [subject]
  [after=\nointerlineskip,
   command=\MyHead]

Thank you Hans, that killed the space.

Greeting,
Andreas
___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread Wolfgang Schuster

 Am 22.07.10 06:07, schrieb Tom:

Thanks, Wolfgang. I never would have considered this to be the problem.
Converting the first image to eps made it work. Should PostScript Level 2
and Encapsulated PostScript be selected when converting the images in Gimp?

Does MKIV require the same image formats as MKII? Is this all an artifact of
some early incarnation of Context?


mkiv has only pdf as output format so you can use the same image formats
as mkii in pdf mode, the restriction has nothing to do with context, it 
comes

from the driver (pdftex) which allows only certain formats for pdf and dvi

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

2010-07-22 Thread Vedran Miletić
2010/7/22 Vnpenguin vnpeng...@vnoss.org:
 On Thu, Jul 22, 2010 at 17:51, Taco Hoekwater t...@elvenkind.com wrote:
 Hi,

 Otared Kavian wrote:

 So this means that something has changed in first-setup.sh, and for some 
 reason context.tex (and maybe a few other files…) are not thoroughly 
 synched with the zip file on the Pragma's website.

 The minimals do not sync from the public website but from an internal
 server, and it turns out that the zip files on that machine are not
 up to date yet. Hans is looking into it.


 Just update with first-setup.bat and I have version 2010.07.22 19:04
 of ConTeXt now :)


Same here, great :-)

I also seem to be getting the error:

This is MetaPost, version 1.500 (kpathsea version 3.5.7dev)
(/opt/context/tex/texmf-context/metapost/context/base/metafun.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-base.mp
Preloading the plain mem file, version 0.63)
(/opt/context/tex/texmf-context/metapost/context/base/mp-tool.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-spec.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-core.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-page.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-text.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-txts.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-shap.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-butt.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-char.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-step.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-grph.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-figs.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-mlib.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-grid.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-form.mp
(/opt/context/tex/texmf/metapost/base/string.mp)
(/opt/context/tex/texmf/metapost/base/marith.mp
(/opt/context/tex/texmf/metapost/base/string.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-func.mp) )
(end occurred when if on line 26 was incomplete)
(see the transcript file for additional information)

Regards,

-- 
Vedran Miletić
___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread Hans Hagen

On 22-7-2010 8:44, Wolfgang Schuster wrote:


Am 22.07.10 06:07, schrieb Tom:

Thanks, Wolfgang. I never would have considered this to be the problem.
Converting the first image to eps made it work. Should PostScript Level 2
and Encapsulated PostScript be selected when converting the images in
Gimp?

Does MKIV require the same image formats as MKII? Is this all an
artifact of
some early incarnation of Context?


mkiv has only pdf as output format so you can use the same image formats
as mkii in pdf mode, the restriction has nothing to do with context, it
comes
from the driver (pdftex) which allows only certain formats for pdf and dvi


also, in mkiv, some graphic formats will be converted automatically 
before inclusion


Hans


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

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


Re: [NTG-context] beta

2010-07-22 Thread Hans Hagen

On 22-7-2010 8:59, Vedran Miletić wrote:

2010/7/22 Vnpenguinvnpeng...@vnoss.org:

On Thu, Jul 22, 2010 at 17:51, Taco Hoekwatert...@elvenkind.com  wrote:

Hi,

Otared Kavian wrote:


So this means that something has changed in first-setup.sh, and for some reason 
context.tex (and maybe a few other files…) are not thoroughly synched with the 
zip file on the Pragma's website.


The minimals do not sync from the public website but from an internal
server, and it turns out that the zip files on that machine are not
up to date yet. Hans is looking into it.



Just update with first-setup.bat and I have version 2010.07.22 19:04
of ConTeXt now :)



Same here, great :-)

I also seem to be getting the error:

This is MetaPost, version 1.500 (kpathsea version 3.5.7dev)
(/opt/context/tex/texmf-context/metapost/context/base/metafun.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-base.mp
Preloading the plain mem file, version 0.63)
(/opt/context/tex/texmf-context/metapost/context/base/mp-tool.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-spec.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-core.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-page.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-text.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-txts.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-shap.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-butt.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-char.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-step.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-grph.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-figs.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-mlib.mp)
(/opt/context/tex/texmf-context/metapost/context/base/mp-grid.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-form.mp
(/opt/context/tex/texmf/metapost/base/string.mp)
(/opt/context/tex/texmf/metapost/base/marith.mp
(/opt/context/tex/texmf/metapost/base/string.mp
(/opt/context/tex/texmf-context/metapost/context/base/mp-func.mp) )
(end occurred when if on line 26 was incomplete)
(see the transcript file for additional information)


you shouldn't run mp 1.5 as it's a quite experimental version, the 
prelude to 2.0; the error is probably related to the fact that formats 
are no longer dealt with in the same way


Hans


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

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


Re: [NTG-context] beta

2010-07-22 Thread Taco Hoekwater


Hans Hagen wrote:
 
 you shouldn't run mp 1.5 as it's a quite experimental version, the
 prelude to 2.0; the error is probably related to the fact that formats
 are no longer dealt with in the same way

I don't think minimal (beta) users have a choice in the matter
at the moment.

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

2010-07-22 Thread Taco Hoekwater

Hi,

Hans Hagen wrote:
 the error is probably related to the fact that formats
 are no longer dealt with in the same way

Actually, this particular warning is a glitch in itself, it seems
a (quite harmless) case of forgetting to clear the condition state.

Nevertheless, there are numerous other problems with mpost 1.500
that I have already fixed, so I may well release 1.501 tomorrow
just to get rid of the most obnoxious bugs in 1.500.

A side note: besides the alpha state of the code, running mpost 1.500
to dump a mem file is pointless: all it does is generate a log file,
no actual mem file is created. This is by design:

  $ metafun myfile

if 'metafun' is a link to mpost version, simply loads 'metafun.mp'
as a preloaded source file instead of looking for an actual metafun.mem.

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

2010-07-22 Thread Hans Hagen

On 22-7-2010 9:47, Taco Hoekwater wrote:


Hi,

Hans Hagen wrote:

the error is probably related to the fact that formats
are no longer dealt with in the same way


Actually, this particular warning is a glitch in itself, it seems
a (quite harmless) case of forgetting to clear the condition state.

Nevertheless, there are numerous other problems with mpost 1.500
that I have already fixed, so I may well release 1.501 tomorrow
just to get rid of the most obnoxious bugs in 1.500.

A side note: besides the alpha state of the code, running mpost 1.500
to dump a mem file is pointless: all it does is generate a log file,
no actual mem file is created. This is by design:

   $ metafun myfile

if 'metafun' is a link to mpost version, simply loads 'metafun.mp'
as a preloaded source file instead of looking for an actual metafun.mem.


indeed, so normally it should not matter (i'm not sure if we have 
similar side effects as tex would have due to inimode and everyjob etc)


Hans


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

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


Re: [NTG-context] beta

2010-07-22 Thread Steffen Wolfrum

Am 22.07.2010 um 17:39 schrieb Hans Hagen:

 On 22-7-2010 5:34, Vnpenguin wrote:
 
 Since one week, I update my minimal ConTeXt almost everyday (Win32
 version), but the version is alway the same:
 
 sure, as i didn't update context for a week


this exchange you should be archieved in contextgarden's humor section ;o))

st.
___
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] width of definetextbackground

2010-07-22 Thread Hans Hagen

On 15-7-2010 6:02, Armin Varmaz wrote:

Hallo,



I am wondering if there is an option in \definetextbackground to get the
output over the entire width of a page? I mean to go over the width of the
\textwidth (for example like
\setlayout[width=\textwidth+\outermargintotal])?


\paperwidth

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

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


Re: [NTG-context] xmldoiftext

2010-07-22 Thread Hans Hagen

On 18-7-2010 9:02, H. van der Meer wrote:

I have a comment on the name of macro \xmldoiftext.
The name as is, seems specifically to point to something like:
nodesome_text/node
Luckily the manual mentions here when .. node has some content and
this implies the {yes}-branch will be taken also in case of the presence
of subnodes, even if these lack text content:
nodesubnode//node
I am happy to find that this is indeed the behaviour, because it is what
I need.

Thus I am inclined to consider \xmldoifcontent as a better descriptive
name instead of \xmldoiftext. Or is it already too late to change its
name?


yes, as i 've used it a lot already

Hans

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

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


Re: [NTG-context] Passing info from MetaPost to TeX

2010-07-22 Thread Hans Hagen

On 20-7-2010 2:00, Oliver Buerschaper wrote:

Dear all,

is it possible to pass data from MetaPost back to TeX? This would be similar in 
spirit to, say, the MetaPost variable BodyFontSize that contains data from the 
TeX surrounding. Just the other way round.


maybe future mlib versions will provide something like that (writing 
something from mp to a lua table); currently you have to use a file or 
interpret the log (use show to print out values).


Hans


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

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


Re: [NTG-context] Images missing from PDF when created by Adobe

2010-07-22 Thread Tom
-Original Message-  Am 22.07.10 06:07, schrieb Tom:
 Thanks, Wolfgang. I never would have considered this to be the problem.
 Converting the first image to eps made it work. Should PostScript Level 2
 and Encapsulated PostScript be selected when converting the images in
Gimp?

 Does MKIV require the same image formats as MKII? Is this all an artifact
of
 some early incarnation of Context?

mkiv has only pdf as output format so you can use the same image formats
as mkii in pdf mode, the restriction has nothing to do with context, it 
comes
from the driver (pdftex) which allows only certain formats for pdf and dvi

Wolfgang

Do I understand correctly that MKIV will not output a dvi or ps file and
that no stable version of it outputs a PDF/X-1a:2001 format file?

Is a version with this feature expected to be stable in a year?

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


___
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] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar

Hello all...
I am looking for problem in my example but without success.
As you can see in my minimal example, that any printing positions on any 
cards are diferent.

I want to print always started at the same place!
Someone knows a solution? Forgotten that any gaps?

Thanx Jaroslav


\newcount\countofhor\countofhor=3
\newcount\countofvert\countofvert=4
\newdimen\paperedge\paperedge=0.5cm
\newdimen\disthor\disthor=2mm
\newdimen\distvert\distvert=2mm

\newdimen\cardheight\newdimen\cardwidth
\newcount\countofcardsonpage\countofcardsonpage=\countofhor
\multiply\countofcardsonpage\countofvert

\definepapersize[BC][width=\cardwidth,height=\cardheight] % not change!


%\setuppapersize [BC][A4]
\setuppapersize [BC][A4,landscape]



% Calculate only:
\cardheight=\dimexpr((\printpaperheight-2\paperedge-\distvert*(\countofvert-1))/\countofvert)
\cardwidth=\dimexpr((\printpaperwidth-2\paperedge-\dimexpr(\disthor)*(\countofhor-1))/\countofhor)
\definemeasure[topspace] [\dimexpr(\printpaperheight-(\cardheight + 
\distvert)*\countofvert+\distvert)/2\relax]
\definemeasure[backspace] [\dimexpr(\printpaperwidth-(\cardwidth + 
\disthor)*\countofhor+\disthor)/2\relax]


\setuppaper 
[topspace=\measure{topspace},backspace=\measure{backspace},bottomspace=\measure{topspace},cutspace=\measure{backspace}, 
dx=\disthor,dy=\distvert,nx=\countofhor,ny=\countofvert]
\setuplayout[page] 
[topspace=\measure{topspace},backspace=\measure{backspace},bottomspace=\measure{topspace},cutspace=\measure{backspace}]

\setuplayout[location=middle, marking=on]
\setuparranging [XY]


\setuppagenumbering [alternative=doublesided,location=, state=stop]


\defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}]
\defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}]


\startbuffer[Front]
\leftaligned{\recurselevel\ - Front}%
\stopbuffer


\startbuffer[Back]
\leftaligned{\recurselevel\ - Back}%
\stopbuffer


\def\printactionpageone{%
\setupbackgrounds [page][background={pozadifront}]%
\getbuffer[Front]\page%
}%

\def\printactionpagetwo{%
\setupbackgrounds [page][background={pozadiback}]%
\getbuffer[Back]\page%
}%

\showframe[edge]

\starttext
\dorecurse{\countofcardsonpage}{\printactionpageone}
\dorecurse{\countofcardsonpage}{\printactionpagetwo}
\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] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar

Sorry I added some more...

The problem is better seen when, instead of \showframe[edge] put 
\showframe only ...


Jaroslav



Dne 23.7.2010 6:04, Jaroslav Hajtmar napsal(a):

Hello all...
I am looking for problem in my example but without success.
As you can see in my minimal example, that any printing positions on 
any cards are diferent.

I want to print always started at the same place!
Someone knows a solution? Forgotten that any gaps?

Thanx Jaroslav


\newcount\countofhor\countofhor=3
\newcount\countofvert\countofvert=4
\newdimen\paperedge\paperedge=0.5cm
\newdimen\disthor\disthor=2mm
\newdimen\distvert\distvert=2mm

\newdimen\cardheight\newdimen\cardwidth
\newcount\countofcardsonpage\countofcardsonpage=\countofhor
\multiply\countofcardsonpage\countofvert

\definepapersize[BC][width=\cardwidth,height=\cardheight] % not change!


%\setuppapersize [BC][A4]
\setuppapersize [BC][A4,landscape]



% Calculate only:
\cardheight=\dimexpr((\printpaperheight-2\paperedge-\distvert*(\countofvert-1))/\countofvert) 

\cardwidth=\dimexpr((\printpaperwidth-2\paperedge-\dimexpr(\disthor)*(\countofhor-1))/\countofhor) 

\definemeasure[topspace] [\dimexpr(\printpaperheight-(\cardheight + 
\distvert)*\countofvert+\distvert)/2\relax]
\definemeasure[backspace] [\dimexpr(\printpaperwidth-(\cardwidth + 
\disthor)*\countofhor+\disthor)/2\relax]


\setuppaper 
[topspace=\measure{topspace},backspace=\measure{backspace},bottomspace=\measure{topspace},cutspace=\measure{backspace}, 
dx=\disthor,dy=\distvert,nx=\countofhor,ny=\countofvert]
\setuplayout[page] 
[topspace=\measure{topspace},backspace=\measure{backspace},bottomspace=\measure{topspace},cutspace=\measure{backspace}] 


\setuplayout[location=middle, marking=on]
\setuparranging [XY]


\setuppagenumbering [alternative=doublesided,location=, state=stop]


\defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] 

\defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] 




\startbuffer[Front]
\leftaligned{\recurselevel\ - Front}%
\stopbuffer


\startbuffer[Back]
\leftaligned{\recurselevel\ - Back}%
\stopbuffer


\def\printactionpageone{%
\setupbackgrounds [page][background={pozadifront}]%
\getbuffer[Front]\page%
}%

\def\printactionpagetwo{%
\setupbackgrounds [page][background={pozadiback}]%
\getbuffer[Back]\page%
}%

\showframe[edge]

\starttext
\dorecurse{\countofcardsonpage}{\printactionpageone}
\dorecurse{\countofcardsonpage}{\printactionpagetwo}
\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
___ 





___
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
___