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


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
___


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


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

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
___


[NTG-context] Bibliography and multiple years of the same author

2011-05-10 Thread Florian Wobbe
Hi,

how do I get an additional space after the comma separating the years in this 
cite?

(Hagen, 2010b,2011) -- (Hagen, 2010b, 2011)

Minimal example:

\setupbibtex[database=sample]
\setuppublications[alternative=apa, refcommand=authoryears]

\starttext
\cite[hh2010a, hh2011]
\stoptext

Also add the following entry to sample.bib:

@ARTICLE{hh2011,
  author = hh,
  title = {The Font Name Mess (II)},
  journal = {MAPS},
  year = {2011},
  volume = {41},
  pages = {2-8},
  keywords = {context},
}

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] Unskipping punctuation

2011-05-10 Thread Florian Wobbe
Hi,

is it possible to '\unskip' the last comma or period? This would be handy for 
defining the publication layout using \setuppublicationlayout. I have bibtex 
entries ending with period and adding another one looks odd.

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

2011-04-21 Thread Florian Wobbe
Hi,

citing multiple authors with \cite[author1, author2, ...] is no problem but 
referencing multiple figures/sections does not work:
\in{Figures}[fig:one, fig:two]

Is there a way to circumvent repeating successive \in[...]?

What about automatic page ranges for \at? This could be interesting...

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] two problems with natural tables

2011-04-20 Thread Florian Wobbe

On Apr 18, 2011, at 21:14 , Hans Hagen wrote:

 On 18-4-2011 7:16, Wolfgang Schuster wrote:
 \def\floatcaptionattribute
   {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else 
 \ifinsidesplitfloat \else
  attr \destinationattribute \currentfloatattribute
\fi \fi \fi \fi}
 
 ok, patched

Wolfgang, Hans, as usual thanks for the support and the quick fix!
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] \date problem in current beta

2011-04-13 Thread Florian Wobbe
 core-con.mkiv
 
 \def\dodate[#1][#2]%
  {\begingroup
   \iffirstargument
 \getparameters[\??da][d=\normalday,m=\normalmonth,y=\normalyear,#1]%
 \normalday  \@@dad\relax
 \normalmonth\@@dam\relax
 \normalyear \@@day\relax
   \fi
 -  \docurrentdate{#2}%
 +  \docurrentdate[#2]%
   \endgroup}

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] \date problem in current beta

2011-04-12 Thread Florian Wobbe
Hi,

this used to work in beta 2011.04.03 22:32 but now it doesn't anymore:

\starttext
\date\par
\date[][year,--,mm,--,dd]\par
\date[][year,{--},mm,--,dd]
\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] two problems with natural tables

2011-04-11 Thread Florian Wobbe
 2) How do I get a small and bold header? This does not work:
 
 \bTABLE
 \setupTABLE[style=\tfx]
 \setupTABLE[row][1][style=\bfx] % redundant w/ line 5
 \bTABLEhead
 \bTR[style=\bfx] \bTH Header \eTH \eTR
 \eTABLEhead
 \bTABLEbody
 \bTR \bTD hello \eTD \eTR
 \bTR \bTD world \eTD \eTR
 \eTABLEbody
 \eTABLE
 
 You mix too many setups, \bTH overwrites your setting for the row 
 (\bTR[style=\tfx])
 and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to 
 separate
 the style and the markup
 
 \startsetups table:style
   \setupTABLE[start] [style=\tfx]
   \setupTABLE[header][style=\bfx]
 \stopsetups
 
 \starttext
 
 \bTABLE[setups=table:style]
 \bTABLEhead
 \bTR \bTD Header \eTD \eTR
 \eTABLEhead
 \bTABLEbody
 \bTR \bTD Body \eTD \eTR
 \eTABLEbody
 \eTABLE
 
 \stoptext

Thanks Wolfgang,

so to make style=... also work on the header the trick was to change
  \bTH Header \eTH
to
  \bTD Header \eTD.

What is the purpose of \bTH \eTH then? BTW the Wiki says: Please take account 
of the fact, that the head cells are enclosed by \bTH and \eTH (and not 
\[be]TC).

\bTH seems to only override style=... since \bTD Header \eTD is repeated 
correctly with \bTABLE[split=repeat,setups=table:style].

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] two problems with natural tables

2011-04-11 Thread Florian Wobbe
 1) I tried the following minimal example from 
 http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html
 
 \placetable[split]{Test}
 {\bTABLE[split=yes]
 \dorecurse{60}{
 \bTR \bTD hello \eTD \eTR
 }
 \eTABLE}
 
 with the current context versions which works fine.

I have to correct myself. This still does not work with interactions 
(\setupinteraction [state=start]).

 I could determine the context version at which my big document fails: 
 2010.12.22 14:07. The example still works in 2010.12.21 10:50.

I attached the changes in code in strc-flt.mkiv and tabl-tsp.mkiv that break 
the above split table example. I hope this helps to identify the problem so it 
can be fixed in the current beta...

Thanks,
Florian



flt-tabl.diff
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
___

[NTG-context] three more table questions

2011-04-11 Thread Florian Wobbe
Hi,

1) how can I auto-stretch a natural table to a defined width? The default seems 
to be the line width, which I don't want. Setting width=... will change the per 
column width, which I don't like either. I'd like to set the per table width.

\bTABLE[option=stretch,width=80mm]
\bTABLEhead
\bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR}
\eTABLEbody
\eTABLE

Or is there maybe the possibility to enforce a certain with with \placetable?

2) In this example I'd like to have no offset between lines but an offset 
between columns. How can I achieve this without the gaps in the hline 
separating the header?

\bTABLE
\setupTABLE[frame=off,offset=0pt]
\setupTABLE[c][distance=3mm]
\bTABLEhead
\bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 
\eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR}
\eTABLEbody
\eTABLE

I also tried various combinations of offset=, columndistance=, 
leftmargindistance=, and rightmargindistance= for columns and rows but did not 
succeed.

3) Consider this example:

\bTABLE[option=stretch]
\setupTABLE[frame=off,offset=0pt]
\bTABLEhead
\bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 
\eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long 
entry \eTD \eTR}
\eTABLEbody
\eTABLE

Is it possible to auto-stretch only the first three columns, so that this is a 
long entry is always aligned to the right margin? All columns should stay 
flushleft.

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] three more table questions

2011-04-11 Thread Florian Wobbe
 3) Consider this example:
 
 \bTABLE[option=stretch]
 \setupTABLE[frame=off,offset=0pt]
 \bTABLEhead
 \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 
 \eTD \eTR
 \eTABLEhead
 \bTABLEbody
 \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long 
 entry \eTD \eTR}
 \eTABLEbody
 \eTABLE
 
 Is it possible to auto-stretch only the first three columns, so that this 
 is a long entry is always aligned to the right margin? All columns should 
 stay flushleft.
 
 You can exclude columns from stretching when you set a width, e.g. 
 \setupTABLE[column][last][width=4cm,align=flushright]

Thanks again for your suggestions! Still I have problems with the last column, 
which should be flushleft, exactly as wide as the containing text, and still 
aligned to the right page margin (the frame in this case).

I experimented:

\framed{
\bTABLE[option=stretch]
\setupTABLE[frame=off,offset=0pt]
\setupTABLE[column][last][width=2mm] % here is the difference
\bTABLEhead
\bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 
\eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 
\blackrule[height=5pt, width=30mm] \eTD \eTR}
\eTABLEbody
\eTABLE}

\framed{
\bTABLE[option=stretch]
\setupTABLE[frame=off,offset=0pt]
\setupTABLE[column][last][width=30mm] % here is the difference
\bTABLEhead
\bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 
\eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 
\blackrule[height=5pt, width=30mm] \eTD \eTR}
\eTABLEbody
\eTABLE}

In this case I know the last column width (30mm) but the output is 
unpredictable.

In case I don't know the text width, is there a way to get a dummy width equal 
to \settowidth (latex)?

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] three more table questions

2011-04-11 Thread Florian Wobbe
 In case I don't know the text width, is there a way to get a dummy width 
 equal to \settowidth (latex)?
 
 Search the list archive. Hans has posted a solution sometime back.

Thanks, I found it: 
http://archive.contextgarden.net/message/20070314.120612.adab0a8b.en.html
Would make a useful core function...

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] two problems with natural tables

2011-04-10 Thread Florian Wobbe
Hi,

1) I tried the following minimal example from 
http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html

\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}

with the current context versions which works fine. However, if I insert the 
code in a big project with many setups it fails with the attached error 
message. So there are setups which cause this error. Unfortunately I couldn't 
figure out what causes the problem.

I could determine the context version at which my big document fails: 
2010.12.22 14:07. The example still works in 2010.12.21 10:50.

Anyone got an idea which setups might cause this issue?

2) How do I get a small and bold header? This does not work:

\bTABLE
\setupTABLE[style=\tfx]
\setupTABLE[row][1][style=\bfx] % redundant w/ line 5
\bTABLEhead
\bTR[style=\bfx] \bTH Header \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD hello \eTD \eTR
\bTR \bTD world \eTD \eTR
\eTABLEbody
\eTABLE

Thanks!
Florian


! Missing number, treated as zero.

system   tex  error on line 178 in file test.tex: Missing number, 
treated as zero ...

173 \placetable[split]{Test}
174 {\bTABLE[split=yes]
175 \dorecurse{60}{
176 \bTR \bTD hello \eTD \eTR
177 }
178   \eTABLE}

to be read again 
   {
\docompletefloat ...\vbox \floatcaptionattribute {
  \doifelsemainfloatbody \cu...
argument ...loat {table}{}{split}{Test}\nextbox 
  \else \docompletefloat {ta...
\thirdofthreearguments #1#2#3-#3
 
\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
  \else \docompletefloat {#1...
\dodowithnextbox ...tefloat {table}{}{split}{Test}
  \doifnotinset \v!text {spl...
...
l.178 \eTABLE
 }

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 printing pdf files (MKIV on Mac)

2011-04-01 Thread Florian Wobbe
 Maybe related:
 
 Printing on a network printer (from a Mac through Skim) prints the first page 
 correctly, at the top of the second page it prints:
 
 ERROR: invalidfont
 OFFENDING COMMAND:definefont
 
 STACK:
 
 /Font
 -dictionary~
 /YYMGGN+LinBiolinumO
 
 
 Printing from Acrobat Professional works correctly.

FYI: the issue is official now and related to printing OpenType PostScript 
fonts (i.e. Linux Biolinum). Mac users, you may want to consider not upgrading 
to 10.6.7 right now.

See also:
http://reviews.cnet.com/8301-13727_7-20048314-263.html
http://discussions.apple.com/thread.jspa?threadID=2792142
http://discussions.apple.com/thread.jspa?threadID=2791830

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] Problem with en-dash in footer

2011-03-28 Thread Florian Wobbe
Hi,

this used to work before:

\setupcombinedlist[content][alternative=c]
\setupfootertexts[{should be en-dash: -- \hfill \pagenumber}]
\setupfooter[style=\ssbi] % -- comment out
\starttext
%text  % -- comment in
\completecontent
\stoptext

Strange is, that the en-dash is there when either the style is not set or when 
there is text before the TOC.

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

2011-03-27 Thread Florian Wobbe

On Mar 26, 2011, at 12:42 , Hans Hagen wrote:

 On 26-3-2011 2:16, Li Yanrui (李延瑞) wrote:
 2011/3/26 Hans Hagenpra...@wxs.nl:
 Hi,
 
 I uploaded a new beta.
 
 
 The protrusion does not work.
 
 I have tested it with the example in
 http://wiki.contextgarden.net/Protrusion#MkIV
 
 
 fixed in next upload

Thanks. Is there a way to enable protrusion for figure captions?

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

2011-03-26 Thread Florian Wobbe
 The protrusion does not work.

Confirmed.

Also I do get a huge number of overfull lines which was not the case with beta 
2011.02.25 22:03. This is strange because there is plenty of room (about 75 
characters per line). Unfortunately I was unsuccessful to reproduce this with a 
minimal example. I guess there are several triggering factors.

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] problem with printing pdf files (MKIV on Mac)

2011-03-25 Thread Florian Wobbe
 I'm using ConTeXt MKIV 2011.03.11 11:45 (I will try to upgrade first).
 When I try to print the document from Mac (Skim.app) to two different
 printers, I get pure junk on both of them (bold and italic fonts come
 out semi-ok, but regular doesn't).

I have the same setup here and palatino documents print fine. I do both: send 
the raw pdf to a cups server (let it deal with it) and convert the pdf to pcl 
prior to sending it to the printer.

 If I print an older document or if
 I compile the same document with MKII, the document prints out fine on
 the same printer. The document also prints out fine when printing from
 Linux.

Do you have multiple versions of the TeXGyre Pagella installed? Maybe one of 
them is corrupt.

You might want to try outline the fonts and strip them from the document:

gs -sDEVICE=pswrite -dNOCACHE -sOutputFile=nofont-Myfile.ps -q -dbatch 
-dNOPAUSE Myfile.pdf -c quit

Optionally convert back to pdf with ps2pdf and try print that file. If 
ghostscript complains right away the problem is not your printer.

 I'm using one network PostScript printer and one network printer that
 is most probably using PCL drivers and both generate junk. I'm using
 palatino typescript.

Can you print to CUPS-PDF? Or do you get rubbish as well?

 (Can I send a document to
 PostScript printer on specific IP from a Mac without having to use
 Apple's libraries for handling PDF?)

Why not? PostScript printers should handle nofont-Myfile.ps (see above).

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 printing pdf files (MKIV on Mac)

2011-03-25 Thread Florian Wobbe
 Do you have multiple versions of the TeXGyre Pagella installed? Maybe one of 
 them is corrupt.
 
 I don't have it installed. It is in my TeX tree. But if mine is
 corrupt, everyone's font is corrupt (or my disk is corrupt).

I have multiple versions from context alone:
fonts/type1/public/tex-gyre
fonts/opentype/public/tex-gyre

I guess, if you add those from TexLive you have several possibilities of what 
could end up in your pdf depending on whether you use MKII or MKIV.

 You might want to try outline the fonts and strip them from the document:
 
 gs -sDEVICE=pswrite -dNOCACHE -sOutputFile=nofont-Myfile.ps -q -dbatch 
 -dNOPAUSE Myfile.pdf -c quit
 
 Optionally convert back to pdf with ps2pdf and try print that file. If 
 ghostscript complains right away the problem is not your printer.
 
 Ghostscript doesn't complain and the resulting file prints out fine.
 (The original one still doesn't.)

Next thing I would try is update CUPS. I installed Gutenprint 
(http://gimp-print.sourceforge.net/MacOSX.php) after experiencing some other 
issues with the standard CUPS from Apple.

 (Can I send a document to
 PostScript printer on specific IP from a Mac without having to use
 Apple's libraries for handling PDF?)
 
 Why not? PostScript printers should handle nofont-Myfile.ps (see above).
 
 My question is more like how can I do that. I remember using
 something like copy \path\to\printer on windows long time ago, but
 I'm not sure how to do the same on Mac.

For a PS printer:
cat nofont-Myfile.ps | netcat ip-address port
Or with perl sockets if you don't want to use lpr.

 Btw: printer specifications says direct PDF (v 1.4) printing, so I
 guess that I should be able to send the PDF straight to printer ... if
 I only knew how to do that.

Then you should make sure you get PDF/X-3:2003 output from context. Default 
seems to be v1.6 for MKIV. I don't know for MKII.

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 printing pdf files (MKIV on Mac)

2011-03-25 Thread Florian Wobbe
 Do you have Mac OS X 10.6.7?

Not yet. And for obvious reasons I'm not willing to update right now ;)

 The small attached example is enough to break the printer (both
 PostScript and PCL) when printing from Skim. May I ask you to try to
 print this file with 10.6.7?

No problem here.

BTW:

pdfinfo a.pdf
Title:  a
Creator:ConTeXt - 2011.03.11 11:45
Producer:   LuaTeX-0.65.0
Page size:  595.276 x 841.89 pts (A4)
File size:  5253 bytes
PDF version:1.6

pdffonts a.pdf 
name type  emb sub uni object ID
 - --- --- --- -
ZWRPON+TeXGyrePagella-RegularCID Type 0C   yes yes yes 18  0

That file was generated with MKIVtexgyrepagella-regular.otf using mkiv?

Now if I print that via CUPS-PDF.

pdfinfo cups-a.pdf

Producer:   Apple pstopdf
Page size:  595 x 842 pts (A4)
File size:  2891 bytes
PDF version:1.3

pdffonts cups-a.pdf
name type  emb sub uni object ID
 - --- --- --- -
CFOFGB+TeXGyrePagella-RegularType 1C   yes yes no   4  0

du -b a.pdf cups-a.pdf
5253a.pdf
2891cups-a.pdf

So CUPS does some font conversion here. I would assume that will also happen 
when printing to a regular network printer. Maybe this step breaks on your 
system. And that is why sending the file to the printer directly causes no 
trouble.

Florian

PS: Is there a way to force luatex writing fonts in CFF instead CID format?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 date of the tex file in the document

2011-03-24 Thread Florian Wobbe
 \def\getdate
  {\dosingleempty\dogetdate}
 
 \def\dogetdate[#1]%
  {\ctalua{context(modification_date(\jobname.tex, #1))}}

How would you automatically find out the filename which the macro is called 
from? For instance if the file with the macro is included in a master 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] Use date of the tex file in the document

2011-03-24 Thread Florian Wobbe
 How would you automatically find out the filename which the macro is called 
 from? For instance if the file with the macro is included in a master 
 document.
 
 \inputfilename
 
 So, if you want the name of the file in which this macro is defined in, then 
 something like this should work:
 
 \edef\thisfilename{\inputfilename}
 
 \def.{\thisfilename.tex, ...}

Thanks, nice! I suppose the filename is also directly reachable from inside 
\startluacode ... \stopluacode. How?

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] Use date of the tex file in the document

2011-03-24 Thread Florian Wobbe
 Thanks, nice! I suppose the filename is also directly reachable from inside 
 \startluacode ... \stopluacode. How?
 
 \start-stop luacode expands its contents. So, the following should work 
 (untested)
 
 \startluacode
  thisfilename = \thisfilename.tex
 \stopluacode

No, that is not what I meant. I thought why do the detour when the filename is 
available from the environment of the lua core. I just found it:
\inputfilename is defined as \ctxsprint{environment.inputfilename}

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] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?

2011-03-14 Thread Florian Wobbe
Hi,

I'd like to ask an early question again in a different way: I need to count 
every word in a document but lang-wrd.lua counts only words with 4+ letters.

So I tried to set words.threshold = 4 in context/base/lang-wrd.lua to smaller 
values but this does not change anything.

I don't know where to start looking. Also I am searching for a non-global 
solution without changing the core files.

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] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?

2011-03-14 Thread Florian Wobbe
 So I tried to set words.threshold = 4 in context/base/lang-wrd.lua to 
 smaller values but this does not change anything.
 You have to regenerate the formats too, after you changed the value.

I thought I did but obviously something went wrong. Now it works...

 Otherwise you could use directly in your document:
 \ctxlua{languages.words.threshold=1}

Thanks, exactly what I need!

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] \setuppublications problem

2011-03-12 Thread Florian Wobbe
 Have you tried \placepublications[criterium=all] or 
 \placepublications[criterium=text]?

Hi Thomas,

you gave me exactly the same hint last week. We should add criterium=cite and 
criterium=text to the Wiki (Bibliography MKIV page: 
http://wiki.contextgarden.net/Bibliography_mkiv).

In the beginning it was not clear to me, that 
http://wiki.contextgarden.net/Bibliography refers to the MKII implementation of 
Taco. Therefore, I would suggest to rename Bibliography to Bibliography_mkii 
and create an alias Bibliography that redirects to Bibliography_mkiv instead. 
In the wiki pages Bibliography_mkiv and Bibliography_mkii the first sentence 
should state that the page is related to mkii/mkiv only and link to the other 
page. Do you think this is reasonable?

I would like to add a section on customising bibstyle files and add space for 
sharing reference styles of different journals. What do you think?

In general I find it difficult to differentiate between mkiv and mkii related  
information in the wiki. How could we better structure the wiki to make it 
easier for the reader? Disambiguation pages, mkiv/mkii sections, independent 
pages with mkiv/mkii in headerline?

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] Ideas for restructuring the ConTeXt garden?

2011-03-12 Thread Florian Wobbe
Maybe we should start a discussion in a new thread to find out:

1) why users are confused with mkiv/mkii?
2) why they my be reluctant to install the minimals?
3) how to restructure the garden to make things clearer for newcomers?
4) how do users look for information and how to optimise the garden for search 
engine requests?
5) how to better promote context to new/latex users?

Especially answers from new users to the first three points would be helpful to 
answer the fifth point I guess.

 In general I find it difficult to differentiate between mkiv and mkii 
 related  information in the wiki. How could we better structure the wiki to 
 make it easier for the reader? Disambiguation pages, mkiv/mkii sections, 
 independent pages with mkiv/mkii in headerline?
 Just my 2 cents on this: difficult, because you won't be able to make 
 everybody happy. Every now and then, I see a new user on the list who asks 
 about installing mkiv and doesn't realize that it is not really something 
 which you have to install additionally. We shouldn't scare those users 
 because in so many cases, mkii and mkiv are exactly identical, so that would 
 be an arguments against a too stric separation.

I understand the problem.

Having said that, pages like Using Mark IV or Install Mark IV should be 
renamed to installing/using context.

Maybe it would help to include a little box important things to know on the 
installation page and explain shortly that for historical reasons mkii and mkiv 
are distributed together and that the former is regarded deprecated.  Maybe 
link to a new page: Differences between miiv/mkii and how both are invoked 
(context vs. texexec).

Then I am aware of many people who are reluctant to install the minimals. I now 
wonder why I (myself) was unwilling to install the minimals in the first place, 
having TeXLive installed already. For one it was because of the extra effort. 
But I recall it was also the name The ConTeXt MINIMAL distribution that kept 
me. The name minimal somehow suggested something incomplete or minor to me. 
It took me a while to figure out that the minimals is actually more than you 
get from TexLive. Therefore, I would suggest leaving out minimal and 
advertise the superior instead.

 But of course you're also right that it's frustrating for users if they can't 
 find relevant information for the areas where the two differ. As long as mkiv 
 hasn't settled, this is not easy...

In deed. I guess this has most relevance for people new to context, especially 
those who know latex already and are used to find help easily.

 We should add criterium=cite and criterium=text to the Wiki (Bibliography 
 MKIV page: http://wiki.contextgarden.net/Bibliography_mkiv).
 
 You are of course right, but I assume Hans is working on bibliographies right 
 now (he promised to finish something which I need for a project in March, so 
 that leaves him another two weeks ;-), so we should maybe wait a bit.

OK, fine. I'm curious what new feature this will bring to us!

 criterium=cite should work as well, but doesn't right now.
 
 In the beginning it was not clear to me, that 
 http://wiki.contextgarden.net/Bibliography refers to the MKII implementation 
 of Taco. Therefore, I would suggest to rename Bibliography to 
 Bibliography_mkii and create an alias Bibliography that redirects to 
 Bibliography_mkiv instead. In the wiki pages Bibliography_mkiv and 
 Bibliography_mkii the first sentence should state that the page is related 
 to mkii/mkiv only and link to the other page. Do you think this is 
 reasonable?
 
 I had begun rewriting the page. There is now 
 http://wiki.contextgarden.net/Bibliographies which links to the other pages, 
 and which is linked to on the front page. But another context-related project 
 kept me away from this and I never finished this, so fell free to shuffle and 
 rewrite things!

I see. I was not aware of this page. I usually find information on the wiki by 
searching for: site:wiki.contextgarden.net placepublications. So if there are 
actually  disambiguation pages for mkiv/mkii it makes sense to include 
mkiv/mkii on both pages (not just one).

 I would like to add a section on customising bibstyle files and add space 
 for sharing reference styles of different journals. What do you think?
 
 Again, that's a very good idea, but we should maybe wait just a bit till the 
 dust settles a bit.

All right.

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


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:
 
 Sorry, I should have expected that. All I can say is that the
 stray spacing vanishes with double-line headers:

But then, the second header line vanishes on the second page. Leaving out the 
\HL at the end of the header would be another solution:

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

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

 ··8·

And starting \starttabulate[|r|l|] with \HL messes the header up again:

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

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

 Messing around with tabl-tbl.mkiv didn’t get me any further here.
 Good luck, Philipp

Well, thanks for your efforts,
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] 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
___


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


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


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
___


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


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


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
___


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


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


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


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


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


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
___


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


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


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
___


[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

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


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


  1   2   >