Re: [NTG-context] two buglets

2010-10-05 Thread Thomas A. Schmitz

On Oct 5, 2010, at 2:15 PM, Philipp Gesang wrote:
> 
> Hi Thomas and others,
> 
> technically speaking the problem is solved by ISO 14651.[1]
> 
> In praxi multilingual sorting depends on local rules, of
> which “One index per script|language.” seems to be the most
> common.

Yes, that's what I was trying to say. In practice, hardly anyone will want an 
individual index for Spanish  if they have just two Spanish words in an English 
book. And someone (me) might say that they want three Greek terms in their 
German index at logical places. 

> 
> Some time ago I made an lpeg from the bnf in [1]. It matches the
> collation rules from [2], but as I couldn’t figure out how to map
> them onto context’s sorting mechanism I never got around to
> actually capture the information. As I won’t be having the time
> to try it with the new structure of sort-lan I guess I’ll just
> attach the peg grammar for anyone to use as a starting point.
> Unicode collation would be great to have in context.
> 
>> transliteration. The problem with polytonic Greek is that so many
>> different unicode characters need to have the same sort entry. If
> 
> Isn’t that just what the Greek rules in sort-lan.lua do? If not
> then it would be a bug.
> 
Oh yes, you're right, I missed that. Thanks for pointing that out!

Thomas

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

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


Re: [NTG-context] placepublications does not place publications

2010-10-05 Thread Thomas A. Schmitz

On Oct 5, 2010, at 3:12 PM, Otared Kavian wrote:

> Hi Thomas,
> 
> Your test file gives me the same result in mkii or mkiv: using ConTeXt  ver: 
> 2010.10.01 23:14.
> 
> Best regards: OK

Thanks Otared, that would mean it stopped working with the version I have here, 
which is 2010.10.03 18:07. 

All best

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

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


[NTG-context] placepublications does not place publications

2010-10-05 Thread Thomas A. Schmitz
Hi all,

the following code works in mkii. It used to work in mkiv as well, but doesn't 
anymore with the latest beta (I can't tell at which version it stopped working, 
sorry). Maybe a side-effect of the new structure code? 

All best

Thomas

\startpublication[k=ackermanmyth,t=book,
a={{Ackerman}},y=1991,
n=34,s=Ack91]
\author[]{Robert}[R.]{}{Ackerman}
\pubyear{1991}
\title{The Myth and Ritual School: J. G. Frazer and the Cambridge Ritualists}
\city{New York}
\pubname{Garland}
\stoppublication

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

\starttext

\section{One}

\nocite[ackrillaristotle]

\placepublications[criterium=cite]

\section{Two}

\nocite[ackermanmyth]

\placepublications[criterium=cite]

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

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


Re: [NTG-context] fitting page around content

2010-10-04 Thread Thomas A. Schmitz

On Oct 4, 2010, at 7:57 PM, Michael Goerz wrote:

> Hi Everyone!
> 
> is there a way to tell ConTeXt to fit the page tightly around the
> content? In LaTeX, I can do this with
>   \usepackage[active,tightpage]{preview}
> 
> The purpose is to create a standalone tikz figure of potentially
> unknown size.

I have no idea what the LaTeX code does, but from your description, this sounds 
like what you're looking for: 
http://archive.contextgarden.net/message/20100307.022718.c28f4594.en.html

HTH

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

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


Re: [NTG-context] two buglets

2010-10-03 Thread Thomas A. Schmitz

On Oct 3, 2010, at 5:10 PM, Hans Hagen wrote:

> 
> mm zm pm : use mapping order, add -1,0, +1 to different case and use shape 
> info for missing entries (similar shapes)
> mc zc pc : use mapping order, add -1,0, +1 to different case
> uc: unicode order
> 
> so, you define a sequence of comparisons where for instance
> 
> U   -> order u +/- 1
> \"u -> order of shape u +/- 1
> 
> etc .. a bit cryptic I admit ... some combinations give the same result 
> depending on the vectors used. (Jano promissed to write up something.)
> 
> numbers are sorted in a special way
> 
> so, at some point we simplify characters and start looking at shapes and sort 
> based on shapes which of course leads to clashes so in a next step we look at 
> unicodes etc etc
> 

OK, that makes sense. I'll play with it, but having a few choice pages on the 
wiki would be great!

 
> 
> best would be to have a test file per language with in comments the expected 
> order; such tests should also provide foreign entries
> 
> for instance, how would you mix german and greek in your books; we probably 
> need some specialized vectors then, which is possible as the sorting language 
> can be configured independent from the text language
> 
OK, I'll write something for German and English, but the thing is that we need 
more input what users expect. For mixtures with foreign languages, there might 
not be generally accepted rules at all, so people will define something on an 
ad-hoc basis.

For Greek: I just looked at a dozen books here on my shelf. Most English books 
have a separate index for Greek terms; when they sort Greek terms with English 
words, they use transliteration. The problem with polytonic Greek is that so 
many different unicode characters need to have the same sort entry. If I ever 
see the necessity of setting this up, I'll be in touch off-list, but it's such 
an unusual thing that I think you shouldn't bother now.

All best

Thomas

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

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


Re: [NTG-context] two buglets

2010-10-03 Thread Thomas A. Schmitz

On Oct 3, 2010, at 12:29 PM, Hans Hagen wrote:

> indeed, and in a nice obscure way ...
> 
> \setuplayout[topspace=1cm,height=middle]
> 
> \setupbodyfont[11pt]
> 
> \starttext
> 
> \def\Test#1%
> {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}
> 
> wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
> 
> \startcolumns[n=3]
>\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
>\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
>\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
> \stopcolumns
> 
> \page
> 
> wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
> 
> \startcolumns[n=3]
>\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
>\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
>\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
> \stopcolumns
> 
> \page
> 
> \dorecurse {2} {
>   \page \recurselevel:
>\index{oá}  \index{öb}  \index{Oč}  \index{Öď}
>\index{oo}  \index{öo}  \index{Oo}  \index{Öo}
>\index{Öq}  \index{öř}  \index{Oš}  \index{oů}
>   done
> }
> 
> \stoptext

Give me a chance to understand :-) I tried looking in sort-ini.lua, but I 
couldn't figure out what the different methods meant. What do the abbreviations 
stand for? Also, I seem to obtain the desired case-insensitive sorting with 
method=zm,pc,uc
but I also get spurious empty lines in the index. I'll try and come up with a 
minimal example.

> 
>> 2. Is it really a good idea to make case-sensitive sorting the default in 
>> English? I can't remember seeing a single academic book in English that has 
>> this sort of index sorting.
> 
> Currently Jano and I are figuring out some details (as Jano does the testing 
> with more complex multilingual indices).
> 
> I have no preferece ... we can configure each language independently using 
> the method key in the entries in sort-lan.lua As I seldom consult an index I 
> have no clue what to expect or default to so feel free to tell me what the 
> defaults should be. We now have predefined:
> 
> local predefinedmethods = {
>[variables.before] = "mm,mc,uc",
>[variables.after]  = "pm,mc,uc",
>[variables.first]  = "pc,mm,uc",
>[variables.last]   = "mc,mm,uc",
> }

Hmm, if this is easy to configure, it doesn't make much of a difference. Just 
as a default, for English and German, I would suggest having no 
case-sensitivity. In German, umlauts are somewhat contentious, but nowadays, 
most people would sort them just like normal letters. But this is something 
that others on the list or on the wiki should express their opinion on.

THanks, and all best

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

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


Re: [NTG-context] two buglets

2010-10-03 Thread Thomas A. Schmitz
Hi all, Hans,


On Feb 11, 2010, at 6:17 PM, Hans Hagen wrote:

>> 1. index sorts uppercase letters after lowercase letters. Minimal example:
>> 
>> \starttext
>> 
>> \index{Aardvark}Aardvark
>> 
>> \index{azygous}azygous
>> 
>> \page
>> 
>> \setupregister[index][n=1]
>> \placeregister[index]
>> 
>> \stoptext
>> 
>> I would expect azygous to follow Aardvark, but it is sorted before.
> 
> 
> are you sure that that's the convention for english? it's easy to change it 
> ...
> 
> \startluacode
> sorters.mappings['en'] = {
>["a"] =  2, ["b"] =  4, ["c"] =  6, ["d"] =  8, ["e"] = 10,
>["f"] = 12, ["g"] = 14, ["h"] = 16, ["i"] = 18, ["j"] = 20,
>["k"] = 22, ["l"] = 24, ["m"] = 26, ["n"] = 28, ["o"] = 30,
>["p"] = 32, ["q"] = 34, ["r"] = 36, ["s"] = 38, ["t"] = 40,
>["u"] = 42, ["v"] = 44, ["w"] = 46, ["x"] = 48, ["y"] = 50,
>["z"] = 52,
>["A"] =  1, ["B"] =  3, ["C"] =  5, ["D"] =  7, ["E"] =  9,
>["F"] = 11, ["G"] = 13, ["H"] = 15, ["I"] = 17, ["J"] = 19,
>["K"] = 21, ["L"] = 23, ["M"] = 25, ["N"] = 27, ["O"] = 29,
>["P"] = 31, ["Q"] = 33, ["R"] = 35, ["S"] = 37, ["T"] = 39,
>["U"] = 41, ["V"] = 43, ["W"] = 45, ["X"] = 47, ["Y"] = 49,
>["Z"] = 51,
> }
> \stopluacode
> 
> \starttext
>\index{Aardvark}Aardvark \par
>\index{azygous}azygous
>\placeregister[index][n=1]
> \stoptext
> 

we had this pretty old thread about sorting in indexes. AFAICS, the latest beta 
defaults to cases-sensitive sorting. Two quick questions:

1. Is there a setup command that will make index sorting case-insensitive? The 
code above doesn't work anymore, so maybe you made it user-configurable now?

2. Is it really a good idea to make case-sensitive sorting the default in 
English? I can't remember seeing a single academic book in English that has 
this sort of index sorting.

All best

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

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


Re: [NTG-context] Problem with latest beta: \placepublications

2010-10-01 Thread Thomas A. Schmitz
Hans Hagen  wxs.nl> writes:

> 
> On 30-9-2010 11:00, Alan BRASLAU wrote:
> > Thanks to the course given by Taco, I now know all about 'nil'...
> > However, I did not track down the error, as Hans will find it immediately!
> 
> ah, I wanted to log off but you force me to check it now ...
> 
> in strc-lst.mkiv patch
> 
> \unexpanded\def\analyzestructurelist#1#2#3%
>{\ctxlua{structures.lists.analyze {
>  names = "#1",
>  criterium = "#2",
>  number= "#3",
> }}}
> 
> untested of course
> 

I hit the same problem today, and this patch doesn't solve it. Could you look
into it, Hans? 

All best

Thomas 




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

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


Re: [NTG-context] pagenumbers in metafun

2010-09-27 Thread Thomas A. Schmitz

On Sep 20, 2010, at 10:31 AM, Thomas A. Schmitz wrote:
> 
> Here's a question that has been on my mind for a while now and that I would 
> have loved to ask Taco and Hans at Brejlov: we now have shiny new 
> \userpagenumber and \realpagenumber etc. Is any of these available and 
> accessible from within Metafun? Right now, in a StartPage -- StopPage 
> environment, I use 
> NOfPages and PageNumber, but it would be convenient if we had access to 
> userpagenumber as well (so the number can be reset etc.)
> 
Here's what you get when you ask a question without testing first! I'm very 
embarrassed to say that this question is bovine excrements. The metafun macro 
PageNumber does indeed refer to \userpagenumber, so this part is answered. 
However, there's still something I would like to know. Consider the following 
example: 

\startuseMPgraphic{back}
  StartPage ;
  z[1] = center Page ;
  label.bot(textext("\switchtobodyfont[30pt]\startcolor[orange]" &
  decimal PageNumber & "\stopcolor\ -- \startcolor[darkblue]" & decimal
  NOfPages & "\stopcolor"), z[1]) ; 
StopPage ;
\stopuseMPgraphic

\defineoverlay
  [pageback]
  [\useMPgraphic{back}]

\setupbackgrounds[page][background=pageback]

\setupuserpagenumber[state=start] 

\starttext

\dorecurse{8}{\userpagenumber \input knuth\page}

\resetuserpagenumber

\dorecurse{8}{\userpagenumber \input knuth\page}

\stoptext

The PageNumber does the right thing: goes from 1 to 8, then is reset to 1 
again. But NOfPages results in "16," the total number. Is there any way I can 
have a metafun macro "the highest page number before \userpagenumber was reset"?

Thanks, and best

Thomas

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

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


[NTG-context] pagenumbers in metafun

2010-09-20 Thread Thomas A. Schmitz
Hi all,

first, for thosw of you who went to the meeting: welcome back home from the 
ConTeXt meeting - looking at the slides and at the pictures made me really sad 
I couldn't come; I really hope I will be able to make it next year to 
Porquerolles!

Here's a question that has been on my mind for a while now and that I would 
have loved to ask Taco and Hans at Brejlov: we now have shiny new 
\userpagenumber and \realpagenumber etc. Is any of these available and 
accessible from within Metafun? Right now, in a StartPage -- StopPage 
environment, I use 
NOfPages and PageNumber, but it would be convenient if we had access to 
userpagenumber as well (so the number can be reset etc.)

All best

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

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


Re: [NTG-context] new beta

2010-08-19 Thread Thomas A. Schmitz


On Aug 19, 2010, at 10:02 AM, Hans Hagen wrote:


\setupstructure[state=start]

\starttext


\startsection[title=One]


Test


\stopsection


\stoptext


structure demands structure


True :-) but this document still gives an error:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-tag.lua: 
366: attempt to get length of local 'tags' (a nil value)

stack traceback:
	...text/tex/texmf-context/tex/context/base/lpdf-tag.lua:366: in  
function 'structures_tags_handler'
	:7: in  
function <:5>

(tail call): ?
(tail call): ?
:1: in main chunk.


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

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


Re: [NTG-context] new beta

2010-08-18 Thread Thomas A. Schmitz

On Aug 19, 2010, at 12:22 AM, Hans Hagen wrote:
> 
> 
> anyhow, the beta is somewhat bugged (side effect of drastic cleanup of lua 
> code) but i'll upload a beta tomorrow

After the kudos, now the bug reports :-) The all new and shiny interface for 
tagged pdf is broken; test file:

\setupstructure[state=start]

\starttext

\section{One}

Test

\stoptext

All best

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

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


Re: [NTG-context] xits font in ~/.fonts

2010-08-18 Thread Thomas A. Schmitz

On Aug 18, 2010, at 1:06 PM, Khaled Hosny wrote:

> On Wed, Aug 18, 2010 at 01:01:13PM +0200, Taco Hoekwater wrote:
>> 
>> 
>> Khaled Hosny wrote:
>>> 
>>> Dunno then, it is very confusing, some fonts are found by file name and
>>> some are not. Putting them in TEXMF tree makes them found.
>> 
>> Wild guess: could it be related to the dot in ".fonts" ?
> 
> Other fonts in that directory are found, font names works for all fonts
> there too.
> 

May I chime in here? Hans, a couple of weeks ago, I reported a similar problem: 
none of the fonts in my personal texmf-trees ends up in the database. I can 
still reproduce the problem:

luatools AGaramondPro-Regular.otf
/Users/tas/texmf/fonts/opentype/adobe/agaramond/AGaramondPro-Regular.otf

mtxrun --script fonts --list --all "agaramond*"

(i.e. nothing found). I can only use all these personal fonts via the file: 
syntax; name: does not work. Maybe these problems are related? Something's not 
quite kosher in the font database...

Thomas

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

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


[NTG-context] new beta

2010-08-18 Thread Thomas A. Schmitz
Hi all,

I just ran the latest beta and saw a new way of indicating errors, indicating 
and quoting line numbers. Is this all new and improved? I hadn't seen this 
before. Maybe I'm making a complete ass of myself, but I just wanted to mention 
that this looks incredibly helpful and informative. Kudos!

All best

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

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


Re: [NTG-context] footnotes again

2010-08-04 Thread Thomas A. Schmitz
On Aug 4, 2010, at 1:59 AM, Hans Hagen wrote:

> this works again:
> 
> \starttext
> 
> \showframe
> 
> \setupnotedefinition[footnote][location=left,width=1cm]
> \setupnote[footnote][location=page,numbercommand=]
> 
> test \footnote{test}
> 
> \stoptext

Great, this is what I need! I have adapted it like so to have the numbers 
flushright in a box:

\starttext

\def\NoteNumber#1{\showboxes\hbox to 16pt{\hbox to 12.5pt{\strut\hfill #1}}}

\showframe

\setupnotedefinition[footnote][location=left,width=16pt]
\setupnote[footnote][location=page,numbercommand=\NoteNumber]

\dorecurse{11}{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
  diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
  erat, sed diam voluptua.\footnote{Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod tempor note \recurselevel
.}\par}

\stoptext

So, before I wikify: \setupnotedefinition[location=left,width=] 
controls the width of the area where the number will be typeset and of the 
indentation. But which key controls whether the number is typeset in the margin 
or in the text area?

Thanks!

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

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


[NTG-context] lecturer

2010-07-28 Thread Thomas A. Schmitz
Just saw this on ctt. Does anyone know more about this? 

Thomas

> Name of contribution: lecturer 
> Author's name: Paul Isambert 
> Location on CTAN: macros/generic 
> Summary description: On-screen presentations with PDF features for 
>   (almost) all formats. 
> License type: lppl 
> Announcement text given by the package's contributor: 
> -- 
> Lecturer creates slides for on-screen presentations based on PDF 
> features without manipulating TeX's typesetting process. The 
> presentation flow relies on PDF's abilities to display content step by 
> step. 
> Features include: 
> - Free positioning of anything anywhere in painted areas on the slide, 
>   as well as in the main textblock. 
> - Numerous attributes to control the layout and the presentation flow, 
>   from TeX's primitive dimensions to the visibility of steps. 
> - Feature inheritance from global to local settings, with intermediate 
>   types. 
> - Basic drawing facilities to produce symbols, e.g. for list items or 
>   buttons. 
> - Colors, transparency, shades, and pictures. 
> - Navigation with links, pop-up menus, and customizable bookmarks. 
> - Easy switch between presentation and handout. 
> - PDF transitions. 
> Besides the traditional documentation, the distribution includes a 
> visual doc (LecturerDemo-VisualDoc.pdf) and six demo presentations 
> ranging from geometric abstraction to classic style to silly video 
> game. 
> Lecturer is designed for all formats except ConTeXt MkIV (because of 
> clashes in management of PDF objects, probably), works only with 
> pdfTeX and LuaTeX for the time being, and requires texapi and yax, 
> both v.1.02.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Grammar

2010-07-28 Thread Thomas A. Schmitz


On Jul 28, 2010, at 11:29 AM, John Haltiwanger wrote:


On Tue, Jul 27, 2010 at 10:57 PM, Marcin Borkowski


I am not sure that I understood your point, but I am quite convinced
that the low percentage of women in mathematics or IT is caused
primarily by the simple fact that an average female brain is not well
fit for this particular purpose.  (Of course, we all know notable
exceptions.  Also note that "better/worse fit for one particular
purpose" is completely unrelated to "better/worse in general".)


I'd laugh at this if it wasn't the same shit that's been going around
for years in the math/IT circles. Socialization is the cause behind
this, not natural differences in brain structure. If the society has
decided to accept and repeat this "fact" over and over, and men will
generally act as if it is true (pushing out females who make the
attempt), then it will come to "appear" as true. But that doesn't make
it any less BS.


No no, I've seen excellent scientific research on this question. It  
was in a German periodical of 1938. The article explained why women  
can't do math. I also gave a rigorous demonstration that Poles are  
genetically inferior to Germans and can only be plumbers or thieves...


But seriously: Marcin, I would recommend you stop posting on this. All  
you show is your complete lack of intellectual awareness. You're  
embarrassing yourself, and that's all.


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

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


Re: [NTG-context] beta

2010-07-22 Thread Thomas A. Schmitz

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

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

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

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

Thomas 



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

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


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

2010-07-22 Thread Thomas A. Schmitz

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

> so what was that small test file?
> 
> Hans


Here comes:

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

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


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


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

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

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

\stoptext

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

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


Re: [NTG-context] beta

2010-07-22 Thread Thomas A. Schmitz

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

> Hi Hans,
> 
> Thanks for your attention.
> I looked in context.tex after updating and I do have
> \edef\contextversion{2010.06.23 12:45}
> 
> Does this mean that somehow context.tex is not updated? The file on the 
> minimal is indeed created on
> Wednsday June 23, 2010, at 12:45
> 
> Best regards: OK

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

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

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


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

2010-07-22 Thread Thomas A. Schmitz

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

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

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

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

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


Re: [NTG-context] two problems for bib module

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

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

All best

Thomas

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

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

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

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


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

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

All best

Thomas

\definelist[MyTopics][criterium=all]

\setuplist[MyTopics]
  [pagenumber=no]

\showframe

\starttext

\writetolist[MyTopics]{Word}{} Hello

\stoptext

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

> Hi all, 
> 
> since a few betas ago, I'm experiencing the problem that some commands add 
> unwanted vertical space in mkiv. I think this is the case with \writetolist, 
> but I need to prepare an example for that. I have prepared an example for 
> publication lists: the following code produces the expected output in mkii. 
> In mkiv, it adds vertical space for every item that is added to the 
> bibliography. Maybe some unescaped line-endings somewhere in the code?
> 
> All best 
> 
> Thomas
> 
> \startpublication[k=intertestualita,t=book,
> a={intertestualita},y=1995,
> n=2552,s=int95]
> \pubyear{1995}
> \title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
>  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
>  novembre 1994}
> \city{Amsterdam}
> \pubname{Hakkert}
> \stoppublication
> 
> \startpublication[k=gibsonlearning,t=article,
> a={gibsonlearning},y=2004,
> n=991,s=gib04]
> \pubyear{2004}
> \arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
>  Treatises on Progymnasmata}
> \journal{Classical Philology}
> \volume{99}
> \pages{103--129}
> \stoppublication
> 
> 
> \startpublication[k=ackrillaristotle,t=book,
> a={{Ackrill}},y=1981,
> n=305,s=Ack81]
> \author[]{J.~L.}[J.~L.]{}{Ackrill}
> \pubyear{1981}
> \title{Aristotle the Philosopher}
> \city{Oxford}
> \pubname{Oxford UP}
> \stoppublication
> 
> 
> \setuppublications[state=start]
> 
> \starttext
> 
> \section{Edited Volumes}
> 
> test test test test test test test test test test test test test test 
> 
> \nocite[intertestualita,gibsonlearning,ackrillaristotle]
> 
> \placepublications[criterium=cite]
> 
> \stoptext
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] slightly OT: tablets

2010-07-20 Thread Thomas A. Schmitz
Otared, Hans, William, and all,

thanks a lot for your comments and suggestions; there's a lot of useful info in 
this thread! In my personal workflow, I don't think I could actually use an 
iPad or a similar device to produce content; so running TeX on it is not 
something I find interesting. But I could imagine that it would be a useful 
device for presenting stuff that has been prepared on a real computer. So I'll 
wait a bit and see if interesting apps turn up!

Thanks all, and best

Thomas

On Jul 20, 2010, at 8:51 AM, Otared Kavian wrote:

> Hi Thomas,
> 
> Sometimes ago I asked a related question about TeX, iPhone and electronic 
> books, as far as reading mathematical and technical papers are concerned. But 
> now that the iPad is out your question makes even more sense. I don't have 
> yet an iPad but found the following after reading your message: Ramón 
> Figueroa-Centeno announces here
> http://macosx-tex.576846.n2.nabble.com/LaTeX-on-the-iPad-using-TeXShop-Engines-td5075337.html
> 
> that he has written a few scripts, named LaTeXMe, to remotely typeset a TeX 
> file and download the resulting PDF to his iPad. I think that it won't be 
> difficult to modify the scripts in order to use ConTeXt and LuaTeX (somehow 
> creating a ConTeXtMe script…). You can find Ramón Figueroa-Centeno's files 
> here:
> http://www2.hawaii.edu/~ramonf/TeXShop/LaTeXMe.zip
> 
> I must say that I have not tested the scripts but there is a PDF file 
> explaining the principles behind.
> 
> In any case I think that at some point Apple needs to port some sort of Mac 
> OS X on the iPad for the academia to be able to use the iPad as a computer 
> for an everyday workflow.
> 
> Best regards: OK

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

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


Re: [NTG-context] slightly OT: tablets

2010-07-19 Thread Thomas A. Schmitz

On Jul 19, 2010, at 8:14 PM, luigi scarso wrote:

> What about
> ASUS Eee PC T101MT-WHI012M
> http://www.e-videoshoppingtv.it/frontend/evideoshopping/default.aspx?idvideo=9774&idcat=666&asus_t101_from=prod
>  

Well, that's a netbook/tablet hybrid, not really what I'm looking for. I 
already have a netbook.

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

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


Re: [NTG-context] slightly OT: tablets

2010-07-19 Thread Thomas A. Schmitz
Hi Matthias,

that's good to know, but for me, the "killer app" would be to have both my 
manuscript and the presentation on the same device (and an iPod would just be 
too small for that). So the question is: could you see pdf A on the screen and 
drive pdf B with the TV out cable? Apple told me this was not possible. I can 
live with the other restricitions, I think.

Thomas

On Jul 19, 2010, at 8:34 PM, Matthias Weber wrote:

> Hi Thomas,
> 
> you can even do presentations of PDFs with an iPod touch. You will need a 
> dock connector/ TV out cable (http://support.apple.com/kb/ht1454). In iOS 4, 
> you have direct support of PDFs, i.e. you can copy PDFs directly to your iPod.
> Before that, you needed a separate app to view PDFs.
> As for PDF features, you'll be somewhat limited as to what the viewers 
> support. For instance, movies within PDFs won't work.
> 
> Also, I don't think there is a way to use clickers to control the iPod/iPad.
> 
> Matthias

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] slightly OT: tablets

2010-07-19 Thread Thomas A. Schmitz
Hi all,

this is slightly OT, but maybe someone here has a helpful suggestion: since the 
announcement of Apple's iPad, tablets have become the rage. I am somewhat 
underwhelmed by this type of computer, but I see one area where it might be 
interesting to have one of those babies, and that's presentations. What I'm 
dreaming about: a tablet that would be able to show my manuscript (of course, a 
pdf produced with ConTeXt) on it's own screen and drive a presentation (again, 
pdf) on an external screen/digital projector. That way, I would need only one 
technical device, no paper etc. for my presentations. I even called Apple, but 
they said there is no app yet for doing this on an iPad. Do any of you have any 
insights: is there anything on the market yet that would make this possible? Is 
it at all feasible? Does it sound like a reasonable idea? 

All best

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

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


[NTG-context] problem with publication lists in mkiv

2010-07-15 Thread Thomas A. Schmitz
Hi all, 

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

All best 

Thomas

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

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


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


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

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

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

\stoptext

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

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


Re: [NTG-context] mtxrun error

2010-07-02 Thread Thomas A. Schmitz

On Jul 2, 2010, at 11:05 AM, Mojca Miklavec wrote:

> No, maybe you have an older version that still works; the minimals
> seem to be broken completely on all the systems. If anyone knows how
> to fix it, I can do it until Hans is back and uploads a fixed version.
> (He has some problems reading email.)
> 
> Mojca

Hm, the interesting thing is that version numbers haven't changed. My working 
version is 
MTXrun | current version: 2010.06.23 12:45
which is the latest, according to the website. Moreover, something interesting: 
when I run first-setup.sh, I get this version of mtxrun:

grep Runner ~/context/tex/texmf-linux/bin/mtxrun 
logs.setprogram('MTXrun',"TDS Runner Tool 
1.24",environment.arguments["verbose"] or false)

However, my older, working system has this:

grep Runner /mnt/shared/context/tex/texmf-linux/bin/mtxrun 
logs.setprogram('MTXrun',"TDS Runner Tool 1.26")

Do you have this version somewhere? I could send it off-list.

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

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


Re: [NTG-context] mtxrun error

2010-07-02 Thread Thomas A. Schmitz

On Jul 2, 2010, at 9:49 AM, Henning Hraban Ramm wrote:

> 
> confirmed on osx-intel (OSX 10.5):
> 

I had the same problem on OS X, but only on a 32-bit system; my 64-bit system 
works normally. I copied the version of mtxrun from my 64-bit to my 32-bit 
system, and now it works. Mojca, maybe an outdated version of mtxrun somehow 
crept into the minimals?

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

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


Re: [NTG-context] nomarking function in MKIV

2010-07-02 Thread Thomas A. Schmitz

On Jul 1, 2010, at 8:59 PM, Alan BRASLAU wrote:

> This is a very good answer.
> 
> Now, think about robustness. So called sloppy writing
> can easily happen in a very big project, or more likely
> by an inexperienced user. ConTeXt is pretty good in handling
> this, but not perfect. How many times have we tried options
> that do not exist and which are simply ignored in silence.
> 
> Now try:
>  \input knuth
>  \starttext
>  What about this?
>  \stoptext
> 
> Sometimes our errors, ignored in silence, end up having
> strange side effects that are long to debug. I came across
> this, for example, using by mistake \cite{reference}
> rather then \cite[reference].
> 
> Back to robustness, I once wrote a very big system used to run
> expriments. It *had* to be robust. Luckly, to insure this,
> I had a collegue who was very good in doing every thing wrong.
> For example, if the program asked "how many cycles" to run,
> he was capable of typing "yes". Why not?
> The program still had to handle this correctly.
> Should be the same for typesetting.
> 
> I hope that you all *never* make mistakes.
> Remember, *real* unix users only use cat;
> All other text editors are for "sissys".


Hope this isn't too long and not too off-topic...

It all depends on what you call "robustness." I'm a classicist, not a computer 
scientist or programmer, so  I view software only from a user's perspective. 
But here's what I think about this: a system is robust when it behaves in a 
predictable and consistent manner. Maybe it's because I have begun writing some 
of my stuff in xml, or maybe it's because I'm an anal-retentive guy by nature, 
but I find the tree image of documents compelling: everything has to be part of 
a branch. And I read the examples you provide as proving me right: if a program 
asks "how many cycles?" and the user input is "yes," the only consistent and 
predictable behavior is throwing an error and reporting it to the user - 
"integer number expected" or some such. Processing "yes" will not allow the 
user to learn how to do this right. Everything else ("The program still had to 
handle this correctly") is just going to leave the user at the mercy of what 
someone somewhere defined for her/him. 

Moreover: maybe as a classicist, I find it natural to look at documents in the 
perspective of the "longue durée" - after all, we handle stuff that has been 
around for several millennia. Which means I see my TeX or whatever file not 
primarily as an instruction to typeset stuff in a certain way, but as a 
container  to preserve information. Which means: ideally, I want my documents 
so well-structured that someone in the year 3010 will be able to extract the 
same information from them. The better they are structured, the more they 
respect a consistent model, the better the chances that this will happen. 
Again, I would argue that this means an example like
somestuff
\starttext
morestuff
\stoptext
just should be flagged as invalid because it makes it difficult to parse this 
document for the information it contains.

Lastly, Hraban has given a very good analogy when he pointed to the difference 
between the old-style html with its convenient, but sloppy syntax à la 
stuff, whereas x(ht)ml is more strict with stuff. The old way was 
convenient when you saw your document merely as a set of instructions for a 
browser to display your stuff. But in today's world, you have to see that your 
document may be viewed and processed in hundreds of ways: in a web browser on a 
computer, on a cell phone, an e-reader, a tablet, etc. Which means you should 
think of your document as structured information, not as instructions for a 
certain device. Again, the better the document is structured, the more 
independent and reliable its transmission will be.

So: I find the new \startchapter ... \stopchapter code much superior to the old 
way of organizing chapters. And I would argue that a program which discourages 
and flags incorrect input (like what you describe in your examples) is much 
superior to a program which somehow processes this input. This has nothing to 
do with using cat as an editor (btw: cat is for sissys, REAL programmers use a 
magnetized needle and a steady hand), but is a matter of organizing information 
in the best way.

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

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


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Thomas A. Schmitz

On Jul 1, 2010, at 11:44 AM, Alan BRASLAU wrote:

> No one has answered my question about to what belongs any text
> between a proceding \stopchapter and a following \startchapter, as in
> \startchapter{title}
> \stopchapter
> some text
> \startchapter{next title} 
> \stopchapter

Excuse me, but your question is just plain nonsense. What you show us is sloppy 
writing. Why should ConTeXt or any other system cater to this? You're asking 
"where does text belong that doesn't belong to any hierarchical structure of my 
document?" The answer is obvious: this text doesn't belong anywhere. 

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

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


[NTG-context] latest beta has trouble with notes

2010-06-19 Thread Thomas A. Schmitz
Hi all, 

not sure if this has been reported yet, but yesterday's beta has a bug 
regarding footnotes. Minimal example:

\starttext

One\footnote{One}
Two\footnote{Two}

\stoptext

The first footnote is repeated for every following note; other notes are 
dropped.

All best

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

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


Re: [NTG-context] minimals

2010-06-15 Thread Thomas A. Schmitz

On Jun 15, 2010, at 8:11 PM, Michael Murphy wrote:

> Does the directory exist? If there is nothing important there, just delete it.

It's my HOMETEXMF tree...
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] minimals

2010-06-15 Thread Thomas A. Schmitz

On Jun 15, 2010, at 7:25 PM, Hans Hagen wrote:

> you can give it a try

What about the 

cannot open tree:Users/tas/texmf/: No such file or directory

error? I'm still getting it...

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

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


Re: [NTG-context] Error in installing new beta

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 10:58 PM, Hans Hagen wrote:

> On 13-6-2010 7:32, Thomas A. Schmitz wrote:
>> 
>> 
>> 
>> TEXMFHOME   = "~/texmf-home", -- "tree:///~/texmf
>> 
>> for mkii, however, it is set in texmf.cnf (l. 31)
>> 
>> TEXMFHOME = $HOME/texmf
>> 
>> why these two different values? I consider texmf-home as wrong.
> 
> because i dislike having a 'texmf' other than the main one anywhere (if only 
> because it makes tracing a pain) .. i'll set it to texmf but will probably 
> add some warnings in a future version
> 

Well, I know that, we've been discussing it for a while. But then both mkii and 
mkiv still should have  the same value. And ~/texmf is the canonical thing; 
disregarding it will confuse any casual user. 

> 
> strange as that should be intercepted. I'll see what my mac does with it when 
> i hav eit up and running.
> 
I get the same behavior on linux.

> 
> tree:// is just one of the uri's supported (and permits loading files from 
> some tree) and this scheme is autoinserted when no !! is used; the !! will 
> become cache:// .. much of that is still experimental

OK, thanks for the info. I used to have my own configuration, but environment 
variables aren't used any more. How does mkiv store the config information now? 
How could I overwrite the values that mtxrun --variables shows? 

All best

Thomas

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

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


Re: [NTG-context] Error in installing new beta (was: status message of mtxrun --ifchanged)

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 9:33 AM, Thomas A. Schmitz wrote:

> Same error here on OS X. And another question: I couldn't get my TEXMFHOME 
> recognized under linux-32. One problem was that it is set to ~/texmf-home. I 
> would suggest setting this value back to the canonical ~/texmf. (I had more 
> problems, but I'll have to reboot into linux in order to verify). 

OK, this problem is gone with the latest beta. The problem with the wrong value 
of TEXMFHOME persists. In a pristine texmfcnf.lua, this is set (l. 25)

TEXMFHOME   = "~/texmf-home", -- "tree:///~/texmf

for mkii, however, it is set in texmf.cnf (l. 31)

TEXMFHOME = $HOME/texmf

why these two different values? I consider texmf-home as wrong. 

Moreover, when I set this to a sane value

TEXMFHOME   = "/Users/tas/texmf", -- "tree:///~/texmf

and then re-run mtxrun --generate, I get this error:

MTXrun |
MTXrun | fileio: scanning path 'tree:Users/tas/texmf'
/Users/tas/context/tex/texmf-osx-64/bin/mtxrun:9094: cannot open 
tree:Users/tas/texmf/: No such file or directory

I have no idea what the notation 'tree:' is supposed to do. 
/Users/tas/texmf does indeed exist and works with the beta before the scripts 
were changed. So I'm somewhat stymied. 

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

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


Re: [NTG-context] Error in installing new beta (was: status message of mtxrun --ifchanged)

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 1:49 AM, Aditya Mahajan wrote:

> Updating using first-setup.sh gives (also tried a fresh install, the same 
> error)
> 
> 
> sent 32402 bytes  received 7755726 bytes  65172.62 bytes/sec
> total size is 30315844  speedup is 3.89
> MTXrun | run: rsync -rpztlv 
> contextgarden.net::'minimals/current/misc/setuptex/' '/tmp/context/tex/.'
> receiving incremental file list
> ./
> setuptex
> setuptex.bat
> setuptex.csh
> setuptex.tmf
> 
> sent 109 bytes  received 6545 bytes  1209.82 bytes/sec
> total size is 16420  speedup is 2.47
> MTXrun | mtx update: updating mtxrun for linux-64: rsync -tgo --chmod=a+x 
> /tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
> /tmp/context/tex/texmf-linux-64/bin/mtxrun
> MTXrun | run: rsync -tgo --chmod=a+x 
> /tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
> /tmp/context/tex/texmf-linux-64/bin/mtxrun
> /tmp/context/bin/mtxrun:8497: bad argument #3 to 'format' (string expected, 
> got no value)
> 
Same error here on OS X. And another question: I couldn't get my TEXMFHOME 
recognized under linux-32. One problem was that it is set to ~/texmf-home. I 
would suggest setting this value back to the canonical ~/texmf. (I had more 
problems, but I'll have to reboot into linux in order to verify). 

All best

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

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


Re: [NTG-context] Problems using new beta

2010-06-07 Thread Thomas A. Schmitz

On Jun 7, 2010, at 3:19 PM, Ivo Solnický wrote:

> Hi,
> 
> I didn't received answer by mail, so I have to answer this way.
> 
> Thanks for the help, I updated context and now it works OK.
> 
> But the problem with recompilation of format file remains. Any idea?
> 
> Ivo

If I understood your first message correctly, you are storing your tex 
documents within your context directory. This is a VERY bad idea because

1. mkiv checks the checksum of your context tree. When it changes, it will 
regenerate the format, that's what you see happening

2. in case of an update, your files could get deleted or overwritten.

ConTeXt (and TeX in general) can be a bit overwhelming at first if you have 
never used such a system. I don't know how experienced you are with computers 
in general, but I would suggest you read some introductory material on TeX 
(though I admit that I just looked around a bit, and couldn't find any simple 
document which explains the TeX directory structure and how to use it).

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

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


Re: [NTG-context] first-setup.sh

2010-06-02 Thread Thomas A. Schmitz

On Jun 2, 2010, at 3:43 PM, Mojca Miklavec wrote:

> You may try again with --context=experimental as a temporary solution.

Mojca,

I just tried this (sorry, came home only now), and now I get a version of 
2010.06.02 which isn't even announced on the pragma site... So let's hope that 
Hans talks some sense into his servers and everything goes back to normal! 
Thanks for your swift reaction.

All best

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

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


[NTG-context] first-setup.sh

2010-06-01 Thread Thomas A. Schmitz

Hi all, esp. Mojca,

I don't know if anything changed recently, but first-setup.sh doesn't  
fetch the latest beta for me anymore, even when I feed it the "-- 
context=beta" switch. At first, I thought it was a glitch, but I have  
now tried on 3 different computers, and after running first-setup.sh,  
I always get


MTXrun | main context file: /Users/tas/context/tex/texmf-context/tex/ 
context/base/context.tex

MTXrun | current version: 2010.05.24 13:05

even though the beta version 2010.05.27 has been available for a  
while. Am I missing something, or has something changed?


All best

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

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


Re: [NTG-context] gentium font doesn't work in latest current

2010-05-27 Thread Thomas A . Schmitz
luigi scarso  gmail.com> writes:


> >> Weird. This machine is 32-bit linux, btw.
> >
> > Hm again ttf vs TTF ?

> bingo.
> Thomas can you try to rename *TTF in *ttf ?
> 


Yes, that solved it for me too! Taco, what can we do about that? AFAICS,
unfortunately, the gentium fonts do come with the TTF extension. Should we
rename them or trust that Hans will cook up a solution? 

Thanks for looking into this!

Thomas

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

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


Re: [NTG-context] gentium font doesn't work in latest current

2010-05-27 Thread Thomas A . Schmitz
Taco Hoekwater  elvenkind.com> writes:

> 
> 
> Thomas A. Schmitz wrote:
> > Hi all,
> > 
> > the current version doesn't work with the gentium font; it is displayed in a
> > tiny size. 
> 
> Works fine here with current 2010.05.24 and latest beta. Perhaps you
> should clear the font cache.
> 
> Best wishes,
> Taco
>
Shoot, I tried everything (deleted the luatex cache, deleted another instance of
the gentium font, made a new example to exclude caching in the pdf viewer,
compiled luatex from trunk), but I still get the tiny font size with the example
I posted above. This is on linux, with luatex version 0.61 and the latest beta.
Could others please test the example above and report? 

Best

Thomas

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

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


[NTG-context] gentium font doesn't work in latest current

2010-05-26 Thread Thomas A . Schmitz
Hi all,

the current version doesn't work with the gentium font; it is displayed in a
tiny size. Test file:

\usetypescript[gentium]

\starttext

Hello 
\switchtobodyfont[gentium]
World

\stoptext

I don't know if other fonts are affected as well; so far, I've only seen this
with gentium. This used to work about two weeks ago.

All best

Thomas

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

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


Re: [NTG-context] existence of file

2010-05-05 Thread Thomas A. Schmitz


On May 5, 2010, at 11:05 AM, Hans van der Meer wrote:


Is there a ConTeXt macro that can tell me if a certain file exists?


\doiffileelse{}{}{}

HTH

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

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


Re: [NTG-context] \nocap does not work

2010-04-13 Thread Thomas A. Schmitz

On Apr 13, 2010, at 7:16 PM, Khaled Hosny wrote:

> BTW, I just checked ghostscript fonts shipped with my distro and they
> don't have any of the crappy Greek glyphs TeX Gyre have (neither do the
> files linked from TeX Gyre web page), so I don't know from where TeX
> Gyre got those.


I contacted the Gyre team a while ago about the Greek, and they said they were 
not really meant to be used, but just placeholders until the "real" Greek will 
be developed. I offered help, but I don't know how to use metatype, I could 
just help them set up the Greek Extended glyphs once the proper characters are 
in place.

And btw: please tone down your messages a bit. You sound like you are foaming 
from the mouth, and that's quite unnecessary. As Hans said: all of this is open 
source, if you hate their style of doing things that much, just develop your 
own fonts. If people are developing free software, they also have the freedom 
to do the development exactly as they see fit. Where does this sense of 
entitlement come from?

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

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


Re: [NTG-context] line-break index bug

2010-04-12 Thread Thomas A. Schmitz


On Apr 12, 2010, at 10:52 AM, Steffen Wolfrum wrote:


Hi,


I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is  
this index/line-break bug!




It's not a bug, it's explained somewhere in the manual. Put the \index  
entry before the indexed word, and all is well.


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

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


Re: [NTG-context] Beta 2010.03.30: mkiv and \dots

2010-03-30 Thread Thomas A. Schmitz

On Mar 30, 2010, at 7:26 PM, Hans Hagen wrote:

> On 30-3-2010 19:15, Thomas A. Schmitz wrote:
>>> 
>>> 
>> Hans, sorry, the 19.00 beta doesn't fix it yet, I get the same errors.
> 
> will take till 20.00 before the garden is in sync
> 
You're right, of course, the warnings have disappeared now! Thanks Hans.

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

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


Re: [NTG-context] Beta 2010.03.30: mkiv and \dots

2010-03-30 Thread Thomas A. Schmitz

On Mar 30, 2010, at 6:22 PM, Hans Hagen wrote:
>> 
> 
> i see, some files are missing in the zip (and as i have them in my dev path 
> it goes unnoticed when i do a run)
> 
> i'll make a newer beta
> 
Hans, sorry, the 19.00 beta doesn't fix it yet, I get the same errors.

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

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


Re: [NTG-context] Beta 2010.03.30: mkiv and \dots

2010-03-30 Thread Thomas A. Schmitz

On Mar 30, 2010, at 5:38 PM, Hans Hagen wrote:

> did you run luatools --generate before making a format?
> 
> i moved some math font related issues to other files so that can be a reason

Well, something is fishy in the math font department with the latest beta. With 
one of my own typescripts, I get dozens of lines

!define font: font with name LMMath9-Regular is not found
!define font: unknown font LMMath9-Regular, loading aborted
!define font: unable to define LMMath9-Regular as \*modern9ptmmmr33*
!define font: font with name LMMath10-Regular is not found
!define font: unknown font LMMath10-Regular, loading aborted
!define font: unable to define LMMath10-Regular as \*modern12.6ptmmmr22*
!define font: font with name LMMath10-Regular is not found
!define font: unknown font LMMath10-Regular, loading aborted
!define font: unable to define LMMath10-Regular as \*modern18ptmmmr11*
)

and 

!define font: unable to define LMMath10-Regular as \*MyUtopia14ptmmmr11*

(though I don't use any math in that document). If you want, I can try and find 
a minimal example.

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

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


Re: [NTG-context] \hyphenation problems

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 3:16 PM, Tom wrote:

> Boy, am I thick. Here is an example that demonstrates the problem. You
> should be able to see that cfbdatawarehouse.com did not hyphenate. To get
> the malhyphenation error, it is necessary to uncomment the \hyphenation
> command. Changing the width of the figure to 2.0 inches will demonstrate
> additional ragged right problems. An unrelated issue is that the leading for
> the caption is larger than I would like.

:-) Not sure if I can solve all your problems, but here are a few pointers:

1. for the url, you could use a command which provides a url that can be 
hyphenated. Surprisingly enough, it is called \hyphenatedurl{}.

2. TeX doesn't hyphenate in certain situations, e.g., when a word is already 
hyphenated (and apparently when it contains a period). In ConTeXt, you can wrap 
these symbols into ||, and TeX will happily hyphenate (see section 7.8 of 
cont-eni). In your case, you can write cfbdatawarehouse|.|com

3. Your caption: well, since you do not apply the bodyfontswitch to all of the 
lines, but to each line individually, you never give ConTeXt a chance to 
calculate the interlinespace. You shouldn't format individual lines, but use 
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the 
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?

4. As for words sticking out in the margin: TeX does its best, but sometimes, 
no good line breaks can be found. A certain word processor will then go on and 
stretch your interword space and even interletter space within words. TeX 
doesn't do that and will let words stick out to warn you. If you don't want to 
/ can't edit the text, you'll have to allow it to be less strict. You should 
read about \setuptolerance in cont-eni, section 4.13.

HTH

Thomas

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

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


Re: [NTG-context] \hyphenation problems

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 2:01 PM, Tom wrote:

> I am very confused. Inserting 
> {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in
> "Example" in very large type being placed in my output and seems not to
> affect the hyphenation or justification.

I think Wolfgang was trying to steer you to this: 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

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

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


Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 12:29 PM, Mojca Miklavec wrote:

> Hello,
> 
> I would like to set a different header on left and right page, but I
> would like it to be centered on page. How do I do that?
> 
> The command
>\setupheadertexts[a][b]
> puts "a b" on one page and "b a" on the other while
>\setupheadertexts[a][b][c][d]
> puts "a b" on one page and "c d" on the other. On single-sided
> layouts I could use
>\setupheadertexts[a]
> or
>\setupheadertexts[][a][]
> but using 6 parameters on double-sided doesn't work.
> 
> I am now hacking with
>
> \setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox{\myheaderleft\kern-5mm}]
>\def\myheaderright{\hbox to "textwidth+10mm"{...}}
> but that's a bit ugly.
> 
> Mojca

Also see 
http://wiki.contextgarden.net/Headers_and_Footers#Headers_with_centered_content

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

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


[NTG-context] oldstyle numbers in TeXGyre fonts

2010-03-15 Thread Thomas A. Schmitz
Hi all, Hans,

is there or can we have an easy, fast way of setting up the TeXGyre fonts so 
that they use oldstyle numbers by default? I think this would be attractive at 
least for the serif fonts termes, pagella, schola, which all have this feature. 

All best

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

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


Re: [NTG-context] ntg-context Digest, Vol 69, Issue 77

2010-03-14 Thread Thomas A. Schmitz

On Mar 14, 2010, at 5:21 PM, Michael Saunders wrote:

> I can't imagine anything simpler to use.

That may be a lack of imagination on your part. If you want something that 
follows LaTeX rules, it might be a good idea to use LaTeX. It would have been a 
good idea to say so from the start instead of wasting my time.

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

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


Re: [NTG-context] simplefonts

2010-03-13 Thread Thomas A. Schmitz

On Mar 13, 2010, at 5:09 PM, Michael Saunders wrote:
> 
> I don't understand the syntax of \starttypescript.  It doesn't appear
> in the manual.
> It occurs twice in the "typography" document.  In both cases the first 
> argument
> appears to be the name of the typescript.  In one example, there is only one
> argument, and in the other example, the second argument appears to be a list
> of encodings.  Since everything is now utf-8, I guess that could be forgotten.
> So, in your example here, I take "serif" to be the name of both typsecripts, 
> but
> I don't know what [garamondprem] is doing.

We're talking about mkiv here, so we don't need to worry about encodings (which 
is a confusing topic - utf8 is not a font encoding, but an input encoding; 
these two are not identical). A typescript file can contain a series of 
typeface definitions, e.g., one for serif, one for sans, one for mono, one for 
math, etc. hence the syntax \starttypescript [] []

> It's never spelled out, but from looking at examples of
> \definefontsynonym [1][2] in the
> docs, I think it means something like "what we used to call 2 we can
> now call 1", i.e.,
> telling the machine to replace instances of "1" with "2".  If this is
> the case, your third
> arguments above just seem to apply your features to the fonts referred
> to, which makes sense.
> I don't see, though, why this has to be done twice, and with an extra
> layer of misdirection.
> E.g., instead of:
> \definefontsynonym [Garamond-Roman]  [name:garamondpremierpro]
> [features=myroman]
> \definefontsynonym [Serif]   [Garamond-Roman] [features=myroman]
> why not just:
> \definefontsynonym [Serif]  [name:garamondpremierpro]
> [features=myroman]?
> 
> I think the purpose of the above step is to connect identifiers like
> "Serif" to a qualified font file.
> 
You could indeed write typescripts without the extra layer of abstraction. It 
just may make it easier if you want to mix different fonts etc.

>> Finally, define your first typeface:
>> 
>> \starttypescript [GaramondPrem]
>> \definetypeface [GaramondPrem] [rm] [serif] [garamondprem] [default]
>> \stoptypescript
> 
> I think this is a typescript called GaramondPrem that contains a
> typeface called GaramondPrem.  It seems a little redundant that they
> have the same name.  

You can use two different names, if you prefer.

> I know that the typescripts are  referred to by
> \usetypescript, but I don't know where typefaces are referred to, so
> maybe it's  just a dummy argument.  

In the \usebodyfont or \switchtobodyfont commands.

> The "[rm]" seems to be what links
> this to the font switching command, and the "[garamondprem]" obviously
> refers to both the typescripts you defined above.  I don't  understand
> what the "[serif]" is doing.  In the typography manual, Hans says,
> "The third and fourth
> arguments to \definetypeface are pointers to already declared font
> sets; these are defined elsewhere."  I think by "font set" he must
> mean a typescript like garamondprem, but I don't know where  the font
> set (typescript?) "serif"

As I said: there's at least serif, sans, mono, math

> is or why two font sets need to be pointed
> to.  

???

> The same  typography document goes on to explain the fifth
> argument:
> "The fifth argument to \definetypeface specifies specific font size
> setups (if any), these will be covered in section ?? in the next
> chapter."
> This is getting scary, but I'm hoping putting "[optical]" there will
> solve everything.
> 
I don't follow.

> 
>> Next step: defining a typeface with superior numbers for footnote references 
>> etc.:
> 
>> \starttypescript [serif] [garamondpremupper]
>> \definefontsynonym [GaramondPremUpper-Roman]   [name:agaramondproregular]  
>> [features=mysup]
>> \stoptypescript
> 
>> \starttypescript [serif] [garamondpremupper]
>> \definefontsynonym [Serif]   [GaramondPremUpper-Roman]  
>> [features=mysup]
>> \definefontsynonym [SerifItalic] [Serif]
>> \definefontsynonym [SerifBold]   [Serif]
>> \definefontsynonym [SerifBoldItalic] [Serif]
>> \definefontsynonym [SerifCaps]   [Serif]
>> \stoptypescript
> 
> I think I follow you, up to the line:
> \definefontsynonym [SerifItalic] [Serif].
> These last lines seem to say that if you're in bold or italic, that
> you should still use
> regular superior figures, but the font has its own bold and italic
> superiors.  I think
> that's true of all the weight/shape/design size variations in the set.
> 

It depends what you want to achieve. I map everything onto Serif because I do 
not want the superior numbers to be bold or italic, even in an italic 
environment. Of course, you can define something for all these variants.

>> \starttypescript [GaramondPremUpper]
>>  \definetypeface [GaramondPremUpper] [rm] [serif] [garamondpremupper] 
>> [default]
>> \stoptypescript
> 
> I'm confused about how [GaramondPremUpper] and [garamondpremupper]
> seem to be getting associated with [rm] and

Re: [NTG-context] simplefonts

2010-03-12 Thread Thomas A. Schmitz
Hi Michael,

This is not to disparage Wolfgang's great simplefonts module, but I learnt 
setting up fonts the old-fashioned way (with typescripts), so I will give a few 
explanations about this approach. Most of what you want can be achieved easily. 
I have Garamond Premier myself, and this is how I set it up:

It looks like you're only using mkiv. So: call a file type-garamondprem.tex. 
Here's what we will do:

first, we want to find out what features our font offers. On my system:

otfinfo -f ~/texmf/fonts/opentype/adobe/garmprem/GaramondPremrPro.otf 
aaltAccess All Alternates
c2scSmall Capitals From Capitals
caltContextual Alternates
caseCase-Sensitive Forms
cpspCapital Spacing
dligDiscretionary Ligatures
dnomDenominators
finaTerminal Forms
fracFractions
histHistorical Forms
kernKerning
ligaStandard Ligatures
lnumLining Figures
numrNumerators
onumOldstyle Figures
ordnOrdinals
ornmOrnaments
pnumProportional Figures
saltStylistic Alternates
sinfScientific Inferiors
sizeOptical Size
smcpSmall Capitals
ss01Stylistic Set 1
ss02Stylistic Set 2
ss03Stylistic Set 3
supsSuperscript
tnumTabular Figures
zeroSlashed Zero

You can enable these features with the four-letter-code and "yes." So we define 
a set of such features for the different font instances we want to define. In 
my case, I want regular text with oldstyle figures, small caps with lining 
figures, and superior numerals. This goes into your typescript:

\definefontfeature
  [myroman]
  
[protrusion=pure,expansion=quality,script=latn,liga=yes,onum=yes,pnum=yes,kern=yes,tlig=yes,trep=yes]

\definefontfeature
  [mysmcp]
  
[mode=node,script=latn,language=dflt,liga=yes,lnum=yes,tnum=yes,kern=yes,tlig=yes,trep=yes,smcp=yes]

\definefontfeature
  [mysup]
  [mode=node,script=latn,onum=no,pnum=yes,sups=yes]

Next step: we set up the "normal" and smallcaps font:

\starttypescript [serif] [garamondprem] 
  \definefontsynonym [Garamond-Roman]  [name:garamondpremierpro]  
[features=myroman]
  \definefontsynonym [Garamond-Bold]   [name:garamondpremierprobold]  
[features=myroman]
  \definefontsynonym [Garamond-Italic] [name:garamondpremierproitalic]  
[features=myroman]
  \definefontsynonym [Garamond-Bold-Italic]
[name:garamondpremierprobolditalicc] [features=myroman]
  \definefontsynonym [Garamond-SmallCaps]  [name:garamondpremierpro]  
[features=mysmcp]
 \stoptypescript

\starttypescript [serif] [garamondprem]
  \definefontsynonym [Serif]   [Garamond-Roman] [features=myroman]
  \definefontsynonym [SerifItalic] [Garamond-Italic] [features=myroman]
  \definefontsynonym [SerifBold]   [Garamond-Bold] [features=myroman]
  \definefontsynonym [SerifBoldItalic] [Garamond-Bold-Italic] [features=myroman]
  \definefontsynonym [SerifCaps]   [Garamond-SmallCaps] [features=mysmcp]
\stoptypescript

Finally, define your first typeface:

\starttypescript [GaramondPrem]
  \definetypeface [GaramondPrem] [rm] [serif] [garamondprem] [default]
\stoptypescript 

Next step: defining a typeface with superior numbers for footnote references 
etc.:

\starttypescript [serif] [garamondpremupper]
  \definefontsynonym [GaramondPremUpper-Roman]   [name:agaramondproregular]  
[features=mysup]
 \stoptypescript

\starttypescript [serif] [garamondpremupper]
  \definefontsynonym [Serif]   [GaramondPremUpper-Roman]  
[features=mysup]
  \definefontsynonym [SerifItalic] [Serif]
  \definefontsynonym [SerifBold]   [Serif]
  \definefontsynonym [SerifBoldItalic] [Serif]
  \definefontsynonym [SerifCaps]   [Serif]
  \stoptypescript

\starttypescript [GaramondPremUpper]
  \definetypeface [GaramondPremUpper] [rm] [serif] [garamondpremupper] [default]
\stoptypescript 

Save this typescript somewhere where ConTeXt can find it and run luatools 
--generate. To use these in your documents, you need these lines

\usetypescriptfile[type-garamondprem]
\usetypescript[GaramondPremUpper]
\usetypsecript[GaramondPrem]
\setupbodyfont[GaramondPrem,11pt]

OK so far?

On Mar 12, 2010, at 8:11 PM, Michael Saunders wrote:

> 
> Thank you once again.  That _did_ work, after I got rid of an \os (I
> used it because I saw it in the manual).
> 
> The command \definefontfeature intrigues me greatly.  I wonder if it
> could solve all my problems.  I'd love to understand it so that I
> don't end up coming in here and asking you to write all my font setups
> line by line.  I Googled it and found only a few scattered examples
> here and there, mostly from this list.  I wish I could find an
> explanation of it written down somewhere.  For example, I would very
> much like to know:
> 
> 1. What the first two arguments do.
> 2. What keys and values are available for the third, and what they mean.

See above: all the font features your font offers.

> 3. Once I have composed a \definefontfeature command, how do I use it
> in the text.
> 4. For example, I g

Re: [NTG-context] About Thomas Schmitz My Way

2010-03-10 Thread Thomas A. Schmitz
Hi Otared,

thanks for the feedback and the kind words!

On Mar 10, 2010, at 12:54 PM, Otared Kavian wrote:
> 
> Regarding the tutorial you have written, although the typo may be corrected 
> by any cautious reader, I think that, on page 2, lines 5 and 6 of your My Way 
> it should be
> 
> 
> 

Of course! Thanks for spotting this.

> I don't know whether the following observation is correct or not: I had to 
> add at the beginning of the file « ourenvironment.tex » which must contain 
> the xml setups, the command 
> \startenvironment ourenvironment
> 
> and at the end of that file:
> \stopenvironment
> 
> before being able to get what you describe. The curious thing is that even 
> when I didn't add
> \startenvironment ourenvironment 
> but I did add 
> \stopenvironment
> the xml file was processed by ConTeXt. For beginners like me, I think this 
> should be said clearly somewhere.
> 

Really? No, I don't think you need to have this. When I process

context --environment=ourenvironment ourfile.xml

it gets processed even without the \start \stop pair you describe.

> Also, in order to have a better PDF in your examples, at some point I 
> understood that in order to have appropriate white space between paragraphs 
> and tables one could, or should, add the tag for preformatted text:
> 
> 
> 
> 
> and transform it into \blank by ConTeXt. To this end one has to add the tag  
> pre to \xmlsetup:
> \xmlsetsetup{\xmldocument}{html|body|h1|h2|p|em|q|b|table|tr|th|td|pre}{xml:*}
> 
> and then
> \startxmlsetups xml:pre 
>   \xmlflush{#1}\blank[big]
> \stopxmlsetups
> 
> to the environment.
> 
Yes, I was bothered by the lack of whitespace too, but I wanted to keep it 
simple. adding  would be one way; another way would be to add something 
like \blank[line]\par at the end of the setup commands. But I wasn't sure what 
would be more confusing to beginners: the somewhat ugly output or these 
additions.

> Finally a qusetion: is there a way to obtain an xml file from a rather simple 
> TeX source, written with ConTeXt commands? Here by simple I mean something 
> which contains text and math formulas, such as a list of problems and 
> exercises.
> 
That's a very interesting question. Hans has this intriguing paragraph in the 
older manual, example.pdf: "In ConTEXt we use a strange but charming way to 
handle this conversion: we simply typeset xml. The typeset document (with lots 
of angle brackets) is then converted into raw text. A complication is math, but 
given that you can embed MathML in your document, this can be passed on 
directly." The question how this can be done has been asked several time on the 
list, but so far, I haven't seen an answer. Maybe you need to buy Hans lots of 
beer at the next ConTeXt meeting, and he will finally fess up!

Thanks, and best wishes

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

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


Re: [NTG-context] xml content and tweaked pdf output

2010-03-10 Thread Thomas A. Schmitz

On Mar 10, 2010, at 12:49 PM, Steffen Wolfrum wrote:

> 
> Sorry for being confused: In your MyWay you talk about xml and show an xhtml 
> example. It seems I mixed this.
> 
xhtml is a subset of xml, AFAIK. But maybe I should add a paragraph explaining 
this.

> 
> Exactly, this is what I meant:
> Wouldn't those typesetting orientated entities cause problems here?
> 
> If I follow Luigis link to ...
> http://www.w3schools.com/Xml/tryxslt.asp?xmlfile=simple&xsltfile=simple
> 
> ... and naively insert the mentioned below entity "addhyphen" ...
> "two of our famous Belgian&addhyphen;Waffles with plenty of real maple syrup"
> 
> ... the xslt process get's disturbed:
> "XML Parsing Error: undefined entity Location: 
> http://www.w3schools.com/xsl/tryxslt_result.asp Line Number 7, Column 41:"
> 
> 
Yes, as I said: you have to define your entities, e.g. in the DOCTYPE 
declaration. That's something I discussed with Hans a few weeks ago: in the 
case you mention, you would have two different definitions of the entity 
&addhyphen; One in the DOCTYPE, which will be followed by the xslt processor:



(i.e. do nothing about it)

and one in the ConTeXt environment file:

\xmlsetentity{addhyphen}{\-}

which will add the discretionary hyphen. And that's exactly what you wanted: 
typographical niceties for pdf output which will not disturb viewing the file 
on the web.
> 
> When reading Taco's reply to that thread ...
> 
> ..

> ... I assumed it's the same in mkii and mkiv?
> 
Rule of thumb: mkii setups use uppercase XML, mkiv uses lowercase xml 
("Introduction" of xml-mkiv.pdf). 

The main difference between the two is [Hans, is this right? correct me if I'm 
wrong]: mkii basically uses a streaming model, i.e., it translates one part of 
the xml file after the other. Reusing nodes and elements that have already been 
processed is possible, but difficult. mkiv loads the entire xml tree into 
memory; you can access any element at any time. 

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

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


Re: [NTG-context] xml content and tweaked pdf output

2010-03-10 Thread Thomas A. Schmitz
On Mar 10, 2010, at 10:58 AM, Steffen Wolfrum wrote:

> Hi,
> 
> very carefully I am trying to make first steps towards XML and ConTeXt (with 
> MkIV).
> 
> Thus, I have enjoyed reading Thomas' MyWay "Getting Web Content and 
> pdf-Output from One Source":
> 
> I only kept wondering, how to keep control over the pdf-Output in terms of 
> fine-tuning the actual typesetting?
> A quick search in the archive gave me the answer that is attached below: by 
> using XMLentities.
> 
> But coming back to Thomas' issue "Getting Web Content and pdf-Output from One 
> Source":
> What about the other branch, getting web content?
> Doesn't the XML source gets "spoiled" by these inserted XMLentities that only 
> make sense when following the pdf-Output branch?
> Or will these XMLentities be silently ignored when feeding the XML source in 
> a CMS system or processing further to web content?
> 
> Apologies for asking such basic questions...
> 

I'm not really that advanced in this area myself, but from what I think I 
understood, you have to distinguish several aspects:

1. The MyWay addressed xhtml and mapping that to ConTeXt output. In html, you 
have a list of predefined entities 
(http://www.w3schools.com/tags/ref_entities.asp) and I don't think that you can 
simply define your own entities in html - this simply is not the way this is 
meant to work. So in this case, the answer to your question would be: you're 
using the wrong tool.

2. In xml, on the other hand, there are almost no predefined entities, you can 
and must define entities yourself. But xml in itself cannot be shown as web 
content; you will need a xsl file which translates your xml to some sort of 
html. This will allow you to define most anything you want, and you can indeed 
add all these typographical niceties. You can then either use a tool such as 
xsltproc or saxon to produce a "clean" html version yourself or you can leave 
it to the browser. 

So: if you're primarily thinking of web content that should also be typeset, 
use html and be aware that you probably won't be able to use all the power of 
ConTeXt. If you're thinking of content that will be typeset but which you also 
want to use in other forms (web content being just one of them), use xml. In 
that case, you will have to learn at least some xslt as well...

Btw, the thread you quoted refers to mkii entities, you know that the 
deinitions in mkiv are somewhat different, right?

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

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


Re: [NTG-context] including xml files

2010-03-08 Thread Thomas A. Schmitz

On Mar 8, 2010, at 10:04 PM, Hans Hagen wrote:

> ah, context can recognize a couple of suffixes but ignores html so just use
> 
>  --forcexml
> 
> which will add the wrapper (future versions will not use the wrapper but 
> that's sort of hidden anyway)

Excellent, I will add  this somewhere to the article! Thanks Hans!

All best

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

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


Re: [NTG-context] including xml files

2010-03-08 Thread Thomas A. Schmitz

On Mar 8, 2010, at 10:57 AM, Hans Hagen wrote:

> xml in mkiv is still somewhat experimental although the commands and 
> interfaces will stay; the current implementation is the second one and has 
> the advanage that it stays closer to xpath and also is more roundtrip safe 
> (tables of contents and so); i expect further improvements
> 
> i use the xml code in production environments so it's performing quite ok now

Just a quick question as I'm writing something on ConTeXt + various xml 
variants for MAPS: does ConTeXt insist on finding the extension .xml with 
\xmldocument ? I tried and am having trouble processing a file such as 
foo.xhtml; when I rename the same file to foo.xml, it works flawlessly. 

All best

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

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


Re: [NTG-context] Working with Arabic

2010-03-08 Thread Thomas A. Schmitz
> OK, you’re the boss.
> 
> Wolfgang
> 
Lieber Gott, du bist der Boss.
Amen. Dein Rhinozeros.

(Sorry, couldn't resist.)

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

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


Re: [NTG-context] Where to put a module?

2010-03-07 Thread Thomas A. Schmitz

On Mar 7, 2010, at 11:54 AM, Philipp Gesang wrote:

> Dear listmates,
> 
> 
> a while ago I made some lua tables to aid myself in transliteration of
> various scripts.  I thought this could be of general interest so I built
> a module from it and threw in some source documentation and a tiny
> manual, too.
> 
> Right now it contains modes for Cyrillic, Glagolitic and Greek scripts,
> older variants included, full ISO 9 support, and two transcription modes
> as well.  (There's a showcase of examples in the manual.)  It allows
> global setups and local adjustments.
> 
> It splendidly works for me, but maybe somebody wants to review it before
> I post it on the list, so whom should I send it to? 

Just one thought on your transliterator: a couple of years ago, Hans set up 
something a bit similar for Greek. It is based on lpeg, though, not gsub and so 
should be somewhat faster. If you look at
context/tex/texmf-context/scripts/context/lua/mtx-babel.lua
you'll see what he did. In theory, this mechanism is general, and all sorts of 
transliteration schemes could be hooked into it. Might give you some ideas or 
not...

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

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


Re: [NTG-context] Table of contents disappears when \setuparranging is used

2010-03-05 Thread Thomas A. Schmitz

On Mar 5, 2010, at 10:33 PM, ber...@pobox.com wrote:

> Hi People,
> 
> I have a very weird problem. As soon as I star tot use \setuparranging
> the table of contents and other registers disappear. How to fix that?

Hi Berend,

run context or texexec with the switch --arrange.

HTH

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

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


Re: [NTG-context] suggestions for context documentation

2010-03-05 Thread Thomas A. Schmitz


On Mar 5, 2010, at 11:01 AM, richard.steph...@converteam.com wrote:



> No, not like those.  I mean like a real manual.  I read the book
> about Hasselt---a few examples without explanations.

I am absolutely gobsmacked (astounded, astonished) at some of the  
comments on this and other threads!
"ConTeXt - an Excursion" and "ConTeXt the Manual" together are  
wonderful. I still consult them at least once a week
after 4 year's use. If you actually tried the examples in the  
former, rather than just reading them, you

would be an expert user within 2 days!


Hear hear! I couldn't agree more and am happy that a voice of reason  
appears in this somewhat meandering thread!




It would be nice to think that the community could construct  
documentation, but good, coherent documentation
is much harder to produce than good code! It works for collections  
of small articles (WikiPedia etc), but

I've never seen a good book written by a community.


also +1 Wasn't there this wonderful saying that a camel is a horse  
designed by committee?


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

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


Re: [NTG-context] no protrusion for hyphen ??

2010-03-03 Thread Thomas A. Schmitz

On Mar 3, 2010, at 1:49 PM, Steffen Wolfrum wrote:

> For hyphenation!
> 
> Just try yourself: with "-" instead of "|-|" there is no hyphenation for 
> test-text:
> 
> 
> \startluacode
> fonts.protrusions.vectors['stpure'] = {
>[0x002D] = { 0, 0.50}, -- hyphen
> }
> fonts.protrusions.classes['stwpure'] = {
>vector = 'stpure', factor = 1
> }
> \stopluacode
> 
> \definefontfeature[default][default]
> [mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2,
> \usetypescript[postscript]
> \definetypeface[postscript][rm][serif][times][default]
> \setupbodyfont[postscript,18pt]
> \setupalign[line,block,hanging]
> 

\setbreakpoints[compound]

> \showframe
> 
> \starttext
> 
> \dorecurse{13}{test } test|-|text test 
> 
> \dorecurse{13}{test } test-text test 
> 
> \dorecurse{13}{test } test- text test 
> 
> \stoptext
> 
And see 
http://archive.contextgarden.net/message/20071214.090643.99a01996.en.html

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

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


Re: [NTG-context] no protrusion for hyphen ??

2010-03-03 Thread Thomas A. Schmitz

On Mar 3, 2010, at 12:44 PM, Steffen Wolfrum wrote:

> Hi,
> 
> I have read there were troubles with |-| in MkIV last year.
> 
> I found another one: the hyphen set by |-| doesn't get protruded.

Why do you need this |-| hyphen?

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

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


Re: [NTG-context] active chars in xml -- suggestions needed

2010-02-28 Thread Thomas A. Schmitz

On Feb 28, 2010, at 9:21 AM, Philipp Gesang wrote:

> Good morning Thomas,
> 
> thanks very much, this way it works great.  But is there any
> documentation on this apart from lxml-ini.mkiv and the list archive?
> 
> Philipp

I don't think that there is any docu on this particular question. I assume 
you've read  http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf ? This will 
at least give you the basics (and then some more). I had always tended to map 
single characters to xml entities and more complex commands to xml elements, 
but I can't really tell you why. Maybe one of the real experts in this area can 
help us here? 

Best

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

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


Re: [NTG-context] active chars in xml -- suggestions needed

2010-02-27 Thread Thomas A. Schmitz

On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote:

> Dear listmates,
> 
> 
> I need some suggestions on how to setup non breaking spaces in XML.  I
> tried an empty element  to be processed as follows:
> 
> \startxmlsetups xml:nbsp
> ~
> \stopxmlsetups
> 
> which was ignored by context.  (I'll need something similar with
> \discretionary as well, I guess.)
> 

Have you tried

\xmlsetentity{nbsp}{~}
\xmlsetentity{dishyph}{\-}
? Both seem to work for me

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

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


Re: [NTG-context] TeX syntax -- a guide?

2010-02-25 Thread Thomas A. Schmitz

On Feb 25, 2010, at 9:39 PM, James Fisher wrote:

> Hi,
> 
> 
> After a few days working in "do what the tutorials say" mode, I now want to 
> understand TeX from a programmer's mindset.  I have not been able just by 
> practise to work out what the syntactic rules of TeX are, and I am hoping 
> that there is a sensible guide to this somewhere.  However, searches for 
> things like "tex syntax" draw a blank.  Some of the things I want to 
> understand, for example, are: (1) what is the distinction between square 
> brackets and curly brackets after a command?  (2) Why are there sometimes 
> lists of square-bracketed lists after a command, each with lists of seeming 
> arguments inside them?  (2) What exactly are the "variables" in a TeX file? 
> (I've seen variable-like things sometimes referred to just plainly, sometimes 
> with preceding backslashes as if they were commands/macros).  (4) Why can't I 
> end a square-bracketed section with a final square-bracket on a line of its 
> own, as I may do in other programming languages?  (5) How are things like 
> \subsection, \sub
 subsection, \subsubsubsection, ... implemented?  I am used to languages in 
which there is only a finite set of commands; why is the logic here not more 
like \section[level=1], \section[level=2], ... ?  (6) Perhaps I'm 
misunderstanding things and all this isn't actually the fundamental syntax of 
TeX but just adhoc syntax defined by various macros doing different things -- 
is this the case; to what degree can macros define syntax?
> 
> Obviously I don't expect answers to all these here, but can someone point me 
> to somewhere on the 'net that could answer them? The only other possibilities 
> I can see are buying an expensive copy of the TeXbook, etc.
> 
First, you're confusing two things: TeX syntax and ConTeXt syntax. Most of what 
you're asking here has to do with the way ConTeXt implements things. For 
starters, I would recommend http://wiki.contextgarden.net/Inside_ConTeXt, 
especially the overview about System Macros.

But if you want to actually write your own macros (or simply understand the way 
ConTeXt works) you will indeed need some understanding of TeX. Complaining 
about the price of the TeXbook doesn't sit very well with most TeXies (most of 
us think the price is reasonable, we're using this incredibly software for 
free, and if you're really poor, you can always go to a library), but there's 
an absolutely wonderful book which you can download for free, TeX by topic, 
http://eijkhout.net/texbytopic/texbytopic.html Personally, I find it more 
accessible than the TeXbook. 

HTH

Thomas


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

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


[NTG-context] MyWay on processing xhtml

2010-02-23 Thread Thomas A. Schmitz
Dear all,

Parick has just uploaded a MyWay that I've written. It's an introduction to 
processing xhtml files with ConTeXt. As such, it is probably most suitable for 
beginners; if you're an old hand at using and processing xml, there won't be 
anything new here. But if you're interested in having a web page and typeset 
output from the same source and a newbie on this field, this might be of 
interest to you. The MyWay and a few example files can be found at 
http://dl.contextgarden.net/myway/tas/

All best

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

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


Re: [NTG-context] linetables broken?

2010-02-21 Thread Thomas A. Schmitz

On Feb 21, 2010, at 11:31 PM, Wolfgang Schuster wrote:

> You can use the buffer method for linetables
> 
> \startbuffer[test]
> \NC[background=color,backgroundcolor=darkred] xxx \NC yy \NC d \NC  
> \NC ff \NC\NR
> \stopbuffer
> 
> \processlinetablebuffer[test]
> 
> Wolfgang

Wolfgang, thank you, this does work! Does that mean nothing is broken, but 
linetables need to be processed in buffers? 

All best

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

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


[NTG-context] linetables broken?

2010-02-21 Thread Thomas A. Schmitz
Hi all, 

when I played a bit with linetables today, I found out that something's broken 
here. Minimal example (simplified from tabl-ltb.mkiv):


\starttext


\startlinetable
\NC[background=color,backgroundcolor=darkred] xxx
 \NC yy \NC d \NC  \NC ff \NC \NR
\stoplinetable

\stoptext

I get 
! Missing number, treated as zero.
 
   d
\!!depth ->d
epth
\domakeblackrule ...!!height \@@bjheight \!!depth 
  \@@bjdepth \stopcolor 
\complexblackrule ...[\??bj ][#1]\domakeblackrule 
  \egroup 
 ...depth }, \c!width =\wd \scratchbox ]
  \hskip -\wd \scratchbox \b...
\firstoftwoarguments #1#2->#1
 
...
l.8  \NC
 yy \NC d \NC  \NC ff \NC \NR

All best

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

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


Re: [NTG-context] ancient greek module

2010-02-19 Thread Thomas A. Schmitz

On Feb 13, 2010, at 6:16 PM, Steffen Wolfrum wrote:

> Hi,
> 
> is "t-greek-2008.08.11.zip" still valid (and recommended for MkIV?)

OK, I uploaded a new version of t-ancientgreek. Only a few things have changed 
in the module itself. I hope the documentation is clearer and more concise, at 
least it's included again... There's no way I can test all the combinations of 
fonts in every engine, so if you use it and encounter a problem, just let me 
know - it's not easy to keep track of all the encoding and tfm and vf files...

All best

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

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


Re: [NTG-context] ancient greek module

2010-02-15 Thread Thomas A. Schmitz

On Feb 13, 2010, at 6:16 PM, Steffen Wolfrum wrote:

> Hi,
> 
> is "t-greek-2008.08.11.zip" still valid (and recommended for MkIV?)
> 
>> From contextgarden:
> The requested URL /modules/t-greek/doc/greek/ancientgreek.pdf was not found 
> on this server.
> The requested URL /modules/t-greek/doc/greek/readme.txt was not found on this 
> server.
> 
> 
> Steffen

Sorry, I was away for the weekend. I just checked: the version should work both 
with mkii and mkiv. I have been working on a new version with improved mkiv 
support for a while now, but haven't gotten round to releasing it yet (and 
demand hasn't been very high); that's why the documentation is missing. If all 
you want is just a few Greek words and if you're using mkiv, however, you don't 
need the module: just use a font that has support for Greek (e.g. Gentium, 
which is part of the minimals for that reason) and just type your Greek, and 
everything should work (no hyphenation, however). Maybe I can get my act 
together and release something in the next weeks, but you can use this version.

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

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


Re: [NTG-context] bib: authornum

2010-02-12 Thread Thomas A. Schmitz

On Feb 12, 2010, at 4:10 PM, Taco Hoekwater wrote:

> Hi,
> 
> Attached is a fairly elaborate patch and test file, please try.
> 
> If you are happy with it, it can probably go to the core
> (with a similar patch for bibl-tra.mkii). Besides the
> \cite[authornum] case, it also adds 'lastpubsep' support
> to the 'short forms', like \cite[num] and \cite[short].
> 
> Best wishes,
> Taco

Hi Taco,

first tests both with small test files and the real-world that I'm currently 
typesetting are successful: looks like your patch works! Would be wonderful if 
this could go to the core. Thanks so much!

All best

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

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


Re: [NTG-context] bib: authornum

2010-02-12 Thread Thomas A. Schmitz

On Feb 12, 2010, at 1:38 PM, Taco Hoekwater wrote:

> Hm, can you try this redefinition?
> 
> \unprotect
> \def\bibinsertrefsep
>  {\ifconditional\firstbibrefsep
> \setfalse\firstbibrefsep
>   \else \ifnum\recurselevel=\bibitemcounter\relax
>\bibalternative\c!lastpubsep
>\else
>\bibalternative\c!pubsep
>\fi
>   \fi}
> \protect

Thanks Taco - that doesn't it yet. Maybe a small text file can help?

All best

Thomas

\unprotect
\def\bibinsertrefsep
 {\ifconditional\firstbibrefsep
\setfalse\firstbibrefsep
  \else \ifnum\recurselevel=\bibitemcounter\relax
   \bibalternative\c!lastpubsep
   \else
   \bibalternative\c!pubsep
   \fi
  \fi}
\protect

\setuppublications[state=start,
  sorttype=bbl,
  refcommand=authornum,
  numbering=yes]

\setupcite
   [authornum]
   [pubsep={, },
andtext={  },
namesep={  },
lastpubsep={  },
compress=no,
inbetween={  },
left={[[[},
right={)))}]


\startpublication[k=gowpagegp,t=book,
a={{Gow},{Page}},y=1968,
n=5,s=GP68]
\author[]{A.~S.~F.}[A.~S.~F.]{}{Gow}
\author[]{Denys}[D.]{}{Page}
\pubyear{1968}
\title{The Greek Anthology{\em , 2} The Garland of Philip}
\city{Cambridge (Engl.)}
\pubname{Cambridge UP}
\stoppublication

\setuppublicationlist[samplesize={VSdK90},totalnumber=1]

\starttext

\cite[gowpagegp]

\page

\placepublications[criterium=all]

\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] bib: authornum

2010-02-12 Thread Thomas A. Schmitz
Hi,

sorry if this is yet another bib question: the "authornum" cite style is a 
recent addition. It doesn't accept all the setup functions that other styles 
(such as "authornum") do. The one thing I miss most ATM is the "andtext" option 
between a publication with several authors. It takes the form Author1,Author2 
(just a comma, no space; this can be configured in authornum). I tried adapting 
the code in bibl-tra.mkiv l. 1506-1515, but failed miserably. Would it be 
possible to add the configurable andtext to authornum?

Thanks, and best

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

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


Re: [NTG-context] two buglets

2010-02-11 Thread Thomas A. Schmitz

On Feb 11, 2010, at 8:29 PM, Hans Hagen wrote:

> just give them the same code, so "A"=1, "a"=1
> 
> (we could make that an option: upper first, lower first, mixed)
> 
> Hans

Thank you, Hans, that works nicely! It would be good to have this as an option. 
And I would vote for having the "mixed" setting as default. I wasn't even aware 
that there were indexes that sort according to case.

All best

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

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


Re: [NTG-context] two buglets

2010-02-11 Thread Thomas A. Schmitz

On Feb 11, 2010, at 6:17 PM, Hans Hagen wrote:

> are you sure that that's the convention for english? it's easy to change it 
> ...
> 
> \startluacode
> sorters.mappings['en'] = {
>["a"] =  2, ["b"] =  4, ["c"] =  6, ["d"] =  8, ["e"] = 10,
>["f"] = 12, ["g"] = 14, ["h"] = 16, ["i"] = 18, ["j"] = 20,
>["k"] = 22, ["l"] = 24, ["m"] = 26, ["n"] = 28, ["o"] = 30,
>["p"] = 32, ["q"] = 34, ["r"] = 36, ["s"] = 38, ["t"] = 40,
>["u"] = 42, ["v"] = 44, ["w"] = 46, ["x"] = 48, ["y"] = 50,
>["z"] = 52,
>["A"] =  1, ["B"] =  3, ["C"] =  5, ["D"] =  7, ["E"] =  9,
>["F"] = 11, ["G"] = 13, ["H"] = 15, ["I"] = 17, ["J"] = 19,
>["K"] = 21, ["L"] = 23, ["M"] = 25, ["N"] = 27, ["O"] = 29,
>["P"] = 31, ["Q"] = 33, ["R"] = 35, ["S"] = 37, ["T"] = 39,
>["U"] = 41, ["V"] = 43, ["W"] = 45, ["X"] = 47, ["Y"] = 49,
>["Z"] = 51,
> }
> \stopluacode
> 
> \starttext
>\index{Aardvark}Aardvark \par
>\index{azygous}azygous
>\placeregister[index][n=1]
> \stoptext

No, I'm not sure at all. All I can say is that a quick check in my scholarly 
books didn't bring up a single example where uppercase and lowercase were 
treated differently. If I apply your code, I will have the same problem with 
Azygous -> aardvark. How would I write the table so that lowercase and 
uppercase are not distinguished at all? I tried

\startluacode
sorters.mappings['en'] = {
   ["a"] =  1, ["b"] =  2, ["c"] =  3, ["d"] =  4, ["e"] = 5,
   ["f"] = 6, ["g"] = 7, ["h"] = 8, ["i"] = 9, ["j"] = 10,
   ["k"] = 11, ["l"] = 12, ["m"] = 13, ["n"] = 14, ["o"] = 15,
   ["p"] = 16, ["q"] = 17, ["r"] = 18, ["s"] = 19, ["t"] = 20,
   ["u"] = 21, ["v"] = 22, ["w"] = 23, ["x"] = 24, ["y"] = 25,
   ["z"] = 26,
}
\stopluacode

but that didn't work.

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

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


[NTG-context] two buglets

2010-02-11 Thread Thomas A. Schmitz
Hi all,

working on a book project with index and bibliography, I discovered two small 
bugs (at least I think they are bugs):

1. index sorts uppercase letters after lowercase letters. Minimal example:

\starttext

\index{Aardvark}Aardvark

\index{azygous}azygous

\page

\setupregister[index][n=1]
\placeregister[index]

\stoptext

I would expect azygous to follow Aardvark, but it is sorted before.

2. (Maybe not a bug, but a somewhat unfriendly behavior): When a \cite command 
refers to a non-existent key and sort=bbl, ConTeXt bombs out with a lua error:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: 
attempt to compare nil with number
stack traceback:
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: in function 
<...text/tex/texmf-context/tex/context/base/bibl-tra.lua:76>
[C]: in function 'sort'
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:84: in function 
'flush'
:1: in main chunk.
\typesetpubslist ...hacks.flush("\@@pbsorttype ")}
  \doendoflist 
\dodoplacepublications ...sttrue \typesetpubslist 
  \inpublistfalse \endgroup ...
l.37 \placepublications[criterium=all]
  
minimal example (the typo \cite[clarke199] instead of \cite[clarke1999a] is 
there on purpose to demonstrate the problem):

\setuppublications[state=start,
   sorttype=bbl,
   refcommand=authornum,
   numbering=yes]

\setuppublicationlist[samplesize={VSdK90},totalnumber=2]

\startpublication[k=champion2004,t=book,
a={{Champion}},y=2004,
n=10,s=Cha04]
\author[]{Craige~B.}[C.~B.]{}{Champion}
\pubyear{2004}
\title{Cultural Politics in Polybius's {\em Histories}}
\city{Berkeley}
\pubname{Univ. of California Pr.}
\stoppublication

\startpublication[k=clarke1999a,t=book,
a={{Clarke}},y=1999b,
n=9,s=Cla99b]
\author[]{Katherine}[K.]{}{Clarke}
\pubyear{1999\maybeyear{b}}
\title{Between Geography and History: Hellenistic Constructions of the Roman
  World}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication

\starttext

\cite[champion2004]

\cite[clarke199]

\page

\placepublications[criterium=all]

\stoptext

Could this error be handled more gracefully, i.e. intercepted?

All best

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

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


Re: [NTG-context] YABQ - yet another bib question

2010-02-11 Thread Thomas A. Schmitz

On Feb 11, 2010, at 3:35 PM, Taco Hoekwater wrote:

>> Is there a setup option for this, or is a hack needed?
> 
> I expect adding a \setuppublications[refcommand=num] just before the
> \completepublications will work.
> 
> Best wishes,
> Taco

And right you are! I should've thought of that myself! Thanks Taco!

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

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


[NTG-context] YABQ - yet another bib question

2010-02-11 Thread Thomas A. Schmitz
Hi all,

it was quite heartwarming to see how many of us rallied for better 
bibliographical support when Wolfgang asked what we missed most in ConTeXt... 
And it's wonderful to see that a new structure for the entire bibliographical 
stuff is on its way. Hans's xml-based approach will make things much easier 
than the obsolete bibtex stuff, I'm sure.

In the meantime, I'm still struggling with our old bib stuff and have one 
question. I would like to have two different reference mechanisms for the cite 
commands and within the publication list. For "normal" cite commands, I would 
like authornum Author [1], whereas in the publicationlist itself only the num 
[1]. AFAICS, \setuppublications[refcommand=authornum] will influence both 
types. Is there a setup option for this, or is a hack needed?

All best

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

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


Re: [NTG-context] xml entities and trailing space

2010-02-09 Thread Thomas A. Schmitz

On Feb 9, 2010, at 6:50 PM, Hans Hagen wrote:

> this is not that easy as effectively
> 
> A&textbar; B
> 
> becomes
> 
> A\textbar B
> 
> and tex will normally gobble that space as part of parsing the input and 
> changing that aspect will not happen
> 
> chicken or egg so use:
> 
> \xmlsetentity{textbar}{\textbar{}}
> 
> 
> Hans

OK, will do that - I was just curious because the behavior changed a while ago. 
I have older pdfs where  the space after such entities was preserved. But 
you're right, it's no big deal.

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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Thomas A. Schmitz

On Feb 9, 2010, at 12:40 AM, Philipp Gesang wrote:

> That was it, sorry, I reinstalled minimals and LuaTeX recently and
> forgot to update ConTeXt.  Now the file is processed and I get a pdf
> file containing the words
>  
> sortkeys:
> n   id  entry
>  
> and an hrule beneath that.  As I'm not (yet) familiar with the control
> sequences used in the file as well as parts of its syntax, I can only
> guess that there's a table missing from "\startxmlsetups bibtex:one
> \starttabulate etc.".
> Good night,
> 
> 
> Philipp

In order to see what this example does, you will have to use your own bib file 
and examples from it. I attach a modified test file with a small bib so you can 
test. However, I don't yet understand how to use this either. Let's hope this 
goes trough to the list.

All best

Thomas



bibtest.tex
Description: Binary data


test.bib
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] DIY toc (or similar list)

2010-02-07 Thread Thomas A. Schmitz

On Feb 7, 2010, at 11:16 PM, Wolfgang Schuster wrote:

> you can do something like this (not sure if it works):
> 
> \setuplist[...][alternative=command,command=\MyFancyListentry]
> 
> \define[3]\MyFancyListentry
>  {\doifelse{#2}{\fullstructureheadtitle} % is this the correct value?
> {...}% fancy layout
> {...}% normal layout
>   ...}
> 
> Wolfgang

Wolfgang, thanks a lot! I could adapt your code so it does what I want! Here's 
what I have now, I'm sure I can run with that for the presentation stuff. 
Thanks a lot, and best wishes!

Thomas


\definelist[MyTopics][criterium=all]

\define[3]\FancyEntry
 {\doifelse{#1}{\MyMark} %
{\color[blue]{#1}}% fancy layout
{\color[red]{#1}}% normal layout
\par}

\setuplist[MyTopics]
  [style=\tfxx,
   pagenumber=no,
   alternative=command,
   command=\FancyEntry]


\def\Topic#1{%
  \def\MyMark{#1}%
  \writetolist[MyTopics]{#1}{}%
  \completelist[MyTopics]%
}

\starttext

\Topic{First}

Hello 1

\page

\Topic{Second}

Hello 2

\page

\Topic{Third}

Hello 3

\page

\Topic{Fourth}

Hello 4

\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] DIY toc (or similar list)

2010-02-07 Thread Thomas A. Schmitz
Hi experts,

I'm thinking about a new presentation style and need some general advice from 
the TeXperts. I would like to have a list of topics on some area of the slide 
(similar to s-pre-19.tex). However, if at all possible, I would like it to be a 
bit fancier. Let's say I want the list of topics typeset in gray frames in a 
black font, but the current topic in a blue frame with a white font. Would this 
be possible with something like \definelist? Is there any notion of 
"currentlistitem" or "currentmarking" in such lists? Or, even better: would it 
be possible to have access to the single members of a list and maybe compare 
them to a current value and then typeset them accordingly? Something like this 
pseudocode:

for member in topiclist do
  if member == currentvalue
 
  else
 
  end
end

Or am I trying to reinvent the wheel here? I would be happy to hear any ideas 
on that. 

All best

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

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


[NTG-context] xml entities and trailing space

2010-02-07 Thread Thomas A. Schmitz
Hi all, Hans,

this is something I had mentioned a few weeks ago, but wanted to complain about 
it again: when you define xml entities as TeX commands, those used to preserve 
trailing spaces. This hasn't been the case since a number of version. I would 
like to recommend havin the old behavior back (since adding spaces isn't as 
easy in xml as it is in TeX). The example below demonstrates the problem.

All best

Thomas

\startbuffer[xmltest]
A &textbar; B
\stopbuffer

\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:p
\xmlflush{#1} \par
\stopxmlsetups

\xmlsetentity{textbar}{\textbar}

\starttext
\xmlprocessbuffer{main}{xmltest}{}
\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] Linux PPC64 & minimals

2010-02-02 Thread Thomas A. Schmitz


On Feb 2, 2010, at 8:36 AM, Mojca Miklavec wrote:


Two remarks:

1.) Thomas, can you please send me the patch (I can write it myself,
but I will not be 100% to get it right). It seems that we need to
modify that in several different places (mtx-something.lua, setuptex
and first-setup.sh).



Will do tonight. I have only changed it in one place (first-setup.sh)  
and have been using the minimals on this computer without any problems  
(but I have my own script to adjust path etc.).



2.) The error is not related to minimals/wrong architecture. There may
be several reasons. Different shell? Missing mkiv formats? (Can you
try "luatools --generate"? It could be that mtxrun doesn't find
ctxtools.) Something third?



Yes, we need more info.

Best

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

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


Re: [NTG-context] Linux PPC64 & minimals

2010-02-01 Thread Thomas A. Schmitz

On Feb 1, 2010, at 3:43 PM, Roger Mason wrote:

> Hello,
> 
> I just tried to install the minimals on:
> 
> uname -a
> Linux perthite 2.6.30-gentoo-r5 #6 SMP Wed Jan 13 17:59:36 NST 2010
> ppc64 PPC970FX, altivec supported PowerMac7,3 GNU/Linux
> 
> but got:
> 
> sh ./first-setup.sh
> Error: your system "Linux ppc64" is not supported yet.
> Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)
> 
> The machine reports as ppc64 but it is running a 64 bit kernel with 32
> bit userland.
> 
> I'd like to know how to proceed.  If necessary I am quite willing to
> build the minimals on this platform and contribute the binaries back to
> the wiki.
> 
> Cheers,
> Roger

Oops, I thought we had fixed that... Anyways: the easiest solution is to open 
first-setup.sh in an editor. line 28 has

  ppc) platform="linux-ppc" ;;

you can either change that to 

  ppc64) platform="linux-ppc" ;;

or add such a new line after it. The minimals should work on your system (they 
do work on my ppc64 box). 

Good luck

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

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


Re: [NTG-context] bib in mkiv

2010-01-26 Thread Thomas A. Schmitz


On Jan 26, 2010, at 3:50 PM, Hans Hagen wrote:


so it looks like it's interpreting the \nocite[*] literally. Any
thoughts on this?


not that many as you forgot to tell what the * is supposed to do -)


:-) It's supposed to include everything, i.e. all the references in  
the bbl.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] bib in mkiv

2010-01-26 Thread Thomas A. Schmitz

Hi all,

shouldn't this work in mkiv as well? It does work in mkii. In mkiv, I  
see in the log file


publications: warning: cite argument * is unknown on line 175

so it looks like it's interpreting the \nocite[*] literally. Any  
thoughts on this?


All best

Thomas

\setuppublicationlist[samplesize={vdORW06},totalnumber=2]

\startpublication[k=arafatpausanias,t=book,
a={{Arafat}},y=1996,
n=1,s=Ara96]
\author[]{Karim~W.}[K.~W.]{}{Arafat}
\pubyear{1996}
\title{Pausanias' Greece: Ancient Artists and Roman Rulers}
\city{Cambridge (Engl.)}
\pubname{Cambridge UP}
\stoppublication

\startpublication[k=sidebottompausanias,t=article,
a={{Sidebottom}},y=2002,
n=8,s=Sid02]
\artauthor[]{Harry}[H.]{}{Sidebottom}
\pubyear{2002}
\arttitle{Pausanias: Past, Present, and Closure}
\journal{Classical Quarterly}
\volume{52}
\pages{494--499}
\stoppublication

\setuppublications
[state=start,
 sorttype=bbl,
 criterium=all,
 numbering=yes]

\setuppublicationlist[criterium=all]


\starttext

\section{References}

\nocite[*]

\placepublications[criterium=all]

\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] negative kerning

2010-01-18 Thread Thomas A. Schmitz

On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote:

> MkIV only:
> 
> \definecharacterkerning[packed]
> 
> \setupcharacterkerning[packed][factor=-.125]
> 
> \starttext
> 
> \input knuth
> 
> \start
> 
> \setcharacterkerning[packed]
> 
> \input knuth
> 
> \stop
> 
> \stoptext
> 
> Wolfgang

Wow!! That is one of the best things I have read in a while - it means we can 
have proper "gesperrten" Text with proper hyphenation! Really excellent, thanks 
a lot for pointing this out, Wolfgang!

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

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


Re: [NTG-context] spaces in file names

2010-01-13 Thread Thomas A. Schmitz

On Jan 13, 2010, at 8:34 PM, Hans van der Meer wrote:

> Odd by the way, that so many people apparently refrain from using spaces in 
> directory and file names, because this did not surface earlier. It can make 
> things a lot more readable. The habit of avoiding spaces is probably a 
> holdover from old times where OS's were much more restrictive in filenaming. 

I prefer to work with my computer, not against it. Whenever you want to script 
something or do something remotely, spaces in file names give you nothing but 
grief. And I don't think "My Stuff" is so much more readable than "My-Stuff" or 
"My_Stuff" or ... But to each their own, I guess, if you think that spaces in 
filenames are so 2010 and avoiding them old hat.

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

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


Re: [NTG-context] New current context: 2009.11.26

2009-11-27 Thread Thomas A. Schmitz

On Nov 27, 2009, at 12:19 PM, Taco Hoekwater wrote:

> Hi,
> 
> Hans released a new current context yesterday. This is mostly a bugfix/
> catchup release for mkiv functionality, but there are also a few other
> bugfixes.
> 
> See http://wiki.contextgarden.net/Context_2009.11.26 for details.
> 
> Best wishes,
> Taco

Hi Taco,

thanks for the announcement, and a short note, mostly for Mojca: the os x 
minimals still ship with a luatex binary that is broken wrt metapost (I haven't 
tested other platforms). I don't know when exactly Taco fixed this, but it must 
have been later. Any chance of compiling a newer luatex binary? Since this is a 
stable release, some people might rely on it for stability...

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

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


Re: [NTG-context] font-syn.lua error

2009-11-24 Thread Thomas A. Schmitz

On Nov 25, 2009, at 8:15 AM, luigi scarso wrote:

>> 1. In evince under linux, the file looked fine, no problems were apparent.
> what about xpdf and ghostscript?
> Can you also try with mupdf ?

That wasn't the point, I was not trying to give a comparative table of 
pdf-viewers. luatex was buggy, but some viewers displayed the pdf nonetheless. 
Doesn't make sense to test a dozen viewers because next time around, the subset 
which does or does not work may be totally different.

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

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


Re: [NTG-context] font-syn.lua error

2009-11-24 Thread Thomas A. Schmitz

On Nov 25, 2009, at 8:20 AM, Taco Hoekwater wrote:

> Sounds like this bug in 0.44 that was fixed already:
> 
>  Bug fixes in 0.45:

Yes, the bug has been fixed, and I should have mentioned that; I just wanted to 
point out that tests may be sometimes deceptive: when I see an empty pdf in 
preview and someone else runs the test file with evince, his first reaction 
will probably be "runs OK here, must be a misconfiguration in your 
installtion." 

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

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


Re: [NTG-context] font-syn.lua error

2009-11-24 Thread Thomas A. Schmitz

On Nov 22, 2009, at 10:19 PM, Hans Hagen wrote:

> that line says
> 
>data_state = resolvers.data_state(),
> 
> so resolvers has no data_state entry which in turn means that you run an old 
> mtxrun, so maybe you need top copy mtxrun.lua manually to where it currently 
> sits in yout path (as mtxrun)

Just an afterthought to this problem: I discovered yesterday that the same file 
behaved quite differently in different viewers. It was a file compiled with the 
latest beta under linux, luatex 0.44, and with my own fonts. 

1. In evince under linux, the file looked fine, no problems were apparent.

2. In Preview under OS X, the file showed only blank pages.

3. In Adobe Reader 9, both under linux and OS X, the file refused to open with 
a dialogue saying it was damaged and couldn't be repaired.

So unfortunately, this is something we have to keep in mind when we test 
something and say "works here."

Best

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

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


Re: [NTG-context] hz off?

2009-11-23 Thread Thomas A. Schmitz

On Nov 23, 2009, at 10:31 AM, Steffen Wolfrum wrote:

> Hi,
> 
> I am running the current stable MkIV (ConTeXt  ver: 2009.10.27 16:35 MKIV) 
> but can't get hz/hanging with the old method (see below).
> 
> Do we have some other way today?
> 
> 
> Steffen
> 
> ---
> 
> \showframe
> 
> \definefontfeature[default][default][mode=node,expansion=quality]

\definefontfeature[default][default][mode=node,expansion=quality,protrusion=pure]


> 
> \usetypescript[palatino]
> \setupbodyfont[palatino]
> 


\enableprotruding
\enableadjusting


> \starttext
> 
> \input knuth
> 
> \stoptext

Best

Thomas

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

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


<    3   4   5   6   7   8   9   10   11   12   >