Re: [NTG-context] [tabulate] colored background

2012-09-28 Thread Philipp Gesang
···date: 2012-09-27, Thursday···from: Aditya Mahajan···

 On Fri, 28 Sep 2012, Philipp Gesang wrote:
 
 Hi all,
 
 the background mechanism of tabulations is quite simplistic: it
 extends only to the first line of a cell irrespective of its
 length. Example:
 
 ···
 \starttext
 \starttabulate[|p|r|]
  \CM [red] \input knuth \NC was said by The Don \NC \AR
 \stoptabulate
 \stoptext
 ···
 
 Is there a way to get the whole cell covered? (Textbackgrounds
 only color the area where text is, not the entire cell.)
 
 The TABLE macros are more flexible than tabulate.

Yes, I know that, but I cannot rule out that I will be needing
page breaks inside paragraphs. (Besides, the wiki doesn’t mention
this behavior and afair I’m partially responsible for that
omission ;-))

Philipp


 
 (Untested)
 
 \startsetups table:setup
 \setupTABLE[frame=off]
 \setupTABLE[r][1][background=color, color=red, width=0.5\hsize]
 \stopsetups
 
 \startTABLE[setups={table:setup}]
 \NC \input knuth \NC was said by the Don \NC \NR
 \stopTABLE
 
 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
 ___


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


pgpxfLx9KDUYb.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] verbatim text: \type, \tex and co.

2012-09-28 Thread Hans Hagen

On 27-9-2012 22:49, Alan Braslau wrote:

Hello,

Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)

Furthermore, I suppose that typesetting Greek characters verbatim
depends also upon which \tt font is being used.


\setupbodyfont[dejavu]

\starttext

\starttyping
$L_{α+β}$
\stoptyping

\stoptext

-
  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] Problem with ConTeXt (MkIV), Hebrew and ligatures

2012-09-28 Thread Hans Hagen

On 27-9-2012 21:27, Simo Ojala wrote:

This is a problem originally posted in TeX/StackExchange. However, since
I have not had any luck in finding a solution I post it here too. I am
confident that somebody here should know the answer.


http://tex.stackexchange.com/questions/73970/problem-with-context-mkiv-hebrew-and-ligatures


Since I last played with the latest ConTeXt MkIV, there has been
introduced this new feature. It now seems to combine Hebrew characters
automatically when possible to ligatures. So for example. If I have a
word with following two characters:

U+05D5 (HEBREW LETTER VAV)
U+05BC (HEBREW POINT DAGESH OR MAPIQ)

ConTeXt will combine these to:

U+FB35 (HEBREW LETTER VAV WITH DAGESH)

However, I would need to disable this feature for a number of reasons.
For example, this breaks my little database query, because the query key
is changed before(?) macro gets it.

So if somebody would know how to turn this off and maybe also that what
has changed.


It depends on the font ... normally you can disable this by *not* using 
the mark and mkmk features


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] Referring to multiple elements

2012-09-28 Thread Marco Patzer
2012-09-28 Sietse Brouwer sbbrou...@gmail.com:

Hi Sietse,

  \in{figure}[alpha,beta,gamma]
 
  This outputs “figure 1”. What I'd like to have is “figure 1-3”.
 
 The attached quasi-module seems to do it! On my computer, at least. (I
 call it 'quasi' because it is really nothing more than code in a file
 of its own.No configurability whatsoever, except to the extent that I
 tried to comment well, and split things up into functions.) I'd have
 written it so that it properly identifies runs like '1.2.1, 1.2.2,
 1.2.3', too, but I can't find a function that will turn reference
 strings into such a prefixed strings.
 
 I hope it does what you want! Let me know if you want/need any
 alterations, or discover bugs.

Thanks a lot for that. I'd adjust the interface, so that it matches
the behaviour of \in:

\def\inrange
  {\dodoublegroupempty\doinrange}

\def\doinrange#left#right#dummy[#label]
  {\iffirstargument
 {#left }%%
   \fi
   \ctxlua{userdata.inwithranges(#label)}%%
   \ifsecondargument
 {#right}%%
   \fi}

Then you can write:

See \inrange{figures} [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]
See \inrange{figures}{TT} [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]
See \inrange  [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]

Maybe worth mentioning: You need the additional module
`showtable.lua` from http://article.gmane.org/gmane.comp.tex.context/78336


Marco

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] verbatim text: \type, \tex and co.

2012-09-28 Thread Alan BRASLAU
On Fri, 28 Sep 2012 10:43:48 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 27-9-2012 22:49, Alan Braslau wrote:
  Hello,
 
  Can someone indicate how to typeset
  $L_{α+β}$
  as verbatim text?
  (\arg{} doesn't help here...)
 
  Furthermore, I suppose that typesetting Greek characters verbatim
  depends also upon which \tt font is being used.  
 
 \setupbodyfont[dejavu]
 
 \starttext
 
 \starttyping
 $L_{α+β}$
 \stoptyping
 
 \stoptext

Also, \type{$L_{α+β}$}

I thought that I saw that somewhere before! :)

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

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

2012-09-28 Thread Sietse Brouwer
Hi Marco,

Marco wrote:
 Maybe worth mentioning: You need the additional module
 `showtable.lua` from http://article.gmane.org/gmane.comp.tex.context/78336

Oops, that was a debugging statement. Removed.

 Thanks a lot for that. I'd adjust the interface, so that it matches
 the behaviour of \in:

 See \inrange{figures} [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]
 See \inrange{figures}{TT} [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]
 See \inrange  [fig:a,fig:c,fig:d,fig:e,fig:g,fig:x,fig:h]

Done. New version uploaded to Github:
https://github.com/sietse/context-inrange

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

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

2012-09-28 Thread Andre Caldas
Dear Sietse,

Thanks a lot!!!

 Finally found it, after lots of trial-and-erroring through
 likely-looking table names in file-job.lua: the stack of input files
 is kept in resolvers.inputstack.

I don't program any lua. But I was taking a look at file-job.lua
myself. I have a lot to learn!! :-)


 Assuming (absolute path of invocation
 dir) + (path of file relative to invocation dir) = the desired path,

I don't mind this assumption.
Actually, I don't mind having a path relative to the currdir.


 the following should work.

 \cldcontext{
 environment.runpath .. '/'  ..
 file.pathpart(resolvers.inputstack[#resolvers.inputstack])
 }

I will try this now.


 You may or may not want to parse out any ./ and ../ components.

No, I don't need that.

 (If you do: helpful filename manipulation functions (such as
 file.pathpart, indeed) may be found in l-file.lua.)

Thanks for the tip. Might be useful someday.


 Hope this helps,

It does! :-)
Although, I think there should be a luatex command for this. That
is, something not related to ConTeXt.


Thank you,
André Caldas.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \define a command with square-bracket arguments

2012-09-28 Thread Sietse Brouwer
 Question for the others: What's the difference of \dodoubleargument
 and \dodoubleempty? I expected \dodoubleargument to throw an error
 since the arguments are supposed to be mandatory.

 In MkIV Hans didn’t add this check and in MkII he disabled is for command
 with three or less argument but even then you get only a message in the log
 when your command has no argument (i.e. a command with four argument
 complains only when it has zero argument but doesn’t complain when it
 has one to four arguments).

Wikified: http://wiki.contextgarden.net/Command/dodoubleempty
(I've been meaning to document that command for a while now. As a
complement to the existing explanation at
http://wiki.contextgarden.net/Commands_with_optional_arguments, I mean.)

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

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

2012-09-28 Thread Hans Hagen

On 28-9-2012 14:34, Andre Caldas wrote:


Although, I think there should be a luatex command for this. That
is, something not related to ConTeXt.


lfs.currentdir()

-
  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] \define a command with square-bracket arguments

2012-09-28 Thread Hans Hagen

On 28-9-2012 14:41, Sietse Brouwer wrote:

Question for the others: What's the difference of \dodoubleargument
and \dodoubleempty? I expected \dodoubleargument to throw an error
since the arguments are supposed to be mandatory.


In MkIV Hans didn’t add this check and in MkII he disabled is for command
with three or less argument but even then you get only a message in the log
when your command has no argument (i.e. a command with four argument
complains only when it has zero argument but doesn’t complain when it
has one to four arguments).


Wikified: http://wiki.contextgarden.net/Command/dodoubleempty
(I've been meaning to document that command for a while now. As a
complement to the existing explanation at
http://wiki.contextgarden.net/Commands_with_optional_arguments, I mean.)


Originally the 'argument' variant reported a message but when the code 
was cleaned up that went away ... actually it means that we can say:


\let\dosingleargument\dosingleempty
\let\dodoubleargument\dodoubleempty
\let\dotripleargument\dotripleempty
\let\doquadrupleargument \doquadrupleempty
\let\doquintupleargument \doquintupleempty
\let\dosixtupleargument  \dosixtupleempty
\let\doseventupleargument\doseventupleempty

in syst-aux.mkiv, which is somewhat more efficient

There is still checking in the {} variants.

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] Current source directory.

2012-09-28 Thread Andre Caldas
Hi!

 the following should work.

 \cldcontext{
 environment.runpath .. '/'  ..
 file.pathpart(resolvers.inputstack[#resolvers.inputstack])
 }

Sorry, to ask such a dumb question...
- Do I need to include file-job.lua somehow?


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

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

2012-09-28 Thread Sietse Brouwer
Hi André,

 Sorry, to ask such a dumb question...
 - Do I need to include file-job.lua somehow?

No need to include it, it's part of the ConTeXt core.
I only mentioned the filename in case people wanted to see what else
was in that file; the code snippet should Just Work. Is it working for
you?

Regards,
Sietse

On Fri, Sep 28, 2012 at 9:17 PM, Andre Caldas andre.em.cal...@gmail.com wrote:
 Hi!

 the following should work.

 \cldcontext{
 environment.runpath .. '/'  ..
 file.pathpart(resolvers.inputstack[#resolvers.inputstack])
 }

 Sorry, to ask such a dumb question...
 - Do I need to include file-job.lua somehow?


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

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

2012-09-28 Thread Andre Caldas
 - Do I need to include file-job.lua somehow?

 No need to include it, it's part of the ConTeXt core.
 [...]
 Is it working for you?

No. I get:
! LuaTeX error main ctx instance:1: attempt to get length of field
'inputstack' (a nil value)
stack traceback:
main ctx instance:1: in main chunk.

system   tex  error on line 6 in file
products/topologia_geral.tex: LuaTeX error  ...

[*snip]

\cldcontext ...\directlua \zerocount {context(#1)}

l.6 }


By the way, context --version gives:
mtx-context | ConTeXt Process Management 0.52
mtx-context |
mtx-context | main context file:
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context | current version: 2012.05.30 11:26


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 module - master thesis title not displayed in placepublications

2012-09-28 Thread Xan

Hi,

I have this:

@mastersthesis{meva-memoria,
author = Bordoy, Xavier,
title = Algunes contribucions a l'estudi del problema de la paraula per 
a grups,
school = Departament de Ciències Matemàtiques i Informàtica. 
Universitat de les Illes Balears,

year = 2009,
address = Palma de Mallorca,
note = Available in \from[bib:memoria-master] (in catalan)
}

and when I put

\placepublications[criterium=text]

I only recive:

X. Bordoy, Master's thesis, Departament Univeritat... Palma de 
Mallorca (2009). Avaliable in  (catalan).


but not title? Why? Can I display title in that?


Thanks in advance,
Xan.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2012-09-28 Thread Sietse Brouwer
Hi André,

My mistake: I tested the code I gave you in \startluacode, but then
for the e-mail I wrapped it in \cldcontext. This is not the same: in
\startluacode # has its literal value, but in \cldcontext it is
interpreted as part of a macro parameter like #1.
So to get the length of a table t inside \cldcontext, I should have
used the idiom table.getn(t) instead of #t.

These two versions both work, and I actually tested them this time:

\startluacode
 context(environment.runpath .. '/'  ..
 file.pathpart(resolvers.inputstack[#resolvers.inputstack])
 )
\stopluacode

\cldcontext{
 environment.runpath .. '/'  ..
 file.pathpart(resolvers.inputstack[table.getn(resolvers.inputstack)])
}

Sorry about that mistake.
Cheers,
Sietse
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2012-09-28 Thread Andre Caldas
 My mistake: I tested the code I gave you in \startluacode, but then
 for the e-mail I wrapped it in \cldcontext.

I had tested it using startluacode, also. :-(


 These two versions both work, and I actually tested them this time:

 \startluacode
  context(environment.runpath .. '/'  ..
  file.pathpart(resolvers.inputstack[#resolvers.inputstack])
  )
 \stopluacode

I get this:
! LuaTeX error main ctx instance:3: attempt to get length of field
'inputstack' (a nil value)
stack traceback:
main ctx instance:3: in main chunk.

system   tex  error on line 7 in file
products/topologia_geral.tex: LuaTeX error  ...
[...]
})ted text ...resolvers.inputstack])

\luat_start_lua_code_indeed ...ua \zerocount {#1}}

l.7 \stopluacode


 \cldcontext{
  environment.runpath .. '/'  ..
  file.pathpart(resolvers.inputstack[table.getn(resolvers.inputstack)])
 }

And this:
! LuaTeX error main ctx instance:1: bad argument #1 to 'getn' (table
expected, got nil)
stack traceback:
[C]: in function 'getn'
main ctx instance:1: in main chunk.

system   tex  error on line 6 in file
products/topologia_geral.tex: LuaTeX error  ...

[...]

\cldcontext ...\directlua \zerocount {context(#1)}

l.6 }


 Sorry about that mistake.

No need to apologize! :-)
It seems that resolvers.inputstack is not defined in my system. Where
is it defined in yours? file-res.lua?


Thank you very very much, :-)
André Caldas.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2012-09-28 Thread Hans Hagen

On 28-9-2012 23:56, Andre Caldas wrote:

My mistake: I tested the code I gave you in \startluacode, but then
for the e-mail I wrapped it in \cldcontext.


I had tested it using startluacode, also. :-(



These two versions both work, and I actually tested them this time:

\startluacode
  context(environment.runpath .. '/'  ..
  file.pathpart(resolvers.inputstack[#resolvers.inputstack])
  )
\stopluacode


I get this:
! LuaTeX error main ctx instance:3: attempt to get length of field
'inputstack' (a nil value)


are you sure that you use the same version?

btw, keep in mind that you can never really be sure in what file you are 
because of (1) caching and (2) delayed expansion (e.g. macros) or (3) 
info can come from elsewhere


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] External Figure inside MPpage

2012-09-28 Thread Troy Henderson

 \startMPpage
 draw externalfigure mill scaled 4.75in ;
 \stopMPpage


What if mill is a multi-page PDF and I want to include a particular page?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 ConTeXt (MkIV), Hebrew and ligatures

2012-09-28 Thread Simo Ojala

Hans Hagen pra...@wxs.nl

On 09/28/2012 11:46 AM, Hans Hagen wrote:

On 27-9-2012 21:27, Simo Ojala wrote:

This is a problem originally posted in TeX/StackExchange. However, since
I have not had any luck in finding a solution I post it here too. I am
confident that somebody here should know the answer.


http://tex.stackexchange.com/questions/73970/problem-with-context-mkiv-hebrew-and-ligatures



Since I last played with the latest ConTeXt MkIV, there has been
introduced this new feature. It now seems to combine Hebrew characters
automatically when possible to ligatures. So for example. If I have a
word with following two characters:

U+05D5 (HEBREW LETTER VAV)
U+05BC (HEBREW POINT DAGESH OR MAPIQ)

ConTeXt will combine these to:

U+FB35 (HEBREW LETTER VAV WITH DAGESH)

However, I would need to disable this feature for a number of reasons.
For example, this breaks my little database query, because the query key
is changed before(?) macro gets it.

So if somebody would know how to turn this off and maybe also that what
has changed.


It depends on the font ... normally you can disable this by *not* using
the mark and mkmk features

Hans



Ok, I have now tried turning off all kinds of features without luck. So, 
I tried putting together minimal test case. I suspect that there should 
be done something more than just turn off some font features. However, 
my ConTeXt skills are very limited so I can be wrong.


The goal is that the word passed from ConTeXt file remains as it is 
written and gives unicode characters U+5e1, U+5d5, U+5bc and U+5e1. This 
is what already happens when the word is in the lua file.


Simo

PS: In case this matters. My ConTeXt MkIV version is 2012.09.23 12:40. 
It should be the latest for Ubuntu 12.04 LTS Precise Pangolin that is in 
the Adam Reviczky's PPA.



%% testcase.tex

\definefontfeature[hebrew][arabic][script=hebr]
\definefont[dejavusans][name:dejavusans*hebrew at 26pt]
\setupdirections[bidi=global]

\starttext
\dejavusans

\def\Macro#1{\directlua{
dofile(resolvers.findfile(testcase.lua))
userdata.testfunction(#1)
}}

\Macro{סוּס}

\blank[1cm]however, we can still color these independently\blank[0.5cm]

\color[red]{ס}\color[green]{ו}\color[blue]{ּ}\color[yellow]{ס}

\stoptext


-- testcase.lua

userdata = userdata or {}

function userdata.testfunction(word)

tex.sprint(\\blank[1cm]word passed by macro\\blank[0.5cm])

for i = 1, unicode.utf8.len(word) do
		tex.sprint(U+ .. string.format(%x,unicode.utf8.byte(word,i)) .. : 
 .. unicode.utf8.sub(word,i,i) .. \\par )

end

tex.sprint(\\blank[1cm]word written in lua file\\blank[0.5cm])

word = סוּס

for i = 1, unicode.utf8.len(word) do
		tex.sprint(U+ .. string.format(%x,unicode.utf8.byte(word,i)) .. : 
 .. unicode.utf8.sub(word,i,i) .. \\par )

end
end

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

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

2012-09-28 Thread Aditya Mahajan

On Fri, 28 Sep 2012, Troy Henderson wrote:



\startMPpage
draw externalfigure mill scaled 4.75in ;
\stopMPpage



What if mill is a multi-page PDF and I want to include a particular page?


Untested:

draw textext(\externalfigure[mill][page=1]) scaled ... ;

should work.

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] External Figure inside MPpage

2012-09-28 Thread Troy Henderson

 draw textext(\externalfigure[mill][page=1]) scaled ... ;


Awesome.  Thanks.

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

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

2012-09-28 Thread Troy Henderson
I have a list of numbers,

2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376

that I would like to use as exceptions in a \dostepwiserecurse loop.  That
is, within the loop if \recurselevel is NOT EQUAL to either of these
numbers, then I want to do something -- otherwise, I simply increment
\recurselevel.

I would appreciate an example of how to do this.

Thanks,

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

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

2012-09-28 Thread Mica Semrick
I may be dumb... but I can't figure out how to change the mirror.
minimals.contextgarden.net seems to be hard-coded in a number of places.
Help please?

Best,
Mica

On Thu, Sep 27, 2012 at 1:05 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Wed, Sep 26, 2012 at 11:39 PM, Hans Hagen wrote:
  Hi,
 
  Is minimals.contextgarden.net offline?

 Until we figure out what exactly is wrong one can use the mirror:

 rsync://metatex.org/minimals/
 http://minimals.metatex.org/

 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

 ___

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

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

2012-09-28 Thread Rogers, Michael K

On Sep 28, 2012, at 8:31 PM, Troy Henderson thend...@gmail.com
 wrote:

 I have a list of numbers,

 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376

 that I would like to use as exceptions in a \dostepwiserecurse loop.  That 
 is, within the loop if \recurselevel is NOT EQUAL to either of these numbers, 
 then I want to do something -- otherwise, I simply increment \recurselevel.

 I would appreciate an example of how to do this.

 Thanks,

 Troy Henderson

\starttext
\dorecurse{400}
{\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 
354, 372, 376}
{\recurselevel, }}
\stoptext


Michael




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2012-09-28 Thread Troy Henderson
 \starttext
 \dorecurse{400}
 {\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316,
 318, 354, 372, 376}
 {\recurselevel, }}
 \stoptext


Thanks.  That worked perfectly!

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

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