[NTG-context] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Mari Voipio
Hello!

At the recent ConTeXt meeting Hans helped me update my ConTeXt
installation and explained about a new way of getting ConTeXt to work
with SciTe, it now uses external lexers and even spell-checking is now
possible for some languages.


The SciTe tips and tricks page will have to wait, but I made a new
wiki page for the installation instructions. This one isn't linked
anywhere yet and the page title should probably be changed before
that, but I leave that to wiki admins. My old Simple Windows
installation page should probably be unlinked or even deleted after
this new and better one has found its proper spot.

For now, the new Windows+SciTe page is at
http://wiki.contextgarden.net/Windows:_ConTeXt_Suite_with_editor_%28SciTe%29

I checked the instructions by installing the combo on a blank new
Win64-laptop (of the cheap and sleazy type, this keyboard drives me
nuts!) and it works. It is not exactly out-of-the-box, but nothing a
seasoned Windows user or a half-good admin couldn't manage. I assume
small .bat scripts could be written to automatize it even further, but
I'm no programmer, it is faster for me to do a bit of manual work
instead.


Hope this helps,

Mari
(who'll now proceed onwards to write a ConTeXt 101 suite for
Windows/Word dummies)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] beta: Huge log files

2011-10-19 Thread Andreas Schneider

On 14.10.2011 23:26, Hans Hagen wrote:

Hi,

A new beta has been uploaded. Nothing new apart from some experimental
code and a few bugfixes. I also uploaded

http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf

Files in that path will come and go.

Hans


Hi,

in the current beta I noticed that processing of my documents takes 
ages. While looking in the project directory I noticed that context left 
behind HUGE log files (500MB to 4GB, depending on the number of runs). 
The logs contain many verbose infos, as seen in this example:


---3--
loading  Code syntax highlighting (ver: 2011.09.03)
resolversmodules  loaded: 'syntax-groups'
(C:/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading  Syntax highlighting groups (ver: 2011.09.03)

\doifmode -\unprotect \dodoifmode

\unprotect -\pushcatcodetable \setcatcodetable \prtcatcodes

\pushcatcodetable -\advance \catcoderestorelevel \plusone 
\tracepushcatcodetable \expandafter \chardef \csname scct:\number 
\catcoderestorelevel \endcsname \currentcatcodetable


\tracepushcatcodetable -

\setcatcodetable #1-\catcodetable #1\the \everycatcodetable 
\tracesetcatcodetable

#1-\prtcatcodes

\tracesetcatcodetable -

\dodoifmode -\docheckformode \firstofoneargument \gobbleoneargument

\docheckformode #1#2#3-\protect \checkedmodefalse 
\rawprocesscommacommand [#3]\dodocheckformode \ifcheckedmode \@EA 
#1\else \@EA #2\fi

#1-\firstofoneargument
#2-\gobbleoneargument
#3-\s!mkii

\protect -\popcatcodetable 
---3--



Any ideas what's going wrong here?

Thanks in advance!

--
Best Regards,
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] beta: Huge log files

2011-10-19 Thread luigi scarso
On Wed, Oct 19, 2011 at 9:58 AM, Andreas Schneider ak...@gmx.de wrote:
 On 14.10.2011 23:26, Hans Hagen wrote:

 Hi,

 A new beta has been uploaded. Nothing new apart from some experimental
 code and a few bugfixes. I also uploaded

 http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf

 Files in that path will come and go.

 Hans

 Hi,

 in the current beta I noticed that processing of my documents takes ages.
 While looking in the project directory I noticed that context left behind
 HUGE log files (500MB to 4GB, depending on the number of runs). The logs
 contain many verbose infos, as seen in this example:

 ---3--
 loading          Code syntax highlighting (ver: 2011.09.03)
 resolvers        modules  loaded: 'syntax-groups'
 (C:/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
 loading          Syntax highlighting groups (ver: 2011.09.03)

 \doifmode -\unprotect \dodoifmode

 \unprotect -\pushcatcodetable \setcatcodetable \prtcatcodes

 \pushcatcodetable -\advance \catcoderestorelevel \plusone
 \tracepushcatcodetable \expandafter \chardef \csname scct:\number
 \catcoderestorelevel \endcsname \currentcatcodetable

 \tracepushcatcodetable -

 \setcatcodetable #1-\catcodetable #1\the \everycatcodetable
 \tracesetcatcodetable
 #1-\prtcatcodes

 \tracesetcatcodetable -

 \dodoifmode -\docheckformode \firstofoneargument \gobbleoneargument

 \docheckformode #1#2#3-\protect \checkedmodefalse \rawprocesscommacommand
 [#3]\dodocheckformode \ifcheckedmode \@EA #1\else \@EA #2\fi
 #1-\firstofoneargument
 #2-\gobbleoneargument
 #3-\s!mkii

 \protect -\popcatcodetable
 ---3--


 Any ideas what's going wrong here?

 Thanks in advance!
it seems that there is a \tracingall somewhere
I've had similar data when I put \tracingall as a first macro in context.mkiv
-- 
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] [m-chart] Focus feature

2011-10-19 Thread Marco
On 2011-10-18 Hans Hagen pra...@wxs.nl wrote:

 On 18-10-2011 21:32, Marco wrote:
 
  Another issue: According to the manual, “action” should be
  the default shape. However, when no shape is specified, an
  error is raised. Is it a bug?
 
 fixed in next beta

Thanks for the quick fix. It works now.

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] beta: Huge log files

2011-10-19 Thread Hans Hagen

On 19-10-2011 10:03, luigi scarso wrote:


Any ideas what's going wrong here?

Thanks in advance!

it seems that there is a \tracingall somewhere


indeed, so best grep for that on your source files

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] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Hans Hagen

On 19-10-2011 09:04, Mari Voipio wrote:

Hello!

At the recent ConTeXt meeting Hans helped me update my ConTeXt
installation and explained about a new way of getting ConTeXt to work
with SciTe, it now uses external lexers and even spell-checking is now
possible for some languages.


The SciTe tips and tricks page will have to wait, but I made a new
wiki page for the installation instructions. This one isn't linked
anywhere yet and the page title should probably be changed before
that, but I leave that to wiki admins. My old Simple Windows
installation page should probably be unlinked or even deleted after
this new and better one has found its proper spot.

For now, the new Windows+SciTe page is at
http://wiki.contextgarden.net/Windows:_ConTeXt_Suite_with_editor_%28SciTe%29

I checked the instructions by installing the combo on a blank new
Win64-laptop (of the cheap and sleazy type, this keyboard drives me
nuts!) and it works. It is not exactly out-of-the-box, but nothing a
seasoned Windows user or a half-good admin couldn't manage. I assume
small .bat scripts could be written to automatize it even further, but
I'm no programmer, it is faster for me to do a bit of manual work
instead.


there is now also a scite-for-osx but someone needs to compile the 
external lexer lua library as it's only available for windows and linux


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] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Thomas A. Schmitz

On 10/19/11 11:49 AM, Hans Hagen wrote:

there is now also a scite-for-osx but someone needs to compile the
external lexer lua library as it's only available for windows and linux

Hans


hey, that sounds good - but where can I find it? There's nothing about 
it on the scintilla page. Or do you mean running scite in X11 on OS X?


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] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Patrick Gundlach

Am 19.10.2011 um 11:52 schrieb Thomas A. Schmitz:

 On 10/19/11 11:49 AM, Hans Hagen wrote:
 there is now also a scite-for-osx but someone needs to compile the
 external lexer lua library as it's only available for windows and linux
 
 Hans
 
 hey, that sounds good - but where can I find it? There's nothing about it on 
 the scintilla page. Or do you mean running scite in X11 on OS X?

I've seen it in the app store a few days ago. Haven't tried it, though.

Patrick

___
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] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Thomas A. Schmitz

On 10/19/11 11:55 AM, Patrick Gundlach wrote:

I've seen it in the app store a few days ago. Haven't tried it, though.

Patrick


Ah thanks - and right you are! Comes with a price tag of 33.49 € though; 
not sure if it's worth that...


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

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


Re: [NTG-context] beta: Huge log files

2011-10-19 Thread Meer, H. van der
syst-ini.mkiv line 626: \tracingstats\plusone
The only one I find, but I skipped yhe mkii  files.

Hans van der Meer

On 19 okt. 2011, at 11:46, Hans Hagen wrote:

 On 19-10-2011 10:03, luigi scarso wrote:
 
 Any ideas what's going wrong here?
 
 Thanks in advance!
 it seems that there is a \tracingall somewhere
 
 indeed, so best grep for that on your source files
 
 Hans
 
 
 

___
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] For Windows users: ConTeXt + SciTe installation instructions updated

2011-10-19 Thread Hans Hagen

On 19-10-2011 11:57, Thomas A. Schmitz wrote:

On 10/19/11 11:55 AM, Patrick Gundlach wrote:

I've seen it in the app store a few days ago. Haven't tried it, though.

Patrick


Ah thanks - and right you are! Comes with a price tag of 33.49 € though;
not sure if it's worth that...


well, that's how things move forward on apples ... soon all has to go 
through the app store I guess ... yet another way to keep track of what 
you use and install ... more problematic is the fact that some day soon 
apps operate in their private space (there comes a warning with scite 
that at some point there can be problems/more hassle  with opening files 
due to this requirement)


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] beta: Huge log files

2011-10-19 Thread Hans Hagen

On 19-10-2011 12:31, Meer, H. van der wrote:

syst-ini.mkiv line 626: \tracingstats\plusone
The only one I find, but I skipped yhe mkii  files.


yes but that the command itself

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
___


[NTG-context] Metapost error

2011-10-19 Thread Lutz Haseloff
Hi Hans, Hi all,

with newest Context and luatex compiling following file:

\starttext
\startMPcode
draw externalfigure hacker.jpg xscaled 30mm yscaled 20mm ;
\stopMPcode
\stoptext

doesn't show the picture and gives an error message:


! Improper `addto'.
to be read again
   withpen
draw-...:also(EXPR0)else:doublepath(EXPR0)withpen
  .currentpen.fi._op_
to be read again
   ;
to be read again
   ;
* ...re hacker.jpg xscaled 30mm yscaled 20mm ;
   ;


metapost error: unknown, no error, terminal or log messages
metapost terminal: [1]


Thanks for any help

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

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


Re: [NTG-context] beta: Huge log files

2011-10-19 Thread Andreas Schneider

On 19.10.2011 12:35, Hans Hagen wrote:

On 19-10-2011 12:31, Meer, H. van der wrote:

syst-ini.mkiv line 626: \tracingstats\plusone
The only one I find, but I skipped yhe mkii files.


yes but that the command itself

Hans


It seems the VIM module is the culprit here. In t-syntax-groups.tex on 
line 14 is: \tracingmacros=1

Commenting that line fixed the problem.

@Aditya: can you re-release a fixed version please? :-)

Thanks!

--
Best Regards,
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
___


[NTG-context] Two bibmod questions: first initials and points after question marks, etc. in reference list

2011-10-19 Thread Renald Buter
Hello,

I have a reference list in a bibtex file. For example, an entry such as this 
one:

@article{hirsch_does_2007,
title = {Does the h index have predictive power?},
volume = {104},
shorttitle = {Does the h index have predictive power?},
number = {49},
journal = {Proceedings of the National Academy of Sciences},
author = {Hirsch, J.E.},
month = dec,
year = {2007},
pages = {19193--19198}
},

Currently, this entry appears in my list of references as follows:

 Hirsch, J. (2007). Does the h index have predictive power?. Proceedings of the 
National Academy of Sciences, 104(49), 19193–19198.

I have two questions:
 - Notice that only the first initial appears? How to get both/all initials?
 - There is a point after the question mark, which is ugly. The same would go 
for a title ending in a '!', btw. How to get rid of it?

To be complete, here are my relevant settings:

%%% Bibliography

\usemodule[bib]
\usemodule[bibltx]

\setupbibtex[database={bibliography},sort=author]
\setuppublications[
  alternative=apa, % the default
  refcommand=authoryears, % e.g. (Buter 2010)
  sorttype=cite, % in order of citing
  criterium=chapter, % per chapter
  numbering=yes, % number the references
]

\setuppublicationlist[
  authoretallimit=10,
  artauthoretallimit=10,
]

\setupcite[
  pubsep=;
]

The answer is probably straightforward, so I apologise in advance.

With kind regards,

Renald
___
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] Arranging: corruption of lists

2011-10-19 Thread Willi Egger
Hello,

I compiled a book with 353 pages...

What I did:

1. compile the boek without arranging. This gives a correct TOC, correct lists 
of figures and tables.
2. compile the boek once with arranging enabled. This results in correct 
arrangement, however all lists are corrupted, wrong sorting and the page 
references are all wrong.

I used: ConTeXt  ver: 2011.10.19 00:02 MKIV  fmt: 2011.10.19  int: 
english/english

Willi
___
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] transparency in latest beta (mlib)

2011-10-19 Thread Peter Rolf
Hi,

I just tested the latest beta (2011.10.19 00:02) and get some curious
results for transparent colors. For example


\nopdfcompression
\setupcolors[state=start] % mkii works
\startMPpage
fill unitsquare scaled 100 withcolor transparent(1,.5,red);
\stopMPpage



gives me an opaque(!) and very dark red (r=.12,a=1,t=1). Can someone
confirm this?


Regards, Peter



This is LuaTeX, Version beta-0.70.1-2011051907 (rev 4277)
___
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] Standardmakeup

2011-10-19 Thread Willi Egger
Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?

Willi
___
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] transparency in latest beta (mlib)

2011-10-19 Thread luigi scarso
On Wed, Oct 19, 2011 at 5:00 PM, Peter Rolf indi...@gmx.net wrote:
 Hi,

 I just tested the latest beta (2011.10.19 00:02) and get some curious
 results for transparent colors. For example


 \nopdfcompression
 \setupcolors[state=start] % mkii works
 \startMPpage
    fill unitsquare scaled 100 withcolor transparent(1,.5,red);
 \stopMPpage



 gives me an opaque(!) and very dark red (r=.12,a=1,t=1). Can someone
 confirm this?
confirmed

-- 
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] Metapost error

2011-10-19 Thread luigi scarso
On Wed, Oct 19, 2011 at 1:34 PM, Lutz Haseloff
lutz.hasel...@googlemail.com wrote:
 Hi Hans, Hi all,

 with newest Context and luatex compiling following file:

 \starttext
 \startMPcode
 draw externalfigure hacker.jpg xscaled 30mm yscaled 20mm ;
 \stopMPcode
 \stoptext

 doesn't show the picture and gives an error message:


 ! Improper `addto'.
 to be read again
                   withpen
 draw-...:also(EXPR0)else:doublepath(EXPR0)withpen
                                                  .currentpen.fi._op_
 to be read again
                   ;
 to be read again
                   ;
 * ...re hacker.jpg xscaled 30mm yscaled 20mm ;
                                                   ;


 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal: [1]


 Thanks for any help

 Lutz
hm, strange, it seems that
externalfigure is redefined
This is ok

\starttext
\startMPcode
def externalfigure primary filename =
if false :
rawtextext(\externalfigure[  filename  ])
else :
image (
addto currentpicture doublepath unitsquare
withprescript fg_name=  filename ;
)
% unitsquare
% withpen pencircle scaled 0
% withprescript fg_name=  filename
fi
enddef ;
draw externalfigure hacker.jpg xscaled 30mm yscaled 20mm ;
\stopMPcode
\stoptext

-- 
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] transparency in latest beta (mlib)

2011-10-19 Thread Hans Hagen

On 19-10-2011 17:00, Peter Rolf wrote:

Hi,

I just tested the latest beta (2011.10.19 00:02) and get some curious
results for transparent colors. For example


\nopdfcompression
\setupcolors[state=start] % mkii works
\startMPpage
 fill unitsquare scaled 100 withcolor transparent(1,.5,red);
\stopMPpage



gives me an opaque(!) and very dark red (r=.12,a=1,t=1). Can someone
confirm this?


in meta-ini.mkiv delete these lines:


\startMPextensions
if unknown context_tool: input mp-tool; fi;
if unknown context_spec: input mp-spec; fi;
if unknown context_grph: input mp-grph; fi;
\stopMPextensions

(as it load the mpii spec file which redefines transparency to use old 
trickery)



-
  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] Standardmakeup

2011-10-19 Thread Hans Hagen

On 19-10-2011 17:05, Willi Egger wrote:

Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?


afaik nothing has been changes in that code for a while

-
  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] transparency in latest beta (mlib)

2011-10-19 Thread Peter Rolf
Am 19.10.2011 18:21, schrieb Hans Hagen:
 On 19-10-2011 17:00, Peter Rolf wrote:
 Hi,

 I just tested the latest beta (2011.10.19 00:02) and get some curious
 results for transparent colors. For example


 \nopdfcompression
 \setupcolors[state=start] % mkii works
 \startMPpage
  fill unitsquare scaled 100 withcolor transparent(1,.5,red);
 \stopMPpage



 gives me an opaque(!) and very dark red (r=.12,a=1,t=1). Can someone
 confirm this?
 
 in meta-ini.mkiv delete these lines:
 
 
 \startMPextensions
 if unknown context_tool: input mp-tool; fi;
 if unknown context_spec: input mp-spec; fi;
 if unknown context_grph: input mp-grph; fi;
 \stopMPextensions
 
 (as it load the mpii spec file which redefines transparency to use old
 trickery)

I see. Thanks for the quick fix! :-)

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] Standardmakeup

2011-10-19 Thread Wolfgang Schuster

Am 19.10.2011 um 17:05 schrieb Willi Egger:

 Hi,
 
 When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
 vertically centered on the page. Normally 
 \setupmakeup[standard][top=,bottom=] would produce the text vertically 
 aligned normally. However in the beta of today  
 \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned 
 vertically centered. - Do I miss something?

Make a example, I can’t reproduce your mentioned results.

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] Standardmakeup

2011-10-19 Thread Hans Hagen

On 19-10-2011 19:54, Wolfgang Schuster wrote:


Am 19.10.2011 um 17:05 schrieb Willi Egger:


Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?


Make a example, I can’t reproduce your mentioned results.


FYI (and setups project): I just mkvi'd the code so we have chaining. 
Also it wil use a defined layout with the same name if defined.


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] Two bibmod questions: first initials and points after question marks, etc. in reference list

2011-10-19 Thread Pontus Lurcock
On Wed 19 Oct 2011, Renald Buter wrote:

   author = {Hirsch, J.E.},
 ...
  - Notice that only the first initial appears? How to get both/all initials?

Should be
author = {Hirsch, J. E.},
with a space between initials, otherwise bibtex thinks that Hirsch's
first name is ‘J.E.’.

 - There is a point after the question mark, which is ugly. The same
would go for a title ending in a '!', btw. How to get rid of it?

I don't know how to do this, and I fear that it may be non-trivial --
the first place I'd look is the documentation for
\setuppublicationlayout in bibmod-doc.pdf, but I don't know if it has
the capability to conditionally change the layout based on the content
of the fields.

 \usemodule[bibltx]

This is unnecessary, and as far as I know has no effect in recent
ConTeXt versions.

Pont
___
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] [m-chart] Focus feature

2011-10-19 Thread Otared Kavian

On 18 oct. 2011, at 23:49, Hans Hagen wrote:

 On 18-10-2011 21:32, Marco wrote:
 
 Another issue: According to the manual, “action” should be
 the default shape. However, when no shape is specified, an
 error is raised. Is it a bug?
 
 fixed in next beta
 
 also connection parsing is more tolerant now: + left - right in addition to 
 lr etc

Dear Hans,

The command 
\comment[r]{blabla} 
does not work anymore  in mkiv when using \usemodule[chart]: one gets an error 
message. (ConTeXt  version 2011.10.19 00:02). 
It seems that in the file 
m-chart.mkvi
there is a typo at line 277: one finds there
\do_FLOW_commment
instead of \do_FLOW_comment. Fixing this typo eliminates the error message but 
the comment does not show up.


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

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


Re: [NTG-context] Standardmakeup

2011-10-19 Thread Willi Egger
Hi,

Hans told me, that one needs to set before and after for the lines to nil. 
Indeed that solves the problem as long as you do not want to insert extra white 
space between the lines. The effect of moving down the lines occurs also with 
inserting an empty line.

\setupmakeup[standard][top=,bottom=]
\setuplines[before=,after=]

\starttext
\startstandardmakeup[doublesided=no,page=yes]
\strut
\godown[.25\textheight]
\startalignment[middle]
\startlines
{\bfd Der Titel}
\blank[line]
{\bf De Untertitel}
\stoplines
\stopalignment
\stopstandardmakeup
\stoptext 

Willi
On 19 Oct 2011, at 19:54, Wolfgang Schuster wrote:

 
 Am 19.10.2011 um 17:05 schrieb Willi Egger:
 
 Hi,
 
 When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
 vertically centered on the page. Normally 
 \setupmakeup[standard][top=,bottom=] would produce the text vertically 
 aligned normally. However in the beta of today  
 \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned 
 vertically centered. - Do I miss something?
 
 Make a example, I can’t reproduce your mentioned results.
 
 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
 ___

___
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] Metapost error

2011-10-19 Thread Lutz Haseloff
Works again with last nights beta, thanks.

2011/10/19 Lutz Haseloff lutz.hasel...@googlemail.com:
 Hi Hans, Hi all,

 with newest Context and luatex compiling following file:

 \starttext
 \startMPcode
 draw externalfigure hacker.jpg xscaled 30mm yscaled 20mm ;
 \stopMPcode
 \stoptext

 doesn't show the picture and gives an error message:


 ! Improper `addto'.
 to be read again
                   withpen
 draw-...:also(EXPR0)else:doublepath(EXPR0)withpen
                                                  .currentpen.fi._op_
 to be read again
                   ;
 to be read again
                   ;
 * ...re hacker.jpg xscaled 30mm yscaled 20mm ;
                                                   ;


 metapost         error: unknown, no error, terminal or log messages
 metapost         terminal: [1]


 Thanks for any help

 Lutz

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

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

Re: [NTG-context] beta: Huge log files

2011-10-19 Thread Aditya Mahajan

On Wed, 19 Oct 2011, Andreas Schneider wrote:

It seems the VIM module is the culprit here. In t-syntax-groups.tex on line 
14 is: \tracingmacros=1

Commenting that line fixed the problem.

@Aditya: can you re-release a fixed version please? :-)


Sorry about that :( I uploaded a fixed version.

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
___


[NTG-context] Problem with MPpage

2011-10-19 Thread Lutz Haseloff
Hi all,

next Metapost problem.

\starttext
\startMPpage
pickup pencircle scaled 2mm ;
draw (0,0)--(5cm,5cm) withcolor red;
\stopMPpage
\stoptext

The resulting pdf does not show the whole red line.
The size of the pdf is right but it is shifted to the upper right.

Thanks for any help

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