Re: [NTG-context] Page background color. Does not cover the entire page.

2009-04-17 Thread Yanrui Li
2009/4/17 Curiouslearn curiousle...@gmail.com:
 Hi,
 I created the attached PDF file using ConTeXt. As you can see I have a green
 background, which covers the whole page. However, when I took it to the
 printer today and he printed two copies for me, there was some white space
 left at four ends. The amount of space above, below, to the left and to the
 right was different. Here is my preamble. Can you suggest what I can do so
 that the whole page has the chosen green background color.
 Thanks very much.

Hi, Curiouslearn,

Generally speaking, many printers can't print a page without white
spaces about 3mm unless you have a marginless printer.

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 15:20)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page background color. Does not cover the entire page.

2009-04-17 Thread Hans Hagen

Curiouslearn wrote:

Hi,
I created the attached PDF file using ConTeXt. As you can see I have a green
background, which covers the whole page. However, when I took it to the
printer today and he printed two copies for me, there was some white space
left at four ends. The amount of space above, below, to the left and to the
right was different. Here is my preamble. Can you suggest what I can do so
that the whole page has the chosen green background color.


-- print on larger paper and cut off the edges
-- make your layout a bit smaller and cut off the edges

only professional print will print to the edge and even then ...

(normally you will use oversized paper and bleeding)

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


Re: [NTG-context] new beta

2009-04-17 Thread Hans Hagen

Eythan Weg wrote:


Hi, 


With the latest beta running under  luatex 0.39 I cannot
compile the simplest of files.  With 0.38 they run
fine. Also plain tex runs ok.

Here is where it stops:

local/share/texmf/tex/context/base/type-otf.tex \
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
(/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
| fatal error, no return code, message: luatex: execution interrupted


looks like a crash

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


Re: [NTG-context] new beta

2009-04-17 Thread Taco Hoekwater


Hans Hagen wrote:
 Eythan Weg wrote:

 Hi,
 With the latest beta running under  luatex 0.39 I cannot
 compile the simplest of files.  With 0.38 they run
 fine. Also plain tex runs ok.

 Here is where it stops:

 local/share/texmf/tex/context/base/type-otf.tex \
 (/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
 (/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
 | fatal error, no return code, message: luatex: execution interrupted
 
 looks like a crash

Definately. More information is needed, like: what was that input file,
where did you get your binary, and what is your operation system?

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


[NTG-context] Bib module in mkiv

2009-04-17 Thread Taco Hoekwater
Hi,

Hans sent me a patch for the bib module so that it now should
work with the latest mkiv once again, but the code needs testing
before being included in the context distribution, so please
do so. You can get the new version of the module from

  http://modules.contextgarden.net/bib

Note: you need the latest context beta, because the bib module
required a small extension to the core.

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


Re: [NTG-context] problems with bibliography

2009-04-17 Thread Nicolas Luchier

Hello

OK, I found the problem. It may be of interest so here is the faulty  
code :

 \startformula\startalign[n=1,align={left}]
 \NC \text{Dans la théorie de l'électron libre  
(\cite[ashcroft1976]) } k_{F}=1,65 \text{~} \Angstrom^{-1} \NR

...
 \stopalign
 \stopformula

The \cite command inside the \text in the formula setting ended up  
messing with all the following *new* citations, recalling of already  
mentioned citation was OK.


\cite citation withdrawn, everything was back to the normal.

Thanks for your help,
Nicolas

Le 16 Apr 2009 à 16:25, Nicolas Luchier a écrit :


Thank you for your quick answers.

Following Taco suggestion, I used a former biblio.bib which doesn't  
cause any problem in a former article (25 entry in the article  
bibliography and I recompiled it ti check wether something new could  
happen, but everything ran fine). Since I did add some citations for  
this new article (through Zotero BTW, but all my .bib has been done  
this way), some entries are missing for my new article but the  
number are nonetheless reserved, except from the last 4 citations  
that still produces empty brackets and no reserved line in the  
\placepublications command.


I didn't change anything in the system recently.

Create a minimal example will be difficult, since the behavior  
changed mid article :

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=biblio]
\starttext
\section{some blabla part I}
sub and subsubsection with some \cite command in them. Everything is  
fine.

\Section{some blabla part II}
subsection with \cite command that produces empty brackets.
\section{bibliography}
\placepublications[criterium=all]
\stoptext

Now, if I move the faulty \cite from the part II to part I, they  
still produce empty bracket.


Looking into the log, I found these warnings : warning: cite  
argument  unknown on 139, when the command is \cite[]. This  
doesn't come from the fact that  is not in the .bib file since   
other references are also missing but no warning is produced.


I really don't get it.

Nicolas

Le 16 Apr 2009 à 15:48, Aditya Mahajan a écrit :


On Thu, 16 Apr 2009, Nicolas Luchier wrote:


Bonjour,

I am using the bib and bibltx modules to manage the bibliography  
of my articles. All was fine up to just recently where no more  
reference seems to be made any more in my current writing (half  
the article is OK). The \cite command return empty brackets []  
(even when I wrote the wrong reference, there usually always had a  
number) and no new line is created in the  
\placepublications[criterium=all] command (or  
\completepublications for that matter). Things seem to be done  
properly though.


I am running ConTeXt  ver: 2008.05.21

  ^^^

Did you change anything in your system recently? There have been  
some changes in MkIV that affect the bib module, but you are using  
an older version of context, so should not be affect by the recent  
changes.



Would anybody have a clue on what is going on?


Can you create a minimal example showing the problem? Usually, such  
problems arise due to a missing [criterium=all] but you have it.


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


Re: [NTG-context] problems with bibliography

2009-04-17 Thread Taco Hoekwater


Nicolas Luchier wrote:
 Hello
 
 OK, I found the problem. It may be of interest so here is the faulty code :
  \startformula\startalign[n=1,align={left}]
  \NC \text{Dans la théorie de l'électron libre (\cite[ashcroft1976]) }
 k_{F}=1,65 \text{~} \Angstrom^{-1} \NR

That should have worked, so there is a definately a bug somewhere.

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


[NTG-context] page area state evaluation

2009-04-17 Thread Alan Stone
Hi,

How do you evaluate, for example, a page's header state (normal, start,
stop, empty, high, none, nomarking, name) in order to

if header state = x
 do this
else
 do that
endif

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

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Thomas A. Schmitz


On Apr 17, 2009, at 9:55 AM, Taco Hoekwater wrote:


Hi,

Hans sent me a patch for the bib module so that it now should
work with the latest mkiv once again, but the code needs testing
before being included in the context distribution, so please
do so. You can get the new version of the module from

 http://modules.contextgarden.net/bib

Note: you need the latest context beta, because the bib module
required a small extension to the core.

Best wishes,
Taco


Hi Taco,

just to clarify things: on the download site in the garden, you write:  
This release has support for the new mkiv structure code, but it  
needs a very new beta (2009.04.16 23:52) The latest beta I could find  
was 2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator
  ]
\expanded ...\long \xdef \@@expanded {\noexpand #1
  }\@@expanded
\preparebibreflist ...refix ][\sectionseparator ]}
  \storeitem
\expandrefs ...ibrefprefix \preparebibreflist {#1}
  \global  
\bibreffoundfalse ...

\next2 #1,-\expandrefs {#1}
\doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global  
\advance \...

...
l.182 ...lications[criterium=cite,option=continue]

Should we wait for a still newer beta, or is this a typo and I need to  
dig deeper?


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

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


Re: [NTG-context] LuaTeX 64bit

2009-04-17 Thread Mojca Miklavec
On Wed, Apr 15, 2009 at 21:23, Mohamed Bana wrote:
 Hi guys,
 I don't think I have ever needed more than than 3-4gb, so it worth using the
 64bit ver. of LuaTeX?

What would be the advantages of using the 32-bit version?

 Can I force the minimals install script to download
 and use the 32bit binary instead?

You need to desable automatic format generation and you need to pass
--platform=linux as argument to mtx-update.lua in first-setup.sh ...
then you need a costum version of setuptex (or you can set path
manually) that will set the path to linux instead of linux-64.

But I have no idea why you would want to do that.

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


Re: [NTG-context] new beta

2009-04-17 Thread Wei-Wei Guo

Hi,

The \completepublications error is gone with newly published t-bib.

I find a new bug. The figure list and table list do not show caption titles and 
dots.
Only label number and page number appear there, such as:

   1.2.1 Should have a caption title here   Should have dots here 13

Dots appears in contents list.


Best wishes,
Wei-Wei



Wei-Wei Guo 写道:

Hi Hans,

Something are not working here with the latest beta on luatex 0.39.

1. The following two settings has no effect.

   % lines under headers.
   \setupbackgrounds
  [header][text]
  [frame=off,bottomframe=on,rulethickness=1.5pt]

   % Text inserted in Contents
   \writebetweenlist[section]{Text}

2. Footnote number has a weird triangle mark beside, like 1▲.

3. \completepublications causes error though text citations are fine. 
Here is the error:


   ! Undefined control sequence.
   \preparebibrefprefix ...lltoclevels \alltoclevels
 \let 
\savedcurrentlevel \c...

   \typesetpubslist ... {}\else \preparebibrefprefix
 \fi \ifsortbycite 
\fillloc...

   \dodoplacepublications ...sttrue \typesetpubslist
 \inpublistfalse 
\endgroup

   to be read again
  \stopappendices
   l.80 \stopappendices


Best wishes,
Wei-Wei


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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Apr 17, 2009, at 9:55 AM, Taco Hoekwater wrote:


Hi,

Hans sent me a patch for the bib module so that it now should
work with the latest mkiv once again, but the code needs testing
before being included in the context distribution, so please
do so. You can get the new version of the module from

 http://modules.contextgarden.net/bib

Note: you need the latest context beta, because the bib module
required a small extension to the core.

Best wishes,
Taco


Hi Taco,

just to clarify things: on the download site in the garden, you write: 
This release has support for the new mkiv structure code, but it needs 
a very new beta (2009.04.16 23:52) The latest beta I could find was 
2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator
  ]
\expanded ...\long \xdef \@@expanded {\noexpand #1
  }\@@expanded
\preparebibreflist ...refix ][\sectionseparator ]}
  \storeitem
\expandrefs ...ibrefprefix \preparebibreflist {#1}
  \global 
\bibreffoundfalse ...

\next2 #1,-\expandrefs {#1}
\doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global 
\advance \...


l.182 ...lications[criterium=cite,option=continue]

Should we wait for a still newer beta, or is this a typo and I need to 
dig deeper?


i'll look into it, but then need a zip with a minimal set of files that 
i can use for testing



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


Re: [NTG-context] Page background color. Does not cover the entire page.

2009-04-17 Thread John Devereux
Hans Hagen pra...@wxs.nl writes:

 Curiouslearn wrote:
 Hi,
 I created the attached PDF file using ConTeXt. As you can see I have a green
 background, which covers the whole page. However, when I took it to the
 printer today and he printed two copies for me, there was some white space
 left at four ends. The amount of space above, below, to the left and to the
 right was different. Here is my preamble. Can you suggest what I can do so
 that the whole page has the chosen green background color.

 -- print on larger paper and cut off the edges
 -- make your layout a bit smaller and cut off the edges

Or

 -- get them to print it on light green paper? :)


-- 

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

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


Re: [NTG-context] new beta

2009-04-17 Thread Hans Hagen

Wei-Wei Guo wrote:

Hi,

The \completepublications error is gone with newly published t-bib.

I find a new bug. The figure list and table list do not show caption 
titles and dots.

Only label number and page number appear there, such as:

   1.2.1 Should have a caption title here   Should have dots 
here 13


Dots appears in contents list.


i only look into reported bugs that come with a minimal example

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 12:08 schrieb Hans Hagen:

i'll look into it, but then need a zip with a minimal set of files  
that i can use for testing


With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents

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


Re: [NTG-context] new beta

2009-04-17 Thread Hans Hagen

Wei-Wei Guo wrote:

Hi Hans,

Something are not working here with the latest beta on luatex 0.39.

1. The following two settings has no effect.

   % lines under headers.
   \setupbackgrounds
  [header][text]
  [frame=off,bottomframe=on,rulethickness=1.5pt]

   % Text inserted in Contents
   \writebetweenlist[section]{Text}


minimal example needed


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


Re: [NTG-context] new beta

2009-04-17 Thread Eythan Weg

Taco Hoekwater t...@elvenkind.com
Fri, 17 Apr 2009 09:44:47 +0200

   Hans Hagen wrote:
Eythan Weg wrote:
   
Hi,
With the latest beta running under  luatex 0.39 I cannot
compile the simplest of files.  With 0.38 they run
fine. Also plain tex runs ok.
   
Here is where it stops:
   
local/share/texmf/tex/context/base/type-otf.tex \
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
(/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
| fatal error, no return code, message: luatex: execution interrupted

looks like a crash
   
   Definately. More information is needed, like: what was that input file,
   where did you get your binary, and what is your operation system?
   
   Best wishes,
   Taco


I compiled luatex myself.  When it runs with
context plain version of the format it shows this
banner: 

   This is LuaTeX, Version snapshot-0.39.0-2009041518

Here is the config log for the compilation of
luatex.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by TeX Live configure 2009test-1.6, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ../source/configure --enable-cxx-runtime-hack --disable-afm2pl 
--disable-aleph --disable-bibtex --disable-bibtex8 --disable-cfftot1 
--disable-cjkutils --disable-detex --disable-devnag --disable-dialog 
--disable-dtl --enable-dump-share --disable-dvi2tty --disable-dvidvi 
--disable-dviljk --disable-dvipdfm --disable-dvipdfmx --disable-dvipos 
--disable-dvipsk --disable-gsftopk --disable-lacheck --disable-lcdf-typetools 
--disable-makeindexk --disable-mf --disable-mmafm --disable-mmpfb --disable-mp 
--disable-musixflx --disable-otfinfo --disable-otftotfm --disable-pdfopen 
--disable-pdftex --disable-ps2eps --disable-ps2pkm --disable-psutils 
--disable-seetexk --disable-t1dotlessj --disable-t1lint --disable-t1rawafm 
--disable-t1reencode --disable-t1testpage --disable-t1utils --disable-tex 
--disable-tex4htk --disable-tpic2pdftex --disable-ttf2pk --disable-ttfdump 
--disable-ttftotype42 --disable-vlna --disable-web-progs --disable-xdv2pdf 
--disable-xdvipdfmx --without-system-kpathsea --without-system-freetype2 
--without-system-gd --without-system-libpng --without-system-teckit 
--without-system-zlib --without-system-t1lib --disable-shared 
--disable-largefile

## - ##
## Platform. ##
## - ##

hostname = gauss
uname -m = x86_64
uname -r = 2.6.29-1-amd64
uname -s = Linux
uname -v = #1 SMP Sat Apr 4 16:54:07 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /home/weg/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games


## --- ##
## Core tests. ##
## --- ##

configure:2193: checking build system type
configure:2211: result: x86_64-unknown-linux-gnu
configure:2233: checking host system type
configure:2248: result: x86_64-unknown-linux-gnu
configure:2322: Assuming `--enable-web2c=yes'
configure:2543: Using `kpathsea' headers and library from TL tree
configure:2659: Using `libpng' headers and library from TL tree
configure:2716: Using `zlib' headers and library from TL tree
configure:2744: checking for a BSD-compatible install
configure:2812: result: /usr/bin/install -c
configure:2823: checking whether build environment is sane
configure:2866: result: yes
configure:2891: checking for a thread-safe mkdir -p
configure:2930: result: /bin/mkdir -p
configure:2943: checking for gawk
configure:2959: found /usr/bin/gawk
configure:2970: result: gawk
configure:2981: checking whether make sets $(MAKE)
configure:3003: result: yes
configure:3058: checking for style of include used by make
configure:3086: result: GNU
configure:3156: checking for gcc
configure:3172: found /usr/bin/gcc
configure:3183: result: gcc
configure:3415: checking for C compiler version
configure:3423: gcc --version 5
gcc (Debian 4.3.2-1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3427: $? = 0
configure:3434: gcc -v 5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' 
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release 

[NTG-context] Demostrations ala AMS

2009-04-17 Thread Xan

Hi,

I like to have the same environments in ConTeXt like in amsthm LaTeX.
With defineenumeration I did emulate thm and others, but now I trying to 
have something like demostration.


My code is:

% AMSTHM
\defineenumeration
 [exercici]
 
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,
before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},
after={\stopframedtext\egroup}]

\defineenumeration
 [lemma]
 
[text={Lema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic]

\definedescription[demo][location=serried,text={Demostración.},headstyle=bold,
indentnext=yes,between=\blank,before={\bgroup},after={$\Box$\egroup}]


The **problem** is how to put qed symbol (for example $\Box$ in my case) 
at the end of demo. I try with after but it's not works: \Box appears in 
the next line at the begginning. Can someone help me?


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


Re: [NTG-context] Demostrations ala AMS

2009-04-17 Thread Xan

En/na Xan ha escrit:

Hi,

I like to have the same environments in ConTeXt like in amsthm LaTeX.
With defineenumeration I did emulate thm and others, but now I trying 
to have something like demostration.


My code is:

% AMSTHM
\defineenumeration
 [exercici]
 
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit, 

before={\bgroup\startframedtext[background=screen,frame=off,width=broad]}, 


after={\stopframedtext\egroup}]

\defineenumeration
 [lemma]
 
[text={Lema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic] 



\definedescription[demo][location=serried,text={Demostración.},headstyle=bold, 


indentnext=yes,between=\blank,before={\bgroup},after={$\Box$\egroup}]


The **problem** is how to put qed symbol (for example $\Box$ in my 
case) at the end of demo. I try with after but it's not works: \Box 
appears in the next line at the begginning. Can someone help me?


Thanks,
Xan.


With
\definedescription[demo][location=serried,text={Demostración.},headstyle=bold,indentnext=yes,
between=\blank,before={\bgroup},after={\hfill$\Box$\egroup}]

demo puts \Box at the end of the following line. How to put _exactly_ at 
the end of the current line.?


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


Re: [NTG-context] Demostrations ala AMS

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 15:40 schrieb Xan:

The **problem** is how to put qed symbol (for example $\Box$ in my  
case) at the end of demo. I try with after but it's not works: \Box  
appears in the next line at the begginning. Can someone help me?


AFAIK closesymbol=\mathematics{\Box}

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


Re: [NTG-context] new beta

2009-04-17 Thread Hans Hagen

Eythan Weg wrote:


Hi, 


With the latest beta running under  luatex 0.39 I cannot
compile the simplest of files.  With 0.38 they run
fine. Also plain tex runs ok.

Here is where it stops:

local/share/texmf/tex/context/base/type-otf.tex \
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
(/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
| fatal error, no return code, message: luatex: execution interrupted


did you remake the formats? not all intermediate trunk versions get a 
new version number (say 0.38); there is some checking for the format but 
this assumes incremented numbers


normally context will regenerate the format automatically when it is 
updated but when you do the binary after that it assumes that nothing 
has changed


so ... can you remake the formats with context --make

(i tried this on one of the x64 machines after compilation and it solved 
the problem)


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


[NTG-context] Customize \head in startitemize

2009-04-17 Thread Xan

Hi,

I want to do

\startitemize[a][left={Apartado\space}]
\head
\stopitemize

but put left={Apartado\space} _only_ for \head. How can I do that?

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


Re: [NTG-context] new beta

2009-04-17 Thread Eythan Weg

Hans Hagen pra...@wxs.nl
Fri, 17 Apr 2009 16:22:38 +0200

   Eythan Weg wrote:
   
Hi, 
   
With the latest beta running under  luatex 0.39 I cannot
compile the simplest of files.  With 0.38 they run
fine. Also plain tex runs ok.
   
Here is where it stops:
   
local/share/texmf/tex/context/base/type-otf.tex \
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
(/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
| fatal error, no return code, message: luatex: execution interrupted
   
   did you remake the formats? not all intermediate trunk versions get a
   new version number (say 0.38); there is some checking for the format
   but this assumes incremented numbers

I believe I did.
   
   normally context will regenerate the format automatically when it is
   updated but when you do the binary after that it assumes that nothing
   has changed
   
   so ... can you remake the formats with context --make

I have done this now (although originally I used
luatools --generate; luatools --compile cont-en)
but no change.  The same execution interrupted.

In an earlier message I have provided logs,
which may contain hints, (but I could not find any).
   
   (i tried this on one of the x64 machines after compilation and it
   solved the problem)
   
   Hans

Thanks, Eythan 

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


Re: [NTG-context] new beta

2009-04-17 Thread Taco Hoekwater


Eythan Weg wrote:
 
 In an earlier message I have provided logs,
 which may contain hints, (but I could not find any).

Neither can I. The situation is weird because you seem to be the
only person (so far?) suffering from this problem.


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


Re: [NTG-context] new beta

2009-04-17 Thread Eythan Weg

Taco Hoekwater t...@elvenkind.com
Fri, 17 Apr 2009 17:53:17 +0200

   Eythan Weg wrote:

In an earlier message I have provided logs,
which may contain hints, (but I could not find any).
   
   Neither can I. The situation is weird because you seem to be the
   only person (so far?) suffering from this problem.


Ok.  I had this definition in cont-sys.tex

\definefontfeature
[default] [default]
[protrusion=pure, expansion=quality, mode=node, script=latn,
 liga=yes]   

0.38 works with it and 0.39 does not.

Why the diff?
   
   Best wishes,
   Taco


Thank you.

Eythan 

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


Re: [NTG-context] new beta

2009-04-17 Thread Hans Hagen

Eythan Weg wrote:

Taco Hoekwater t...@elvenkind.com
Fri, 17 Apr 2009 17:53:17 +0200

   Eythan Weg wrote:

In an earlier message I have provided logs,

which may contain hints, (but I could not find any).
   
   Neither can I. The situation is weird because you seem to be the

   only person (so far?) suffering from this problem.


Ok.  I had this definition in cont-sys.tex

\definefontfeature
[default] [default]
[protrusion=pure, expansion=quality, mode=node, script=latn,
 liga=yes]   


0.38 works with it and 0.39 does not.

Why the diff?


what font do you test?

btw, such a patch is rather inefficient as it will expand nearly all 
fonts which might not be what you want


and indeed it crashes


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


Re: [NTG-context] Customize \head in startitemize

2009-04-17 Thread Hans Hagen

Xan wrote:

Hi,

I want to do

\startitemize[a][left={Apartado\space}]
\head
\stopitemize

but put left={Apartado\space} _only_ for \head. How can I do that?


best use the descriptions mechanism then

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 17.04.2009 um 12:08 schrieb Hans Hagen:

i'll look into it, but then need a zip with a minimal set of files 
that i can use for testing


With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents


is this related to bibliographies?



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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Apr 17, 2009, at 9:55 AM, Taco Hoekwater wrote:


Hi,

Hans sent me a patch for the bib module so that it now should
work with the latest mkiv once again, but the code needs testing
before being included in the context distribution, so please
do so. You can get the new version of the module from

 http://modules.contextgarden.net/bib

Note: you need the latest context beta, because the bib module
required a small extension to the core.

Best wishes,
Taco


Hi Taco,

just to clarify things: on the download site in the garden, you write: 
This release has support for the new mkiv structure code, but it needs 
a very new beta (2009.04.16 23:52) The latest beta I could find was 
2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator


probably that whole bit of code should be disabled in mkiv as there is 
no need for it



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


[NTG-context] Calculator math

2009-04-17 Thread Marcin Borkowski
Hi,

where could I read about calculator math?

Regards

-- 
Marcin Borkowski (http://mbork.pl)

- Why did a mathematician call his dog Cauchy?
- Because it left a residue at every pole.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \setuparranging in mkiv

2009-04-17 Thread Otared Kavian

Hi Hans,

Your yesterday's beta impressed me once more with the speed at which  
you fix the reported bugs… Thanks so much!


Today I noticed something wrong with \setuparranging in mkiv, which  
may be due to the fact that the pagenumbering mechanisms have changed  
and I don't know yet the new structures: if this is the case please  
disregard this bug report.

Here is a minimal example:

\setuppapersize [A7][A4]
\setuparranging [2*2*4,doublesided]
\setuplayout [location=middle,marking=on]
\setupheadertexts[Arranging pages]

\starttext
\startbuffer[TestPage]
\strut
\blank
\midaligned{Is this a bug in mkiv?}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\showframe
\dorecurse{16}{\getbuffer[TestPage]\page}
\stoptext

Using mkiv (ConTeXt  ver: 2009.04.16 22:27 MKIV  fmt: 2009.4.17  int:  
english/english) I get an error message:


! Undefined control sequence.
\setuparranging ...gpages \abortutilitygeneration
  \fi \fi
l.4 \setuparranging [2*2*4,doublesided]

The above example works fine with mkii and the latest ConTeXt.

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


Re: [NTG-context] Customize \head in startitemize

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 16:33 schrieb Xan:


Hi,

I want to do

\startitemize[a][left={Apartado\space}]
\head
\stopitemize

but put left={Apartado\space} _only_ for \head. How can I do that?


You could ask Hans Can you implement a 'headcommand' key in itemize,  
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 19:05 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Am 17.04.2009 um 12:08 schrieb Hans Hagen:
i'll look into it, but then need a zip with a minimal set of files  
that i can use for testing

With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents


is this related to bibliographies?


No but you don't need multiple files for a example.

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 17.04.2009 um 19:05 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Am 17.04.2009 um 12:08 schrieb Hans Hagen:
i'll look into it, but then need a zip with a minimal set of files 
that i can use for testing
With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents


is this related to bibliographies?


No but you don't need multiple files for a example.


runs ok here


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


Re: [NTG-context] \setuparranging in mkiv

2009-04-17 Thread Hans Hagen

Otared Kavian wrote:

Hi Hans,

Your yesterday's beta impressed me once more with the speed at which you 
fix the reported bugs… Thanks so much!


Today I noticed something wrong with \setuparranging in mkiv, which may 
be due to the fact that the pagenumbering mechanisms have changed and I 
don't know yet the new structures: if this is the case please disregard 
this bug report.

Here is a minimal example:

\setuppapersize [A7][A4]
\setuparranging [2*2*4,doublesided]
\setuplayout [location=middle,marking=on]
\setupheadertexts[Arranging pages]

\starttext
\startbuffer[TestPage]
\strut
\blank
\midaligned{Is this a bug in mkiv?}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\showframe
\dorecurse{16}{\getbuffer[TestPage]\page}
\stoptext

Using mkiv (ConTeXt  ver: 2009.04.16 22:27 MKIV  fmt: 2009.4.17  int: 
english/english) I get an error message:


\let\abortutilitygeneration  \relax


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


Re: [NTG-context] new beta

2009-04-17 Thread Taco Hoekwater

Eythan Weg wrote:


Ok.  I had this definition in cont-sys.tex

\definefontfeature
[default] [default]
[protrusion=pure, expansion=quality, mode=node, script=latn,
 liga=yes]   


0.38 works with it and 0.39 does not.

Why the diff?


Thanks, that solved it. It crashed because there is a new optimization
in 0.39.0 that had a bug. Fix is in the luatex trunk now (#2313).

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Apr 17, 2009, at 9:55 AM, Taco Hoekwater wrote:


Hi,

Hans sent me a patch for the bib module so that it now should
work with the latest mkiv once again, but the code needs testing
before being included in the context distribution, so please
do so. You can get the new version of the module from

 http://modules.contextgarden.net/bib

Note: you need the latest context beta, because the bib module
required a small extension to the core.

Best wishes,
Taco


Hi Taco,

just to clarify things: on the download site in the garden, you write: 
This release has support for the new mkiv structure code, but it needs 
a very new beta (2009.04.16 23:52) The latest beta I could find was 
2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator


as i'm clueless about what the code does, can you add this to t-bib.mkiv

\def\preparebibreflist#1%
  {\let\bibreflist\empty}

and see if it solves the problem?

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 19:30 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Am 17.04.2009 um 19:05 schrieb Hans Hagen:

Wolfgang Schuster wrote:

Am 17.04.2009 um 12:08 schrieb Hans Hagen:
i'll look into it, but then need a zip with a minimal set of  
files that i can use for testing

With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents


is this related to bibliographies?

No but you don't need multiple files for a example.


runs ok here


that's not what I mean, here is a example, the bib entry comes from a  
external

file but you need only one file for the example because the filecontents
environment creates the bib file at compile time.


% defintion of the filecontents environment

\unprotect

\definemessageconstant {filecontents}

\startmessages all library: filecontents
title: filecontents
1: Overwriting file --
2: Writing file --
\stopmessages

\def\startfilecontents
  {\begingroup
   \protectbuffersfalse
   \dostartfilecontents}

\def\dostartfilecontents[#1]%
  {\doiffileexistselse{#1}
 {\showmessage\m!filecontents{1}{#1}}
 {\showmessage\m!filecontents{2}{#1}}%
   \beforesplitstring#1\at.\to\filename
   \aftersplitstring #1\at.\to\extension
   \let\f!temporaryextension\extension
   \dostartbuffer[\filename][startfilecontents][stopfilecontents]}

\def\stopfilecontents
  {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy(\jobname- 
\filename.tmp,\filename.\f!temporaryextension)}}%

   \endgroup}

\protect

% start of the real document

\startfilecontents[example.bib]
@manual{me,
author = Taco Hoekwater,
title  = \CONTEXT\ Publication Module, The user documententation,
year   = 2006,
note   = In case you didn't know: it's the document you are  
reading now,

pages  = 14
}
\stopfilecontents

\usemodule[bib]
\setupbibtex[database=example]

\starttext
\cite[me]
\placepublications
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 17.04.2009 um 19:30 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Am 17.04.2009 um 19:05 schrieb Hans Hagen:

Wolfgang Schuster wrote:

Am 17.04.2009 um 12:08 schrieb Hans Hagen:
i'll look into it, but then need a zip with a minimal set of files 
that i can use for testing
With the filecontents environment you need only one file: 
http://wiki.contextgarden.net/Filecontents


is this related to bibliographies?

No but you don't need multiple files for a example.


runs ok here


that's not what I mean, here is a example, the bib entry comes from a 
external

file but you need only one file for the example because the filecontents
environment creates the bib file at compile time.


ah, ok; although figuring out how to make a bib file and how to use it 
is not something that i've ever done before, i only looked into a big 
one when i wrote the parser -)


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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Taco Hoekwater

Hans Hagen wrote:
just to clarify things: on the download site in the garden, you write: 
This release has support for the new mkiv structure code, but it 
needs a very new beta (2009.04.16 23:52) The latest beta I could find 
was 2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator


as i'm clueless about what the code does, can you add this to t-bib.mkiv


There is actually a pretty elaborate documentation string in the code :(


\def\preparebibreflist#1%
  {\let\bibreflist\empty}

and see if it solves the problem?


Unlikely. It will remove the error message, though. ;)

Here is the relevant bit of docs:

%D \macros{preparebibrefprefix}
%D
%D The reference list only writes bare references when the criterium
%D is `all'. Otherwise, a prefix is added to make sure that pdfTeX
%D does not encounter duplicate named references. On the generation
%D side, this is not a big problem. \type{\preparebibrefprefix}
%D creates a suitable string to prepend if a prefix is needed.

Or, in pseudo-input:

 \chapter{...}
 \section{...}
 \placepublications[section]
 \section{..}
 \placepublications[section]
 \section{All chapter refs}
 \placepublications[chapter]

Can now work without crossreference key clashes, even though
each of the publication lists contains the same items (which
would all result in the same key names begin defined as cross-
reference labels if that prefix trickery was not in place)

But:

%D \macros{preparebibreflist}
%D
%D But this optional prefixing is a bit of a problem on the
%D other side. We would like to do \type{\goto{}[article-full]}
%D but can't do it like that, because the actual label may be
%D \type{1:2:0:3:4:article-full]} or so. The problem is solved
%D by building a commalist that looks like this:
%D \starttyping
%D \def\bibreflist%
%D{1:2:0:3:4:article-full,
%D 1:2:0:3:article-full,
%D 1:2:0:article-full,
%D 1:2:article-full,
%D 1:article-full,
%D article-full}
%D \stoptyping


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


Re: [NTG-context] Demostrations ala AMS

2009-04-17 Thread Xan

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


Re: [NTG-context] Customize \head in startitemize

2009-04-17 Thread Xan



Am 17.04.2009 um 16:33 schrieb Xan:

/ Hi,
//
// I want to do
//
// \startitemize[a][left={Apartado\space}]
// \head
// \stopitemize
//
// but put left={Apartado\space} _only_ for \head. How can I do that?
/
You could ask Hans Can you implement a 'headcommand' key in itemize,  
please.


Wolfgang

  


Hans, can you implement a 'headcommand' key in itemize
Wolfgang, following orders ;-)

Hans, how can I do it with descriptions? Can you be more specific?

Thanks for your speedy answers.

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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Hans Hagen

Taco Hoekwater wrote:

Hans Hagen wrote:
just to clarify things: on the download site in the garden, you 
write: This release has support for the new mkiv structure code, but 
it needs a very new beta (2009.04.16 23:52) The latest beta I could 
find was 2009.04.16 22:27, and with this, I still get the error


! Undefined control sequence.
argument ... [\bibrefprefix ][\sectionseparator


as i'm clueless about what the code does, can you add this to t-bib.mkiv


There is actually a pretty elaborate documentation string in the code :(


\def\preparebibreflist#1%
  {\let\bibreflist\empty}

and see if it solves the problem?


Unlikely. It will remove the error message, though. ;)


we use lists instead of references so it's probably ok

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


Re: [NTG-context] new beta

2009-04-17 Thread Eythan Weg

Hans Hagen pra...@wxs.nl
Fri, 17 Apr 2009 18:48:11 +0200

   Eythan Weg wrote:
Taco Hoekwater t...@elvenkind.com
Fri, 17 Apr 2009 17:53:17 +0200
   
   Eythan Weg wrote:
In an earlier message I have provided logs,
which may contain hints, (but I could not find any).
  Neither can I. The situation is weird because you seem to be
the
   only person (so far?) suffering from this problem.
   
   
Ok.  I had this definition in cont-sys.tex
   
\definefontfeature
[default] [default]
[protrusion=pure, expansion=quality, mode=node, script=latn,
 liga=yes]   
   
0.38 works with it and 0.39 does not.
   
Why the diff?
   
   what font do you test?

No font in particular.  I thought that any
subsequent request for a  body font with this
default feature would be fulfilled this way.

   btw, such a patch is rather inefficient as it will expand nearly all
   fonts which might not be what you want

   and indeed it crashes
   
Thank you.  Eythan 

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


Re: [NTG-context] Demostrations ala AMS

2009-04-17 Thread Aditya Mahajan

On Fri, 17 Apr 2009, Xan wrote:


Thanks Wolfgang.


You may also want to read an article that I wrote about Theorems in 
ConTeXt in MAPS 36, page 27-32, 2008. It is listed at 
http://www.ntg.nl/maps/36/index.html. You need to be an NTG member to 
access, or wait for a few months (I don't remember which month MAPS 36 was 
published) after which it will be freely available (once MkIV settles 
down, I will update the article and republish it as a My Way).


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


Re: [NTG-context] \setuparranging in mkiv

2009-04-17 Thread Otared Kavian


On 17 avr. 09, at 19:31, Hans Hagen wrote:


[…]
\let\abortutilitygeneration  \relax


Thanks Hans: this fixes the problem.

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


Re: [NTG-context] new beta

2009-04-17 Thread Eythan Weg

Taco Hoekwater t...@elvenkind.com
Fri, 17 Apr 2009 19:36:51 +0200

   Eythan Weg wrote:
   
Ok.  I had this definition in cont-sys.tex
   
\definefontfeature
[default] [default]
[protrusion=pure, expansion=quality, mode=node, script=latn,
 liga=yes]   
   
0.38 works with it and 0.39 does not.
   
Why the diff?
   
   Thanks, that solved it. It crashed because there is a new optimization
   in 0.39.0 that had a bug. Fix is in the luatex trunk now (#2313).

Yes, it works, but I still ponder Hans' remarks.
   
   Best wishes,
   Taco

Thanks, Eythan 


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


Re: [NTG-context] Bib module in mkiv

2009-04-17 Thread Peter Münster
On Fri, 17 Apr 2009, Wolfgang Schuster wrote:

 With the filecontents environment you need only one file:
 http://wiki.contextgarden.net/Filecontents

Hello Hans,

It would be great, if this piece of code could find its way into the
distribution!

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


[NTG-context] Numerals in mkiv

2009-04-17 Thread Otared Kavian

Hi Hans,

It seems that Arabic or Persian numerals (for instance in section  
numbers) in mkiv begin at 0, instead of 1… well it is true that in  
Mathematics natural integers begin with 0, but not in books in those  
languages :-)

Here is a minimal example:

\setupdirections[bidi=global]
\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT

\starttypescript[serif][arabic]
\usetypescript[serif][fallback]
\definefontsynonym [Serif][name:SimpleNaskhi] [features=arabic]
\stoptypescript

\starttypescript  [arabic]
  \definetypeface [arabic][rm] [serif] [arabic]  [default]
\stoptypescript

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

%%
% heading numbers:
   \setuphead[section][conversion=persiannumerals]  
%,numberstyle={arabic}]

%%%

\starttext
\dorecurse{5}{%
\section{بخش}\par
آزمایش
}
\stoptext

Pardon me if I have been missing something already explained elsewhere.

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


[NTG-context] Natural tables with \placetable

2009-04-17 Thread Design Department
Can anyone tell me why this table example is placed on the left margin
on the first page and the right margin on subsequent pages?
My intention is to place against the right margin on all pages.

\starttext
\placetable[right, 4*line, split]
  {none}
  {\bTABLE[split=repeat,option=stretch, textwidth=3in]
\bTABLEhead[rulethickness=1pt]
  \bTR
 \bTH[align={middle}] head \eTH
  \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{6}{
  \bTR
\bTD
  {\input knuth \par}
\eTD
  \eTR
}
\eTABLEbody
\bTABLEfoot
  \bTR
\bTH footer  \eTH
  \eTR
\eTABLEfoot
  \eTABLE}
\stoptext


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


Re: [NTG-context] Page background color. Does not cover the entire page.

2009-04-17 Thread Curiouslearn
Wow! Thanks for the reply. It is interesting the kind of things when using
Context or for that matter any typesetting system. I thought I chose the
letter size for my layout and I am printing it on a letter size paper. Also,
the PDF shows green everywhere. Hence, getting the color on whole page
should be easy. From your responses, it seems it is not possible because of
the way printers are designed.


On Fri, Apr 17, 2009 at 7:22 AM, John Devereux j...@devereux.me.uk wrote:

 Hans Hagen pra...@wxs.nl writes:

  Curiouslearn wrote:
  Hi,
  I created the attached PDF file using ConTeXt. As you can see I have a
 green
  background, which covers the whole page. However, when I took it to the
  printer today and he printed two copies for me, there was some white
 space
  left at four ends. The amount of space above, below, to the left and to
 the
  right was different. Here is my preamble. Can you suggest what I can do
 so
  that the whole page has the chosen green background color.
 
  -- print on larger paper and cut off the edges
  -- make your layout a bit smaller and cut off the edges

 Or

  -- get them to print it on light green paper? :)


 --

 John Devereux

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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Height of square root

2009-04-17 Thread Tomas Kisela
Hi everybody,

There's my issue:
If I switch a size of body font, the height of square root doesn't adapt well 
for letters exceeding a baseline (in my example y). Here is my code:

\starttext
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}
\stopformula
\switchtobodyfont[17pt]
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}
\stopformula
\switchtobodyfont[23pt]
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}
\stopformula
\stoptext

If I compile it on http://live.contextgarden.net/, everything looks fine, but 
on my ConTeXt (2009.04.17 19:32 MKIV on Win Vista) I get the result in 
attachment.
Do you have any ideas what's the problem and how can I fix it?

Thanks,
Tomas



sqrt.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2009-04-17 Thread Wei-Wei Guo

Hi Hans,

Here is the minimal examples.

1. The figure list and table list do not show caption titles and dots.
   Only label number and page number appear there, such as:

   1 Should have a caption title here   Should have dots here  13

   Example:
\starttext

\completelistoftables

\placetable[here][example-table]{\LaTeX}
\starttable[|l|l|]
  \NC longtable  \NC LONG TABLE \NC \AR
  \NC booktabs   \NC BOOKTABS \NC \AR
\stoptable

\stoptext

2. \writebetweenlist has no effect.

   Example:
\starttext

\completecontent
\writebetweenlist[section]{Text}

\section{Section 1}
\input knuth

\stoptext


3. Footnote number has a weird triangle mark beside, like 1▲.

   Example:
   I cannot reproduce the problem with default settings. Maybe it's
   a problem related with Chinese. What Chinese fonts do you have?
   Can I use Yanrui Li's zhfonts.tex in my examples?


Best Wishes,
Wei-Wei


Hans Hagen 写道:

minimal example needed


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


Re: [NTG-context] new beta

2009-04-17 Thread Yanrui Li
2009/4/18 Wei-Wei Guo wwgu...@gmail.com:
 Hi Hans,

 Here is the minimal examples.

 1. The figure list and table list do not show caption titles and dots.
   Only label number and page number appear there, such as:

   1 Should have a caption title here   Should have dots here  13

   Example:
            \starttext

            \completelistoftables

            \placetable[here][example-table]{\LaTeX}
            \starttable[|l|l|]
              \NC longtable      \NC LONG TABLE \NC \AR
              \NC booktabs       \NC BOOKTABS \NC \AR
            \stoptable

            \stoptext

 2. \writebetweenlist has no effect.

   Example:
            \starttext

            \completecontent
            \writebetweenlist[section]{Text}

            \section{Section 1}
            \input knuth

            \stoptext


 3. Footnote number has a weird triangle mark beside, like 1▲.

   Example:
           I cannot reproduce the problem with default settings. Maybe it's
           a problem related with Chinese. What Chinese fonts do you have?
           Can I use Yanrui Li's zhfonts.tex in my examples?



Hi, Wei-Wei,

I tested your examples. The first example can work here.
With AdobeSongStd-Light font, the third one can also work.
You can post your example with zhfonts.tex which use
Adobe Song and Kai fonts. I think that Hans have these fonts.

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 22:27 with LuaTeX 0.39)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2009-04-17 Thread Yanrui Li
2009/4/18 Yanrui Li liyanrui...@gmail.com:

 Hi, Wei-Wei,

 I tested your examples. The first example can work here.
 With AdobeSongStd-Light font, the third one can also work.
 You can post your example with zhfonts.tex which use
 Adobe Song and Kai fonts. I think that Hans have these fonts.


Sorry. I am wrong. The first one can not work here.

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 22:27 with LuaTeX 0.39))
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2009-04-17 Thread Wei-Wei Guo

Hi Hans,

Another bug, probably.

4. interlinespace of \setupbodyfontenvironment is not working.

   Example:
\setupbodyfontenvironment[12pt]
   [interlinespace=2.3ex]

\setupbodyfont[rm,12pt]

\starttext
\input knuth
\stoptext


Best wishes,
Wei-Wei


Hans Hagen 写道:

minimal example needed

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


Re: [NTG-context] new beta

2009-04-17 Thread Wei-Wei Guo

Hi,

The reproduction of the footnote problem is tricky. And it seems it's not a 
Chinese
related problem. Here is the example:

%===
\starttext

\chapter{First}

Way to \ConTeXt\footnote{It's also the title of Yanrui Li's tutorial.} is 
painful.

\input knuth

\section{Second}

But \ConTeXt is amazing.\footnote{Yanrui Li's tutorial too.}

\input knuth

\startlocalfootnotes
\placetable{Complex Table\footnote{An test table.}}
\placelegend{
\starttable[|l|n3.1 |n3.1 |n3.1 |n3.1 |]
  \HL
  \NC\NC \Use{2}[c]{First Half} \NC \Use{2}[c]{Second Half} \NC \FR
  \DC\DL[4] \DR
  \NC\NC 1st Qtr  \NC 2nd Qtr   \NC 3rd Qtr \NC 4th Qtr \NC \LR
  \HL
  \NC East \NC   20.4   \NC7.4\NC 90  \NC20.4 \NC \FR
  \NC West \NC   30.6   \NC  338.6\NC   34.6  \NC31.6 \NC  \LR
  \HL
\stoptable}
{\placelocalfootnotes}
\stoplocalfootnotes
%=


The problem:
   The second footnote are generated twice. The duplicated footnote appears
   only when \section, \startlocalfootnotes, and other \footnote are there.

I cannot reproduce the 1▲ problem I have said before. It more tricky.


Best wishes,
Wei-Wei


Yanrui Li 写道:

3. Footnote number has a weird triangle mark beside, like 1▲.

  Example:
  I cannot reproduce the problem with default settings. Maybe it's
  a problem related with Chinese. What Chinese fonts do you have?
  Can I use Yanrui Li's zhfonts.tex in my examples?




Hi, Wei-Wei,
the third one can also work.
You can post your example with zhfonts.tex which use
Adobe Song and Kai fonts. I think that Hans have these fonts.


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


[NTG-context] How to set \definemakeup without affect other pages?

2009-04-17 Thread Wei-Wei Guo

Dear all,

I use \setupbackgrounds to draw a line under header. It works fine.
When I setup a cover makeup and use it, the lines under headers are gone.

The headerstate=none causes the problem. But I don't want the lines under 
headers
appear in cover. What should I do?

Here is an example.

%==
\setupbackgrounds
   [header][text]
   [frame=off,bottomframe=on,rulethickness=1.5pt]

\definemakeup[cover]
  [headerstate=none,
   footerstate=none,
   pagestate=stop,
   doublesided=yes]

\starttext

\startcovermakeup
\input knuth
\stopcovermakeup

\input knuth

\stoptext
%==


Best wishes,
Wei-Wei
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Calculator math

2009-04-17 Thread Aditya Mahajan

On Fri, 17 Apr 2009, Marcin Borkowski wrote:


Hi,

where could I read about calculator math?


mk.pdf has a small section on calcmath. For the implementation details, 
look at x-caclmath.(lua|tex|mkiv). The lua tables in the beginning of the 
lua file show which functions work and which don't.


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