Re: [NTG-context] MnSymbol in ConText

2011-02-21 Thread Taco Hoekwater

On 02/20/2011 09:01 PM, Florian Wobbe wrote:



--
Florian Wobbe
Alfred Wegener Institute for Polar and Marine Research
Division of Geosciences, Section of Geophysics
Postfach 120161
27515 Bremerhaven

On Feb 20, 2011, at 20:38 , Khaled Hosny wrote:


On Sun, Feb 20, 2011 at 08:30:53PM +0100, Florian Wobbe wrote:

Is there any way to use MnSymbol in context?


It is, but somebody needs to write support for it. Both for MKII and MKIV.


The problem is, that luatex refuses to load any of the MnSymbol*.otf
font files available from CTAN with an error message. I don't know
what is broken with the fonts.


Reporting the errors would help finding what is wrong.


Hi Khaled,

luatax says:
  )texmf/fonts/opentype/public/mnsymbol/MnSymbol12.otf
!LuaTeX error (file texmf/fonts/opentype/public/mnsymbol/MnSymbol12.otf): 
Invalid character.



It is the CFF parser in the backend that gives up on the font. I have no 
idea why that is, but a (re-)generate fonts in fontforge fixed

it for me.

Best wishes,
Taco
___
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] some equivalent of latex beamer \itemuncover@1?

2011-02-21 Thread Mojca Miklavec
On Mon, Feb 21, 2011 at 08:48, Taco Hoekwater wrote:
 On 02/21/2011 12:57 AM, Hans Hagen wrote:

 It would be great if \StartSteps, \FlushStep, ... written by Hans
 would also optionally support creating multiple slides for viewers
 other than Acrobat.

 Not in the short term, i might give it a try some day but I hate
 mechanisms that interfere with others in unpredictable ways as do such
 multiple page solutions (references, spacing etc) unless one sticks to
 predictable structure and wants to patch core macros for this kind of
 stuff which is not what I like. Also, I've never seen anyone do a
 presentation with another viewer.

 Ehm ... isn't that what s-pre-50 does already?

Interesting.

Thanks a lot for pointing it out.

(It does lack some less important features like only put this on
slide nr. 2, but the current functionality already covers most of
one's needs.)

Thanks again,
Mojca

PS: I won't blame myself for not knowing the file was there if not
even Hans remembered :) :) :)
___
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] Switchting between betas

2011-02-21 Thread Hans Hagen

On 21-2-2011 8:27, Cedric Mauclair wrote:


Nice! I believe one has to take care of its PATH on his own or does
the context script takes care of that too?


either use the 'setuptex' script in the tex tree that you want to use, 
or add the bin path of the tree you want


-
  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] some equivalent of latex beamer \itemuncover@1?

2011-02-21 Thread Hans Hagen

On 21-2-2011 8:48, Taco Hoekwater wrote:

On 02/21/2011 12:57 AM, Hans Hagen wrote:


It would be great if \StartSteps, \FlushStep, ... written by Hans
would also optionally support creating multiple slides for viewers
other than Acrobat.


Not in the short term, i might give it a try some day but I hate
mechanisms that interfere with others in unpredictable ways as do such
multiple page solutions (references, spacing etc) unless one sticks to
predictable structure and wants to patch core macros for this kind of
stuff which is not what I like. Also, I've never seen anyone do a
presentation with another viewer.


Ehm ... isn't that what s-pre-50 does already?


indeed, and that's about as far as was reasonable (haven't used it in 
years)


-
  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] some equivalent of latex beamer \itemuncover@1?

2011-02-21 Thread Hans Hagen

On 21-2-2011 8:00, Thomas A. Schmitz wrote:


On Feb 21, 2011, at 12:57 AM, Hans Hagen wrote:


Not in the short term, i might give it a try some day but I hate mechanisms 
that interfere with others in unpredictable ways as do such multiple page 
solutions (references, spacing etc) unless one sticks to predictable structure 
and wants to patch core macros for this kind of stuff which is not what I like. 
Also, I've never seen anyone do a presentation with another viewer.

Hans

(who wonders why no one adds simple javascript support to the other pdf 
viewers, a reasonable subset would do)


I do presentations with evince, okular, or Apple's Preview when I'm on OS X. I avoid 
Adobe Reader as much as I can because it's incredibly bloated (more so at every new 
version), insists on taking over my operating system (almost impossible to keep it from 
checking for updates, helpfully repairing components and features that I have 
explicitly disabled), still doesn't autorefresh, and has uglier font rendering, 
especially in linux. So I don't like javascript solutions at all.

For the problem at hand, maybe I'm naive, but here's my thoughts: would it be 
very hard to implement an alternative with layers? All we need for stepwise 
stuff to work would be
- reset userpagenumber to current value
- collect everything on slide in layer X, add layer X + 1 on top of this.

Or is this too simplistic?


there are presentation styles that do that indeed and it works as long 
as you don't rely on multipass trickery like automatically generated 
tocs and so (some can be intercepted, some not) .. but it's long ago 
that i used them so there might be clever tricks at work there


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] a bug in the scrp-cjk.lua

2011-02-21 Thread Hans Hagen

On 21-2-2011 2:00, Li Yanrui (李延瑞) wrote:

Hi Hans,

The 'get_attribute' function is not be replaced with 'has_attribute'
in the second 'process' function of 'hanzi' section in the
scrp-cjk.lua.


ok, adapted

-
  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] Switchting between betas

2011-02-21 Thread zs
On Mon, 21 Feb 2011 09:11:10 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 21-2-2011 8:27, Cedric Mauclair wrote:
 
  Nice! I believe one has to take care of its PATH on his own or does
  the context script takes care of that too?
 
 either use the 'setuptex' script in the tex tree that you want to use, 
 or add the bin path of the tree you want
 

..only if somebody else would like to use my style:
I use following two aliases in my .bashrc to switch between two context 
installations.

alias ctx1='unset `env | grep TEX | sed s/=.*$//`; . 
/opt/context1/tex/setuptex;  export PS1=# ; export 
OSFONTDIR=/usr/share/fonts '

alias ctx2='unset `env | grep TEX | sed s/=.*$//`; . 
/opt/context2/tex/setuptex;  export PS1=# ; export 
OSFONTDIR=/usr/share/fonts '

I open console in directory with tex source files and run ctx1 or ctx2 command.
It's comfortable, flexible and easy IMO.

Zdenek
___
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] textcommand=\uppercase in setuphead is propagated to lower level settings

2011-02-21 Thread Hans Hagen

On 21-2-2011 12:04, Dinh Tran wrote:

Hello.

I apply textcommand=\uppercase to a section heading but it is propagated to
subheadings.  Is there a good reason for this.


all subsection inherit from their parent


Some other notes in this test design:
1) textcommand=\uppercase does not work with luatex engine


sure, it's a low level tex command and never to be used in unpredictable 
situations (think of an \framed[frame=on]{...} being uppercased when you 
actually want ... to be)


also, it's unreliable for daily use which is why we have \WORD etc


2) textcommand=\WORD works in the luatex engine, but the propagation of
uppercase to subheadings is also encountered.


indeed, inheritance


3) numbercolor=red only works with luatex.


mkii (for pdftex/xetex) will not be patched so mkiv is the (future) 
reference in this



I submit the pdf's also.


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] Compilation problem with latest beta

2011-02-21 Thread Hans Hagen

On 21-2-2011 1:16, Michael Goerz wrote:


It seems that the \Lower macro is no longer available. Is there a
suitable replacement?


it's not coming back as it was part of the TaBlE package and not part of 
context core code


it look like you want {\blank{\bf ...}} behaviour


-
  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] some equivalent of latex beamer \itemuncover@1?

2011-02-21 Thread Marco
On 2011-02-21 Hans Hagen pra...@wxs.nl wrote:

 Also, I've never seen anyone do a presentation with another viewer.

I do. I never use Acrobat Reader.

 (who wonders why no one adds simple javascript support to the other pdf 
 viewers, a reasonable subset would do)

I don't think adding JavaScript is a feasible solution. It's very unlikely to
be added to all PDF readers. I favour the multi page solution, since it works
in all readers without problems.

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] metapost fill between outlines

2011-02-21 Thread Reviczky, Adam
The only letter (g) I have left in the logo has two spaces that I want to cut 
out.
I can't make a single path out of it so that it doesn't go through the entire 
letter, so what to do in this case?

Here's the example:
%%%
\starttext
\framed[background=color,backgroundcolor=red,height=fit,width=fit]{
\startMPcode
path gb[],gf[],gc[];

gb1 := (100.023003,46.691399)..controls (100.023003,47.015598) and 
(100.348000,47.203098)..(100.969002,47.203098)
..controls (101.859001,47.203098) and 
(101.859001,46.855499)..(102.371002,46.855499)
..controls (102.695000,46.855499) and 
(102.991997,47.015598)..(102.991997,47.582001)
..controls (102.991997,48.066399) and 
(102.530998,48.230499)..(102.101997,48.230499)
..controls (101.616997,48.230499) and 
(100.996002,48.093800)..(100.348000,47.664101)
..controls (100.188004,47.527302) and 
(99.781197,47.339802)..(99.539101,47.50)
..controls (99.027298,47.851601) and 
(98.570297,48.093800)..(97.355499,48.093800)
..controls (96.144501,48.093800) and 
(94.363297,47.367199)..(93.230499,45.828098)
..controls (92.421898,44.695301) and 
(92.261703,43.886700)..(92.261703,43.078098)
..controls (92.261703,42.269501) and 
(92.585899,41.675800)..(92.828102,41.355499)
..controls (92.878899,41.273399) and 
(92.906197,41.218800)..(92.906197,41.136700)
..controls (92.906197,40.949200) and 
(92.664101,40.812500)..(92.261703,40.707001)
..controls (91.531197,40.464802) and 
(90.320297,39.761700)..(90.320297,38.523399)
..controls (90.320297,37.714802) and 
(90.964798,36.933601)..(91.695297,36.445301)
..controls (91.695297,36.445301) and 
(90.210899,36.042999)..(89.023399,35.394501)
..controls (88.109398,34.882801) and 
(87.082001,34.101601)..(87.082001,32.968800)
..controls (87.082001,31.675800) and 
(88.191399,29.570299)..(92.746101,29.570299)
..controls (95.414101,29.570299) and 
(97.085899,30.539101)..(97.734398,31.269501)
..controls (98.218803,31.835899) and 
(98.296898,32.484402)..(98.296898,32.886700)
..controls (98.296898,34.343800) and 
(96.683601,35.718800)..(94.902298,36.687500)
..controls (93.769501,37.335899) and 
(92.097702,38.117199)..(92.097702,39.277302)
..controls (92.097702,39.574200) and 
(92.179703,39.898399)..(92.503899,40.085899)
..controls (92.718803,40.25) and 
(93.070297,40.328098)..(93.445297,40.328098)
..controls (93.957001,40.328098) and 
(94.605499,40.167999)..(95.066399,40.167999)
..controls (96.519501,40.167999) and 
(98.488297,40.652302)..(99.703102,43.242199)
..controls (100.023003,43.968800) and 
(100.160004,44.695301)..(100.160004,45.316399)
..controls (100.160004,46.125000) and 
(100.023003,46.316399)..(100.023003,46.691399)
--cycle;
drawdot (100.023003,46.691399) withcolor blue withpen pencircle scaled 2pt;

gf2 := (92.960899,30.351601)..controls (89.968803,30.351601) and 
(89.078102,32.078098)..(89.078102,32.941399)
..controls (89.078102,33.75) and 
(89.402298,34.261700)..(90.210899,34.828098)
..controls (90.777298,35.234402) and 
(91.613297,35.636700)..(92.261703,35.878899)
..controls (92.988297,35.558601) and 
(94.093803,34.910198)..(94.445297,34.585899)
..controls (96.062500,33.453098) and 
(96.386703,32.808601)..(96.386703,32.242199)
..controls (96.386703,30.703100) and 
(94.093803,30.351601)..(92.960899,30.351601)
--cycle;
drawdot (92.960899,30.351601) withcolor green withpen pencircle scaled 2pt;

gf1 := (98.867203,46.367199)..controls (98.867203,45.585899) and 
(98.570297,44.535198)..(97.894501,43.402302)
..controls (96.628899,41.355499) and 
(95.628899,40.949200)..(94.769501,40.949200)
..controls (94.039101,40.949200) and 
(93.714798,41.542999)..(93.714798,42.406200)
..controls (93.714798,43.160198) and 
(94.039101,44.132801)..(94.605499,45.019501)
..controls (95.468803,46.394501) and 
(96.683601,47.527302)..(97.761703,47.527302)
..controls (98.488297,47.527302) and 
(98.867203,47.175800)..(98.867203,46.367199)
--cycle;
drawdot (98.867203,46.367199) withcolor yellow withpen pencircle scaled 2pt;

gc1 := gb1 -- gf1 -- cycle;
gc2 := gc1 -- gf2 -- cycle;
fill gc2;
\stopMPcode
}
\stoptext
%%%

How do I get rid of the crossing line?

Adam
___
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 fill between outlines

2011-02-21 Thread Hongwen Qiu

On 02/21/2011 05:09 PM, Reviczky, Adam wrote:

The only letter (g) I have left in the logo has two spaces that I want to cut 
out.
I can't make a single path out of it so that it doesn't go through the entire 
letter, so what to do in this case?
Can't you construct four outlines instead of three, so that you can 
construct two paths for filling. Hope you understand what I mean.

___
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 fill between outlines

2011-02-21 Thread Mojca Miklavec
On Mon, Feb 21, 2011 at 10:09, Reviczky, Adam adam.revic...@kcl.ac.uk wrote:
 The only letter (g) I have left in the logo has two spaces that I want to 
 cut out.
 I can't make a single path out of it so that it doesn't go through the entire 
 letter, so what to do in this case?

Just as a thought ... what you currently do with metapost at the
moment is a bit of cheating to overcome lack of a feature in metapost
- there is still an infinitely thin line between segments and a dumb
renderer might display artifacts.

If I wanted to draw a logo (very important graphic that will be used
more often) and if I had control points, I would consider creating a
raw postscript (EPS) graphics (filling with even-odd rule), convert it
to PDF when needed and then use it inside ConTeXt documents (or even
inside metapost graphics) as-is.

You could also manually post-process the graphic generated by metapost
(removing the link between the inner and outer part of letters and
properly fill).

But if the current approach is fine with you ... just use it.

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

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


Re: [NTG-context] Compilation problem with latest beta

2011-02-21 Thread Michael Goerz
On Mon, Feb 21, 2011 at 9:49 AM, Hans Hagen pra...@wxs.nl wrote:
 On 21-2-2011 1:16, Michael Goerz wrote:

 It seems that the \Lower macro is no longer available. Is there a
 suitable replacement?

 it's not coming back as it was part of the TaBlE package and not part of
 context core code

 it look like you want {\blank{\bf ...}} behaviour
Great, compilation now works with the latest beta.

Thanks so much!
Michael
___
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 fill between outlines

2011-02-21 Thread Reviczky, Adam
 Just as a thought ... what you currently do with metapost at the
 moment is a bit of cheating to overcome lack of a feature in metapost
 - there is still an infinitely thin line between segments and a dumb
 renderer might display artifacts.
Yes, I am aware of this, just wanted to hear something from those who know 
metapost better.

 If I wanted to draw a logo (very important graphic that will be used
 more often) and if I had control points, I would consider creating a
 raw postscript (EPS) graphics (filling with even-odd rule), convert it
 to PDF when needed and then use it inside ConTeXt documents (or even
 inside metapost graphics) as-is.
I'm doing something like that already, I was just curious to which extend I 
could use metapost for this.

 You could also manually post-process the graphic generated by metapost
 (removing the link between the inner and outer part of letters and
 properly fill).
 But if the current approach is fine with you ... just use it.
I think I'm happy with this solution. (Also, I was looking at the graphictext 
function, isn't that also doing similar things for filling out letters?)

 Mojca
Thanks for explaining this!

Adam
___
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] Unexpected indentation

2011-02-21 Thread Richard Lennox
I am trying to understand how context is working.  

Would anyone like to comment on why the following does not work as expected?
hfil\break and \crlf do not indent after the first line (but 
\startnarrower works):

\starttext
\setupwhitespace[3.5mm]

\hskip 2cm 9/99 Addr Line 1 Street\hfil\break
\hskip 2cm Addr Line 2\hfil\break
\hskip 2cm City\hfil\break

\hskip 2cm 9/99 Addr Line 1 Street\crlf
\hskip 2cm Addr Line 2\crlf
\hskip 2cm City\crlf

\startnarrower[2*left]
\startalignment[right]
   2/99 addr line 1\hfil\break
   addr line 2\hfil\break
   addr City
\stopalignment
\stopnarrower
\stoptext


[snip]
 



  
___
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] Unexpected indentation

2011-02-21 Thread Wolfgang Schuster

Am 21.02.2011 um 11:07 schrieb Richard Lennox:

 I am trying to understand how context is working.  
 
 Would anyone like to comment on why the following does not work as expected?
 hfil\break and \crlf do not indent after the first line (but 
 \startnarrower works):

The narrower environment use \leftskip and \rightskip which affects all lines.

 \hskip 2cm 9/99 Addr Line 1 Street\hfil\break
 \hskip 2cm Addr Line 2\hfil\break
 \hskip 2cm City\hfil\break

\definehspace[address][2cm]

\starttext
\startpacked
\hspace[address]...\par
\hspace[address]...\par
\stoppacked
\stoptext

Wolfgang

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

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


Re: [NTG-context] including pdf

2011-02-21 Thread Andrea Valle

Hi Aditya,

thanks for your reply and sorry for my late reply, I've been kidnapped  
by another work...

I'd go with the layer solution.
But I don't know to insert a layer for each pdf page.
Could you please provide some hints?

Thanks a lot

Best

-a-



On Feb 2, 2011, at 5:37 PM, Aditya Mahajan wrote:


On Wed, 2 Feb 2011, Andrea Valle wrote:


Ok, let's reformulate partially

If I have:

\setuppapersize[A4]

\setuppagenumbering[location=left, state=start]

\starttext

\copypages[pdf/Test.pdf][scale=1000]

\stoptext

Looking at the resulting pdf, it seems that the original pdf is  
mirrored (apart from half a line at the bottom of the paper,  
trunked).
Ok. But there are not page numbers (I guess they are coverd by the  
imported pdf)


You can add a layer on top and set page numbers in the layer.


Now, so sum up my problem is:
- given a certain number of A4 pdf
- how to collect them in a unique pdf
- with successive page numbers
- and with refs, so that I can automagically create a TOC


For a quick solution, you can try the cut-n-paste module[1]. It does  
not create a TOC, so you will have to do that by hand (or a helper  
macro).


\usemodule[cut-n-paste]

\newcount\colledpages

\definecutNpaste[collection] 
[n=1,text={\setups[page]},location=(OverlayWidth/2,1cm)]


\startsetups[page]
 \doglobal\increment{\collectedpages}%
 \collectedpages
\stopsetups

\starttext

\processcollection[name=paper1.pdf]
\processcollection[name=paper2.pdf]
\processcollection[name=paper3.pdf]

\stoptext

The location of the text is controled by the location key. This can  
be any valid metapost coordinate.


The module is actually meant for convert two column pdfs to one  
column pdfs (for reading on an ebook device), so it an overkill for  
just merging pages. You can however control how many pages to  
insert, (using start and stop keys), and draw a grid on the page  
(grid=yes), and trim the page (more complicated).


But, as I said earlier, the simplest way is to just insert the page  
number in a layer.


Aditya

[1]:https://github.com/adityam/cut-n-paste

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



--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- http://www.flickr.com/photos/vanderaalle/
--  http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it
--
 This is a very complicated case, Maude. You know, a lotta ins, a  
lotta outs, a lotta what-have-yous.

(Jeffrey 'The Dude' Lebowski)



___
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] itemize in smaller font size

2011-02-21 Thread Andreas Harder
Hi all,

consider the following example. I there a proper way to hook \tfxx in an 
itemize environment?

\starttext  \showframe
  \startitemize[n,packed][before=\tfxx,distance=5em]
\dorecurse{12}{\item test}
  \stopitemize
  Desired output is:
  \tfxx
  \startitemize[n,packed][distance=5em]
\dorecurse{12}{\item test}
  \stopitemize
\stoptext

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] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Johannes Kuester
Did anyone on this list know (or did anyone notice yet) that the print
version of the much-discussed dissertation by Karl-Theodor zu Guttenberg
was (allegedly) typeset in ConTeXt?

See
http://de.wikipedia.org/wiki/Verfassung_und_Verfassungsvertrag._Konstitutionelle_Entwicklungsstufen_in_den_USA_und_der_EU
(in section Äußere Form).

-- 
Johannes Kuester
typoma

mailto:j...@typoma.com
http://www.typoma.com
___
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] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Arthur Reutenauer
 Did anyone on this list know (or did anyone notice yet) that the print
 version of the much-discussed dissertation by Karl-Theodor zu Guttenberg
 was (allegedly) typeset in ConTeXt?

  From my German colleague: We should test if he masters ConTeXt.  If
he doesn't...

Arthur

P-S: Whether that particular piece of information is true or not, it
will bring some attention to ConTeXt!  The ConTeXt community should try
and take advantage of that :-)  I wonder how the author of the Wikipedia
article knows that, though.  Presumably, someone got hold of a PDF
version of the dissertation?
___
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] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Matthias Weber
The dissertation was typeset (for publication) by  werksatz • Büro für 
Typografie und Buchgestaltung. Berlin,
and my guess is that they are using ConTeXt.

Matthias


On Feb 21, 2011, at 12:43 PM, Arthur Reutenauer wrote:

 Did anyone on this list know (or did anyone notice yet) that the print
 version of the much-discussed dissertation by Karl-Theodor zu Guttenberg
 was (allegedly) typeset in ConTeXt?
 
  From my German colleague: We should test if he masters ConTeXt.  If
 he doesn't...
 
   Arthur
 
 P-S: Whether that particular piece of information is true or not, it
 will bring some attention to ConTeXt!  The ConTeXt community should try
 and take advantage of that :-)  I wonder how the author of the Wikipedia
 article knows that, though.  Presumably, someone got hold of a PDF
 version of the dissertation?
 ___
 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] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Johannes Kuester
The Google Docs version --
https://docs.google.com/viewer?a=vpid=explorerchrome=truesrcid=0BxWgi9nKtBIUNGNmYWM3ZDgtMjUwYy00YjZkLWExZWQtNDY1MDZmMTQ3MGI3hl=en
-- does not look like ConTeXt. But I think this is not the typeset and
published version.

I suppose by the Satz: entry on p. 5, the Wikipedia author guessed
that it was typeset in ConTeXt.

And yes, it will definitely bring some attention to ConTeXt.
When you look at Links auf diese Seite (i.e. What links here),
the article on the dissertation is the first untypical / unexpected link:
http://de.wikipedia.org/wiki/Spezial:Linkliste/ConTeXt

Johannes

On 02/21/2011 06:43 PM, Arthur Reutenauer wrote:
 Did anyone on this list know (or did anyone notice yet) that the print
 version of the much-discussed dissertation by Karl-Theodor zu Guttenberg
 was (allegedly) typeset in ConTeXt?
 
   From my German colleague: We should test if he masters ConTeXt.  If
 he doesn't...
 
   Arthur
 
 P-S: Whether that particular piece of information is true or not, it
 will bring some attention to ConTeXt!  The ConTeXt community should try
 and take advantage of that :-)  I wonder how the author of the Wikipedia
 article knows that, though.  Presumably, someone got hold of a PDF
 version of the dissertation?
 ___
 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
 ___
 

-- 
Johannes Kuester
typoma

mailto:j...@typoma.com
http://www.typoma.com
___
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] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Arthur Reutenauer
 The dissertation was typeset (for publication) by  werksatz • Büro für 
 Typografie und Buchgestaltung. Berlin,
 and my guess is that they are using ConTeXt.

  Yep!

  From http://werksatz.com/framesk.html

Wir bieten Ihnen hochwertigen Buchsatz mit dem Satzsystem
ConTeXt der niederländischen Firma Pragma ADE.

and the next sentence hints that they are probably reading this list.

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

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


Re: [NTG-context] Guttenberg's dissertation typeset in ConTeXt

2011-02-21 Thread Philipp Gesang
On 2011-02-21 17:43:08, Arthur Reutenauer wrote:
  Did anyone on this list know (or did anyone notice yet) that the print
  version of the much-discussed dissertation by Karl-Theodor zu Guttenberg
  was (allegedly) typeset in ConTeXt?
 
   From my German colleague: We should test if he masters ConTeXt.  If
 he doesn't...
 
   Arthur
 
 P-S: Whether that particular piece of information is true or not, it
 will bring some attention to ConTeXt!  The ConTeXt community should try
 and take advantage of that :-)  

Yeah, we should release a module that scrapes online newspaper
sites using luasocket and randomly inserts the content via
Context xml processing. In combination with [1] this should make
future political candidates dependent on Context to a degree [pun
not intended] that would allow us to coerce them into generous
public funding for the project …

Philipp, who had incredible fun following these developments
 during the last week

[1] http://www.ntg.nl/pipermail/ntg-context/2008/030558.html


 I wonder how the author of the Wikipedia
 article knows that, though.  Presumably, someone got hold of a PDF
 version of the dissertation?

PS: In this matter I wouldn’t even trust the pdf metadata --
could be a fake like the rest.

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


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


[NTG-context] filtering xml

2011-02-21 Thread Thomas Schmitz

Hi all,

this must be easy, but I don't find the solution. Given an 
xml structure like this:


X
  Adog/A
  ABcat/B/A
  ABmouse/B/A
/X

which \xmlfilter expression do I need to get the first A 
element which has a subelement B? I.e., the filter 
should only return cat, not dog or mouse. There can 
be 0 or more elements without B before and after the one 
I want to retrieve.


Sorry if this is elementary, but I looked at xml-mkiv.pdf 
and mk.pdf and couldn't find an answer.


Thanks

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] including pdf

2011-02-21 Thread Wolfgang Schuster

Am 21.02.2011 um 11:47 schrieb Andrea Valle:

 Hi Aditya,
 
 thanks for your reply and sorry for my late reply, I've been kidnapped by 
 another work...
 I'd go with the layer solution.
 But I don't know to insert a layer for each pdf page.
 Could you please provide some hints?

\setuplayer[...][state=repeat]

Wolfgang

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

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


[NTG-context] errors processing context manual

2011-02-21 Thread Peter Münster
Hello,

There are 3 errors when processing the context manual:

1.) ! LuaTeX error
...text/tex/texmf-context/tex/context/base/core-con.lua:178: attempt to call
local 'mapper' (a table value)

\starttext
\startitemize[g]
\item a \type{g} for Greek characters
\item a \type{G} for Greek capitals
\stopitemize
\stoptext


2.) ! Undefined control sequence: \showcharacters

\starttext
\showcharacters
\stoptext


3.) ! Undefined control sequence: \@@xysx -\@@lysscale 

\starttext
\showprint[][][scale=1.5]
\stoptext


What can be done?

TIA for any help,
-- 
   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] \stretched in chapter titles in MKII

2011-02-21 Thread Tom


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com
The code that follows works fine in MKII but doesn't stretch the chapter
title in MKIV. What must I change? Also, I want to convert the chapter
number to text before stretching it. Has anything been done to the routines
that convert numerals to alpha characters since last summer?

Thanks,

Tom


-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Tuesday, July 06, 2010 12:19 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \stretched in chapter titles in MKII

Am 05.07.10 21:15, schrieb Tom:
 I am trying to stretch two lines of text to the same width for use as a
 chapter head.
 I have two major problems:

 1. The second line of text is appended to the end of the first line 
 instead
 of being placed below it.

 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}.
 Because of these errors I have hardcoded the values in the example that
 follows:

\define[1]\ChapterTextStretch  {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter 
\currentheadnumber}}

\setuphead
   [chapter]
   [alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand=\ChapterTextStretch,
deepnumbercommand=\ChapterNumberStretch]

\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] [t-vim] Line numbers

2011-02-21 Thread Aditya Mahajan

On Sat, 19 Feb 2011, Marco wrote:


I like your t-vim module. I think it's a nice concept not te reinvent the
wheel and to take advantage of the hundreds of syntax files of the vim
contributors.

1) You have »Add line numbers« on your TODO list. What's the progress?


No. I will look into them. I think that I should just be able to plug in 
ConTeXt's line numbering mechanism.



2) To set the font size I do the following, is there a better solution like
  bodyfont=xyz for definetyping or is it just fine like this?

\definevimtyping [PHP] [
 syntax=php,
 before={\switchtobodyfont[small]},
]


I think that the best idea is to add a style=..., and color=..., key. 
In fact, I have added these keys to t-filter module. If you get the latest 
version of the module from github[1], then you should be able to say:


\definevimtyping
   [PHP]
   [syntax=php,
style={\switchtobodyfont[small]\setupinterlinespace},
   ]

I will upload a new version soon.

Aditya

[1]: https://github.com/adityam/filter/blob/dev/t-filter.tex

PS: The style=.. and color=... attributes only work with MkIV. I need to 
think of a good way to get them to work in MkII.


___
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] \useattachment: Embedding files in PDFs - was attachment attaches twice - more research

2011-02-21 Thread Michail Vidiassov

Dear Hans,

I'd like to remind you about an old problem report
--
From: Tobias Burnus
Date: 2008-01-04 16:01 +300

I can use \useattachment to embed/attach files in a PDF file. I can use:

\useattachment[whatever][title][newname][test.tex]
\attachment[whatever]

This creates an attachment with the description title and the name
test.tex. However, how can I set the author/subject? (Shown in tool
tip of the annotation symbol; it is shown above the description;
actually subject is enough for me.)

Additionally, I miss the file size and possibly the modification date
for the attachments; they are often handy to have.

Is is possible to associate an embedded file stream with the document
itself without creating an annotation symbol as with \attachment in
ConTeXt? (The PDF spec allows this; cf. e.g. 3.10.3 in the PDF spec and
http://www.microtype.com/showcase/EmbedFiles.pdf for an example PDF file.)

---

what he names author/subject is the T entry in annotation dictionary 
(the same where /Subtype /FileAttachment goes), that is described as
The text label that shall be displayed in the title bar of the 
annotation’s pop-up window when open and active. This entry shall identify the user who 
added the annotation.
It appears as the upper of the two lines that are shown when the mouse 
pointer is over file attachment annotation icon (the lower one is the 
description mentioned above).


And for file size and modification date to show up file stream has to 
look like

8 0 obj /Params  /ModDate (20050217) /Size 2048 /Length 1218stream
not just
15 0 obj /Length 144stream
as it is now.

   Sincerely, Michail

___
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] filtering xml

2011-02-21 Thread Thomas A. Schmitz

On Feb 21, 2011, at 11:37 PM, Hans Hagen wrote:

 On 21-2-2011 8:11, Thomas Schmitz wrote:
 Hi all,
 
 this must be easy, but I don't find the solution. Given an xml structure
 like this:
 
 X
 Adog/A
 ABcat/B/A
 ABmouse/B/A
 /X
 
 which \xmlfilter expression do I need to get the first A element which
 has a subelement B? I.e., the filter should only return cat, not
 dog or mouse. There can be 0 or more elements without B before and
 after the one I want to retrieve.
 
 Sorry if this is elementary, but I looked at xml-mkiv.pdf and mk.pdf and
 couldn't find an answer.
 
 A/B[1]
 
Sorry, I guess I wasn't clear enough. Here's a fuller example:

\startbuffer[test]
A
  Bcat/B
  BCdog/C/B
  BCmouse/C/B
  BCdonkey/C/B
  Bgiraffe/B
/A
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{A|B|C}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:A
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:B
\xmlfilter{#1}{/C[1]/command(xml:C:first)}
\stopxmlsetups

\startxmlsetups xml:C:first
\color[red]{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:C
\xmlflush{#1}
\stopxmlsetups

\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext

Suppose I want the first AB subelement in red, all the other AB 
subelements in blue? Right now, I get all the B's in red.

Thanks, as always

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
___