Re: [NTG-context] ConTeXt Book: Request for help!

2011-08-15 Thread Florian Wobbe
 According to statistics of distribution downloads (just counting
 unique IPs, so not absolutely accurate), windows users amount to
 17-20% downloads. Wiki gets 46% of windows users.

Have you ever googled for something context related? You end up mostly with 
false positives because context can appear just in any context. I wonder if 
all those windows hits are from people who searched for any other context and 
ended up on the wiki by mistake...

Florian

 (I'm worried a bit about the high discrepancy in numbers, in
 particular if you keep in mind that many might be using TeX Live under
 Linux, bundled with their distribution, however ConTeXt doesn't even
 work on MikTeX.)
 
 Mojca

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

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


Re: [NTG-context] Use ConTeXt standalone (was: current version?)

2011-11-23 Thread Florian Wobbe
 Can someone help? By some incantation that I cannot now seem to
 reproduce, I was able to obtain and install:
mtx-context | current version: 2011.11.14 16:17
 
 In an attempt to update this version, I ran first-setup.sh found at
 http://minimals.contextgarden.net/setup/first-setup.sh and what got
 installed was:
mtx-context | current version: 2011.05.18 18:04
 
 This looks like the ConTeXt version in Debian.

That is the current stable version [1].

 Can anyone tell me how to get back to 2011.11.14 or to the latest version?

You'll either have to wait until Mojca or Hans fix the rsync archive, or you 
pull the minimals from gitorious [2].

Florian

[1] http://www.pragma-ade.nl/download-1.htm
[2] http://www.gitorious.org/context



PGP.sig
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Where is the documentation of the letter module

2012-05-22 Thread Florian Wobbe
Wolfgang:

I have an old letter that typesets fine with beta 2011.11.29 23:11 but that 
fails with anything newer than that.

I get lots of Undefined control sequence and \textwidth seems to expand to 
something without a unit: Illegal unit of measure (pt inserted).

Anyway, I guess there are big changes so I'd like to go through the 
documentation again. However, [1] seems to be gone now and the pdf in [2] is 
absent too.

Cheers,
Florian

[1] texmf-context/tex/context/third/letter/base/t-correspondence.tex
[2] http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Where is the documentation of the letter module

2012-05-24 Thread Florian Wobbe
 Wolfgang:
 
 I have an old letter that typesets fine with beta 2011.11.29 23:11 but that 
 fails with anything newer than that.
 
 I get lots of Undefined control sequence and \textwidth seems to expand to 
 something without a unit: Illegal unit of measure (pt inserted).
 
 Anyway, I guess there are big changes so I'd like to go through the 
 documentation again. However, [1] seems to be gone now and the pdf in [2] is 
 absent too.
 
 Cheers,
 Florian
 
 [1] texmf-context/tex/context/third/letter/base/t-correspondence.tex
 [2] http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/

Hi,

is there anyone else who knows where the current correspondence docu resides? I 
tried again to locate it but to no avail. I know there is also [3] but it 
claims to be from 2010-08-27. I checked the tree of beta 2011.11.29 23:11 once 
more. There, the documentation is in

  texmf-context/source/context/third/letter/doc/correspondence

But that directory does not exist anymore. Now there seems to be only one file 
left:

  texmf-context/doc/context/third/letter/README

Cheers,
Florian

[3] http://cdn.bitbucket.org/wolfs/correspondence/downloads/correspondence.pdf

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

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] Where is the documentation of the letter module

2012-05-29 Thread Florian Wobbe
 is there anyone else who knows where the current correspondence docu 
 resides? I tried again to locate it but to no avail.
 
 There is some guidance about what's new in these messages:
 
 http://www.ntg.nl/pipermail/ntg-context/2012/064695.html
 
 http://www.ntg.nl/pipermail/ntg-context/2012/065039.html

Michael, thanks a lot. These were in fact the missing links! With the help of 
the comments in the thread above and looking into the sources I was able to 
reproduce most of my old letter template. However, I'm struggling to get the 
enclosures into an itemized list. This used to work with the old letter module 
but now fails:

  \startletter[enclosure={A\\B\\C}, ...] -- encl: AcrlfBcrlfC

In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang proposed 
\startletter[enclosure={list:one,two,three}, ...] to get an itemized list. But 
this does not seem to be implemented yet. How would I get this right?


Wolfgang, I believe I found a bug that introduces some extra space in the 
backaddress: fromname, extra space, fromaddress. Here is the fix:

--- a/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi
+++ b/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi
@@ -297,7 +297,7 @@
 \defineletterelement[\v!layer][\v!backaddress][\s!default]
   {\def\\{\correspondencelayerparameter\c!separator}%
\correspondenceparameter\c!fromname
-   \doifsomething{\correspondenceparameter\c!fromaddress}\\
+   \doifsomething{\correspondenceparameter\c!fromaddress}\\%
\correspondenceparameter\c!fromaddress}
 
 \defineletterelement[\v!layer][\v!backaddress][\v!auto]

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

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] Where is the documentation of the letter module

2012-05-30 Thread Florian Wobbe
 [...] I'm struggling to get the enclosures into an itemized list. This 
 used to work with the old letter module but now fails:
 
 \startletter[enclosure={A\\B\\C}, ...] -- encl: AcrlfBcrlfC
 
 In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang 
 proposed \startletter[enclosure={list:one,two,three}, ...] to get an 
 itemized list. But this does not seem to be implemented yet. How would I get 
 this right?
 
 It does work but you need MkIV:
 
 \usemodule[letter]
 
 \setupletterdescription
  [enclosure]
  [
 location=top,
 leftmargin=1em,
 symbol=bullet,
  ]
 
 \setupletter
  [enclosure={list:One,Two,Three}]
 
 \startletter
 \input knuth
 \stopletter

Thanks, Wolfgang, got that working now. But I'd like to change the formatting 
of the list further from

encl:
 * One
 * Two
 * Three

to

encl: One
  Two
  Three

without symbols. So I tried:

 \setupletterdescription [enclosure] [symbol=bullet]

This did not work so I tried:

 \definesymbol[nosymbol][{}]
 \setupletterdescription [enclosure] [symbol=nosymbol]

But that results in:

encl:too much space One
 too much space Two
 too much space Three

I cannot remove the extra space with:

 \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em]

Note, that this works:

\setupitemize[each][fit][distance=0em]
\startitemize
  \item no extra space before bullet
\stopitemize

-- *no extra space before bullet

However, it does not work with an enumeration once the symbol was removed:

\setupitemize[each][fit][symbol={},distance=0em]
\startitemize
  \item item
\stopitemize

-- too much space item

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

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] Where is the documentation of the letter module

2012-05-30 Thread Florian Wobbe
 [...] I'm struggling to get the enclosures into an itemized list. This 
 used to work with the old letter module but now fails:
 
 \startletter[enclosure={A\\B\\C}, ...] -- encl: AcrlfBcrlfC
 
 In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang 
 proposed \startletter[enclosure={list:one,two,three}, ...] to get an 
 itemized list. But this does not seem to be implemented yet. How would I 
 get this right?
 
 It does work but you need MkIV:
 
 \usemodule[letter]
 
 \setupletterdescription
 [enclosure]
 [
   location=top,
   leftmargin=1em,
   symbol=bullet,
 ]
 
 \setupletter
 [enclosure={list:One,Two,Three}]
 
 \startletter
 \input knuth
 \stopletter
 
 Thanks, Wolfgang, got that working now. But I'd like to change the 
 formatting of the list further from
 
 encl:
 * One
 * Two
 * Three
 
 to
 
 encl: One
 Two
 Three
 
 without symbols. So I tried:
 
 \setupletterdescription [enclosure] [symbol=bullet]
 
 This did not work so I tried:
 
 \definesymbol[nosymbol][{}]
 \setupletterdescription [enclosure] [symbol=nosymbol]
 
 ConTeXt has a empty symbol with the name “none”.

Very helpful indeed!

 But that results in:
 
 encl:too much space One
too much space Two
too much space Three
 
 I cannot remove the extra space with:
 
 \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em]
 
 Note, that this works:
 
 \setupitemize[each][fit][distance=0em]
 \startitemize
 \item no extra space before bullet
 \stopitemize
 
 -- *no extra space before bullet
 
 However, it does not work with an enumeration once the symbol was removed:
 
 \setupitemize[each][fit][symbol={},distance=0em]
 
 \setupitemize[each][symbol=none,width=0pt,distance=0pt]

Good!

 \startitemize
 \item item
 \stopitemize
 
 -- too much space item
 
 I uploaded a new revision which doesn’t insert an extra space when you use 
 “symbol=none”.

Thanks for this quick enhancement, works now! Just for completeness: How do I 
change the distance between bullet and item text in your original suggestion? 
Adding 'width=' here does not change anything:

\setupletterdescription
 [enclosure]
 [
location=top,
leftmargin=1em,
width=5pt,
symbol=bullet
 ]

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

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


[NTG-context] Missing keys in reference line (letter module)

2013-06-08 Thread Florian Wobbe
Hi,

the keys name and phone are not included in the reference line using the 
minimal example from the correspondence manual below. The reference line just 
contains the date. Also changing the alternative from a to b has no effect. 
What am I missing?

I upgraded to the latest beta and the header of s-cor-01.mkvi states version 
2013.01.14.

Cheers,
Florian

8---
\usemodule[letter]

\setupletter
  [name=Willi Maier,
   phone=01234-56789,
   fax=3456-9853,
   date=\currentdate]

\setupletter
  [fromname={Max Mustermann},
   fromaddress={Musterstraße 12\\12345 Musterstadt}]

\setupletter
  [toname={Hans Hansen},
   toaddress={Zielgasse 23\\34789 New Mustertown}]

\setupletter
  [subject={Grund des Anschreibens},
   opening={Sehr geehrte Damen und Herren,},
   closing={Mit freundlichen Grüßen}]

\setupletter
  [alternative=a,
   list={name,phone,date}]

\starttext
\startletter
\input knuth\par
\stopletter
\stoptext
---8

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

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


Re: [NTG-context] Missing keys in reference line (letter module)

2013-06-08 Thread Florian Wobbe
 Hi,
 
 the keys name and phone are not included in the reference line using the 
 minimal example from the correspondence manual below. The reference line 
 just contains the date. Also changing the alternative from a to b has no 
 effect. What am I missing?
 
 You have to pass the settings to \setupletterlayer[reference][…] (see below). 
 In previous
 versions of the module I provided \setupletter as alternative way to set 
 values for the list
 but after the last rewrite I removed it.
 
 [...]
 BTW: When your document consists of only a single letter you can omit the 
 \starttext/\stoptext commands.
 
 Wolfgang

Great, it works again - thanks a lot for both hints!
Florian
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Strange optical scaling

2010-09-18 Thread Florian Wobbe
Dear all,

I was about to adapt the type-optical module to include Semibold and Condensed 
when I noticed that optical scaling is not working as expected. To be more 
precise only downscaling works. Let me give you a short example of what I did:

\usemodule[type-optical]
\usetypescript[minion]
\setupbodyfont[minion,12pt]
\starttext
\title{Title}
\section{Section}
Text
\tfxx tfxx
\tfx tfx
\tfa tfa
\tfb tfb
\tfc tfc
\tfd tfd
\stoptext

This document is composed of various font sizes: \tfxx to \tfd scale to 7.2, 
9.6, 14.4, 17.28, 20.736, and 24.888pt. According to the definitions in 
type-optical \tfxx should be set in MinionPro-Capt, \tfx and \tf in 
MinionPro-Regular, \tfa and \tfb in Subhead and the rest is Display size. 
Looking at the resulting PDF file with pdffonts indicates that 
MinionPro-Regular and MinionPro-Capt are the only fonts used. Not so Subhead or 
Display sizes.

Changing the bodyfont to [minion,14pt] results in MinionPro-Subh and 
MinionPro-Regular to be included.

I was curious and tried the same thing with Latin Modern:

\setupbodyfont[8pt]
\starttext
\title{Title}
\section{Section}
Text
\tfa tfa
\tfb tfa
\tfc tfa
\tfd tfa
\stoptext

Same problem: Only LMRoman8-Regular is used. 

By including the lines

\tfxx tfxx
\tfx tfx

LMRoman5-Regular and LMRoman6-Regular are included in the PDF. Again not the 
larger sizes.

I'm quite puzzled about this strange behaviour and would apreciate any help.

Best
Florian

PS.: I'm running Tex Live 2010 (MacTex) with a recent update from 
rsync://contextgarden.net/minimals/current/.

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

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] Superscript in \date

2010-09-24 Thread Florian Wobbe
Dear all,

I tried to change the output format of \date so that the day includes the 
letter suffixes as superscript.

  \definefontfeature[sups][sups=yes,script=latn]
  \usetypescript[antykwa-torunska]
  \setupbodyfont[antykwa,12pt]

  \starttext
\date[][day,{\setff{sups}th},~,month,year]
  \stoptext

I get the following error.

inserted text 
\inaccessible 
to be read again 
   {
argument \unskip {\edef {
   sups}\attribute \zerocount 18\relax th}\hskip \da...
\p!compareprocessaction ...commalistelement {#3}#2
  \fi \fi 
\next2 #1,-\p!doprocessaction {#1}
   \doprocesscommaitem 
\processnextcommalist ...odoprocesscommaitem #4#5,
  ]\relax \global \advance \...
...
l.14 \date[][day,{\setff{sups}th},~,month,year]


BTW the output looks fine in spite of the error message.

Using superscripts in this way does not cause errors:

57{\setff{sups}th} or \date[][day,$^{\mr th}$,~,month,year]

What is going wrong here?

Thanks!
Florian

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

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] Superscript in \date

2010-09-24 Thread Florian Wobbe
Well, and I didn't know about \high - thanks for pointing out. My aim was 
actually to make use of the superscript font feature of Antykwa.

Florian

On Sep 24, 2010, at 17:18 , Aditya Mahajan wrote:

 On Fri, 24 Sep 2010, Florian Wobbe wrote:
 
 57{\setff{sups}th} or \date[][day,$^{\mr th}$,~,month,year]
 
 Don't know about \setff, but using \high{th} is better than going to math 
 mode.
 
 Aditya
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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] font sizes (again)

2010-09-29 Thread Florian Wobbe
Hi,

please regard this minimal example:

\setupbodyfont[10pt]
\starttext
\title{Title}
\section{Section}
{\switchtobodyfont[big] big}
{\switchtobodyfont[small] small}
{\tfxx tfxx}
{\tfx tfx}
{\tfa tfa}
{\tfb tfb}
{\tfc tfc}
{\tfd tfd}
\stoptext

Latin Modern Regular is available in different optical sizes - 
lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these 
sizes (configured in typescripts) I wonder why they are not correctly assigned. 
This table indicates what happens instead:

\tfxx 6pt- lmroman6 (as expected)
\tfx  8pt- lmroman8 (as expected)
\tftf 10pt   - lmroman10 (as expected)
\tfa  12.0pt - lmroman10 (instead of lmroman12)
\tfb  14.4pt - lmroman10 (instead of lmroman12)
\tfc  17.3pt - lmroman10 (instead of lmroman17)
\tfd  20.7pt - lmroman10 (instead of lmroman17)

\switchtobodyfont[small]  8pt  - lmroman8 (as expected)
\switchtobodyfont[big]12pt - lmroman12 (as expected)

\title   17.3pt - lmroman10 (instead of lmroman17)
\section 12pt   - lmroman10 (instead of lmroman12)

The commands \title and \section and the font size switches \tfa, b, c, and d 
scale the font to the correct size, however, the wrong optical size is 
assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. Tested 
in MKIV and MKII (current beta).

Is this a bug or a feature?

Cheers
Florian

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

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] Cambria and companion fonts

2010-09-29 Thread Florian Wobbe

 What exactly is rscale=auto ?
 
 Instead of giving a scale factor (e.g. factor=1.1) you can say auto and 
 context use the font information to scale the sans font to the same size as 
 the serif font.

How does it work internally? Or on which font parameters does this depend on 
(e.g. x-height, font em-units etc.)? Consider the following example which does 
not work here (Modern Typewriter is scaled to small):

\definetypeface [mainface] [rm] [serif] [cambria]  [default]
\definetypeface [mainface] [tt] [mono]  [modern]   [default] [rscale=auto]

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

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] font sizes (again)

2010-10-01 Thread Florian Wobbe
On Sep 30, 2010, at 15:27 , Mojca Miklavec wrote:

 On Wed, Sep 29, 2010 at 14:30, Florian Wobbe wrote:
 Hi,
 
 please regard this minimal example:
 
 \setupbodyfont[10pt]
 \starttext
 \title{Title}
 \section{Section}
 {\switchtobodyfont[big] big}
 {\switchtobodyfont[small] small}
 {\tfxx tfxx}
 {\tfx tfx}
 {\tfa tfa}
 {\tfb tfb}
 {\tfc tfc}
 {\tfd tfd}
 \stoptext
 
 Latin Modern Regular is available in different optical sizes - 
 lmroman{5,6,7,8,9,10,12,17}-regular.otf - and as context is aware of these 
 sizes (configured in typescripts) I wonder why they are not correctly 
 assigned. This table indicates what happens instead:
 
 \tfxx 6pt- lmroman6 (as expected)
 \tfx  8pt- lmroman8 (as expected)
 \tftf 10pt   - lmroman10 (as expected)
 \tfa  12.0pt - lmroman10 (instead of lmroman12)
 \tfb  14.4pt - lmroman10 (instead of lmroman12)
 \tfc  17.3pt - lmroman10 (instead of lmroman17)
 \tfd  20.7pt - lmroman10 (instead of lmroman17)
 
 \switchtobodyfont[small]  8pt  - lmroman8 (as expected)
 \switchtobodyfont[big]12pt - lmroman12 (as expected)
 
 \title   17.3pt - lmroman10 (instead of lmroman17)
 \section 12pt   - lmroman10 (instead of lmroman12)
 
 The commands \title and \section and the font size switches \tfa, b, c, and 
 d scale the font to the correct size, however, the wrong optical size is 
 assigned. Note, this is not the case for \tfx, xx and \switchtobodyfont. 
 Tested in MKIV and MKII (current beta).
 
 Is this a bug or a feature?
 
 Most likely the first, however I never really understood how this
 magic is configured in ConTeXt.
 
 The relevant files are
tex/context/base/type-siz.mkiv (as well as mkii)
 I guess that the contents more or less agree with your observations
 (there is no 17pt font defined for big, however there are small fonts
 defined for x and xx), but I would have no idea how to fix anything.
 
 Mojca

Thanks, you are right, the biggest defined lm font is lmroman12. But that's 
beside the point. The typescripts are configured correctly. BTW, you get the 
same problem with Wolfgang's third/typescripts/type-optical.tex, which defines 
four optical sizes of the Adobe Pro fonts. Like Mojca, I don't know about the 
context magic innards and how to fix this either. Is there a way for 
interactive line tracing in luatex, similar to e.g. bash -x?

Florian

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

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

2010-10-01 Thread Florian Wobbe
On Sep 30, 2010, at 21:01 , Patrick Gundlach wrote:

 Hi,
 
 several days ago I asked about companions to Cambria, and Wolfgang kindly 
 gave me this:
 
 \definetypeface [mainface] [rm] [serif] [cambria]  [default]
 \definetypeface [mainface] [ss] [sans]  [corbel]   [default] [rscale=auto]
 \definetypeface [mainface] [tt] [mono]  [consolas] [default] [rscale=auto]
 \definetypeface [mainface] [mm] [math]  [cambria]  [default]
 
 
 which works fine, except for consolas. Shouldn't consolas be defined like
 
 \starttypescript [mono] [consolas] [name]  
   \setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Mono]   [\s!file:consola]  
 [\s!features=\s!default]
\definefontsynonym [\s!MonoBold]   [\s!file:consolab] 
 [\s!features=\s!default]
\definefontsynonym [\s!MonoItalic] [\s!file:consolai] 
 [\s!features=\s!default]
\definefontsynonym [\s!MonoBoldItalic] [\s!file:consolaz] 
 [\s!features=\s!default]
\stoptypescript
 
 instead of
 
 Sans ? It's much more a monospace font then a Sans.
 
 Thanks
 
 Patrick

It seems, the ClearType fonts come with different filenames, so I had to define 
them by name like Cambria is in type-otf (\definefontsynonym [CambriaSerif] 
[name:cambria]):

\starttypescript [sans] [corbel] [name]
  \setups[font:fallback:sans]
  \definefontsynonym [Sans]   [name:corbel]   [features=default]
  \definefontsynonym [SansBold]   [name:corbelbold]   [features=default]
  \definefontsynonym [SansItalic] [name:corbelitalic] [features=default]
  \definefontsynonym [SansBoldItalic] [name:corbelbolditalic] [features=default]
\stoptypescript

\starttypescript [mono] [consolas] [name]
  \setups[font:fallback:mono]
  \definefontsynonym [Mono]   [name:consolas]   
[features=default]
  \definefontsynonym [MonoBold]   [name:consolasbold]   
[features=default]
  \definefontsynonym [MonoItalic] [name:consolasitalic] 
[features=default]
  \definefontsynonym [MonoBoldItalic] [name:consolasbolditalic] 
[features=default]
\stoptypescript

Best
Florian

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

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

2010-10-01 Thread Florian Wobbe
On Oct 1, 2010, at 23:26 , Hans Hagen wrote:
 On 1-10-2010 12:42, Florian Wobbe wrote:
 On Sep 30, 2010, at 21:01 , Patrick Gundlach wrote:
 
 Hi,
 
 several days ago I asked about companions to Cambria, and Wolfgang kindly 
 gave me this:
 
 \definetypeface [mainface] [rm] [serif] [cambria]  [default]
 \definetypeface [mainface] [ss] [sans]  [corbel]   [default] [rscale=auto]
 \definetypeface [mainface] [tt] [mono]  [consolas] [default] [rscale=auto]
 \definetypeface [mainface] [mm] [math]  [cambria]  [default]
 
 
 which works fine, except for consolas. Shouldn't consolas be defined like
 
 \starttypescript [mono] [consolas] [name]
   \setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Mono]   [\s!file:consola]  
 [\s!features=\s!default]
\definefontsynonym [\s!MonoBold]   [\s!file:consolab] 
 [\s!features=\s!default]
\definefontsynonym [\s!MonoItalic] [\s!file:consolai] 
 [\s!features=\s!default]
\definefontsynonym [\s!MonoBoldItalic] [\s!file:consolaz] 
 [\s!features=\s!default]
\stoptypescript
 
 instead of
 
 Sans ? It's much more a monospace font then a Sans.
 
 Thanks
 
 Patrick
 
 It seems, the ClearType fonts come with different filenames, so I had to 
 define them by name like Cambria is in type-otf (\definefontsynonym 
 [CambriaSerif] [name:cambria]):
 
 btw, we need to make decisions here ... in tex live such fonts get different 
 names so do we follow that convention or do we opt for the official files
 
 Hans

Actually, what I meant was that there are no common official filenames for 
these MS Fonts. In Windows they are like calibri.ttf, calibrib.ttf, 
calibrii.ttf, ... In Office for Mac the font files are named Calibri.ttf, 
Calibri Bold.ttf, Calibri Italic.ttf, etc. So going by name is explicit.

Florian

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

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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Florian Wobbe
On Oct 5, 2010, at 19:03 , R (Chandra) Chandrasekhar wrote:

 Dear Folks,
 
 I am a LaTeX user trying out ConTeXt for the first time. I am running TeXLive 
 2010 (full scheme) on a x86_64-linux platform. I have visited
 
 http://wiki.contextgarden.net/Running_Mark_IV
 
 and put the instructions there into an executable file:
 
 ---
 #! /bin/bash
 #
 # Manual update for ConTeXt in TeXLive 2010 as suggested at
 #
 # http://wiki.contextgarden.net/Running_Mark_IV
 #
 
 # Update ConTeXt
 
 rsync -av rsync://contextgarden.net/minimals/current/context/current/ 
 /usr/local/texlive/2010/texmf-dist/
 
 # Update LuaTeX
 
 rsync -av 
 rsync://contextgarden.net/minimals/current/bin/luatex/linux-64/bin/luatex 
 /usr/local/texlive/2010/bin/x86_64-linux/
 
 # Run equivalent mktexlsr
 
 luatools --generate
 context --make
 context --make cont-en
 ---
 
 The last output lines after running this file are:
 
 ---
 LuaTools | runtime: 1.610 seconds
 .../2010/texmf-dist/scripts/context/lua/mtx-context.lua:985: attempt to call 
 upvalue 'make_mkiv_format' (a nil value)
 .../2010/texmf-dist/scripts/context/lua/mtx-context.lua:985: attempt to call 
 upvalue 'make_mkiv_format' (a nil value)
 ---

I used to update TeXLive 2009 successfully with this method, however I ran into 
the same error when updating TeXLive 2010. As I did not succeed and could not 
figure out what caused the error I installed minimals without problems. I 
suggest you install minimals and point the environment variable OSFONTDIR to 
your TeXLive tree. This adds only about 200MiB to your disk which is rather 
neglectable compared to the 2.7GiB of a full TeXLive.

 When I compiled a trivial file called first.tex using
 
 texexec first
 
 I got in the output, inter alia,
 ---
 ConTeXt  ver: 2010.07.30 11:35 MKII  fmt: 2010.10.5  int:
 english/english
 ---
 
 Why am I not seeing Mk-IV yet?

see http://archive.contextgarden.net/message/20101003.061025.ee87f16c.en.html

Cheers
Florian


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

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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Florian Wobbe
On Oct 5, 2010, at 19:54 , R (Chandra) Chandrasekhar wrote:

 On Tuesday 05 October 2010 11:02 PM, David Rogers wrote:
 
 When I do
 
 context first
 
 I get, again among other output, the following at the head and tail of output 
 respectively:
 
 ---
 MTXrun | warning: engine mismatch (luv:This is LuaTeX, Version 
 beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736)  bin:This is LuaTeX, 
 Version beta-0.63.0-2010090921), forcing remake
 ---snip---
 .../2010/texmf-dist/scripts/context/lua/mtx-context.lua:985: attempt to call 
 upvalue 'make_mkiv_format' (a nil value)
 ---
 
 [...]
 Can this be ignored or is it a cause for concern? If the latter, how can it 
 be fixed?

This is the result of the broken TeXLive 2010 installation. It should have 
worked out of the box before your failed update attempt. Try again with a clean 
TeXLive 2010 or install minimals.

Florian

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

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] Running Mk-IV using TeXLive 2010

2010-10-06 Thread Florian Wobbe
On Oct 6, 2010, at 04:02 , R (Chandra) Chandrasekhar wrote:

 On Tuesday 05 October 2010 11:15 PM, Florian Wobbe wrote:
 
 I used to update TeXLive 2009 successfully with this method, however
 I ran into the same error when updating TeXLive 2010. As I did not
 succeed and could not figure out what caused the error I installed
 minimals without problems. I suggest you install minimals and point
 the environment variable OSFONTDIR to your TeXLive tree. This adds
 only about 200MiB to your disk which is rather neglectable compared
 to the 2.7GiB of a full TeXLive.
 
 I trust that minimals is what I was updating using with rsync and that it is 
 a cut-down version of the ConTeXt distribution that came with TeXLive 2010.

No, you clobbered your TeXLive distro with the current context beta.

 Can I put minimals in $TEXMFHOME which is ~/texmf on my system? That seems to 
 be the place where I can keep stuff newer than TeXLive 2010 without conflict. 
 Can minimals function standalone, though, or will I run into mismatches with 
 TeXLive 2010 again?

I wouldn't try and mix minimals with TeXLive. Let TeXLive and minimals live 
side by side and they don't hurt each other. Make sure you set your PATH 
environment and put context/tex/texmf-linux-64/bin before the TeXLive binary 
path. This way the executables from minimals get preference over those from 
TeXLive and you'd still be able to run latex without changing your environment.

 Also, should OSFONTDIR then point to /usr/local/texlive/2010/texmf/ or to 
 something else?

You would want to point it at /usr/local/texlive/2010/texmf-dist/fonts// so that

  mtxrun --script fonts --reload

finds the fonts that come with your TeXLive. Mine looks like this: 
OSFONTDIR=/usr/local/texlive/2010/texmf-dist/fonts//:/Library/Fonts//:/System/Library/Fonts//

Florian

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

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] calling ConTeXt as a background process

2010-10-07 Thread Florian Wobbe
 Am 2010-10-07 um 12:54 schrieb Florian Wobbe:
 
 On Oct 7, 2010, at 12:19 , Henning Hraban Ramm wrote:
 
 Am 2010-10-07 um 11:06 schrieb Taco Hoekwater:
 Of course, prd_paket.tex is my input file. But that's there.
 
 Your shell quotes were off. It is looking for
 
 ./prd_paket --batchmode --once.tex
 
 Ok, but it doesn't work with any other call of luatex - I also tried to 
 start another shell script that calls luatex, but it hangs in the same 
 manner. If I kill the luatex process, further commands work.
 
 could you send me the calling shell script along with all necessary files to 
 run the context batch? or supply a minimal example instead of prd_paket.tex.
 
 Hi Florian,
 
 it doesn't depend on the tex file, it's the same with
 
 \starttext
 Hello World!
 \stoptext
 
 It also doesn't depend on context options (--batchmode etc.)
 
 And it doesn't seem to depend on the way of calling it from Python/Django:
 - directly with subprocess.Popen (several options), subprocess.call, 
 subprocess.check_call
 - indirectly via shell script (that contains just the context call)
 - with context or mtxrun (didn't try texlua directly yet)
 - with setuptex or setting TEXROOT and TEXMFOS directly (in the environment 
 for the subprocess call)
 
 I can imagine that it has something to do with SElinux settings, didn't dive 
 in that yet.
 
 I can call context manually as the same user that's running the server 
 process with all the options.
 
 It also works on my test system (osx-intel) with Django's dev server, just 
 not on my Ubuntu server (linux-64).

Well, remote sensing with computers is cumbersome and as I haven't got a clue 
what happens on your machine I'd rather see your the shell script. How is this 
script intended to be called: as a subshell from the prompt, as a cron job in 
the background, ...? I've got Ubunto and OSX here and could try to reproduce 
the error for you, if you post your script.

A shell script with just these 4 lines

 #!/bin/bash
 cd $HOME/context/tests
 export PATH=$PATH:$HOME/applic/context/tex/texmf-linux-64/bin
 context --batchmode test.tex

works as expected on Ubunto 2.6.32-24-server x86_64 with an almost empty 
environment (none of the TEX* variables set). You just have to set the path to 
context - nothing else is necessary.

As for the environment variables set: you can test for that in the script via 
'env' and redirect the output to a file.

Cheers,
Florian


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

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] calling ConTeXt as a background process

2010-10-08 Thread Florian Wobbe
On Oct 8, 2010, at 09:36 , Henning Hraban Ramm wrote:

 I've got Ubunto and OSX here and could try to reproduce the error for you, 
 if you post your script.
 
 Thank you, but the problem is most probably something in my server setup that 
 doesn't fit something in LuaTeX.
 As I mentioned: I got no problems calling TeX directly, just from the server 
 process.

All right. I have one more suggestion. If you don't want to dive into debugging 
via gdb you should try another attempt at strace. Previously you posted a 
tracedump of context. But it only shows context (the shell script) waiting and 
nothing related to luatex. You may want to make strace follow forks (-f).

Florian

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

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] calling ConTeXt as a background process

2010-10-08 Thread Florian Wobbe
 Am 2010-10-08 um 09:59 schrieb Florian Wobbe:
 
 Thank you, but the problem is most probably something in my server setup 
 that doesn't fit something in LuaTeX.
 As I mentioned: I got no problems calling TeX directly, just from the 
 server process.
 
 All right. I have one more suggestion. If you don't want to dive into 
 debugging via gdb you should try another attempt at strace. Previously you 
 posted a tracedump of context. But it only shows context (the shell script) 
 waiting and nothing related to luatex. You may want to make strace follow 
 forks (-f).
 
 
 Sorry, I've no experience using strace.

Some things are explained here: http://blog.ksplice.com/tag/unix/

 Here we are:
 
 This is how my process tree looked:
 14025 ?Sl 0:01  |   \_ /var/www/xxx/bin/python 
 /var/www/xxx/.../manage.py runfcgi  ...
 14116 ?S  0:00  |   \_ /bin/sh -c set  _context.log  
 strace -f context --batchmode --once hello  _context.log
 14117 ?S  0:00  |   \_ strace -f context --batchmode 
 --once hello
 14118 ?T  0:00  |   \_ /bin/sh 
 /var/opt/context/tex/texmf-linux-64/bin/context --batchmode --once hello
 14119 ?R  0:11  |   \_ texlua 
 /var/opt/context/tex/texmf-linux-64/bin/mtxrun --script context --batchmode 
 --once hello
 
 The logfile was empty, texlua seemed to hang. I killed 14119 and got:
 [...]
 [pid 14119] brk(0xaa3c000)  = 0xaa3c000
 [pid 14119] brk(0xaa5f000)  = 0xaa5f000
 [pid 14119] brk(0xaa82000)  = 0xaa82000
 [pid 14119] brk(0xaaa3000)  = 0xaaa3000
 [pid 14119] uname({sys=Linux, node=aine.fiee.net, ...}) = 0

This output looks quite messy because it is composed of the mixed output for 
five processes. I don't suspect the fault in luatex executable itself, however, 
mtxrun calls uname -m in a subshell and my guess is that it hangs there. Have 
you tried calling uname alone from your script? Next you could do

 strace -ff -o ctxtrace mtxrun --script context --batchmode --once hello

This gives you hopefully four ctxtrace.pid files. Then do (for each pid)

 strace -p pid

before killing luatex and see where it hangs. Interrupt and kill your luatex 
and have a look at the ctxtrace.* files.

Florian

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

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] calling ConTeXt as a background process

2010-10-08 Thread Florian Wobbe
On Oct 8, 2010, at 12:00 , Henning Hraban Ramm wrote:

 Am 2010-10-08 um 11:25 schrieb Florian Wobbe:
 
 This output looks quite messy because it is composed of the mixed output for 
 five processes. I don't suspect the fault in luatex executable itself, 
 however, mtxrun calls uname -m in a subshell and my guess is that it hangs 
 there. Have you tried calling uname alone from your script?
 
 As I told Taco and Luigi off-list:
 Simply calling uname works
 as well as calling it in a shell script
 as well as calling another Python script that calls uname.
 
 
 
 Next you could do
 strace -ff -o ctxtrace mtxrun --script context --batchmode --once hello
 
 Ok, here we are:
 14203 ?Sl 0:01  |   \_ /var/www/xxx/bin/python 
 /var/www/.../manage.py runfcgi method=threaded ...
 14255 ?S  0:00  |   \_ strace -ff -o ctxtrace mtxrun 
 --script context --batchmode --once hello
 14256 ?R  0:06  |   \_ texlua 
 /var/opt/context/tex/texmf-linux-64/bin/mtxrun --script context --batchmode 
 --once hello
 
 This gives you hopefully four ctxtrace.pid files.
 
 I got only one for 14256

Right, so you are not even getting to the point where luatex is called. This is 
still texlua executing instructions from mtxrun.

 Then do (for each pid)
 strace -p pid
 before killing luatex and see where it hangs. Interrupt and kill your luatex 
 and have a look at the ctxtrace.* files.
 
 strace -p 14256
 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
 (as the same user as well as as root)

Something to do with SElinux?

 [...]
 read(3, his script\n-- ... later we will u..., 4096) = 4096
 read(3, xecute\) then\n\n-- execute scr..., 4096) = 4096
 read(3, guments_after)\nresolvers.dowi..., 4096) = 2858
 read(3, ..., 4096)= 0
 close(3)= 0
 munmap(0x2acfe2776000, 4096)= 0
 brk(0x1c37a000) = 0x1c37a000
 brk(0x1c39d000) = 0x1c39d000
 brk(0x1c3c) = 0x1c3c

Here, uname -m should be called. But I guess you still have all unames replaced 
by their return value I guess?

 brk(0x1c3e1000) = 0x1c3e1000
 uname({sys=Linux, node=aine.fiee.net, ...}) = 0
 --- SIGTERM (Terminated) @ 0 (0) ---
 +++ killed by SIGTERM +++

Here it should continue with reading texmfcnf.lua.

The last

  uname({sys=Linux, node=aine.fiee.net, ...

you get is from the os.uname call I would guess.

Try putting the lines

 for k, v in next, os.uname() do
   print(k, v)
 end

in a file and run it with texlua from the script to be sure.

Then you might also try to invoke luatex directly:

luatex --interaction=batchmode --fmt=path to/formats/cont-en --lua=path 
to/formats/cont-en.lui --backend=pdf hello

Florian

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

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] calling ConTeXt as a background process

2010-10-08 Thread Florian Wobbe
On Oct 8, 2010, at 16:30 , Henning Hraban Ramm wrote:

 Am 2010-10-08 um 15:54 schrieb Taco Hoekwater:
 
 On 10/08/2010 03:47 PM, Henning Hraban Ramm wrote:
 
 16002 15978 TS 21 15:41 ? 00:00:01 \_ /var/www/xxx/bin/python
 /var/www/.../manage.py run_gunicorn -c /var/www/.../gunicorn-settings.py
 16210 16002 TS 14 15:42 ? 00:00:08 \_ luatex --interaction=batchmode
 --fmt=/var/opt/context/tex/texmf-cache/.../formats/cont-en
 --lua=/var/opt/context/tex/texmf-cache/...
 16212 16210 TS 17 15:42 ? 00:00:00 \_ [uname] defunct
 
 Hm, defunct, eh?
 
 The luatex binary itself definitely does not call uname as a
 process, therefore this has to be the os.resultof() function
 that Hans implements in l-os.lua. I am suspecting issues with
 redirection now, as that function is defined as:
 
 function os.resultof(command)
   local handle = io.popen(command,r)
   return handle and handle:read(*all) or 
 end

The strange thing is that running

 luatex --interaction=batchmode --fmt=.../formats/cont-en 
--lua=.../formats/cont-en.lui --backend=pdf hello

causes luatex (or say l-os.lua) to call 'uname -m' via os.resultof

However, when doing

 mtxrun --script context --batchmode --once hello

*only* texlua calls 'uname -m' and the following luatex child does *not* 
anymore. Why?

 of course this will fail/block rather horribly if uname -m
 does not write to STDOUT (and that is not just uname, thre
 are a few more uses of os.resultof()).

if that is the case you should not see any reads after the child forks:

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7feb7a0369d0) = 14998
[...]
read(3, x86_64\n, 4096) = 7
read(3, , 4096) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---

 My script now calls first os.uname and then the external one.
 From the shell it works like expected.
 And even from the server process! That alone doesn't seem to be the problem.
 
 Here's the trace:
 
 strace -ff texlua call_uname.lua
 
 [...]

I'm running out of ideas. From your script os.resultof(uname -m) works and 
from luatex it doesn't. What does this trace distinguish from the one of luatex?

Florian

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

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] Multiple bibliographies (reminder)

2010-10-14 Thread Florian Wobbe
Hi Taco, hi Philipp,

I need to place two different publication lists in different locations inside 
the same document. This has been asked before in April and there was the 
following suggestion:

\chapter{one}
\placepublications[database=first]

\chapter{two}
\placepublications[database=second]

Is something like this implemented already? If not I'd kindly ask you, Philipp, 
to help me with your lua-sed-shell-magic. Thanks!

Best wishes,
Florian

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

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] Extra spaces in APA bibliography style

2010-10-15 Thread Florian Wobbe
Hi,

I just noticed that there is an extra space after the booktitle and before ', 
pages' in the publicationlayout inproceedings in the english APA bibliography 
style.

Here is a suggested patch:

--- texmf-context/tex/context/bib/bibl-apa.tex.orig 2009-01-05 
15:03:34.0 +0100
+++ texmf-context/tex/context/bib/bibl-apa.tex  2010-10-15 11:47:41.0 
+0200
@@ -307,7 +307,7 @@
   {}%
   {}%
  \insertchap{\unskip, }{ }{ }%
- \insertpages{, pages~}{}{}%
+ \insertpages{\unskip, pages~}{}{}%
  \insertorg{. }{.}{.}%
 }%
 {In \insertcrossref{}{}{}%

Best,
Florian

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

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] en-dash for ranges of numbers in Bibliographies

2010-10-15 Thread Florian Wobbe
Hi,

in BibTeX databases ranges of numbers are usually listed with a single dash 
(e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles 
convert a single dash in page numbers or range of numbers to a double dash 
(3--7). How do I get the same behaviour for \volume \issue \pages in the 
bibliographic module? Thanks!

Cheers,
Florian

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

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] Word count

2010-10-25 Thread Florian Wobbe
On Oct 21, 2010, at 19:50 , Hans Hagen wrote:

 On 21-10-2010 7:39, Otared Kavian wrote:
 
 On 20 oct. 2010, at 21:43, Hans Hagen wrote:
 
 On 20-10-2010 7:08, Matija Šuklje wrote:
 […]
 
 I did implement it for Mojca indeed. A made it a bit more clever so that 
 you can play with it.
 
 
 Thanks a lot Hans!
 That's fantastic…
 However the file created by ConTeXt is \jobname.words: so
 \typefile{words-003.words}
 
 should be
 \typefile{\jobname.words}
 as indicated in lang-wrd.mkiv.
 
 sure, although it can be another name as well .. btw, I added a shower as well
 
 [...]

Thanks, this is a great feature! BTW, I just tried it with the example text 
from http://wiki.contextgarden.net/Spellchecker and noticed that it misses all 
words containing the german letter ß like: deßgleichen, deßhalb, Fleiß, weiß, 
...

Florian

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

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] letter module, backaddress placement

2010-10-28 Thread Florian Wobbe
Dear Wolfgang,

the default vertical placement of the backaddress is to high in dinb.nls.

When I change the offset from

 
\c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset-\letterstylevalue{\v!backaddress\v!frame}\c!height\relax]

to

 
\c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset+\letterstylevalue{\v!backaddress\v!frame}\c!height\relax]

(addition instead of subtraction) everything is fine.

Best wishes,
Florian

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

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] letter module, backaddress placement

2010-10-28 Thread Florian Wobbe
On Oct 28, 2010, at 21:11 , Wolfgang Schuster wrote:

 
 Am 28.10.2010 um 19:04 schrieb Florian Wobbe:
 
 Dear Wolfgang,
 
 the default vertical placement of the backaddress is to high in dinb.nls.
 
 The position of the backaddress os correct but i think you don’t like the 
 large gap between the backaddress and the address. The gap is there because 
 it’s specified in the german din layout where the address field has nine 
 lines with the first three lines reserved for dispatch information, a easy 
 way to get rid of this space is to disable the dispatch field with
 
 \setupletterstyle[dispatch=no]

Nice to know!

Actually it was not the gap that bothered me. You are right, DIN 676 B says 
45mm. But this seems to be useless as all window envelopes (that I possess) 
have their window at 50mm. It defeats the purpose of the backaddress field, 
which is hidden by the DIN layout. Shouldn't they be able to read it in the 
Post office in case the addressee is wrong?

Puzzled,
Florian


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

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] letter module, vertical offset of reference line

2010-10-31 Thread Florian Wobbe
Hi,

I need to adjust the vertical position of the reference line (as well as 
subject, opening etc.) because the info-block is longer than the 
addressee-block to the left.

With alternative=customized I can use
  \setupletterstyle [firstpage] [topspace=...]

However with alternative a and e setting topspace has no effect.

Also
  \setupletterstyle [reference] [voffset=...]
changes the offset for alternative=customized, only.

Best,
Florian

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

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] letter module, vertical offset of reference line

2010-10-31 Thread Florian Wobbe
On Oct 31, 2010, at 10:11 , Wolfgang Schuster wrote:

 
 Am 31.10.2010 um 09:36 schrieb Florian Wobbe:
 
 Hi,
 
 I need to adjust the vertical position of the reference line (as well as 
 subject, opening etc.) because the info-block is longer than the 
 addressee-block to the left.
 
 With alternative=customized I can use
 \setupletterstyle [firstpage] [topspace=...]
 
 However with alternative a and e setting topspace has no effect.
 
 Also
 \setupletterstyle [reference] [voffset=...]
 changes the offset for alternative=customized, only.
 
 With the predefined styles for the reference line i ignore the topspace value 
 and use a calculated value. This value depends on the bottom of the address 
 block and the height of the reference line plus a space be fore and after the 
 reference line.
 
 Can you make a example where this calculation goes wrong!

Thanks! Of cause, a commented minimal example is attached.

I have two problems and a wish:

1) The reference line and the following subject line are placed too high.

2) The footer has not enough space before and after.

3) It would be nice to have a bottomframe for the backaddress field that is not 
longer than then the text itself.

All the best,
Florian




minidinb.pdf
Description: Adobe PDF document


minidinb.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] letter module, vertical offset of reference line

2010-11-09 Thread Florian Wobbe
On Nov 8, 2010, at 20:53 , Wolfgang Schuster wrote:

 
 Am 31.10.2010 um 11:16 schrieb Florian Wobbe:
 
 Can you make a example where this calculation goes wrong!
 
 Thanks! Of cause, a commented minimal example is attached.
 
 I have two problems and a wish:
 
 1) The reference line and the following subject line are placed too high.
 
 I uploaded a new version where you disable the automatic placement of the 
 reference line and the start of the letter text with
 
  \setupletterstyle[position=no] % default: position=yes
 
 [...]

Great, this works perfectly - thank you!

 3) It would be nice to have a bottomframe for the backaddress field that is 
 not longer than then the text itself.
 
 \setupletterstyle
  [reference][frame]
  [width=fit]

I meant the backaddress frame, though. This works analogously:

\setupletterstyle
  [backaddress][frame]
  [width=fit]

I have only on question left:

\setupletterstyle
  [reference]
  [alternative=e,
list={yourref,yourmail}, % Why is the trailing comma needed?
 % Without it, the reference line
 % vanishes completely.
  ]

Best wishes,
Florian

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

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


Re: [NTG-context] New module: t-gantt-tikz

2010-11-10 Thread Florian Wobbe
On Nov 9, 2010, at 10:32 , Reviczky, Adam wrote:

 I've ported a LaTeX style file[1] for drawing gantt charts over to ConTeXt.
 [...]
 [1] http://www.martin-kumm.de/tex_gantt_package.php

Thanks, I've also been using Martin Kumm's package recently but did not find 
the time to implement it in context. There is one issue, which is also present 
in the original package: The labels on the left are not vertically aligned with 
the ganttbars.

BTW: Is there a straightforward way for placing the labels inside the ganttbars 
instead (see [1] p. 5 for an example)?

Best,
Florian

[1] 
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-gantt/pst-gantt-doc.pdf

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

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] Another Correspendence question

2010-11-13 Thread Florian Wobbe
On Nov 13, 2010, at 14:28 , Russell Urquhart wrote:

 Hi,
 
 Another Correspondence question. In the default, I'd like the body text to be 
 left justified rather than both left and right justified.
 
 Does the 
 
 \setupletterstyle [content][align=left]

Hi,

\setupletterstyle [content]
  [align=flushleft]

should do the trick.

 do this? (or some form thereof)? I can't get this to work.
 
 Also, how can I have the 'Date' word not show up, just the actual date itself.

Do you mean the label in the reference line? Then try

\setuplabeltext[letter:date={}]

Florian

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

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


Re: [NTG-context] luatex hangs at 100% cpu

2010-11-17 Thread Florian Wobbe
On Nov 17, 2010, at 12:31 , Steffen Wolfrum wrote:

 
 Am 17.11.2010 um 10:34 schrieb Taco Hoekwater:
 
 On 11/16/2010 12:59 PM, Steffen Wolfrum wrote:
 
 Hi,
 
 the current MkIV (ConTeXt  ver: 2010.11.12) seems to have problems
 with start/stopitemize and start/stopcolumns:
 
 
 mostly it hangs at 100% cpu, sometimes it gives this error massage:
 
 We have had a case where luatex goes into a busy loop recently and that
 was caused by an undefined $HOME. Can you check and see if that is
 the problem?

I can confirm this infinite loop (version 2010.11.12 on MacOSX 10.6.5). The 
example works with version 2010.11.03. $HOME is set.

Florian

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

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] MetaPost version of the Gantt chart module

2010-11-18 Thread Florian Wobbe
On Nov 12, 2010, at 19:38 , Reviczky, Adam wrote:

 Hi,
 
 I've made a MetaPost version for creating Gantt charts.
 
 Florian: The label alignments are fixed in this module. Further, it should be 
 trivial to place the names into the ganttbars, for both versions.

Thanks! Yes you are right, changing the macros is easy. I have one question 
though: Why do you prefer MetaPost over TikZ although the hatching 
functionality is limited in the MetaPost version?

Florian

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

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] Gnuplot module: Patching of Gnuplot binary still needed?

2010-11-18 Thread Florian Wobbe
On Nov 17, 2010, at 11:47 , Mojca Miklavec wrote:

 [...]

 Here is a brief list of changes to the gnuplot CVS version:
 
 * support for ConTeXt and plain TeX
 
 Hurray! Thanks a lot.
 
 * removed dependencies for LaTeX packages other than TikZ
 * needs TikZ Version = 2.0
 * better support for saving terminal options with gnuplot 'save' command
 * fixed overflow on negative coordinates that are outside of the crop box
 * merged all recent patched from murphy-md and Ethan
 
 Unfortunately it is the Context output that does not compile with the most
 recent Context version I installed from TeXLive 2010 and the
 http://tlcontrib.metatex.org/2010/ repository. But I remember it working
 with an older version so I hope this can be fixed easily ...

Thanks, I just updated the CVS version of gnuplot with your files and gave it a 
try: It works with minimals!

 [...]
 
 Feedback and patches welcome!

No patches I'm afraid. But feedback goes here:

1) The label text of the following key element takes the color of the preceding 
key symbol. Minimal example:

 set terminal lua tikz fulldoc size 15cm,7cm context
 set output 'plot.tex'
 set xrange [ 0 : 13 ]
 f1(x)=sqrt(x)
 f2(x)=sqrt(x*0.8)-3
 plot f1(x) lc rgb 'blue', f2(x) 

2) Negative axis labels are set with hyphen instead of proper minus sign, which 
should be longer (see example above).

3) First I thought luatex hangs but then I noticed TikZ is awfully slow when 
drawing plots with large amounts of data points (the tikzpicture had about 3000 
lines). I can speed this up by reducing the size by invoking plot with:

 plot  gawk '(NR-1)%10 == 0 {print $0}' fileWithLotsOfData using [...]

I wonder if there is a smarter way to do this in gnuplot.

4) Is there a possibility to get rid of the vertical artifacts in filledcurves? 
Note: the artifacts are only visible when plotting from data files.

 set terminal lua tikz fulldoc size 15cm,7cm context 
 set output 'plot.tex'
 plot  gawk 'BEGIN {for (i = 1; i = 100; i++) {print i, 0.7*i, 0.8*i+50}}' 
using 1:2:3 with filledcurve lc rgb 'black' t 'filled curve'
 set xrange [ 0 : 13 ]
 plot abs(x) with filledcurve xy=2,5

Best wishes,
Florian

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

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] Gnuplot module: Patching of Gnuplot binary still needed?

2010-11-22 Thread Florian Wobbe
On Nov 22, 2010, at 16:01 , Mojca Miklavec wrote:

 [...]
 
 2) Negative axis labels are set with hyphen instead of proper minus sign, 
 which should be longer (see example above).
 
 I'm not sure if this should really be fixed automatically or not. In
 order to fix this one would have to patch gnuplot core.
 
 I forgot the details how to do it (I can find it out), but you can
 configure the layout of labels. In particular you may enclose the
 number into math delimiters ($). Maybe something like
set format y $%.1f$
 would work (you might want to change the size of left margin then).

Hej Mojca, thank you for your answer! Well, that was surprisingly easy - I 
should have checked the manual first (I was just about to write an ugly hack 
into your context terminal driver :). Actually
 set format $%g$
gives the default label format (only enclosed in $) for all axes.

 Doing any other kind of magic would be a bit dangerous. Keep in mind
 that
plot 'x.dat' u 1:(2*$2)
 will also fail since TeX will interpret $ as math delimiter. But
 changing that behaviour would have other undesirable effects.
 
 3) First I thought luatex hangs but then I noticed TikZ is awfully slow when 
 drawing plots with large amounts of data points (the tikzpicture had about 
 3000 lines). I can speed this up by reducing the size by invoking plot with:
 
  plot  gawk '(NR-1)%10 == 0 {print $0}' fileWithLotsOfData using [...]
 
 I wonder if there is a smarter way to do this in gnuplot.
 
 [...]
 What I did for my theory of chaos reports and the million-of-points
 plots in my thesis was to create an empty plot with ConTeXt terminal,
 create a borderless plot with PNG and then manually insert PNG into
 the generated ConTeXt output, which you could do with TikZ output as
 well. It requires more effort, but there is no other way to speed up
 vector graphics. They are simply not suitable for drawing millions of
 points on the same plot.

I'd probably do the same in that case. But unlike you I have a lot less points 
- 5000 points instead of millions. Loot at this example, which is the slightly 
modified random demo script taken from the gnuplot page:

 set terminal context size 15.0cm,10.5cm standalone
 set output 'randomCtx.tex'

 set dummy t,y
 unset key
 set parametric
 set samples 5000, 5000
 set style function dots
 set title Lattice test for random numbers 
 set xlabel rand(n) - 
 set xrange [ 0.0 : 1.0 ] noreverse nowriteback
 set ylabel rand(n + 1) - 
 set yrange [ 0.0 : 1.0 ] noreverse nowriteback
 set zlabel rand(n + 2) - 
 set zrange [ 0.0 : 1.0 ] noreverse nowriteback
 plot rand(0), rand(0)

 set terminal lua tikz context size 15.0cm,10.5cm fulldoc
 set output 'randomLua.tex'

 replot

Now look at the timing of processing the output files with context (final run 
only):

context randomCtx.tex - 3.150 seconds.
context randomLua.tex - 23.658 seconds.

Further increasing the number of points to 15000 results in 8.978 vs. 62.878 
seconds. Quite a big difference in processing time!

 (Gnuplot also has a keyword 'every' to reduce the number of points,
 but in my case I wanted to plot all of them.)

True, but suppose you don't have evenly spaced data points. Then you don't want 
every other line but one point every 5 kilometres or something the like.

Especially for line drawings it would be beneficial not to place every single 
point. Instead consecutive points should be skipped if they are close to each 
other (with regard to plot units) - it makes no sense to include points which 
you won't see anyway. This could be done by defining a grid with a certain 
(user defined) resolution and rounding the coordinates (plot units) of a line 
point to the nearest grid node. All consecutive line points falling on the same 
grid node should not be passed on to terminal drivers. The psxy utility of GMT 
(http://gmt.soest.hawaii.edu/) does this for instance. I am not aware of such a 
functionality within gnuplot but it would be a nice feature.

Best wishes,
Florian

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

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] Gnuplot module: Patching of Gnuplot binary still needed?

2010-11-22 Thread Florian Wobbe
On Nov 22, 2010, at 22:03 , Mojca Miklavec wrote:

 On Mon, Nov 22, 2010 at 20:15, Florian Wobbe wrote:
 
 Especially for line drawings it would be beneficial not to place every 
 single point. Instead consecutive points should be skipped if they are close 
 to each other (with regard to plot units) - it makes no sense to include 
 points which you won't see anyway. This could be done by defining a grid 
 with a certain (user defined) resolution and rounding the coordinates (plot 
 units) of a line point to the nearest grid node. All consecutive line points 
 falling on the same grid node should not be passed on to terminal drivers. 
 The psxy utility of GMT (http://gmt.soest.hawaii.edu/) does this for 
 instance. I am not aware of such a functionality within gnuplot but it would 
 be a nice feature.
 
 But this is an issue of Gnuplot, not something that a terminal writer
 is supposed to think of.

Indeed, this was my point in the first place. It should be handled by gnuplot 
prior to handing the data over to the terminal driver.

 But yes, it would be nice if also ConTeXt terminal would be included.
 It still doesn't support raw images, but most other features are
 present.

Right, this might help increase the awareness among academics. Also not 
everyone has the ability to build gnuplot from sources.

Florian

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

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] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Florian Wobbe
On Nov 29, 2010, at 00:29 , ... wrote:

 Good evening!
 
 First of all, I'm new to this list and also a context/luatex newbe. I have 
 some experience with LaTeX.
 I want to use a font (Neutraface2) in my documents and I'm struggeling with 
 the typescript. I'm not able to get bold SmallCaps working (the bold face 
 .otf 
 file has the feature smcp, I checked).
 I tried various combinations and variations of \bf \sc in my document. It 
 gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here?
 Can someone give me an example typescript that I could modify to fit the 
 Neutraface2 font? My attempt to make one is attached.
 
 Greetings,
 Chris

Hi Chris,

it does not work for pagella either. Did you try \setff{smallcaps} \bf instead?

\usetypescript[pagella]
\setupbodyfont[pagella]

\starttext
{\setff{smallcaps} This is in {\bf bold} SmallCaps} (works).
{\sc This is in {\bf bold} SmallCaps} (does not).
\stoptext

Florian

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

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] Using Bold SmallCaps in LuaTeX - typescript

2010-11-29 Thread Florian Wobbe
On Nov 29, 2010, at 12:40 , Ch. B. wrote:

 Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe:
 On Nov 29, 2010, at 00:29 , ... wrote:
 Good evening!
 
 First of all, I'm new to this list and also a context/luatex newbe. I
 have some experience with LaTeX.
 I want to use a font (Neutraface2) in my documents and I'm struggeling
 with the typescript. I'm not able to get bold SmallCaps working (the
 bold face .otf file has the feature smcp, I checked).
 I tried various combinations and variations of \bf \sc in my document. It
 gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here?
 Can someone give me an example typescript that I could modify to fit the
 Neutraface2 font? My attempt to make one is attached.
 
 Greetings,
 Chris
 
 Hi Chris,
 
 it does not work for pagella either. Did you try \setff{smallcaps} \bf
 instead?
 
 \usetypescript[pagella]
 \setupbodyfont[pagella]
 
 \starttext
 {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works).
 {\sc This is in {\bf bold} SmallCaps} (does not).
 \stoptext
 
 Florian
 
 
 Hi Florian,
 
 that does work, thank you very much.
 I assume the \setff means something like set font feature. If so,  I could 
 shorten my typescript and only specify the 4 main font faces (regular, bold 
 italic, bold-italic) since the fonts all have all the opentype features i 
 need 
 (onum  smcp etc.) And these can be accessed via \setff{feature}, I guess.

Yes, you can define for instance

 \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: 
Activates uncommon ligatures
 \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4
 \definefontfeature[sups][default][sups=yes] % Superscript
 \definefontfeature[subs][default][subs=yes] % Subscript

and access the font features with \setff{dlig}, \setff{subs} etc.

Florian

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

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-12-02 Thread Florian Wobbe
On Dec 1, 2010, at 22:25 , Mojca Miklavec wrote:

 On Wed, Dec 1, 2010 at 22:06, Leo Razoumov wrote:
 
 With such a fast changing codebase would it be possible to set up a
 SCM repository to track ConTeXt beta development. GIT/HG/SVN would do
 it. With revision control one can at least roll back changes that are
 broken.
 
 See at least
   http://gitorious.org/context/context

Great, I didn't know about that! It would be helpful, though, if the git 
repository included a complete multi-architecture beta with all extras (fonts, 
modules). Then, we could easily copy this as a portable application on a USB 
flash drive.

Martin, would you be willing to alter your perl script to include executables 
and extra modules? Maybe it is useful to put the executables in individual git 
repositories. I use the following bash script to update everything:

#

TARGET=$HOME/context-beta
ARCHS=cygwin freebsd-amd64 freebsd kfreebsd-amd64 kfreebsd-i386 linux-64 
linux-ppc linux mswin osx-64 osx-intel osx-ppc osx-universal solaris-intel 
solaris-sparc

test -d ${TARGET} || mkdir ${TARGET}

# sync platform independent files
rsync -rpztlv --delete contextgarden.net::minimals/current/base/*/ 
minimals/current/fonts/*/ minimals/current/misc/web2c ${TARGET}/texmf
rsync -rpztlv contextgarden.net::minimals/current/misc/setuptex/ ${TARGET}/
#rsync -rpztlv --delete contextgarden.net::minimals/current/context/current/ 
minimals/current/context/img/ ${TARGET}/texmf-context
rsync -rpztlv --delete contextgarden.net::minimals/current/context/beta/ 
minimals/current/context/img/ minimals/current/modules/*/ 
${TARGET}/texmf-context

# sync manpages
rsync -rpztlv --delete contextgarden.net::minimals/current/bin/man/man 
${TARGET}/texmf-common

# sync precompiled software for each architecture
for ARCH in $ARCHS; do
  rsync -rpztlv --delete contextgarden.net::minimals/current/bin/*/${ARCH}/ 
${TARGET}/texmf-${ARCH}
  # copy mtxrun.lua (is this really necessary?!)
  rsync -tgov --chmod=a+x 
${TARGET}/texmf-context/scripts/context/lua/mtxrun.lua 
${TARGET}/texmf-${ARCH}/bin/mtxrun
  # create link to common manpages
  ln -s ../texmf-common/man ${TARGET}/texmf-${ARCH}/man
done

#

Then all you have to do is to run

PATH=${TARGET}/texmf-${PLATFORM}/bin:$PATH mtxrun --tree=${TARGET} --generate

and remake the formats for MKIV, MKII, ... to obtain a complete working context 
minimals beta.

Best wishes,
Florian

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

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] \ShowCompleteFont issue

2010-12-04 Thread Florian Wobbe
Hi,

this does not work in recent beta anymore:

\usemodule[fnt-10]
\starttext
  \ShowCompleteFont{name:asanamath}{11pt}{1}
\stoptext

When I uncomment \endinput in fnt-10.tex I get:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/cldf-com.lua:58: 
attempt to call global 'format' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/cldf-com.lua:58: in function 
'char'
main ctx instance:75: in function 'show_all'
main ctx instance:1: in main chunk.
\ShowCompleteFont ... \ctxlua { fonts.show_all() }
   \stopcolumns \page \egroup 
l.6 \ShowCompleteFont{name:asanamath}{11pt}{1}


When I checkout version 2010.10.03 18:07 of s-fnt-10.tex there are no errors.

Best,
Florian

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

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


Re: [NTG-context] Math and bold font

2010-12-05 Thread Florian Wobbe
On Dec 5, 2010, at 14:58 , Procházka Lukáš wrote:

 Hello,
 
 thanks for the explanation -
 
 On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen pra...@wxs.nl wrote:
 
 On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 
 to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I
 
 In fact in math these are not font switches, but switches to a different
 alphabet.  In traditional tex that normally is a font switch so one gets
 the other bold or whatever shapes for free, given that they are in that
 font (so it's a side effect of the way math alphabets are implemented),
 but not so in open type math.
 
 there is no default math font in mkiv: one uses regular math or bold
 math (given that there are two font(set)s available which is seldom the
 case) and within them gets bold or heavy alphabets (plus a few chars)
 
 - So does it mean that the Vladimir's cambria case is exactly the seldom 
 case when regular and bold math are available, both defining Greek chars like 
 \alpha as well?
 
 \setupbodyfont[cambria]
 
 \starttext
 This is a test.
 $a=\alpha$
 $\bf a=\alpha$
 $\bi a=\alpha$
 \stoptext
 
 Please, could you give more examples of normal and bold math fonts of the 
 same kin (to be used for normal and bold math), both having Greek letters as 
 well?

Hi,

this does not work with cambria math:

$\bf a=\alpha$
$\bi a=\alpha$

You should get the unicode math set of cambria math this way:

bold math: $\fontchar{u1D41A}=\fontchar{u1D6C2}$
bold italic math: $\fontchar{u1D482}=\fontchar{u1D736}$

I wonder if there are shorthand macros for accessing the unicode math slots for 
script, bold, sans, etc.

Really strange things happen though (see attachment):

% tested with all three:
%\setupbodyfont[cambria]
%\setupbodyfont[asana]
\setupbodyfont[xits]

\startTEXpage[offset=1ex]

This fails:
$a=\alpha$
$\fontchar{u1D41A}=\fontchar{u1D6C2}$
$\fontchar{u1D482}=\fontchar{u1D736}$

However, this is OK (unicode inserted directly): $퐚풂$

{\tfx
This is small but the math remains unscaled and displays questionmarks:
$a=\alpha$
$\fontchar{u1D41A}=\fontchar{u1D6C2}$
$\fontchar{u1D482}=\fontchar{u1D736}$
}

{\tfa
This is big and math font is also big and displays correctly:
$a=\alpha$
$\fontchar{u1D41A}=\fontchar{u1D6C2}$
$\fontchar{u1D482}=\fontchar{u1D736}$
}

{\tfa\tfx
This is normal (\type{\tfa\tfx}!) but the math remains big and displays ok:
$a=\alpha$
$\fontchar{u1D41A}=\fontchar{u1D6C2}$
$\fontchar{u1D482}=\fontchar{u1D736}$
}

\stopTEXpage


 - Vladimir showed cambria. Unfortunately, his solution changes the entire 
 document bodyfont (i.e. non-math font as well).

You could of cause create your own font (e.g. pagella with cambria math):

\starttypescript [pagella]
  \definetypeface [\typescriptone] [mm] [math] [cambria] [default]
\stoptypescript

\setupbodyfont[pagella]

Florian



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

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


Re: [NTG-context] Math and bold font: \definetypeface

2010-12-05 Thread Florian Wobbe
On Dec 5, 2010, at 20:27 , Procházka Lukáš wrote:

 Hello -
 
 On Sun, 05 Dec 2010 18:34:34 +0100, Florian Wobbe florian.wo...@awi.de 
 wrote:
 
  \definetypeface [\typescriptone] [mm] [math] [cambria] [default]
 
 - I don't know what the meaning of individual parameters is:
 
 \definetypeface
  [\typescriptone] % What actually the \typescriptone does? What are other 
 options?

just a placeholder, which comes in handy when you want to define multiple 
entries at once:

\starttypescript [palatino,pagella]
  \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default]
\stoptypescript

is equivalent to:

\starttypescript [palatino]
  \definetypeface [palatino] [rm] [serif] [palatino] [default]
\stoptypescript
\starttypescript [pagella]
  \definetypeface [pagella] [rm] [serif] [pagella] [default]
\stoptypescript

see texmf-context/tex/context/base/type-otf.mkiv for lots of examples (BTW: 
this is the place, where cambria is defined).

  [mm] % OK, [re]define the 'mm' member of the font definition 
 bundle (= typeface)
  [math]   % Why this when I just specified math to be [re]defined by 
 'mm' one line above?

takes the fontsynonym from \starttypescript [math] [cambria] and not from 
\starttypescript [cambria].

again have a look at http://wiki.contextgarden.net/TypeScripts and 
texmf-context/tex/context/base/type-otf.mkiv. the examples are probably better 
than an explanation.

Florian

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

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] \definefontalternative breaks font switches in math

2010-12-08 Thread Florian Wobbe
Dear typescript experts,

in an earlier Email I reported, that the font switches did not work in math 
mode. E.g.,

$\bf a=\alpha$
$\bi a=\alpha$

did not display bold math. It turned out that this happens when I invoke 
\definefontalternative.

Normaly \bf is defined like this:

*\show\bf
 \bf=\protected macro:
-\ifmmode \mathbf \else \normalbf \fi .
* \show\bf

After using \definefontalternative it looks different:

*\show\bf
 \bf=\protected macro:
-\setcurrentfontalternative {bf}.
* \show\bf

Minimal example:

% \definefontalternative [sb] % -- uncomment me to break bold math
\starttext
  $\bf 3x^2+7x$
\stoptext

How to avoid this? Thanks for advice,
Florian

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

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


Re: [NTG-context] Math and bold font: \definetypeface

2010-12-10 Thread Florian Wobbe
 To get back to my problem:
 
 The default Ctx bodyfont (CMR) is all right for me, I don't need to change it 
 (but it's possible, if it should simplify something).

If you don't need CMR, than simply don't use. It does not have greek 
boldmath/upright anyway.

 If I understand well, the default Ctx font - CMR - is used for typesetting 
 [bold]math as well. But the problem is that it fails when typesetting bold 
 Greek letters.

Right.

 What code - \typescript, \define???font??? - to use?
 
 Just to make the code $Abc \alpha = {\aSwitchToBoldMath Abc \alpha} = or 
 \aCommandToTypeBoldMath{Abc \alpha}$ work.

Minimal example that uses Tex Gyre Pagella and Heros for serif and sans, and 
either Cambria, Asana, Neo Euler, or XITS for math (comment in your choice and 
make sure that context finds the fonts):

\starttypescript [myface]
  \definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
  \definetypeface [\typescriptone] [ss] [sans]  [heros] [default]
  \definetypeface [\typescriptone] [tt] [mono]  [modern] [default]
  %\definetypeface [\typescriptone] [mm] [math]  [cambria][default]
  %\definetypeface [\typescriptone] [mm] [math]  [asana][default]
  %\definetypeface [\typescriptone] [mm] [math]  [euler][default]
  \definetypeface [\typescriptone] [mm] [math]  [xits][default]
\stoptypescript

\setupbodyfont[myface]

\starttext
  Pagella \par
  {\ss Heros} \par
  {\tt Modern Typewriter} \par
  $Abc \beta = {{\bi Abc} \bf Abc \beta \mathgreekupright \beta}$
\stoptext

Note that Neo Euler does not have italics and there are no fallbacks for 
bold/greek italic. So ${\bi A} \bf \beta$ will be displayed as $A \beta$.

Best wishes,
Florian

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

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


Re: [NTG-context] bib problems

2010-12-10 Thread Florian Wobbe
On Dec 7, 2010, at 15:26 , Mojca Miklavec wrote:

 I have a tiny feature request.
 
 I would like to have a separate bibliography for, say, list of
 figures. Basically all I ask for is the ability to have a separate
 named bibliography as opposed to a single list.

Hi,

I would also like to support the ability to put an arbitrary number of 
reference lists in different locations inside one document. I once had a report 
that had individual reference lists at the end of several sections.

I'm not sure about the best way of implementing this. E.g. how do I select 
which publications are in which list. One could define a special key as 
suggested by Hans, or select by existing BibTeX keys like author, year, 
publisher etc. Another possibility would be to put all references which are in 
a specific bib-file in one list (when you have multiple bib-files).

Also, as a feature request/bug report I repeat an earlier message:

In BibTeX databases ranges of numbers are usually listed with a single dash 
(e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles 
convert a single dash in page numbers or range of numbers to a double dash 
(3--7). It would be great to have this functionality for \volume \issue \pages 
in context as well.

Thanks!
Florian

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

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] bold small caps

2010-12-11 Thread Florian Wobbe
On Dec 11, 2010, at 23:40 , Peter Münster wrote:

 Hello,
 
 Is there a font in the minimals with bold small caps? I've tried lm and some
 tex-gyre fonts, but no success so far...
 
 Test file:
 
 \setupbodyfont[???]
 \starttext
 {\sc\bf Test} or {\bf\sc Test} should give bold small caps...
 \stoptext

Hi, this should work:

\setupbodyfont[pagella]

\starttext
{\setff{smallcaps} SmallCaps {\bf BoldCaps}}
\stoptext

Florian

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

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] New version of Asana Math

2010-12-12 Thread Florian Wobbe
Hi,

I just stumbled over a new version (000.931) of Asana Math here:
http://openfontlibrary.org/content/asyropoulos/334/Asana-Math.otf

Both CTAN and http://minimals.contextgarden.net/current/fonts/extra/Asana-Math/ 
still have v000.928.

Florian

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

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] Minimal ConTeXt and texfont!

2010-12-14 Thread Florian Wobbe
On Dec 14, 2010, at 14:06 , Verhaag, G.C.H.M. wrote:

 mtxrun --script fonts --list --all --pattern=*snow*
 
 which yielded the following output:
 
 plymouthrocksnowdusted plymouthrocksnowdusted   PlymouthSnowDusted.ttf
 plymouthrocksnowdustednormal   plymouthrocksnowdusted   PlymouthSnowDusted.ttf
 
 So this seams to be okay!
 
 Next I used the proposed context file:
 
 \definefont[snowdust][file:snowdusted*default]

Hi, this should work:
\definefont[snowdust][name:plymouthrocksnowdusted]

Florian

 \starttext
 \snowdust SnowDusted
 \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] Minimal spacing between sentences

2010-12-19 Thread Florian Wobbe
Hi, how can I increase the minimal spacing between sentences? \setfrenchspacing 
seems to work only in a justified line:

\starttext
\setfrenchspacing{15000}
This is a short sentence. It is not followed by a big space.

Here are some justified lines which have big spaces:
\input tufte
\stoptext

Thanks,
Florian

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

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] error with m-database example

2010-12-19 Thread Florian Wobbe
Hi,

The example from http://wiki.contextgarden.net/m-database gives me an error.

! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: bad 
argument #2 to 'lpegmatch' (string expected, got nil)
stack traceback:
[C]: in function 'lpegmatch'
...t-beta/texmf-context/tex/context/base/m-database.lua:74: in function 
'process'
main ctx instance:1: in main chunk.
\doprocessdatabase ...ameter \c!command \!!es , }}
  
l.18 \stopMyTable


I also, tried the first example of Mojca's CSV May Way 
(http://dl.contextgarden.net/myway/csv.pdf) which gives me:

! Undefined control sequence.
l.36 \startseparatedlist
[NaturalTable]

Thanks for any suggestions,
Florian

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

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] error with m-database example

2010-12-20 Thread Florian Wobbe
On Dec 20, 2010, at 17:56 , Mojca Miklavec wrote:

 On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote:
 Hi,
 
 The example from http://wiki.contextgarden.net/m-database gives me an error.
 
 ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: 
 bad argument #2 to 'lpegmatch' (string expected, got nil)
 stack traceback:
[C]: in function 'lpegmatch'
...t-beta/texmf-context/tex/context/base/m-database.lua:74: in 
 function 'process'
main ctx instance:1: in main chunk.
 \doprocessdatabase ...ameter \c!command \!!es , }}
 
 l.18 \stopMyTable
 
 
 I also, tried the first example of Mojca's CSV May Way 
 (http://dl.contextgarden.net/myway/csv.pdf) which gives me:
 
 ! Undefined control sequence.
 l.36 \startseparatedlist
[NaturalTable]
 
 Thanks for any suggestions,
 Florian
 
 Dear Florian,
 
 Hans reimplemented the database module in MKIV. He requested a list of
 problems that I have discovered in new implementation, but apparently
 it's still on his TODO list to resolve them.

All right, then. I'll be patient...

Florian

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

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] error with m-database example

2010-12-21 Thread Florian Wobbe
On Dec 20, 2010, at 22:32 , Hans Hagen wrote:

 On 20-12-2010 5:56, Mojca Miklavec wrote:
 On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote:
 Hi,
 
 The example from http://wiki.contextgarden.net/m-database gives me an error.
 
 ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: 
 bad argument #2 to 'lpegmatch' (string expected, got nil)
 stack traceback:
[C]: in function 'lpegmatch'
...t-beta/texmf-context/tex/context/base/m-database.lua:74: in 
 function 'process'
main ctx instance:1: in main chunk.
 \doprocessdatabase ...ameter \c!command \!!es , }}
 
 l.18 \stopMyTable
 
 
 I also, tried the first example of Mojca's CSV May Way 
 (http://dl.contextgarden.net/myway/csv.pdf) which gives me:
 
 ! Undefined control sequence.
 l.36 \startseparatedlist
[NaturalTable]
 
 Thanks for any suggestions,
 Florian
 
 Dear Florian,
 
 Hans reimplemented the database module in MKIV. He requested a list of
 problems that I have discovered in new implementation, but apparently
 it's still on his TODO list to resolve them.
 
 replace line 42 in m-database.lua by:
 
data = buffers.getlines(settings.database)
 
 (internally buffers used to be pre-split but that was changed)

Thanks Hans. Both examples work now, though I had to replace 
 \startseparatedlist[NaturalTable]
with
 \startNaturalTable
in Mojca's CSV May Way example.

Florian

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

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 Bookmarks on unnumbered subjects/titles etc

2011-01-09 Thread Florian Wobbe
Dear Wolfgang,

3 years ago, you wrote:

 [...]
 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \setupinteractionscreen[option=bookmark]
 \starttext
 \chapter{some chapter}
 \bookmark{a title}
 some text
 \stoptext

 The above example correctly generates bookmarks in the PDF.

 I can't, however, get the same thing to work when using
 \subject. [...]

You can to play with the following code, I don't know why it produce multiple
bookmark entries and even more with text between the headers but it's funny.

\setupinteraction[state=start]
\def\sectionbookmark#1{\bookmark[section]{#1}#1}
\def\subjectbookmark#1{\bookmark[subject]{#1}#1}
\setuphead[section][deeptextcommand=\sectionbookmark]
\setuphead[subject][deeptextcommand=\subjectbookmark]
\placebookmarks[chapter,section,subject]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter{Chapter}
\section{Section}
\subject{Subject}
\section{Another section}
\chapter{Second Chapter}
text
\section{First section in second chapter}
text
\subject{Another Subject}
text
\section{Last section}
text
\stoptext

This minimal example gives me an error. Are there other/better means to achieve 
the same thing today?

Best,
Florian

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

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] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
 b) Is there a possibility to use relative sizes like 
 \setupinterlinespace[2*big] (which does not work)?
 
 You can write \setupinterlinespace[3].

Thanks!

Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the 
preamble? They only take effect inside \start... \stop...

Florian

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

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] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
 b) Is there a possibility to use relative sizes like 
 \setupinterlinespace[2*big] (which does not work)?
 
 You can write \setupinterlinespace[3].
 
 Thanks!
 
 Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the 
 preamble? They only take effect inside \start... \stop...
 
 \setupinterlinespace is reset with \starttext, when you don’t like
 setup-commands after \starttext use \startproduct.

Hmm, does not seem to work here. I have following setup:

\environment env_draft % -- setting \setupinterlinespace[big] here
\startproduct
%\setupinterlinespace[big] % works except for references when uncommented
\input chapters
\usepublications[publications]
\placepublications
\stopproduct

\placepublications seems to reset linespacing as well.

Setting \setupinterlinespace[line=1.7em] works throughout the document.

Florian

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

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] \setupinterlinespace questions

2011-01-10 Thread Florian Wobbe
 Hi Florian,
 
 can I interest you in some columnsets?
 
 ··8·
 
 \definecolumnset[three][n=3]
 \starttext
 \startcolumnset[three]
 \setupinterlinespace[small]
 \input knuth
 \column
 \setupinterlinespace[medium]
 \input knuth
 \column
 \setupinterlinespace[big]
 \input knuth
 \stopcolumnset
 \stoptext
 
 ··8·
 
 This should get you even columns.

Great, thank you!

Florian

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

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] Hairline in header

2011-01-11 Thread Florian Wobbe
 how can I move the thinrule further up in this example? I'd like to use 
 \thinrule but still want the position like this:
 
 \setupheader[text][after=\hrule]
 
 
 Hi Florian,
 
 Maybe this can help you.
 
 \setuplayout[header=1cm,headerdistance=1cm]
 \setupheader[text][after=\vskip-0.8em\thinrule]
 \starttext
 \dorecurse{12}{\input knuth\par}
 \stoptext

Thanks, that works. I wonder if you can configure this with \setupthinrules.
\setupthinrules[before=\vskip-0.8em] does no work.

Florian

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

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] Hairline in header

2011-01-11 Thread Florian Wobbe
 Thanks, that works. I wonder if you can configure this with \setupthinrules.
 \setupthinrules[before=\vskip-0.8em] does no work.
 
 
 Hm, if you use:
 \setupthinrules[n=1, before=\vskip-0.8em]
 \setupheader[text][after=\thinrules]
 
 it can work.
 
 However ConTeXt advises to use \blank instead of \vskip, for example:
 
 \setupthinrules[n=1, before={\blank[-0.8em]}]
 \setupheader[text][after=\thinrules]

This works, thank you!

Florian

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

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] \setupinterlinespace questions

2011-01-16 Thread Florian Wobbe
 Hmm, does not seem to work here. I have following setup:
 
 \environment env_draft % -- setting \setupinterlinespace[big] here
 \startproduct
 %\setupinterlinespace[big] % works except for references when uncommented
 
 \startproduct filenename
 
 \environment env_draft
 
 \setupinterlinespace % can be moved to the environment file
 
 \input chapters
 \usepublications[publications]
 \placepublications
 \stopproduct
 
 \placepublications seems to reset linespacing as well.

Wolfgang,

thanks for pointing me into the right direction. This did not work at first 
ether but it was my fault. I had \setupinterlinespace[big] before 
\setupbodyfont. This will reset the interlinespace. However, 
\setupinterlinespace[line=1.7em] before \setupbodyfont works.

Still, \setupinterlinespace[big] does not change anything in the publication 
list.

 Can you make a example.

Please see attached files. Apart from the wrong interline spacing in the 
references section, there is also a missing citation (ELECTRONIC: hh2010).

Best,
Florian


env_linespacing.tex
Description: Binary data


linespacing.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] \setupinterlinespace questions

2011-01-16 Thread Florian Wobbe
 thanks for pointing me into the right direction. This did not work at first 
 ether but it was my fault. I had \setupinterlinespace[big] before 
 \setupbodyfont. This will reset the interlinespace. However, 
 \setupinterlinespace[line=1.7em] before \setupbodyfont works.
 
 Still, \setupinterlinespace[big] does not change anything in the publication 
 list.
 
 You have to make a distinction between a absolute and a relative value for 
 the interlinespace.
 
 With \setupinterlinespace[line=12pt] you set a fixed value of “12pt” for the 
 distance between lines while \setupinterlinespace[big] use these value and 
 multiplies it by the factor “1.5”. When you place a register (e.g. your 
 bibliography) context goes back to the fixed value for the interlinespace and 
 the factor is ignored.

Thanks for the explanation, I didn't know that the scale factor is ignored in 
the bibliography intentionally.

 When you want the bigger linedistance for your whole document change the 
 absolute value to 4.2ex (the default value from context is 2.8 multiplied by 
 1.5 from big).

All right, I will do that.

Florian

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

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] searchable PDF with MinionPro under mkiv

2011-01-17 Thread Florian Wobbe
 How can I generate a searchable PDF with mkiv, using a non standard font
 like MinionPro?
 
 \definefontfeature [default] [default] [mode=node,script=latn,onum=yes]
 \usemodule[simplefonts]
 \setmainfont[minionpro]
 
 \starttext
 fi ff ffi ffl 1234567890
 \stoptext
 
 Using pdftotext, I get this:
 
 fi ff ffi ffl 

Hi Oliver,

it works for me with the beta 2011.01.12 and 2011.01.14 and poppler-0.14.5/ 
poppler-0.16.0.

However, it turns out that pdftotext converts to

fi ff ffi ffl 1234567890,

splitting fi ligature while leaving ff, ffi and ffl intact, which is strange.

I did not try with Adobe Reader but the pdf is searchable with Apple Preview 
and the pasted copy is still intact:

fi ff ffi ffl 1234567890

Florian

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

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] searchable PDF with MinionPro under mkiv

2011-01-17 Thread Florian Wobbe
 However, it turns out that pdftotext converts to
 
 fi ff ffi ffl 1234567890,
 
 splitting fi ligature while leaving ff, ffi and ffl intact, which is
 strange.
 
 I did not try with Adobe Reader but the pdf is searchable with Apple
 Preview and the pasted copy is still intact:
 
 fi ff ffi ffl 1234567890
 
 For me, it still doesn't work.  I get oldstyle numbers in the text, and
 neither in Adobe Reader nor in okular, evince or xpdf the numbers are
 searchable.  However, I figured out that it is my version of the font
 causing the wrong result.

You are right! I have not considered that. Depending on the used font, 
pdftotext expands (some) the ligatures or not. With TeXGyre Pagella for 
instance there is no ligature expansion at all:

fi ff ffi ffl 1234567890

and with Cambria I get a pdf which is not searchable with Preview:

ũi ff fũi fũl 1234567890

Florian

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

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] context does not hyphenate compounds correctly

2011-01-23 Thread Florian Wobbe
Hello,

I get lots of overfull \hbox with compounds because context does not hyphenate 
at the hyphen:

\showframe
\starttext
averyverylongword averyverylongword averyverylongword averyverylongword 
three-component\par % overfull
averyverylongword averyverylongword averyverylongword averyverylongword 
threecomponent\par % correct hyphenation
\stoptext

How can I fix this?

Best,
Florian

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

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] context does not hyphenate compounds correctly

2011-01-23 Thread Florian Wobbe
 I get lots of overfull \hbox with compounds because context does not 
 hyphenate at the hyphen:
 
 \showframe
 \starttext
 averyverylongword averyverylongword averyverylongword averyverylongword 
 three-component\par % overfull
 averyverylongword averyverylongword averyverylongword averyverylongword 
 threecomponent\par % correct hyphenation
 \stoptext
 
 How can I fix this?
 
 MkIV: \setbreakpoints[compound]

Yes, exactly what I was looking for. Thanks!

Florian

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

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] prevent gobbling of spaces when omitting optional argument

2011-01-28 Thread Florian Wobbe
Hi,

please consider the following minimal example:

\def\before{\dodoubleempty\dobefore}%
\def\dobefore[#1][#2]{before}

\starttext
\before[] after (should be: \before[]\ after without explicit \type{\ })\par
\before[]after\par
\before[][] after\par % this works
\before[][]after\par
\stoptext

How can I prevent gobbling the following space, when the second optional 
argument is not given (i.e. first line). The macro itself should not insert 
space if the command is followed by any other character (2nd and 4th line).

Thanks,
Florian

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

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] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Florian Wobbe
 Hi,
 
 please consider the following minimal example:
 
 \def\before{\dodoubleempty\dobefore}%
 \def\dobefore[#1][#2]{before}
 
 \starttext
 \before[] after (should be: \before[]\ after without explicit \type{\ })\par
 \before[]after\par
 \before[][] after\par % this works
 \before[][]after\par
 \stoptext
 
 How can I prevent gobbling the following space, when the second optional 
 argument is not given (i.e. first line). The macro itself should not insert 
 space if the command is followed by any other character (2nd and 4th line).
 
 
 What do you want to achieve, maybe there is already something available.

Wolfgang, thank you very much! Recursion is really an elegant way. I wanted a 
wrapper around \cite with the same functionality like natbib's \citep[][]{} and 
\citet[][]{}, which saves a lot of typing. Especially if you start writing a 
text and at a later point decide to have a citation in parenthesis instead of 
textual. And of cause, if you switch between both styles in the same text.

Following your example, I came up with this now:

\def\citep[#1]%
 {\strictdoifnextoptionalelse{\docitep[#1]}{\nocitep[#1]}}

\def\docitep[#1][#2]%
 {\strictdoifnextoptionalelse{\dodocitep[#1][#2]}{\nodocitep[#1][#2]}}

\def\dodocitep[#1][#2][#3]%
 {\cite[alternative=authoryears, left={(#1 }, extras={#2}][#3]}

\def\nodocitep[#1][#2]%
 {\cite[alternative=authoryears, extras={#1}][#2]}

\def\nocitep[#1]%
 {\cite[alternative=authoryears][#1]}

\setuppublications[state=start,refcommand=authoryear]
\setupbibtex[database=sample]

\starttext
\startlines
%\cite[hh2010a] % commenting this out does not work
\stoplines
\citep[, p.\ 1][hh2010a].\par
\citep[, p.\ 1][hh2010a] more text.\par
\citep[see][, p.\ 1][hh2010a].\par
\citep[see][][hh2010a] more text.\par
\startlines
\cite[hh2010a] % this is ok at the end
\stoplines
\stoptext

I noticed there is this error: using the first cite in \startlines...\stoplines 
does not work.

Florian

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

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] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Florian Wobbe
 % \one, \one[…] and \one[…][…] (no spaces between “[][]” allowed)
 
 \def\one
  {\strictdoifnextoptionalelse\doone\noone}
 
 \def\noone{[]}
 
 \def\doone[#1]%
  {\strictdoifnextoptionalelse{\dodoone[#1]}{\nodoone[#1]}}
 
 \def\dodoone[#1][#2]%
  {[#1:#2]}
 
 \def\nodoone[#1]%
  {[#1]}

One more problem: Adding

\setupinteraction[state=start]

 \starttext

and\footnote{\one[1]} etc. do not work. Why not?
Florian

 \startlines
 \one text
 \one[1] text
 \one[1][2] text
 \stoplines
 \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] prevent gobbling of spaces when omitting optional argument

2011-01-29 Thread Florian Wobbe
 \unexpanded\def\one % should make it work in footnotes

Great, that did the trick. Thanks!
Florian
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] trying to fix page ranges in bibliography

2011-01-29 Thread Florian Wobbe
Hi,

I'm trying to insert the macro \pagerange into the code from 
texmf-context/tex/context/base/bibl-tra.mkiv but I'm quite lost. The macro 
should make proper page ranges from the bibtex file entries (Pages = {...}). 
That means remove any whitespace before and after the hyphen and double a 
single hyphen:

7-9- 7--9
1 - 3a - 1--3a

\def\pagerange#1%
  {\directlua{
 range = string.gsub(#1, \%s*[-\%s]+, --)
 tex.sprint(range)}}

Thanks for suggestions,
Florian

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

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] strange interaction with footnote and section

2011-01-30 Thread Florian Wobbe
Hi,

I have a strange problem with footnotes, when interaction is turned on. When a 
footnote is followed by a \section{}, the color of the first footnote number 
will change from contrastcolor to color. Also the number is not a clickable 
link anymore. Of cause the footnote is not on a different page.

The more \section{}s you have, the more footnote interaction links will vanish:

\setupinteraction[state=start]

\starttext

1st\footnote{first},
2nd\footnote{second},
3rd\footnote{third},
4th\footnote{fourth},
5th\footnote{fifth}.

% uncomment these one at a time:
%\section{First}
%\section{Second}
%\section{Third}

\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] problem with \date in beta 2011.01.31 16:59

2011-01-31 Thread Florian Wobbe
Hi,

\date still used to work in beta 2011.01.26 11:02 now I get only v!. What is 
wrong?

\starttext
\date, \date[][year,--,mm,--,dd]
\stoptext

Thanks,
Florian

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

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


Re: [NTG-context] problem with \date in beta 2011.01.31 16:59

2011-01-31 Thread Florian Wobbe
 \date still used to work in beta 2011.01.26 11:02 now I get only v!. What 
 is wrong?
 
 \starttext
 \date, \date[][year,--,mm,--,dd]
 \stoptext
 
 fixed .. side effect of cleaning up some code

Thank you! I just noticed, that all numbers in front of the pdf bookmark 
entries have gone as well. Partitioned numbers of sections, subsections etc., 
have only the dot left.

\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection]

\starttext
\chapter{A Chapter}
\section{A Section}
\subsection{The Subsection}
\stoptext

Florian

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

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] mtxrun issue in new beta

2011-02-02 Thread Florian Wobbe
Hi,

I get
  mtxrun:12090: bad argument #1 to 'gsub' (string expected, got nil)
with texexec (mtxrun --usekpse) in current beta.

Best,
Florian

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

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] interaction color ?

2011-02-03 Thread Florian Wobbe
 Hi,
 when running (MkIV) the example below I get darkred instead of blue.
 What can I do to change these?
 
 Add “contrastcolor=blue”.
 http://wiki.contextgarden.net/Interaction#Link_coloring
 Wolfgang
 
 But has the bug with random coloring of links ever been resolved? (I
 usually get randomly alternating colors with active interaction.)
 
 
 Probably not. I also still have it.

It is not only that the links have the wrong color, they are not clickable 
anymore. It doesn't seem that random, though. See attached example in my 
previous mail strange interaction with footnote and section.

Best,
Florian

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

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

2011-02-11 Thread Florian Wobbe
 I uploaded a beta. New:
 [...]
 \at{(}{)}[two]

Hi Hans,
is there a way to get rid of the extra space after the opening bracket?

Florian

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

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

2011-02-15 Thread Florian Wobbe
 fyi: you can say autocase=yes so that e.g. page becomes Page when it ends up 
 at the beginning of a line.

Hans, thanks for the new functionality. How would I use autocase? This does not 
seem to work:

\definereferenceformat [aPage] [label=page, autocase=yes]
See \aPage[one]. \aPage[one] is important. % Page is always capitalised

Florian

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

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] problem with doifolderversionelse and correspondence module

2011-02-16 Thread Florian Wobbe
Hi, since beta 2011.02.14 23:30 the correspondence module complains that 
context is too old.

Florian

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

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] defined symbols - question/feature suggestion

2011-02-18 Thread Florian Wobbe
Hi Hans,

in symb-mis.mkiv you define most symbols with \mathematics. I don't know why 
you take these symbols from the math font. Just in case the symbol does not 
exist in the regular font, I would guess.

Problem is only, that you will loose most symbols when switching the math font 
to something else than computer-modern (I tested with euler and cambria). BTW: 
I wonder how many contexters use modern for math...

Anyway it appears most fonts have geometric shapes and common symbols and 
dingbats. So I end up redefining the symbols:

\definesymbol [bullet][\textbullet]
\definesymbol [dash]  [--]
\definesymbol [star]  [\char2734]
\definesymbol [triangle]  [\char25B6]
\definesymbol [square][\char25A0]
\definesymbol [diamond]   [\char25C6]
\definesymbol [checkmark] [\char2713]

Also it looks nicer when you use item symbols matching the text font.

Maybe you would consider this and prefer symbols from the text font rather than 
those from the math font and keep \mathematics only as fall back should the 
glyph be unavailable.

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

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] MnSymbol in ConText

2011-02-20 Thread Florian Wobbe
 Is there any way to use MnSymbol in context?
 
 It is, but somebody needs to write support for it. Both for MKII and MKIV.

The problem is, that luatex refuses to load any of the MnSymbol*.otf font files 
available from CTAN with an error message. I don't know what is broken with the 
fonts.

Should you just be interested in the symbols you can fix the otf font with 
fontforge by reencoding and saving it to a unicode font again. Glyphs with 
undefined unicode value will be assigned to unicode slots starting from 0xF.

Then you can do this:

\definefontsynonym [MnSymbol12U] [name:MnSymbol12Uni]
\starttext
\definedfont [MnSymbol12U at 16pt] ABC XYZ \char25B7 \char2660 \char2720 
\char10391 \char10393 \char10335
\stoptext

To print a table with glyphs and unicode values do:

\usemodule[fnt-10]
\starttext
\ShowCompleteFont{name:MnSymbol12Uni}{11pt}{1} % MnSymbol12Uni.otf
\stoptext

I used the following fontforge script to re-generate the font:

#begin fontforge script

#usage: fontforge -script fontBMP2Full.ff MnSymbol12.otf

Open($1);

F1 = $fontname+Uni # fontname
F2 =  # familyname
F3 = $fullname+Uni # fullname
F4 =  # weight
F5 =  # copyright
F6 =  # fontversion

#SetFontNames(fontname[,family[,fullname[,weight[,copyright-notice[,fontversion])
#Sets various postscript names associated with a font. If a name is omitted (or 
is the
#empty string) it will not be changed. 
SetFontNames(F1,F2,F3,F4,F5,F6)

Reencode(unicode);
Generate($fontname+.otf);
Quit(0);

#end fontforge script

Florian

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

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] MnSymbol in ConText

2011-02-20 Thread Florian Wobbe


--
Florian Wobbe
Alfred Wegener Institute for Polar and Marine Research
Division of Geosciences, Section of Geophysics
Postfach 120161
27515 Bremerhaven

On Feb 20, 2011, at 20:38 , Khaled Hosny wrote:

 On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote:
 Is there any way to use MnSymbol in context?
 
 It is, but somebody needs to write support for it. Both for MKII and MKIV.
 
 The problem is, that luatex refuses to load any of the MnSymbol*.otf
 font files available from CTAN with an error message. I don't know
 what is broken with the fonts.
 
 Reporting the errors would help finding what is wrong.

Hi Khaled,

luatax says:
 )texmf/fonts/opentype/public/mnsymbol/MnSymbol12.otf
!LuaTeX error (file texmf/fonts/opentype/public/mnsymbol/MnSymbol12.otf): 
Invalid character.

Florian

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

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] git repository in sync with minimals

2011-02-23 Thread Florian Wobbe
 Is the git repository git://gitorious.org/context/context.git
 in sync with the minimals?

It is but it is incomplete compared to the minimals and therefore may not be 
what you are looking for.

Long answer: The repository is in sync with 
http://pragma-ade.nl/context/current/cont-tmf.zip (see 
http://gitorious.org/context/context/blobs/script/context_git_update.pl). 
However, the repository misses binaries, all extras and additional fonts that 
are available on http://minimals.contextgarden.net/.

 If not, is there another revision control system repository
 for context that is?

AFAIK only privately maintained ones.

Florian

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

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] howto set maxitemdepth

2011-02-27 Thread Florian Wobbe
Hi,

what is the preferred way to set the maximum item depth for itemization with 
symbols? I can decrease the default value of 6 with \setcounter. However, 
increasing to values higher than 6 results in an error: Missing number, 
treated as zero.

Thanks,
Florian

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

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] defined symbols - question/feature suggestion

2011-02-27 Thread Florian Wobbe
 a next beta will have
 
 \definesymbol [bullet][\textormathchar{2022}] % • \bullet
 \definesymbol [dash]  [\textormathchar{2013}] % –
 \definesymbol [star]  [\textormathchar{22C6}] % ✴ \star
 \definesymbol [triangle]  [\textormathchar{22B3}] % ⊳ \triangleright
 \definesymbol [circle][\textormathchar{2218}] % ∘ \circ
 \definesymbol [square][\textormathchar{25A1}] % □ \square
 \definesymbol [diamond]   [\textormathchar{22C4}] % ⋄ \diamond
 \definesymbol [checkmark] [\textormathchar{2713}] % ✓ \checkmark
 
 \definesymbol [blacktriangle] [\textormathchar{25B6}] % ▶
 \definesymbol [blacksquare]   [\textormathchar{25A0}] % ■
 \definesymbol [blackdiamond]  [\textormathchar{25C6}] % ◆
 
 but it's experimental (and fonts like cambria don't have all of them)

Thanks Hans,

\startsymbolset and \setupsymbolset are very convenient to quickly change 
between different sets of symbols.

Florian

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

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] howto set maxitemdepth

2011-02-27 Thread Florian Wobbe
 Hi,
 
 what is the preferred way to set the maximum item depth for itemization with 
 symbols?
 
 With MkII it was possible to increase the itemlevel with the “levels” key but 
 MkIV has a fixed depth which can’t be changed.

Strange, I tried \defineitemgroup[myitm][levels=11] in MKII but still I get 
currently no more than 6 levels in itemizations. Levels do not seem to work 
anymore.

 I can decrease the default value of 6 with \setcounter. However, increasing 
 to values higher than 6 results in an error: Missing number, treated as 
 zero.
 
 \maxitemdepth is a real counter and \setcounter won’t work here. The only 
 thing you can do is to ask Hans to implement the “levels” key in MkIV. What 
 you have to know is that this key is only used when you define a new list 
 with \defineitemgroup, for a already existing group like “itemize” you can 
 increase the depth.

OK. What I don't understand is why is there a hardcoded limit? The indentation 
of depth greater than 6 is working all right only the symbols are kept constant 
(\definesymbol[6]) for all depth  6.

Florian

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

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] No hypenation on words like e-book

2011-03-01 Thread Florian Wobbe
 I am trying to make an e-book with ConTeXt. The word e-book is used in this 
 e-book. ;-} Sometimes e- comes on the end of the line and book at the 
 beginning of the next. Is there a way to circumvent this?
 
 I could ofcourse change all occurences with \hbox{e-book} (and the same for 
 e-mail, ...), but I was hoping there is a better solution.
 
 \setbreakpoints[compound]

But isn't this supposed to do exactly the opposite of what Cecil wants 
(http://wiki.contextgarden.net/Composed_words)? Also she probably wants to keep 
hyphenation on hyphens for composed words in general and only disable this for 
the compound e-book.

Florian

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

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] No hypenation on words like e-book

2011-03-01 Thread Florian Wobbe
 \setbreakpoints[compound]
 
 But isn't this supposed to do exactly the opposite of what Cecil wants 
 (http://wiki.contextgarden.net/Composed_words)? Also she probably wants to 
 keep hyphenation on hyphens for composed words in general and only disable 
 this for the compound e-book.
 
 You can control how many characters are allowed on the left/right side of the 
 sign before the word is hyphenated.

Thanks for pointing out. I was not aware of \installbreakpoint[compound].

Florian

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

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] Short words in word list

2011-03-02 Thread Florian Wobbe
Hi,

\usemodule[s-lan-03] 
\setupspellchecking[state=start,method=2] 
\setupspellchecking[list=words]
\ctxlua{languages.words.tracers.showwords()}

prints a word list of words with 4+ letters. Is there a way to also include 1-, 
2-, and 3-letter words?

Thanks,
Florian

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

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] automatic filename extension with \externalfigure

2011-03-06 Thread Florian Wobbe
Hi,

I have an image file with two dots: file.xy.pdf

I can embed this file with

  \externalfigure[file.xy.pdf][][width=\textwidth]

When leaving out the extension, the image is not found, e.g.:

  \externalfigure[file.xy][][width=\textwidth]

For the time being, I renamed the files but it would be great if multiple dots 
in filenames were supported.

Thanks,
Florian

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

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


[NTG-context] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
Hi,

I created a custom bibliography style file (bibl-mybst.tex) and like to use it 
with

 \setuppublications[alternative=mystyle]

For obvious reasons I want to move the file from texmf-context/tex/context/bib 
to some directory in texmf-local. Unfortunately, the file is not found in the 
texmf-local tree. I have tried several subdirectories using MkIV.

Where should the file go so that bibmod finds it?

Thanks,
Florian

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

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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
 Hi,
 
 I created a custom bibliography style file (bibl-mybst.tex) and like to use 
 it with
 
 \setuppublications[alternative=mystyle]
 
 There is a mismatch in names: bibl-mybst.tex vs alternative=mystyle. Either 
 the file should be called bibl-mystyle.tex or use alternative=mybst.

Thanks Aditya,

this is a typo in the email only.

 For obvious reasons I want to move the file from 
 texmf-context/tex/context/bib to some directory in texmf-local. 
 Unfortunately, the file is not found in the texmf-local tree. I have tried 
 several subdirectories using MkIV.
 
 What happens when you run
 
mtxrun --locate bibl-mybst.tex

This works when I regenerate the file database (which I forgot before).

 Does everything work if you keep the file in the current directory?

I tried this and then I had a blank reference list. I thought the reason was 
that context did not find the file but now I realise this is not the case. I'm 
trying to figure out what happens.

This is strange: When I setup a list with

  \setuppublications[alternative=apa]

I get a blank reference list.

When I use this (non existent file) line instead

  \setuppublications[alternative=not-existing]

context complains about not finding bibl-not-existing but I get a reference 
list! I'll try with a minimal example.

Florian

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

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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
 This is strange: When I setup a list with
 
  \setuppublications[alternative=apa]
 
 I get a blank reference list.
 
 When I use this (non existent file) line instead
 
  \setuppublications[alternative=not-existing]
 
 context complains about not finding bibl-not-existing but I get a reference 
 list! I'll try with a minimal example.

Unfortunately I cannot reproduce this behaviour with a minimal example. Still I 
have the problem with the empty list (in section Cited references):

\setupbibtex[database=sample]
\setuppublications[alternative=apa]

\starttext

\cite[hh2010a]
\cite[hh2010a]
\cite[Eijkhout1991]

\section{Cited references}
\placepublications
\placepublications[criterium=cite]

\section{All references}
\placepublications[criterium=all]

\stoptext

A problem related to \placepublications[criterium=cite] was reported 
by Mojca on 2010-11-27. But then the issue was inverted: complete list instead 
of only the cited references.

Best,
Florian

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

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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
 Try \placepublications[criterium=text]

Much obliged!
Florian

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

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] MnSymbol in ConText

2011-03-07 Thread Florian Wobbe
 sure, if you cook up the definition for the virtualization (if the encoding 
 is default tex it's no big deal, otherwise some extra tables are needed) ...
 
 the symbols aren’t the problem, what’s difficult is greek because the greek 
 letters are taken from minion pro (the text font) and not from a special math 
 font and this is where it gets tricky

Why not just merge Minion with MnSymbol and create a new font if virtualisation 
is tricky? Of cause you cannot redistribute the new font but you could 
distribute a fontforge script which does the merge. This way you could create 
an OpenType Math font with greek already in the right slots. Maybe also merge 
with Cronos to get sans math into the font.

Florian

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

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] extra line in tabulate headers

2011-03-10 Thread Florian Wobbe
Hi,

how can I suppress the extra line in the header of the example on contextgarden 
(http://wiki.contextgarden.net/Tabulate#Headers)? Removing header=repeat from 
\setuptabulate helps but I'd like to keep header repetition.

Thanks,
Florian

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

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] extra line in tabulate headers

2011-03-10 Thread Florian Wobbe
 how can I suppress the extra line in the header of the example
 on contextgarden
 (http://wiki.contextgarden.net/Tabulate#Headers)? Removing
 header=repeat from \setuptabulate helps but I'd like to keep
 header repetition.
 
 Hi Florian,
 
 wrapping it into a “\placetable”-float seems to get rid of it

Hi Philipp,

in deed it does with \placetable[here]. I should have added that I wrapped it 
inside \placetable[split] to split the table over several pages. Unfortunately 
this messes up the header lines:

\setuptabulate[split=yes,header=repeat]

\starttabulatehead
 \HL
 \NC {\bf format char} \NC {\bf meaning} \NC \NR
 \HL
\stoptabulatehead

\placetable[split]{none}{%
 \starttabulate[|r|l|]
   \dorecurse{20}{
 \NC c \NC centered  \AR
 \NC l \NC left aligned  \AR
 \NC r \NC right aligned \AR
 \HL}
 \stoptabulate
}

Best,
Florian

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

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
___


  1   2   >