[NTG-context] urgent bottom line problem (thin paper)

2010-09-12 Thread Steffen Wolfrum
Hi,

before getting the train to Praha there is an urgent last problem to be solved:

The bottom line of body text and footnote text need to be absolutely at the 
same height (due to a very thin paper used)!

I tried to fine-tune the height of layout by 1pt up-and-down, but the 
difference stays: at least 1mm.
Is there a "...skip" that's needs to be adjusted?

(using grid mode is a no-go!)

Help please!!


Steffen
[2010.09.05 13:23 MKIV]


===

\definepapersize[stw][width=15.7cm,height=23.2cm]
\setuppapersize[stw][stw]%  <- Format

\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt]

\setuplayout 
[width=113mm,height=532pt,
backspace=20mm,topspace=15mm,
header=12pt,headerdistance=6pt,
footer=0pt,footerdistance=0pt,
location=middle]


\starttext

\dorecurse{20}{{\dorecurse{5}{\input tufte \input ward \input ward \par}} 
\footnote{\input tufte\par} \input ward \par}

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


[NTG-context] unsubscribe

2010-09-12 Thread Jochen Dietrich


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

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] countervalue section

2010-09-12 Thread Steffen Wolfrum

Am 12.09.2010 um 18:28 schrieb Wolfgang Schuster:

> 
> Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum:
> 
>> Hi all,
>> 
>> how can I change a section's conversion (eg. for use in headertext).
> 
> \convertnumber{...}{\namedheadnumber{chapter}}
> 
> or
> 
> \convertnumber{...}{\placerawheadnumber[chapter]}
> 
> Wolfgang


Wonderful: "\namedheadnumber" ...

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

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] countervalue section

2010-09-12 Thread Wolfgang Schuster

Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum:

> Hi all,
> 
> how can I change a section's conversion (eg. for use in headertext).

\convertnumber{...}{\namedheadnumber{chapter}}

or

\convertnumber{...}{\placerawheadnumber[chapter]}

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] pdf file not found (final question)

2010-09-12 Thread Hans Hagen

On 12-9-2010 3:10, Peter Münster wrote:

On Sun, Sep 12 2010, Hans Hagen wrote:

On 12-9-2010 8:41, Peter Münster wrote:


- or don't ever use "*" in a filename?


in all our projects we normalize to a-z and a dash, otherwise you
always get into problems esp when graphics come from a third party
... multiple spaces in names, funny case mixing, underscores not
seen on low res displays, mismatches between source and real names,


I totally agree. In my own projects I do the same. The question is rather: is
context supposed to support the "*" in filenames, or not.


it depends ... in some places I process patterns and then the * is 
special in lua so for the moment consider '*' and '?' and such are 'not 
to be used in filenames'


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] stray characters in output before bibliography

2010-09-12 Thread Taco Hoekwater

On 09/12/2010 03:24 PM, Johann P.S. Dahm wrote:


(Something, Somedate) some text.

1 References

pubs]References


Something is wrong here (I guess perhaps a version issue), but it
can be circumvented by using

  \placepublications[criterium=all]

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

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


[NTG-context] stray characters in output before bibliography

2010-09-12 Thread Johann P.S. Dahm
Hi, I'm new to ConTeXt (from LaTeX).  I'm trying it out for a course paper that 
I need to write and running into a problem with the output pdf.  With respect 
to the code below, when I compile it, I get the odd text "pubs]References" 
under the "References" section heading.  I've looked around, but I can't find 
anyone having a similar problem.  Is this caused by something I'm doing 
incorrectly in the ConTeXt code or is it something wrong with the bib module?  
For reference: I'm using MacTeX 2010 (up-to-date) on OSX10.6.

---
\usemodule[bib]

\setupbibtex[database=sources,sort=author, numbering=yes]

\starttext

\cite[something] some text.

\section{References}
\completepublications

\stoptext
---

Output looks like:

(Something, Somedate) some text.

1 References

pubs]References
1 "Title of the book", publisher, etc

---

Thanks for any help,
- Johann

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

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] setuparranging eats the last page

2010-09-12 Thread Marius
Hello,

Then I added \setuparranging [2SIDE] in the given example bellow, the
last page of the document disappeared. Looks like a bug.

MKIV version: 2010.09.09 23:45

===
\setuppapersize[A5][A4,landscape]
\setuparranging [2SIDE]

\appendtoks
\page
Last page.
\to\everystoptext

\starttext
First page.
\page
Next page.
\stoptext
==

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

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] pdf file not found (final question)

2010-09-12 Thread Peter Münster
On Sun, Sep 12 2010, Hans Hagen wrote:
> On 12-9-2010 8:41, Peter Münster wrote:
> 
> >- or don't ever use "*" in a filename?
> 
> in all our projects we normalize to a-z and a dash, otherwise you
> always get into problems esp when graphics come from a third party
> ... multiple spaces in names, funny case mixing, underscores not
> seen on low res displays, mismatches between source and real names,

I totally agree. In my own projects I do the same. The question is rather: is
context supposed to support the "*" in filenames, or not.

If yes, context must be enhanced somewhere.
If no, I can add something to the context manual.
And it would be nice, if there was a clear error message. It was really not
obvious to me, that some file in my local tree was the reason for
"!LuaTeX error: PDF inclusion: required page <2> does not exist"

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] countervalue section

2010-09-12 Thread Steffen Wolfrum
Hi all,

how can I change a section's conversion (eg. for use in headertext).

See minimal example below, please.

Steffen

===

\starttext

\chapter{Test}

\headnumber[chapter]% now we have numbers

% And just now we want to show the same as Characters not numbers:
%\convertnumber{\Characters}{\countervalue{@@sesection-2}}% <- gives error
%\Characters{\headnumber[chapter]}% <- gives error

\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] Units fonts and spacing

2010-09-12 Thread Hans Hagen

On 11-9-2010 4:00, Wolfgang Schuster wrote:


Am 11.09.2010 um 11:33 schrieb Hans Hagen:


Will siunits module be used as a base for this or will this be
something completely new?


I don't know what you mean with siunits. Wolfgangs module?  We have unit 
support in context for along time (also as part of some mathml extensions). So, 
we're more talking of an upgrade of the current module (units and digits) and I 
will have a look at Wolfgangs code to see what additional support is in there 
and we can merge things if needed.


He’s talking about my module. The difference between our modules is that your 
use “10 \Meter \Per \Second” for the input while i use 
”\siunit{10\meter\per\second}”.


ah, so you explicitly tag the unit

one reason why I didn't do this is that it does not integrate well in 
math at that time (superscripts etc) and the mechanism was mainly meant 
for schoolbooks (and strongly related to mathml input as well)



There is nothing wrong about two modules with the same function as long as both 
do not cause a problem for the module (and i took care of this in my module).


sure


Parts like the number parsing can become part of the core and you provide a 
function which others can use to integrate it in their own macros.


indeed


The fundamentals of units are not going to change much, apart from the fact 
that we can now parse m/s if needed instead of using the verbose names).


I’m not a friend of the ”m/s” input because you can’t say where a units 
starts/ends without adding separators between them, here is a example from 
latex’s siunitx package which supports both methods but although the first is 
shorter we should rely on the tex method


hm, never seen that one (no time to look into it anyway)


- si{kg.m/s^2}
- si{\kilo\gram\metre\per\square\second}


we can provide the first one flagged as "unit mode for dummies" but it 
will never work out well with


$ a = 123 m/s^2$

so one would always hae to tag the unit then.


Keep in mind that the units module runs on top of synonyms so that one can ask 
for lists of used units and meanings of them.


Adding this function is no problem, synonyms can also be integrated in any 
other system.


yes

let's discuss it at the conference

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] natural tables -- split 'n grid

2010-09-12 Thread Hans Hagen

On 11-9-2010 6:03, Philipp Gesang wrote:

Hi,

line correction leads to unwanted vertical spacing in split
natural tables. Example (in both MkII and MkIV):

··8<·
%\setuplayout[grid=yes] % not required to reproduce it
\starttext
\dorecurse{4}{\input knuth\par}
\startlinecorrection% fine without line correction
\bTABLE[split=yes]  % fine with split=no
\bTABLEhead
\bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR
\bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC\eTR
\bTR\bTC False\eTC\bTC True\eTC\bTC True\eTC\eTR
\bTR\bTC True\eTC\bTC True\eTC\bTC True\eTC\eTR
\eTABLEbody
\eTABLE
\stoplinecorrection
\stoptext
··8<·

What am I missing here? Is line correction even recommended for
use with tables? Why isn't it ignored if grid typesetting is
switched off? Thanks in advance,


that you should not use linecorrection with split


-
  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] pdf file not found (final question)

2010-09-12 Thread Hans Hagen

On 12-9-2010 8:41, Peter Münster wrote:


- or don't ever use "*" in a filename?


in all our projects we normalize to a-z and a dash, otherwise you always 
get into problems esp when graphics come from a third party ... multiple 
spaces in names, funny case mixing, underscores not seen on low res 
displays, mismatches between source and real names, ...


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-09-12 Thread Hans Hagen

On 12-9-2010 1:01, Li Yanrui (李延瑞) wrote:

2010/9/12 Hans Hagen:

On 12-9-2010 8:52, Zhichu Chen wrote:


Fine, I see what's the problem: I can't find my fonts.

I run
mtxrun --script fonts --reload
and
luatools AdobeSongStd-Light.otf
get

d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/Adobe/AdobeSongStd-Light.otf
But when I run
mtxrun --script fonts --list --file Adobe


--pattern=*adobe*



However `mtxrun --script fonts --list --pattern=*` command can not
work now at least for the beta 2010.09.09 in linux x86. It gives the
error:

...text/tex/texmf-context/tex/context/base/font-otp.lua:512: attempt
to call field 'register' (a nil value)


not in the latest beta

-
  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-09-12 Thread 李延瑞
2010/9/12 Hans Hagen :
> On 12-9-2010 8:52, Zhichu Chen wrote:
>>
>> Fine, I see what's the problem: I can't find my fonts.
>>
>> I run
>> mtxrun --script fonts --reload
>> and
>> luatools AdobeSongStd-Light.otf
>> get
>>
>> d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/Adobe/AdobeSongStd-Light.otf
>> But when I run
>> mtxrun --script fonts --list --file Adobe
>
> --pattern=*adobe*
>

However `mtxrun --script fonts --list --pattern=*` command can not
work now at least for the beta 2010.09.09 in linux x86. It gives the
error:

...text/tex/texmf-context/tex/context/base/font-otp.lua:512: attempt
to call field 'register' (a nil value)

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


Re: [NTG-context] beta

2010-09-12 Thread Hans Hagen

On 12-9-2010 8:52, Zhichu Chen wrote:

Fine, I see what's the problem: I can't find my fonts.

I run
mtxrun --script fonts --reload
and
luatools AdobeSongStd-Light.otf
get
d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/Adobe/AdobeSongStd-Light.otf
But when I run
mtxrun --script fonts --list --file Adobe


--pattern=*adobe*

-
  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] numbers missing in subsubsubsubsubsubsection

2010-09-12 Thread Wolfgang Schuster

Am 11.09.2010 um 22:50 schrieb Steffen Wolfrum:

> 
> Hi all,
> 
> how do I get my numbers in level nine (and higher) back?
> See example below please.

Add

\definestructureprefixset [myset] 
[section-1,section-2,section-3,section-4,section-5,section-6,section-7,section-8,section-9,section-10,section-11]
 []

\setupheads[sectionset=myset]

to your document.

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] pdf file not found (final question)

2010-09-12 Thread Taco Hoekwater

On 09/12/2010 08:41 AM, Peter Münster wrote:


So the question is:
- bug?


Bad unstoppable cmd shell expansion


- or don't ever use "*" in a filename?


Not on windows, apparently.

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] (Xe)ConTeXt and CJK support

2010-09-12 Thread Wolfgang Schuster

Am 09.09.2010 um 10:21 schrieb S Barmeier:

> Dear ConTeXt users,
> 
> I am trying to write a document (grammar notes) in English and Japanese
> and so far have used XeTeX (for Unicode support) with tikZ (for
> graphics) quite successfully. However, I wish to convert to (Xe)ConTeXt
> in order to have more control over the page design.
> 
> At the moment I am stuck at trying to define English and Japanese fonts.
> In XeTeX I used
> 
> \usepackage[BoldFont]{xeCJK}
> \setCJKmainfont{IPAMincho}
> \setCJKsansfont{IPAGothic}
> \setCJKmonofont{KanjiStrokeOrders}
> 
> in order to set the three different Japanese fonts I am using.
> 
> I haven't found any documentation on how to implement something
> equivalent in ConTeXt and would be most grateful if someone could
> outline how I would best go about converting my XeTeX document to ConTeXt.

With MkIV you can set different fonts for Japanese with the fontfallback
mechanism, there is not documentation about it but you can on the net
a few examples how to use it:

- http://liyanrui.is-programmer.com/2009/10/21/not-just-for-chinese.12264.html
- http://liyanrui.is-programmer.com/posts/5737.html
- http://blogs.gnome.org/happyaron/2009/11/02/font-fallback-in-context-mininals/

The simplefonts modules provides a fontspec inspired interface to use
the mechanism in a simpler way:

\usemodule[simplefonts]

\setcjkmainfont[IPAMincho]
\setcjksansfont[IPAGothic]
\setcjkmonofont[KanjiStrokeOrders]

\starttext
...
\stoptext

Wolfgang


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

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