Re: [NTG-context] Rendering differences between PDF viewers

2012-04-17 Thread Martin Schröder
2012/4/18 Kip Warner :
> I stuck it in my environment file. I wonder if there is a safer way of
> doing this than via "inline asm", so to speak. Also, maybe for my
> benefit, and anybody else having the same problem, you might be able to
> explain what was happening?

Adobe Reader needs a special object in the page for it to handle
included pdfs or pngs with transparency correctly on the first page
(search for pdftex and "page groups".) pdfTeX tries to fix this
automagically for years (1.40.6, I think) by synthesizing this object,
but Hans rejects any automagic solution for LuaTeX (since it may
conflict with mechanisms of ConTeXt) and ConTeXt instead tries to do
the right thing. Here it obviously fails.

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

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

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 10:41 +0200, Taco Hoekwater wrote:
> That's weird. It is probably a bug in Hans' reimplementation of the
> bib module for mkiv. 

I've cc'd Hans in case he has something to offer on that.

> But it is fairly simple to work around, using a
> new macro definition like this:
> 
>\unexpanded\def\mycite{\dodoubleempty\domycite}
>\def\domycite[#1][#2]%
>  {\ifsecondargument
> \footnote{\cite[alternative=data,#1][#2]}%
>   \else
> \footnote{\cite[data][#1]}%
>   \fi}
> 
> Then \mycite[] also inserts the \footnote command automatically,
> and you can still use \mycite[extras={...}][].

That works awesome Taco. Thanks a lot. It doesn't matter that it can't
accept multiple keys easily and put on their own lines, since it
wouldn't make sense if you've got extra={} data to add anyways.

> Perhaps, but I have never seen it done like that, and it takes more
> than a bit of programming to make the bibliography module do that.
> Sorry, no time for that.

It's ok. You've done more than enough.

> No, you can't do that. Hans would have to write an extension for
> that, I do not even know where to start.

Understandable.

-- 
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] Including font with document source

2012-04-17 Thread Kip Warner
Hey list,

Is there a way to include a set of font files with a ConTeXt document's
source files such that a path to the directory containing the font can
be directly specified in the environment? I was thinking that if it were
possible to do this already, the simplefonts module might have a setup
for this.

The reason why I'd like to consider this is to make it easier on my
users who wish to build my document from source without them having to
manually download a font and figure out how to install it on their given
platform.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 12:48 +0200, Peter Rolf wrote:
> Hi Kip,
> 
> give it a try and add this to you document...
> 
> 
> \startluacode
> 
> backends= backendsor { }
> backends.codeinjections = backends.codeinjections or { }
> 
> function backends.codeinjections.rgbtransparencygroup()
> local d = lpdf.dictionary {
> S  = lpdf.constant("Transparency"),
> CS = lpdf.constant("DeviceRGB"),
> I  = true }
> lpdf.registerpagefinalizer(function()
> lpdf.addtopageattributes("Group",d) end)
> end
> 
> backends.codeinjections.rgbtransparencygroup()
> 
> \stopluacode
> 
> 
> This does not work, if you also use CMYK based graphics/pictures in your
> document (as this is done document wide).

You know Peter, I must admit. ConTeXt has made me rather cynical at
times. I don't know how many times I've tried a snippet of this or that,
only to have it do exactly what I hadn't intended. Having said that,
every now and then I am blown away when something I never expected to
actually get working, gets working. Thank you so much, that worked
beautifully. Both Evince (poppler based) and AR look identical now.

I stuck it in my environment file. I wonder if there is a safer way of
doing this than via "inline asm", so to speak. Also, maybe for my
benefit, and anybody else having the same problem, you might be able to
explain what was happening?

-- 
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] Comma separating multiple footnotes

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 22:13 +0200, Hans Hagen wrote:
> ok, will be added

Hey Hans. Should it be 

\setupnote[footnote][textseparator=…], or

\setupnotation[footnote][textseparator=…] ?

Thanks for accepting the patch.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 11:53 +0200, Peter Rolf wrote:
> I might be wrong, but is this color shift not just a 'page group'
> problem, caused by the transparent PNG?

I don't know, but even the image on the upper right aside, the rest of
the page's colours are off as well.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 09:31 +0200, luigi scarso wrote:
> Every pdf for general use should be checked at least with the latest
> AdobeReader under windows, which is currently one of the best pdf
> viewer.

I think a better approach would be to consider Adobe's PDF specification
as reference material, but not implementations of it that we cannot
audit that may or may not have done so correctly.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 10:54 +0200, Henning Hraban Ramm wrote:
> Hi Kip,
> 
> the attached screenshot is from Acrobat Pro 10.1.3 on OSX 10.7.
> Looks good to me. I guess your color management setup is wrong.
> 
> Greetlings, Hraban

Hey Hrabab. Your looks much better than AR's, but it still doesn't look
the same as on my end. It looks much brighter.

I wonder if there is some additional information renderer's need, such
as a value for gamma correction or a colour profile that I need to stuff
in my environment file to make it work?

-- 
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] Notepad++ configuration

2012-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد



On Tue, 17 Apr 2012 13:49:18 -0600, Luiz Borges   
wrote:



Hello Hans,
There is a page on the wiki
(http://wiki.contextgarden.net/Notepad%2B%2B) but it was modified 3
years ago and targets a 2007 version of Notepad++ (4.2).


Actually 2009: http://wiki.contextgarden.net/File:Npp_ConTeXt-Uni.zip

But it's about time for an update, which I will aim to do by this Friday.

Everybody: If there is anybody who can compile a C++ plugin on this list  
there are some trivial tweaks we can do to make this even more useful.  
Just let me know!


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shiʿi Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

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

2012-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد



Hi Jaroslav,

On Tue, 17 Apr 2012 13:43:26 -0600, Hans Hagen  wrote:



On 17-4-2012 21:33, Luiz Borges wrote:

Hi Jaroslav,
Notepad++ also supports TeX out the box, but I don't know if it can be
configured to provide autocompletion and which Run Commands I need to
create (and how). SciTE and Notepad++ shares the same base
(Scintilla), but Notepad++ is far more polished.


Idris is the notepad ++ expert (isn't there a wiki page on it?) One  
problem I have with notepad ++ is that it's not cross platform while  
scite runs on win and lin (and on osx but there it somehow lacks lpeg  
lexer support).


I'm happy to help you with N++. Even last week I searched to see if  
something better came along, but nothing yet ... I've implemented some  
more (experimental) context features to make n++ even more useful, like  
right-click tagging of commonly used commands etc. Everything else you  
mentioned is already there.


Right now I'm at work but write me privately and let's chat tomorrow if  
you are available.


WRT Hans' important point: N++ has global bidi support, and is much more  
configurable by non-developers like myself. I simply have not found  
anything x-platform that comes close.


OTOH, I tried to keep most of the ConTeXt shortcuts the same as Hans'  
Scite configuration. so users can jump from one to the other with ease.


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shiʿi Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

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

2012-04-17 Thread Hans Hagen

On 13-4-2012 15:58, Wolfgang Schuster wrote:


I wrote a patch for the footnote code where you can set a symbol between the 
numbers with \setupnote[footnote][textseparator=…] but it’s decision to include 
it.


ok, will be added


-
  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] Notepad++ configuration

2012-04-17 Thread John Devereux
Luiz Borges  writes:

> Can anybody tell me how to correctly configure Notepad++ to use
> ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
> to be too unpolished. One advantage that I can see of Scite over
> Notepad++ is that it has some autocompletion, besides that I think the
> interface and its "tools" are terrible.
>
> Also, is there anyother noteworthy editor that works nicely with
> standalone context? Preferably with spell-check and auto-completion.

There is also texworks.

-- 

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

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

2012-04-17 Thread Luiz Borges
Hello Hans,
There is a page on the wiki
(http://wiki.contextgarden.net/Notepad%2B%2B) but it was modified 3
years ago and targets a 2007 version of Notepad++ (4.2).

Luiz Borges


2012/4/17 Hans Hagen :
> On 17-4-2012 21:33, Luiz Borges wrote:
>>
>> Hi Jaroslav,
>> Notepad++ also supports TeX out the box, but I don't know if it can be
>> configured to provide autocompletion and which Run Commands I need to
>> create (and how). SciTE and Notepad++ shares the same base
>> (Scintilla), but Notepad++ is far more polished.
>
>
> Idris is the notepad ++ expert (isn't there a wiki page on it?) One problem
> I have with notepad ++ is that it's not cross platform while scite runs on
> win and lin (and on osx but there it somehow lacks lpeg lexer support).
>
> 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
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2012-04-17 Thread Jaroslav Hajtmar

Hi Luiz,
The PSPad can run many external programs (. BAT. EXE). You can set 
several compilers for a given file type (ie LaTeX compilation, LuaTEX, 
ConTeXt, XeTEX, ...) and i autocompletations. This can be set quite 
easily (three or four click on setup menu ...)..


Jaroslav


Dne 17.4.2012 21:33, Luiz Borges napsal(a):

Hi Jaroslav,
Notepad++ also supports TeX out the box, but I don't know if it can be
configured to provide autocompletion and which Run Commands I need to
create (and how). SciTE and Notepad++ shares the same base
(Scintilla), but Notepad++ is far more polished.

Regards,
Luiz Borges

2012/4/17 Jaroslav Hajtmar:
   

Hi Luiz
I recommend PSPad (http://www.pspad.com/en/) Try it.
I can not say that directly support ConTeXt, but TeX quite understand.
SciTE seems flawless, but I'm so used to PSPad that I can leave it :-).

Jaroslav Hajtmar


Dne 17.4.2012 20:31, Luiz Borges napsal(a):
 

Can anybody tell me how to correctly configure Notepad++ to use
ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
to be too unpolished. One advantage that I can see of Scite over
Notepad++ is that it has some autocompletion, besides that I think the
interface and its "tools" are terrible.

Also, is there anyother noteworthy editor that works nicely with
standalone context? Preferably with spell-check and auto-completion.

Regards,
Luiz Borges

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

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


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

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

2012-04-17 Thread Hans Hagen

On 17-4-2012 21:33, Luiz Borges wrote:

Hi Jaroslav,
Notepad++ also supports TeX out the box, but I don't know if it can be
configured to provide autocompletion and which Run Commands I need to
create (and how). SciTE and Notepad++ shares the same base
(Scintilla), but Notepad++ is far more polished.


Idris is the notepad ++ expert (isn't there a wiki page on it?) One 
problem I have with notepad ++ is that it's not cross platform while 
scite runs on win and lin (and on osx but there it somehow lacks lpeg 
lexer support).


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] Notepad++ configuration

2012-04-17 Thread Peter Münster
On Tue, Apr 17 2012, Luiz Borges wrote:

> Also, is there anyother noteworthy editor that works nicely with
> standalone context? Preferably with spell-check and auto-completion.

Emacs.

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


Re: [NTG-context] Notepad++ configuration

2012-04-17 Thread Luiz Borges
Hi Jaroslav,
Notepad++ also supports TeX out the box, but I don't know if it can be
configured to provide autocompletion and which Run Commands I need to
create (and how). SciTE and Notepad++ shares the same base
(Scintilla), but Notepad++ is far more polished.

Regards,
Luiz Borges

2012/4/17 Jaroslav Hajtmar :
> Hi Luiz
> I recommend PSPad (http://www.pspad.com/en/) Try it.
> I can not say that directly support ConTeXt, but TeX quite understand.
> SciTE seems flawless, but I'm so used to PSPad that I can leave it :-).
>
> Jaroslav Hajtmar
>
>
> Dne 17.4.2012 20:31, Luiz Borges napsal(a):
>>
>> Can anybody tell me how to correctly configure Notepad++ to use
>> ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
>> to be too unpolished. One advantage that I can see of Scite over
>> Notepad++ is that it has some autocompletion, besides that I think the
>> interface and its "tools" are terrible.
>>
>> Also, is there anyother noteworthy editor that works nicely with
>> standalone context? Preferably with spell-check and auto-completion.
>>
>> Regards,
>> Luiz Borges
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/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
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 09:12 +0200, Alan BRASLAU wrote:
> With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
> and desires of Adobe (and its paying market); the other pdf viewers are open 
> source.

Exactly.

-- 
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] Notepad++ configuration

2012-04-17 Thread Luiz Borges Gomide do Nascimento
Can anybody tell me how to correctly configure Notepad++ to use
ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
to be too unpolished. One advantage that I can see of Scite over
Notepad++ is that it has some autocompletion, besides that I think the
interface and its "tools" are terrible.

Also, is there anyother noteworthy editor that works nicely with
standalone context? Preferably with spell-check and auto-completion.

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

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

2012-04-17 Thread Jaroslav Hajtmar

Hi Luiz
I recommend PSPad (http://www.pspad.com/en/) Try it.
I can not say that directly support ConTeXt, but TeX quite understand.
SciTE seems flawless, but I'm so used to PSPad that I can leave it :-).

Jaroslav Hajtmar


Dne 17.4.2012 20:31, Luiz Borges napsal(a):

Can anybody tell me how to correctly configure Notepad++ to use
ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
to be too unpolished. One advantage that I can see of Scite over
Notepad++ is that it has some autocompletion, besides that I think the
interface and its "tools" are terrible.

Also, is there anyother noteworthy editor that works nicely with
standalone context? Preferably with spell-check and auto-completion.

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

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


[NTG-context] Notepad++ configuration

2012-04-17 Thread Luiz Borges
Can anybody tell me how to correctly configure Notepad++ to use
ConTeXt? I'm just starting with ConTeXt (and Tex BTW) and Scite seems
to be too unpolished. One advantage that I can see of Scite over
Notepad++ is that it has some autocompletion, besides that I think the
interface and its "tools" are terrible.

Also, is there anyother noteworthy editor that works nicely with
standalone context? Preferably with spell-check and auto-completion.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] How to get \structurenumber and \structuretitle by Lua?

2012-04-17 Thread Hans Hagen

On 17-4-2012 17:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

values of number and title of the current (sub...)section can be
received by \structurenumber and \structuretitle commands.

Is there a way how to get these values by Lua?


structures.sections.getnumber(2)

gives the number at level 2


-
  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] How to get \structurenumber and \structuretitle by Lua?

2012-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

values of number and title of the current (sub...)section can be received by 
\structurenumber and \structuretitle commands.

Is there a way how to get these values by Lua?

Suppose:


\starttext
  \section{Sec 1}
  % Now "\structurenumber" yields "1" and "\structuretitle" gives "Sec 1"

  % How to get "1" and "Sec 1" from Lua?

  \startluacode
print(0, context["structuretitle"])
print(1, context["structuretitle"]())
print(2, context.getvalue("structuretitle"))
print(3, context.constants("structuretitle"))
print(4, context.variables("structuretitle"))
  \stopluacode
\stoptext


My attempts don't give any useful value (or some of them are even erroneous).

I have no idea how to get the texts "1" and "Sec 1".

Any hints would be appreciated...

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Project structure, (simple)font woes

2012-04-17 Thread Willi Egger

On 16 Apr 2012, at 13:27, luigi scarso wrote:

> On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
>  wrote:
> 
>> BTW: I can give a talk about typescripts and font loading at the next 
>> conference when there is interest in this.
> +1
+1
This is for sure a good idea!

Willi
> make a separate thread for this
> -- 
> 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
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] doublesided PDF - first and last page singlesided

2012-04-17 Thread Wolfgang Schuster

Am 17.04.2012 um 13:02 schrieb Jan Heinen:

> Hello,
> 
> someone, who understood what I want to achieve?
> 
> http://www.imagebanana.com/view/shoayek5/onlinebook.jpg
> 
> Or more questions?

That’s not possible with the normal imposition mechanism because you can’t set 
a different paper size for the first/last page. What you can do is to use a 
second document where include each page as described by Aditya.

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] doublesided PDF - first and last page singlesided

2012-04-17 Thread Jan Heinen

Hello,

someone, who understood what I want to achieve?

http://www.imagebanana.com/view/shoayek5/onlinebook.jpg

Or more questions?

Regards
Janis


- Copy -
Re: [NTG-context] doublesided PDF - first and last page 
singlesided


Jan Heinen
Mon, 16 Apr 2012 04:29:20 -0700

Hello,

some were guessing, what I want to achieve.

I made a screenshot for you:

http://www.imagebanana.com/view/shoayek5/onlinebook.jpg


It ist the online-version of a printed book. For printing it 
was ok to have one bookpage on one sheet of paper. For the 
online-version I want to have two bookpages on one sheet of 
paper


but the coverpage should be alone on one sheet of paper.

The online-version is a PDF ... no html.

"sheet of paper" is of course only virtualy meant ... it is 
online


The difficulty is that there a bunch of (hyperlinked) 
cross-references in the book ... so people can use the pdf 
interactively.


Without this I could put the pages manualy together.

Hope that now you know what I want to do.
And I am hoping very much for a solution ...

Regards
Jannis

Regards
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: "One-Click" from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Rendering differences between PDF viewers

2012-04-17 Thread Peter Rolf
Am 17.04.2012 12:12, schrieb Hans Hagen:
> On 17-4-2012 11:53, Peter Rolf wrote:
>> Am 17.04.2012 08:57, schrieb Kip Warner:
>>> On Tue, 2012-04-17 at 08:54 +0200, Hans Hagen wrote:
 (AR might have flaws but so do all other viewers I've seen.)
>>>
>>> I don't doubt it, but something that salient is pretty bad though. The
>>> whole document looks just awful.
>>>
 Is there a small example file?
>>>
>>> Sure.
>>>
>>>
>> I might be wrong, but is this color shift not just a 'page group'
>> problem, caused by the transparent PNG?
> 
> I think so.
> 
> Hans
> 

Hi Kip,

give it a try and add this to you document...


\startluacode

backends= backendsor { }
backends.codeinjections = backends.codeinjections or { }

function backends.codeinjections.rgbtransparencygroup()
local d = lpdf.dictionary {
S  = lpdf.constant("Transparency"),
CS = lpdf.constant("DeviceRGB"),
I  = true }
lpdf.registerpagefinalizer(function()
lpdf.addtopageattributes("Group",d) end)
end

backends.codeinjections.rgbtransparencygroup()

\stopluacode


This does not work, if you also use CMYK based graphics/pictures in your
document (as this is done document wide).


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
___


Re: [NTG-context] Rendering differences between PDF viewers

2012-04-17 Thread Hans Hagen

On 17-4-2012 11:53, Peter Rolf wrote:

Am 17.04.2012 08:57, schrieb Kip Warner:

On Tue, 2012-04-17 at 08:54 +0200, Hans Hagen wrote:

(AR might have flaws but so do all other viewers I've seen.)


I don't doubt it, but something that salient is pretty bad though. The
whole document looks just awful.


Is there a small example file?


Sure.



I might be wrong, but is this color shift not just a 'page group'
problem, caused by the transparent PNG?


I think so.

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] Rendering differences between PDF viewers

2012-04-17 Thread Peter Rolf
Am 17.04.2012 08:57, schrieb Kip Warner:
> On Tue, 2012-04-17 at 08:54 +0200, Hans Hagen wrote:
>> (AR might have flaws but so do all other viewers I've seen.)
> 
> I don't doubt it, but something that salient is pretty bad though. The
> whole document looks just awful.
> 
>> Is there a small example file?
> 
> Sure. 
> 
> 
I might be wrong, but is this color shift not just a 'page group'
problem, caused by the transparent PNG?

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
___


Re: [NTG-context] Rendering differences between PDF viewers

2012-04-17 Thread luigi scarso
On Tue, Apr 17, 2012 at 9:42 AM, Hans Hagen  wrote:
> I use acrobat (prof) as reference viewer from the editor and okular (kde
> windows version) on a second screen as handy constantly open one; I tried a
> few more but stuck to these two.
For MFLua I need to show 2 pages with thousand of MP points and  look
on how the curves of the glyph join together.
With ctrl-r and magnification of 6400% AdobeReader is the only one
that is able to show the pdf without need to take an italian coffe at
every refresh.
When I need to typeset black&white  or not-critical-colors document,
emacs+xpdf+ two_rows_of_workspace_in_gnome is ok --- no need another
monitor: the bottom row has the editor, the top rows has the viewer.
Maybe a wide 16:9 screen and the latest Emacs (which can render a pdf
into a buffer) are also ok: just split an emacs windows vertically in
two, left side is the editor, right side the viewer.  I use the shell
buffer, so another split is needed.
Moving between buffers is not agile but the advantage is to minimize
the use of the mouse.
Anyway  with a laptop it's not a problem to have another monitor, and
I use this configuration if I'm under Windows,especially with the
sumatra pdf or the ReaderX.

For all the rest (critical colors, interactive features, flash into
pdf..) the latest AcrobatProfessional is a must.



-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Hans Hagen

On 17-4-2012 09:31, luigi scarso wrote:

On Tue, Apr 17, 2012 at 9:12 AM, Alan BRASLAU  wrote:

On Tue, 17 Apr 2012 08:54:03 +0200
Hans Hagen  wrote:


(AR might have flaws but so do all other viewers I've seen.)


With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
and desires of Adobe (and its paying market); the other pdf viewers are open 
source.

AdobeReader  *is* the reference pdf-viewer.
Every pdf for general use should be checked at least with the latest
AdobeReader under windows, which is currently one of the best pdf
viewer.
For the (pdf/lua)TeX community, all the viewer based on xpdf/poppler
are also important, because (pdf/lua)TeX
have a consistent part of code from them, so a bug in xpdf/poppler can
be also a bug in (pdf/lua)Tex.
Other viewers are useful (mupdf which is now 1.0rc1 ,  sumatra pdf for
windows, just to list a fews)
but not as the previous ones.


I use acrobat (prof) as reference viewer from the editor and okular (kde 
windows version) on a second screen as handy constantly open one; I 
tried a few more but stuck to these two.


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] Rendering differences between PDF viewers

2012-04-17 Thread luigi scarso
On Tue, Apr 17, 2012 at 9:12 AM, Alan BRASLAU  wrote:
> On Tue, 17 Apr 2012 08:54:03 +0200
> Hans Hagen  wrote:
>
>> (AR might have flaws but so do all other viewers I've seen.)
>
> With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
> and desires of Adobe (and its paying market); the other pdf viewers are open 
> source.
AdobeReader  *is* the reference pdf-viewer.
Every pdf for general use should be checked at least with the latest
AdobeReader under windows, which is currently one of the best pdf
viewer.
For the (pdf/lua)TeX community, all the viewer based on xpdf/poppler
are also important, because (pdf/lua)TeX
have a consistent part of code from them, so a bug in xpdf/poppler can
be also a bug in (pdf/lua)Tex.
Other viewers are useful (mupdf which is now 1.0rc1 ,  sumatra pdf for
windows, just to list a fews)
but not as the previous ones.




-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Alan BRASLAU
On Tue, 17 Apr 2012 08:54:03 +0200
Hans Hagen  wrote:

> (AR might have flaws but so do all other viewers I've seen.)

With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
and desires of Adobe (and its paying market); the other pdf viewers are open 
source.

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
___