[NTG-context] text fragments in arabic

2011-05-21 Thread R. Ermers
Dear all,

I have some fragments of Arabic in my dutch context document (mkiv). I tried 
the  environment ara-sty on the wiki, but Context halts at  
\setcharactermirroring[1]

Then I found in an e-mail on the internet the suggestion to give up on 
setcharactermirroring and use instead these instructions:

%\setupdirections[bidi=global] or
\setupdirections[bidi=local]

I replaced charactermirroring by \setupdirections[bidi=local] but there seems 
to be a problem with that too.

The environment ara-sty apparently interferes with the section headings in my 
document anyway, perhaps because it is designed for documents whose 
mainlanguage is Arabic. I found elaborate suggestions to typeset a 'hello' 
document in Arabic, but my document contains mixed text. (When I uncomment 
ara-sty, the document is typeset normally.)

Note that I have been typesetting Arabic texts in Latex (starting with ArabTeX) 
 and xelatex (unicode) for years now, but I expected that typesetting Arabic in 
Context / Luatex is more complicated.

Thus I have two questions:

1. which module should I load or which commands should I add to the preambule 
for typesetting Arabic,
2. how should I mark the Arabic fragments in my text? e.g. {\RT عقل}?

Thanks in advance!

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

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

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 10:15 schrieb R. Ermers:

 Dear all,
 
 I have some fragments of Arabic in my dutch context document (mkiv). I tried 
 the  environment ara-sty on the wiki, but Context halts at  
 \setcharactermirroring[1]
 
 Then I found in an e-mail on the internet the suggestion to give up on 
 setcharactermirroring and use instead these instructions:
 
 %\setupdirections[bidi=global] or
 \setupdirections[bidi=local]
 
 I replaced charactermirroring by \setupdirections[bidi=local] but there seems 
 to be a problem with that too.
 
 The environment ara-sty apparently interferes with the section headings in my 
 document anyway, perhaps because it is designed for documents whose 
 mainlanguage is Arabic. I found elaborate suggestions to typeset a 'hello' 
 document in Arabic, but my document contains mixed text. (When I uncomment 
 ara-sty, the document is typeset normally.)
 
 Note that I have been typesetting Arabic texts in Latex (starting with 
 ArabTeX)  and xelatex (unicode) for years now, but I expected that 
 typesetting Arabic in Context / Luatex is more complicated.
 
 Thus I have two questions:
 
 1. which module should I load or which commands should I add to the preambule 
 for typesetting Arabic,

You can use the simplefonts module to set different fonts for your main text 
and the arabic parts:

\usemodule[simplefonts]

\setmainfont[TeX Gyre Pagella]
\setmainfontfallback[Arabic Typesetting Sample][features=arabic,range=arabic]

\starttext
\setupdirections[bidi=on]
\input knuth\par
عقل
\stoptext

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

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

Re: [NTG-context] endnotes/critical apparatus

2011-05-21 Thread Wolfgang Schuster

Am 20.05.2011 um 20:23 schrieb Daniel Schopper:

 Great! Thanks a lot, Wolfgang!
 Yet… I have some other questions:
 
 - What about a simplified \page inside the lemma (not really common, but 
 anyway…)? Adding
   \appendtoks\def\page[#1]{}\to\simplifiedcommands
 is ignored.

You use in your example “\page” without an argument while you define here
\page with an explicit argument which isn’t the same for TeX.

What can work is “\appendtoks\let\page\gobbleoneoptional\to\simplifiedcommands“
but i think it‘s better to solve this with a different input where you write
an alternative text for the notes where none of these commands are present.

 - How can I tweak the note mechanism to put the apparatus notes inside one 
 single paragraph, concatenated by some arbitrary separator (\quad or -- or 
 something similar)? (Eventually I‘d like the lemmatas which appear on the 
 same page to be grouped in a paragraph) - I guess it should be somewhere in 
 strc-not.mkiv but must have missed it…

\setupnote
  [endnote]
  [paragraph=yes,
   inbetween=...] % default: \hskip1em

\setupnotedefinition
  [endnote]
  [display=no]

Wolfgang

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

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


[NTG-context] [OT] Passing a Language through the Eye of a Needle

2011-05-21 Thread luigi scarso
How the embeddability of Lua impacted its design
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, lua.org

http://queue.acm.org/detail.cfm?id=1983083

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] request for a quick dirty hack: shift accents in compose=yes

2011-05-21 Thread Arthur Reutenauer
 Answering myself: I ended up using
 c\kern-7pt\hbox to 0pt{\textcaron\hss}\kern7pt
 but it would be nice to add some options to allow fixing fonts on a
 slightly more user-friendly level.

  And what do you expect the user interface to look like?  You're going
to need to add information in the font for each relevant glyph or glyph
pairs; it's a little bit like using a macro to adjust accent placement
at that point.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] OT: What reference management software do you use?

2011-05-21 Thread Paul Menzel
Dear ConTeXt folks,


using ConTeXt and not LaTeX you maybe also use a nice reference
management software the main stream does not know about. But probably it
is not related to ConTeXt at all since it is BibTeX in the end.

I found a comparison in Wikipedia [1] and consider to use JabRef.


Thanks,

Paul


[1] 
https://secure.wikimedia.org/wikipedia/en/wiki/Comparison_of_reference_management_software


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

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

[NTG-context] problem with columnsetspan

2011-05-21 Thread Gordon Parrott

Hi
I am fairly new to Context and as a way to learn I am working on a magazine 
layout for a an organisation to which I belong.

I was getting along well ( with information I got from the web site and the 
mail lists).

 I am having a problem with \starcolumsetspan. Until a week or two ago it 
appeared to be working but I have just installed the minimals on a new machine 
and it no longer works with the latest version.

I found this example on the mailing list which give the same results:

\definecolumnset[columntest][n=2,balance=yes]
\definecolumnsetspan[wide][n=2]
\starttext
\startcolumnset[columntest]
\startcolumnsetspan[wide]
\dorecurse{3}{\input knuth\par}
\stopcolumnsetspan
\dorecurse{10}{\input knuth\par}
\stopcolumnset
\stoptext


I'm just wondering if there is anything I might need to do to the above to get 
it to work?

Any help would be greatly appreciated but I am in no hurry for this and could 
wait until it gets fixed in the normal round of releases.


Cheers
Gordon

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

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


[NTG-context] Font selection problem in MKIV

2011-05-21 Thread Otso Helenius
Hello,

I'm using ConTeXt minimals MKIV (latest snapshot) on Linux with loads of system 
ttf  otf fonts. Recently I stumbled upon a peculiar problem.
The example below outputs three lines in three different fonts, the 
Computer/Latin(?) Modern, League Script and Pompadour, as expected.

However, if I comment out \setupbodyfont line or set anything else as the body 
font than LeagueScript or Pompadour, all text in the
document will be output solely with the default Modern font. Am I missing 
something here? Is there something wrong with the way I select
and use multiple fonts in the same document?


\setuppapersize[A4][A4]

\starttypescript[Sans][LeagueScript]
\definefontsynonym[Sans][name:leaguescriptthin]
\stoptypescript

\starttypescript[Sans][Pompadour]
\definefontsynonym[Sans][name:Pompadour]
\stoptypescript

\definetypeface[LeagueScript][ss][Sans][LeagueScript]
\definetypeface[Pompadour][ss][Sans][Pompadour]

\setupbodyfont[LeagueScript,12pt]

\starttext

01234567890

\switchtotypeface[LeagueScript][12pt]

01234567890

\switchtotypeface[Pompadour][12pt]

01234567890

\stoptext



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 selection problem in MKIV

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 16:38 schrieb Otso Helenius:

 Hello,
 
 I'm using ConTeXt minimals MKIV (latest snapshot) on Linux with loads of 
 system ttf  otf fonts. Recently I stumbled upon a peculiar problem.
 The example below outputs three lines in three different fonts, the 
 Computer/Latin(?) Modern, League Script and Pompadour, as expected.
 
 However, if I comment out \setupbodyfont line or set anything else as the 
 body font than LeagueScript or Pompadour, all text in the
 document will be output solely with the default Modern font. Am I missing 
 something here? Is there something wrong with the way I select
 and use multiple fonts in the same document?

Try

 \switchtotypeface[LeagueScript][12pt]

\switchtobodyfont[LeageScript]

and

 \switchtotypeface[Pompadour][12pt]

\switchtobodyfont[Pompadour]


You can also replace (but check the output because
the spec-settings give sometimes unexpected output)

 \starttypescript[Sans][LeagueScript]
 \definefontsynonym[Sans][name:leaguescriptthin]
 \stoptypescript
 
 \starttypescript[Sans][Pompadour]
 \definefontsynonym[Sans][name:Pompadour]
 \stoptypescript
 
 \definetypeface[LeagueScript][ss][Sans][LeagueScript]
 \definetypeface[Pompadour][ss][Sans][Pompadour]


with

\definetypeface[LeagueScript][ss][specsans][League Script Thin]
\definetypeface[Pompadour]   [ss][specsans][Pompadour]

Wolfgang

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

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


[NTG-context] Font selection problem in MKIV

2011-05-21 Thread Otso Helenius
 Try
  \switchtotypeface[LeagueScript][12pt]
 \switchtobodyfont[LeageScript]

Is \switchtobodyfont the recommended way of changing the typeface temporarily 
anywhere in a document
(for example when making cover page graphics)? Its name implies only document 
body.

Nevertheless, \switchtobodyfont works (at least in the document body, haven't 
tested yet elsewhere)
without setting \setupbodyfont.

 \definetypeface[LeagueScript][ss][specsans][League Script Thin]
 \definetypeface[Pompadour][ss][specsans][Pompadour]

This seems to work for most fonts, with others like Pompadour it fails 
(pompadour has SubFamily string of
Black [Mac] and Regular [Windows] in the .otf), and spec fails to find 
pompadour-normal-normal which
it is looking for). Pompadour is a serif font, so i tried also with arguments 
[rm][specserif].

I have looked into co-typography.pdf for help, and while it is very extensive 
in some parts, in others it
is (too) technical and lacks expanations for some parameters.

As soon as I get these issues sorted out I'll try if I can make the MKIV font 
pages in the Wiki a bit
more beginner friendly.



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] pdf attachments broken in latest minimal?

2011-05-21 Thread Jesse Alama

It seems that PDF attachments aren't working in the latest minimals:

$ context --version

mtx-context | main context file: 
/Users/alama/context/tex/texmf-context/tex/context/base/context.mkiv

mtx-context | current version: 2011.05.18 22:26


\useattachment[busted][hi.txt]
\starttext
attachment here: \attachment[busted]
\stoptext


Prepending

\setupinteraction[state=start]

to the document, and the compiling with, say, xetex, results in a PDF 
that has the attachment. But not with mkiv.


--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Behaviour of definereferenceformat changed?

2011-05-21 Thread Julian Becker
Can it be that in the beta version 2011.05.01, the behaviour of
\definereferenceformat changed?
I used to define:
\definereferenceformat [ineqn] [left=(,right=),text=equation]
and get e.g. equation (1), but now all it produces (equation 1). Is it
supposed to behave that way?
Do I have to use something like
\definereferenceformat [ineqn] [right={)},text={equation (}]
to get what I want, or is there something better?



Example:

\definereferenceformat [ineqn] [left=(,right=),text=equation]
\starttext
Here in \ineqn[eq1].
\placeformula[eq1]
\startformula
a^2+b^2=c^2
\stopformula
\stoptext


Julian.


--
Keep thy heart with all diligence; for it is the wellspring of life.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 selection problem in MKIV

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 17:31 schrieb Otso Helenius:

 Try
 \switchtotypeface[LeagueScript][12pt]
 \switchtobodyfont[LeageScript]
 
 Is \switchtobodyfont the recommended way of changing the typeface temporarily 
 anywhere in a document
 (for example when making cover page graphics)? Its name implies only document 
 body.
 
 Nevertheless, \switchtobodyfont works (at least in the document body, haven't 
 tested yet elsewhere)
 without setting \setupbodyfont.

\switchtotypeface wasn’t working for you because the second argument
expects a font alternative (e.g. rm, ss etc.)  and not the size.

You can also switch to a certain typeface when you use the command,
in your case \LeagueScript but have to ensure that the typeface
is loaded, otherwise you’ll get an error message.

The preferred method to select a typescript are \setupbodyfont and
\switchtobodyfont, the differences between both is that \switchtobodyfont
use the chosen font only for the document text while \setupbodyfont
affects also the header and footer of your document.

 \definetypeface[LeagueScript][ss][specsans][League Script Thin]
 \definetypeface[Pompadour][ss][specsans][Pompadour]
 
 This seems to work for most fonts, with others like Pompadour it fails 
 (pompadour has SubFamily string of
 Black [Mac] and Regular [Windows] in the .otf), and spec fails to find 
 pompadour-normal-normal which
 it is looking for). Pompadour is a serif font, so i tried also with arguments 
 [rm][specserif].

A real problem with all TeX systems, fonts have too many names
and it’s hard to know which one you need to load it.

 I have looked into co-typography.pdf for help, and while it is very extensive 
 in some parts, in others it
 is (too) technical and lacks expanations for some parameters.

Indeed, Hans explains in his manuals sometimes too much which can
confuse a beginner because these information aren’t necessary to
use a certain mechanism, e.g. to load a font.

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

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


Re: [NTG-context] Behaviour of definereferenceformat changed?

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 18:32 schrieb Julian Becker:

 Can it be that in the beta version 2011.05.01, the behaviour of 
 \definereferenceformat changed?
 I used to define:
 \definereferenceformat [ineqn] [left=(,right=),text=equation]
 and get e.g. equation (1), but now all it produces (equation 1). Is it 
 supposed to behave that way?
 Do I have to use something like
 \definereferenceformat [ineqn] [right={)},text={equation (}]
 to get what I want, or is there something better?

There seems to be a few lines in the source in the wrong,
it’s possible this happened when Hans rewrote parts of
the interaction macros to make them more efficient.

\setvalue{\??rf\c!interaction\v!all}%
  {\leftofreference
   \the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \currentreferencecontent
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks
   \rightofreference}

should be

\setvalue{\??rf\c!interaction\v!all}%
  {\the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \leftofreference
   \currentreferencecontent
   \rightofreference
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks}

but I’m not sure about this, what is the expected output?

\setvalue{\??rf\c!interaction\v!label}%
  {\leftofreference
   \the\leftreferencetoks
   \the\rightreferencetoks
   \rightofreference}

Wolfgang

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

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


Re: [NTG-context] Font selection problem in MKIV

2011-05-21 Thread Otso Helenius
On Sat, May 21, 2011 at 07:31:24PM +0200, Wolfgang Schuster wrote:

Thank You for clarification on the subject. Though, I still have a few problems 
for which I haven't found an answer for.

\setuppapersize[A4][A4]
\starttypescript[Sans][LeagueScript]
\definefontsynonym[Sans][name:leaguescriptthin]
\stoptypescript
\starttypescript[Sans][Pompadour]
\definefontsynonym[Sans][name:pompadourblack]
\stoptypescript

\definetypeface[LeagueScript][ss][Sans][LeagueScript]
\definetypeface[Pompadour][ss][Sans][Pompadour]
\setupbodyfont[LeagueScript,14pt]

\starttext
\LeagueScript 01234567890
\Pompadour 01234567890
\stoptext

This source works as expected, but if I:

a) comment out the \setupbodyfont command or switch [LeagueScript, 14pt) into 
[modern, 14pt] (or anything else than LeagueScript or
Pompadour), all fonts will show up as Latin Modern. This seems very odd.

b) specify a font size less than 13pt in \setupbodyfont, all fonts will (again) 
show up as Latin Modern. It seems that nowhere in the
document I'm able to use these external fonts in small sizes. There is no 
problem with sizes = 14pt. This seems to happen with all
ttf/otf fonts I try to use.

Could it be possible that these two issues are caused by a bug in MKIV?

 Indeed, Hans explains in his manuals sometimes too much which can
 confuse a beginner because these information aren’t necessary to
 use a certain mechanism, e.g. to load a font.

Actually, the biggest problem is that many font related pages on the Wiki are 
for MKII and many lack information on whether the syntax
is for MKII or MKIV. The font docs on Pragma homepages are for MKII only. 

Syntax for the \switchtotypeface would be nice. showfont.pdf from Pragma 
homepage shows \switchtotypeface[name][size,type] as one
possible calling syntax but a clear explanation of all the parameters is 
missing. I would like to add this to the Wiki along other
tutorials for MKIV font usage, so as much information on the subject as 
possible is appreciated.



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 selection problem in MKIV

2011-05-21 Thread Otso Helenius
Sorry, I was in error while referring to the font sizes. The actual limit 
below
which typescripted fonts stop working is 12pt and it is not tied to the 
\setupbodyfont
setting. Any font output with 12pt or less will be formatted as Latin Modern. 
i.e.

\switchtotypeface[Pompadour][ss,12pt] 01234567890

shows as Latin Modern whereas

\switchtotypeface[Pompadour][ss,12.1pt] 01234567890

shows as Pompadour. 12pt is the default document font size so I can only guess 
there
is some kind of a conflict. I'm using ConTeXt  ver: 2011.05.18 22:26 MKIV



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] bibliography: current status, Wiki page Bibliography, [[error 2]] and bibltx

2011-05-21 Thread 李延瑞
2011/5/21 Paul Menzel paulepan...@users.sourceforge.net:

 Thank you very much for this hint. I am getting the same result as you.
 Everything works but the listing of all entries.


You can try \placepublications[criterium=text] instead of
\placepublications[criterium=all].


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