Re: [NTG-context] Sanskrit Devanagari characters

2011-06-26 Thread Mojca Miklavec
On Sun, Jun 26, 2011 at 02:22, Kip Warner wrote:
 On Thu, 2011-06-23 at 07:58 +0200, Mojca Miklavec wrote:
 Or produce the whole document with ConTeXt + XeTeX :)

 I would, but getting ConTeXt alone up and running has taken weeks.

If you have it up and running, you can use it now also for XeTeX.

The only difference is that you have to run texexec --xtx filename
as opposed to context filename.

 You'd think it would just be something really simple like
 \switchfont[devangari]
 तरीकिन
 \unswitchfont

With ConTeXt+XeTeX it boils down to:

% this is plain xetex font switch; see next example
\font\devanagari=Devanagari MT:script=Deva
\starttext
{\devanagari तरीकिन}
\stoptext

Or the following one that could work in both XeTeX and LuaTeX with MKIV:

\definefontfeature[devanagari][script=deva]
\definefontsynonym[devanagari][name:Devanagari MT][features=devanagari]

\starttext
{\definedfont[devanagari] तरीकिन}
\stoptext

See attachments. XeTeX should work fine for you, the only question is
whether you need any MKIV features or not. If you do need them, you
could use Aditya's approach to insert snipets compiled with XeTeX (it
will happen automatically), if you don't need them you just take XeTeX
and you are done. The example that you sent also works fine in ConTeXt
MKIV, but as soon as it comes to slightly more complex ligatures,
LuaTeX won't render them properly without writing some additional
support.

Mojca


devanagari-xetex.pdf
Description: Adobe PDF document


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

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

Re: [NTG-context] Sanskrit Devanagari characters

2011-06-26 Thread Aditya Mahajan

On Sun, 26 Jun 2011, Mojca Miklavec wrote:


The example that you sent also works fine in ConTeXt MKIV,


They don't. Some of the vowels are combined incorrectly.

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

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


Re: [NTG-context] Sanskrit Devanagari characters

2011-06-26 Thread Mojca Miklavec
On Sun, Jun 26, 2011 at 08:50, Aditya Mahajan wrote:
 On Sun, 26 Jun 2011, Mojca Miklavec wrote:

 The example that you sent also works fine in ConTeXt MKIV,

 They don't. Some of the vowels are combined incorrectly.

Ah, ok, sorry, I overlooked that. The first one was ok and the second
one wasn't. (The one I copied from another source and attached in PDF
was obviously wrong, but I didn't spot the other error.)

Anyway, I never claimed that MKIV was usable. I only showed that it is
easy to switch do devanagari script :)

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

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


Re: [NTG-context] Any MacTeX users here?

2011-06-26 Thread dalyoung
Dear Mojca,

I am using Macbook and iMac installed Intel chip.

I also installed MacTeX, but most documents are compiled using LuaTeX in 
Minimal.
I installed MacTeX for LaTeX because many journals require papers which are 
typeset using LaTeX.
Without it, I seldom use LaTeX.

Thank you.

Best regards,

Dalyoung

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

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

2011-06-26 Thread Andreas Harder
Hi Hans,

with the latest beta (as well as experimental)

\setupbodyfont[dejavu]
\starttext
test
\stoptext

breaks with

! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad 
argument #1 to 'find' (string expected, got nil)

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

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

2011-06-26 Thread Hans Hagen

On 26-6-2011 8:50, Aditya Mahajan wrote:

On Sun, 26 Jun 2011, Mojca Miklavec wrote:


The example that you sent also works fine in ConTeXt MKIV,


They don't. Some of the vowels are combined incorrectly.


I think that the engine is supposed to do some character juggling 
beforehand (not encoded in the font).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Any MacTeX users here?

2011-06-26 Thread George N. White III
On Sat, Jun 25, 2011 at 3:09 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 Hello,

 I would like to have a rough estimate about the number of MacTeX users
 that also use ConTeXt minimals (I use MacTeX for compiling LaTeX
 documents and often also use it for a month or two ... until it starts
 diverging too much with Minimals).
 [...]
 One problem that I'm not sure about is how to treat multiple
 installation on the same machine. The other one is the need for quick
 switches between distributions without GUI (I have a script texdist in
 /usr/local/bin, but I'm not sure if that one is up to date.)

I use MacTeX (but really only TeX Live as I seldom use the GUI tools in MacTeX)
for LaTeX and ConTeXt when it works; when ConTeXt in MacTeX breaks I
switch to Minimals.

I use a command-line tool, environment modules (experimental tcl
version from http://modules.sourceforge.net/), to switch between TeX
distros.  This adjusts the
environment in the current shell.

-- 
George N. White III aa...@chebucto.ns.ca
Head of St. Margarets Bay, Nova Scotia
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2011-06-26 Thread Hans Hagen

On 26-6-2011 11:29, Andreas Harder wrote:

Hi Hans,

with the latest beta (as well as experimental)

\setupbodyfont[dejavu]
\starttext
test
\stoptext

breaks with

! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad 
argument #1 to 'find' (string expected, got nil)


Weird, not here. can you change line 119 into

if not a or a ==  then -- not a added

and see what happens?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \setscript[hanzi] conflicts with some symbols

2011-06-26 Thread Hans Hagen

On 26-6-2011 4:01, Li Yanrui (李延瑞) wrote:

\definefontsynonym[pagella][name:texgyrepagellar]
\definefontfallback[hanzi][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[myfont][pagella][fallbacks=hanzi]
\definefont[song][myfont]

\setscript[hanzi]

\starttext
\song
测试  \METAPOST

\stoptext


fixed in next beta (logo is one of the few tfm fonts still loaded, i 
must check if there's an afm)


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] animation module

2011-06-26 Thread dalyoung
Dear Wolfgang and Hans, 

I just updated the minimal and tested animation.

 Adobe Reader reads PDF well and the animation works well.
I didn't test the options which you mention yet, but I think that they also 
work well.

Thank you so much.

Best regards,

Dalyoung

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

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

2011-06-26 Thread Hans van der Meer
I must be doing something wrong. But what?

Relevant part of Metapost code:

numeric Cb, Cr, Y, T, temp, graycolors;
Cb := 0; Cr := 1; Y = 2; T := 3; graycolors := 15;
numeric colors[][];for i = 0 upto graycolors:
temp := (graycolors - i) / graycolors;
colors[i][Cb] := temp; colors[i][Cr] := temp; colors[i][Y]  := temp; 
colors[i][T]  := 0;
endfor
def colorvalue(expr v) =
cmyk(colors[v][Cb], colors[v][Cr], colors[v][Y], colors[v][T])
enddef;
for i = 0 upto 15:
mycmyk[i] := colorvalue(i);
endfor
Used with drawdot... withcolor mycymk[index];

The error from metapost is in the generation of the cmyk colors:
! terminal:  (redpart mycmyk0,greenpart mycmyk0,bluepart mycmyk0)
 (1,1,1,0)
! Equation cannot be performed (color=cmykcolor).
to be read again 
   ;
for(0) mycmyk[(EXPR0)]:=colorvalue((EXPR0));
   ENDFOR
startsubtitle-...:mycmyk[i]:=colorvalue(i);endfor
 
Strangely the following does work without problems:
drawdot... withcolor colorvalue(index);

I got the code from the Metafun manual. Beta from ConTeXt  ver: 2011.03.28 
01:03 MKIV download.
Something obvious I am overlooking?

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

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

2011-06-26 Thread Hans Hagen

On 26-6-2011 1:51, Hans van der Meer wrote:

I must be doing something wrong. But what?

Relevant part of Metapost code:

I got the code from the Metafun manual. Beta from ConTeXt  ver: 2011.03.28 
01:03 MKIV download.
Something obvious I am overlooking?


cmykcolor is another datatype in mp than color


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] where to place \index (again)

2011-06-26 Thread Thomas A. Schmitz
Hi all, 

I'm in the final phase of editing a scholarly book with a pretty big index. 
What follows is less a question than an observation: no matter where I place 
the \index command, there can always be unwanted side effects:

foo\index{bar}: here, the entry may point to the page following the name, if 
the page break falls at this position. Moreover, when this is followed by 
punctuation or footnotes, there may be a line break between the word and the 
punctuation/footnote mark. Placing it at the end of a long footnote is asking 
for even more trouble, because there's a real risk that a page break may occur.

\index{bar}foo: the book is typeset with character protrusion, and this seems 
to introduce additional material which can disturb line endings, so that lines 
before such an indexed word appear to be missing one character at the end.

So this is what I observe. Working around this is possible, but painful - I 
have to check every page for such bad linebreaks or misplaced punctuation 
marks. My question then is: will it be possible, at one point in luatex 
development, to find a more robust solution for this? This would be wonderful, 
I think!

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] where to place \index (again)

2011-06-26 Thread Steffen Wolfrum

Am 26.06.2011 um 14:54 schrieb Thomas A. Schmitz:

 Hi all, 
 
 I'm in the final phase of editing a scholarly book with a pretty big index. 
 What follows is less a question than an observation: no matter where I place 
 the \index command, there can always be unwanted side effects:
 
 foo\index{bar}: here, the entry may point to the page following the name, if 
 the page break falls at this position. Moreover, when this is followed by 
 punctuation or footnotes, there may be a line break between the word and the 
 punctuation/footnote mark. Placing it at the end of a long footnote is asking 
 for even more trouble, because there's a real risk that a page break may 
 occur.
 
 \index{bar}foo: the book is typeset with character protrusion, and this seems 
 to introduce additional material which can disturb line endings, so that 
 lines before such an indexed word appear to be missing one character at the 
 end.
 
 So this is what I observe. Working around this is possible, but painful - I 
 have to check every page for such bad linebreaks or misplaced punctuation 
 marks. My question then is: will it be possible, at one point in luatex 
 development, to find a more robust solution for this? This would be 
 wonderful, I think!


So do I ... Below is a minimal showing both unhappy cases.

Steffen
---


Anfang der weitergeleiteten E-Mail:

 Von: Steffen Wolfrum cont...@st.estfiles.de
 Datum: 24. Mai 2011 11:28:03 MESZ
 An: mailing list for ConTeXt users ntg-context@ntg.nl
 Betreff: where to put an \index{foo} ?
 
 ...
 
 \showframe
 
 \setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]
 
 \definetolerancemethod
 [horizontal]
 [MySpace]
 {\spaceskip3.02pt plus1.8pt minus1.0pt\relax}
 
 \setupalign[line,block,hanging]
 \setuptolerance[MySpace]
 
 \setupindenting[10pt,yes]
 
 \definepapersize[stw][width=14.7cm,height=22.3cm]
 \setuppapersize[stw][stw]
 
 \setuplayout
   [width=113mm,height=572pt,
   backspace=17mm,topspace=17mm,
   header=12pt,headerdistance=6pt,
   footer=36pt,footerdistance=0pt,
   location=middle,marking=off]
 
 
 \starttext
 
 {\em Case 1: line wrap before dot}
 
 \noindent dieses ist dabei typisch für den Bereich der Architekten- oder
 Ingenieurleistungen\index{Ingenieurleistungen}. Warum?
 
 \blank
 
 {\em Case 2: line wrap after visible space}
 
 Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
 \index{Künast}Künast und Jürgen Trittin ...
 \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] where to place \index (again)

2011-06-26 Thread Hans Hagen

On 26-6-2011 2:54, Thomas A. Schmitz wrote:

Hi all,

I'm in the final phase of editing a scholarly book with a pretty big index. 
What follows is less a question than an observation: no matter where I place 
the \index command, there can always be unwanted side effects:

foo\index{bar}: here, the entry may point to the page following the name, if 
the page break falls at this position. Moreover, when this is followed by 
punctuation or footnotes, there may be a line break between the word and the 
punctuation/footnote mark. Placing it at the end of a long footnote is asking 
for even more trouble, because there's a real risk that a page break may occur.

\index{bar}foo: the book is typeset with character protrusion, and this seems 
to introduce additional material which can disturb line endings, so that lines 
before such an indexed word appear to be missing one character at the end.

So this is what I observe. Working around this is possible, but painful - I 
have to check every page for such bad linebreaks or misplaced punctuation 
marks. My question then is: will it be possible, at one point in luatex 
development, to find a more robust solution for this? This would be wonderful, 
I think!


\index is connected to the next word or when on a line on it own as in 
\chapter{x} \index{x} emptyline text to the next paragraph


concerning the character protrusion: that looks like a bug so if we can 
have a small example demonstrating it ... esp the disappearing character 
is weird


(I can introduce a couple of processing modes if needed, but then you 
have to check if an index entry points to a word starting on a previous 
page. In any case, changing the default behaviour might have other side 
effects for existing documents.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] where to place \index (again)

2011-06-26 Thread Steffen Wolfrum

Am 26.06.2011 um 19:47 schrieb Hans Hagen:

 On 26-6-2011 2:54, Thomas A. Schmitz wrote:
 Hi all,
 
 I'm in the final phase of editing a scholarly book with a pretty big index. 
 What follows is less a question than an observation: no matter where I place 
 the \index command, there can always be unwanted side effects:
 
 foo\index{bar}: here, the entry may point to the page following the name, if 
 the page break falls at this position. Moreover, when this is followed by 
 punctuation or footnotes, there may be a line break between the word and the 
 punctuation/footnote mark. Placing it at the end of a long footnote is 
 asking for even more trouble, because there's a real risk that a page break 
 may occur.
 
 \index{bar}foo: the book is typeset with character protrusion, and this 
 seems to introduce additional material which can disturb line endings, so 
 that lines before such an indexed word appear to be missing one character at 
 the end.
 
 So this is what I observe. Working around this is possible, but painful - I 
 have to check every page for such bad linebreaks or misplaced punctuation 
 marks. My question then is: will it be possible, at one point in luatex 
 development, to find a more robust solution for this? This would be 
 wonderful, I think!
 
 \index is connected to the next word or when on a line on it own as in 
 \chapter{x} \index{x} emptyline text to the next paragraph
 
 concerning the character protrusion: that looks like a bug so if we can have 
 a small example demonstrating it ... esp the disappearing character is weird


Sure, the minimal example that I posted already twice shows exactly this case: 
The line before an indexed word appears to be missing one character at the end.

See Case 2 in attached example, please.

Steffen
---

\showframe

\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

\definetolerancemethod
[horizontal]
[MySpace]
{\spaceskip3.02pt plus1.8pt minus1.0pt\relax}

\setupalign[line,block,hanging]
\setuptolerance[MySpace]

\setupindenting[10pt,yes]

\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]

\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]


\starttext

{\em Case 1: line wrap before dot}

\noindent dieses ist dabei typisch für den Bereich der Architekten- oder
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\blank

{\em Case 2: line wrap after visible space}

Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
\index{Künast}Künast und Jürgen Trittin ...
\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] where to place \index (again)

2011-06-26 Thread Wolfgang Schuster

Am 26.06.2011 um 21:13 schrieb Steffen Wolfrum:

 concerning the character protrusion: that looks like a bug so if we can have 
 a small example demonstrating it ... esp the disappearing character is weird
 
 Sure, the minimal example that I posted already twice shows exactly this 
 case: 
 The line before an indexed word appears to be missing one character at the 
 end.


You should try to make shorter examples ;)

\setuplayout[width=6.3cm]\showframe
%\let\forcecolorhack\relax
\starttext
This is a short sentence to check \index{test}the \tex{index} command.

This is another sentence for the test\index{test}.
\stoptext

The problem when you put the \index command before a word is that
it can end in a visible space at the end of the previous line.

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] where to place \index (again)

2011-06-26 Thread Thomas Schmitz

On Sun, 26 Jun 2011 21:29:47 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 26.06.2011 um 21:13 schrieb Steffen Wolfrum:

concerning the character protrusion: that looks like a 
bug so if we can have a small example demonstrating it 
... esp the disappearing character is weird


Sure, the minimal example that I posted already twice 
shows exactly this case: 
The line before an indexed word appears to be missing 
one character at the end.



You should try to make shorter examples ;)

\setuplayout[width=6.3cm]\showframe
%\let\forcecolorhack\relax
\starttext
This is a short sentence to check \index{test}the 
\tex{index} command.


This is another sentence for the test\index{test}.
\stoptext

The problem when you put the \index command before a 
word is that
it can end in a visible space at the end of the previous 
line.


Wolfgang

Thanks, Wolfgang. Just to confirm: yes, this short test 
does indeed show exactly the effects I was referring to. 
So question to Taco: could some lua trickery somehow get 
around these nasty effects?  Because they really make 
finishing a long project somewhat difficult...


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 place \index (again)

2011-06-26 Thread Wolfgang Schuster

Am 26.06.2011 um 22:18 schrieb Thomas Schmitz:

 \setuplayout[width=6.3cm]\showframe
 %\let\forcecolorhack\relax
 \starttext
 This is a short sentence to check \index{test}the \tex{index} command.
 This is another sentence for the test\index{test}.
 \stoptext
 The problem when you put the \index command before a word is that
 it can end in a visible space at the end of the previous line.
 Wolfgang
 Thanks, Wolfgang. Just to confirm: yes, this short test does indeed show 
 exactly the effects I was referring to. So question to Taco: could some lua 
 trickery somehow get around these nasty effects?  Because they really make 
 finishing a long project somewhat difficult...

The effect is caused by \forcecolorhack and when uncomment
my redefinition you can see that the output is as expected
but there has to be a reason why Hans use it.

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] Current Commands/Columns

2011-06-26 Thread H. Hodges
Is there some sort of guide to which commands are still used in ConTeXt or a
latest edition of the main manual? I downloaded a bunch of manuals 
from the main website to learn from, and some of the commands aren't 
affecting my output. I'm particularly confused about how to create 
and setup columns. I've read about using 

\setuplayout[columns=somenumber] with \layoutcolumnoffset{somecolumn}, 

\setupcolumns with \start, \stopcolumns, and \column, and

\setlayer[text][column=1]{some text} 
(which doesn't seem to work at all) in the style guide.

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

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

2011-06-26 Thread Philipp Gesang
Hi,

On 2011-06-26 21:06:45, H. Hodges wrote:
 Is there some sort of guide to which commands are still used in ConTeXt or a
 latest edition of the main manual? 

There’s a sort-of reference maintained by Wolfgang:

  https://bitbucket.org/wolfs/commands

in addition to the reference on the wiki:

  http://wiki.contextgarden.net/Category:Reference/en

and the latest manual:

  http://wiki.contextgarden.net/manual_being_revised

.

I downloaded a bunch of manuals 
 from the main website to learn from, and some of the commands aren't 
 affecting my output. I'm particularly confused about how to create 
 and setup columns. I've read about using 

Have you consulted the wiki page?

  http://wiki.contextgarden.net/Columns

 \setuplayout[columns=somenumber] with \layoutcolumnoffset{somecolumn}, 
 
 \setupcolumns with \start, \stopcolumns, and \column, and
 
 \setlayer[text][column=1]{some text} 
 (which doesn't seem to work at all) in the style guide.

Can you please provide a minimal example as to how you invoked
the above commands?

Regards, Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp2gr90myToJ.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2011-06-26 Thread H. Hodges
Philipp Gesang gesang at stud.uni-heidelberg.de writes:


 
 Regards, Philipp
 


Thanks! I got so bogged down in looking at three different manuals that I forgot
about the web command reference. What I have now looks better than it did before
so I'm going to try and hammer it out some more before I post again.



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Large Figure on Landscape Orientation

2011-06-26 Thread Kip Warner
Hey folks,

I'm having difficulty getting an external image to display on its own
page, with the page in landscape mode, and the image uniformly scaled as
large as can fit on that page.

Relevant portions of my environment file include...

\setuplayout
  [\c!location=\v!middle,
   \c!style=\ss,
   \c!backspace=2.5cm,
   \c!topspace=1.5cm,
   \c!width=16cm,
   \c!margindistance=.25cm,
   \c!margin=2.5cm,
   \c!height=\v!middle]

\definelayout
  [fullpage]
  [\c!backspace=0pt,
   \c!topspace=0pt,
   \c!width=\v!middle,
   \c!height=\v!middle,
   \c!header=0pt,
   \c!footer=0pt]

\definepapersize[main][A4][A4]
\definepapersize[diagram][A4,landscape][A4,landscape]

And the actual image in my component is here:

\page 
\setuppapersize[diagram]
\placefigure
[force][figure:MyImage]
{My image caption.}
{\externalfigure[MyImage][factor=max]}
\page
\setuppapersize[main]

The document is all in portrait mode, save the page with the figure
which is landscaped, as intended. But the image sits only occupying the
top left quarter of the page. I've tried changing factor from max to
broad and fit, and to no avail.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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
___

Re: [NTG-context] Sanskrit Devanagari characters

2011-06-26 Thread Kip Warner
On Sun, 2011-06-26 at 08:44 +0200, Mojca Miklavec wrote:
 On Sun, Jun 26, 2011 at 02:22, Kip Warner wrote:
  On Thu, 2011-06-23 at 07:58 +0200, Mojca Miklavec wrote:
  Or produce the whole document with ConTeXt + XeTeX :)
 
  I would, but getting ConTeXt alone up and running has taken weeks.
 
 If you have it up and running, you can use it now also for XeTeX.
 
 The only difference is that you have to run texexec --xtx filename
 as opposed to context filename.
 
  You'd think it would just be something really simple like
  \switchfont[devangari]
  तरीकिन
  \unswitchfont
 
 With ConTeXt+XeTeX it boils down to:
 
 % this is plain xetex font switch; see next example
 \font\devanagari=Devanagari MT:script=Deva
 \starttext
 {\devanagari तरीकिन}
 \stoptext
 
 Or the following one that could work in both XeTeX and LuaTeX with MKIV:
 
 \definefontfeature[devanagari][script=deva]
 \definefontsynonym[devanagari][name:Devanagari MT][features=devanagari]
 
 \starttext
 {\definedfont[devanagari] तरीकिन}
 \stoptext
 
 See attachments. XeTeX should work fine for you, the only question is
 whether you need any MKIV features or not. If you do need them, you
 could use Aditya's approach to insert snipets compiled with XeTeX (it
 will happen automatically), if you don't need them you just take XeTeX
 and you are done. The example that you sent also works fine in ConTeXt
 MKIV, but as soon as it comes to slightly more complex ligatures,
 LuaTeX won't render them properly without writing some additional
 support.
 
 Mojca

Thanks Mojca. The problem is it looks like XeTeX may not fully support
some of the features I need like mathematical characters and such yet.
Although I have no doubt it probably will eventually.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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] Trailing Space after \cldcontext

2011-06-26 Thread Kip Warner
Hey list,

Is there any way to remove the trailing space that appears to be
automatically inserted when \cldcontext output is captured? For
instance,

Bazaar revision \cldcontext{os.resultofbzr revno}.

Will show Bazaar revision 43 .

I've manually checked the output of the command to run and it doesn't
appear to add that space character itself, so I am wondering if
os.resultof is appending the extraneous space?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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
___

Re: [NTG-context] Large Figure on Landscape Orientation

2011-06-26 Thread Aditya Mahajan

On Sun, 26 Jun 2011, Kip Warner wrote:


I'm having difficulty getting an external image to display on its own
page, with the page in landscape mode, and the image uniformly scaled as
large as can fit on that page.

Relevant portions of my environment file include...

\setuplayout
 [\c!location=\v!middle,
  \c!style=\ss,
  \c!backspace=2.5cm,
  \c!topspace=1.5cm,
  \c!width=16cm,
  \c!margindistance=.25cm,
  \c!margin=2.5cm,
  \c!height=\v!middle]

\definelayout
 [fullpage]
 [\c!backspace=0pt,
  \c!topspace=0pt,
  \c!width=\v!middle,
  \c!height=\v!middle,
  \c!header=0pt,
  \c!footer=0pt]

\definepapersize[main][A4][A4]
\definepapersize[diagram][A4,landscape][A4,landscape]

And the actual image in my component is here:

\page
\setuppapersize[diagram]
\placefigure
   [force][figure:MyImage]
   {My image caption.}
   {\externalfigure[MyImage][factor=max]}
\page
\setuppapersize[main]

The document is all in portrait mode, save the page with the figure
which is landscaped, as intended. But the image sits only occupying the
top left quarter of the page. I've tried changing factor from max to
broad and fit, and to no avail.


(untested)

try

\externalfigure[...][width=\textwidth,height=\textheight,factor=max]

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

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


Re: [NTG-context] Trailing Space after \cldcontext

2011-06-26 Thread Peter Münster
On Mon, Jun 27 2011, Kip Warner wrote:

 Is there any way to remove the trailing space that appears to be
 automatically inserted when \cldcontext output is captured? For
 instance,

 Bazaar revision \cldcontext{os.resultofbzr revno}.

 Will show Bazaar revision 43 .

 I've manually checked the output of the command to run and it doesn't
 appear to add that space character itself, so I am wondering if
 os.resultof is appending the extraneous space?

It adds a newline, that's like a space. See this example:

\starttext
Bazaar revision \cldcontext{os.resultofecho 123}.

Bazaar revision \cldcontext{os.resultofecho -n 123}.

Bazaar revision \cldcontext{os.resultofdummy=`bzr revno`; echo -n $dummy}.

Bazaar revision \cldcontext{os.resultofbzr revno | tr -d '\\n'}.
\stoptext

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

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