Re: [NTG-context] No indent after a flowchart

2011-04-04 Thread Cecil Westerhof
2011/4/5 Wolfgang Schuster 

>
> Am 05.04.2011 um 01:26 schrieb Cecil Westerhof:
>
> > I am using indent, but do not want indent in the first paragraph. A
> paragraph after a flowchart is always the first paragraph. Is there a way to
> have no indent in that paragraph?
> >
> > I could put a \myblank between the flowchart and the paragraph. But that
> is not a very neat solution.
>
>
> untested:
>
> \definefloat[flowchart][default=force,indentnext=no]
> %\setupcaption[flowchart][number=none]
>
> \starttext
>
> ...
>
> \placeflowchart{}{\FLOWchart[...]}
>
> ...
>
> \stoptext
>

Works, thanks.

One more thing. Should after a pagebreak there also be no indent? After one
of my flowcharts I had:
\myblank
\pagebreak

But I would expect that the first paragraph on a page would not have an
indent. But that could be the wrong expectation.
-- 
Cecil Westerhof
___
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] No indent after a flowchart

2011-04-04 Thread Wolfgang Schuster

Am 05.04.2011 um 01:26 schrieb Cecil Westerhof:

> I am using indent, but do not want indent in the first paragraph. A paragraph 
> after a flowchart is always the first paragraph. Is there a way to have no 
> indent in that paragraph?
> 
> I could put a \myblank between the flowchart and the paragraph. But that is 
> not a very neat solution.


untested:

\definefloat[flowchart][default=force,indentnext=no]
%\setupcaption[flowchart][number=none]

\starttext

...

\placeflowchart{}{\FLOWchart[...]}

...

\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] Margin text in doublesided documents

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 23:56 schrieb C.:

> Hello,
> 
> in my doublesided document \inmargin texts are always on the left side of
> the body text.

\inmargin is configures to be always in the left margin, you can use
\inothermargin to put the text in the opposite margin or use \inoutermargin
to put the text always in the outer margin or you can configure \inmargin
to be always in the outer margin

\setupmargindata[inmargin][location=outer,align=inner]

> Also, is \setupinmargindata equivalent to the old \setupinmargin? I could
> not find any documentation about it. 

Because the command is new and nobody documented it so far.

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] Using forms and saving values

2011-04-04 Thread Cecil Westerhof
2011/4/4 Wolfgang Schuster 

> http://www.pragma-ade.com/show-man-22.htm
>

I tried the first example from fill-in fields:
\starttext

A few years back, \TEX\ could only produce
\fillinfield [dvi]{\DVI} output,
but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly
produce \fillinfield [pdf] {\PDF}!
Nice eh? Actually, while the first field module was prototyped
in \ACROBAT, the current implementation was debugged in
\fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
[ConTeXt] {\CONTEXT} is rather advanced and complete and all
kind of fields are supported. One can hook in appearances, and
validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
can be cloned and copied, where the latter saves some space. By
using \fillinfield {objects} when suited, this module saves
space anyway.

\stoptext

But I get:
mtx-context | run 1: luatex
--fmt="/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en"
--lua="/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui"
--backend="pdf" "./test"
This is LuaTeX, Version beta-0.65.0-2010121316
 \write18 enabled.
(test.tex

ConTeXt  ver: 2011.03.27 14:48 MKIV  fmt: 2011.3.27  int: english/english

system  > cont-new.mkiv loaded
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > test.top loaded
(test.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
system  > begin file test at line 1
! Undefined control sequence.

system  > tex > error on line 4 in file test.tex: Undefined control
sequence ...

 1 \starttext
 2
 3 A few years back, \TEX\ could only produce
 4 >>  \fillinfield [dvi]{\DVI} output,
 5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also
directly produce \fillinfield [pdf] {\PDF}!
 6 Nice eh? Actually, while the first field module was prototyped
 7 in \ACROBAT, the current implementation was debugged in
 8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield
 9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all
10 kind of fields are supported. One can hook in appearances, and
11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields
12 can be cloned and copied, where the latter saves some space. By
13 using \fillinfield {objects} when suited, this module saves
14 space anyway.

l.4 \fillinfield
 [dvi]{\DVI} output,

What is happening here?

-- 
Cecil Westerhof
___
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] No indent after a flowchart

2011-04-04 Thread Cecil Westerhof
I am using indent, but do not want indent in the first paragraph. A
paragraph after a flowchart is always the first paragraph. Is there a way to
have no indent in that paragraph?

I could put a \myblank between the flowchart and the paragraph. But that is
not a very neat solution.

-- 
Cecil Westerhof
___
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] Margin text in doublesided documents

2011-04-04 Thread C.
Hello,

in my doublesided document \inmargin texts are always on the left side of
the body text.

\setuplayout[location=doublesided]
\setuppagenumbering[location=right,alternative=doublesided]
\setupmargindata[left][style=\tfx]
\starttext
\chapter{Chapter Knuth testing}
\section{Section Knuth testing}
\input knuth\inmargin{test}\input knuth\page
\section{Section Knuth testing 2}
bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla.
\dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein
Test.\dorecurse{5}{\input knuth}\inmargin{bla}
\stoptext

Also, is \setupinmargindata equivalent to the old \setupinmargin? I could
not find any documentation about it. 

This is LuaTeX, Version beta-0.66.0-2011033109 (rev 4094)
ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.4.2  int: english/english

___
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] A dashed box around a range of objects in flowcharts

2011-04-04 Thread Cecil Westerhof
I use the following:
\runMPgraphicsfalse
  \usemodule[chart]

\setupFLOWcharts[
  bodyfont={PT Serif,rm,10pt},
]

\starttext

\startFLOWchart[subversion]
  \startFLOWcell
\location   {2,1}
\name   {test}
\shape  {34}
\text   {test}
  \stopFLOWcell

  \startFLOWcell
\location   {3,1}
\name   {production}
\shape  {34}
\text   {production}
  \stopFLOWcell

  \startFLOWcell
\connection [bt]{progA}
\connection [rl]{branches}
\connection [tl]{test}
\location   {1,2}
\name   {trunk}
\shape  {34}
\text   {trunk}
  \stopFLOWcell

  \startFLOWcell
\connection [bpt]{progA}
\connection [lr]{trunk}
\connection [rl]{tags}
\location   {2,2}
\name   {branches}
\shape  {34}
\text   {branches}
  \stopFLOWcell

  \startFLOWcell
\connection [tb]{production}
\location   {3,2}
\name   {tags}
\shape  {34}
\text   {tags}
  \stopFLOWcell

  \startFLOWcell
\connection [tb]{trunk}
\connection [ptb]{branches}
\location   {1,3}
\name   {progA}
\shape  {34}
\text   {Programmer A}
  \stopFLOWcell

  \startFLOWcell
\location   {2,3}
\name   {progB}
\shape  {34}
\text   {Programmer B}
  \stopFLOWcell

  \startFLOWcell
\location   {3,3}
\name   {progC}
\shape  {34}
\text   {Programmer C}
  \stopFLOWcell

\stopFLOWchart

\FLOWchart[subversion]

\stoptext

This does reasonably what I want. I just want one more thing. The three
figures on the middle line are part of subversion. I would like to show this
by putting a a dashed box around it. Is this possible?

-- 
Cecil Westerhof
___
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] Small capitals broken in latest beta?

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 22:54 schrieb John Haltiwanger:

> Completely misunderstood the problem from the beginning. Wiki entry reverted. 
> But I still hope that there is an easier solution to resolving a psuedo 
> smallcaps from available capitals in a font in mkIV.

There is the \cap command.

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] Using forms and saving values

2011-04-04 Thread Cecil Westerhof
2011/4/4 Wolfgang Schuster 

>
> Am 03.04.2011 um 13:00 schrieb Cecil Westerhof:
>
> > I have –simplified– the following:
> > \starttext
> >
> > \defineframed
> >   [action]
> >   [width=5cm, height=3cm, offset=none, frameoffset=.5\linewidth]
> >
> > \action{}
> >
> > \stoptext
> >
> > What I would like to do is to let the user input some text and display it
> in this frame. (In reality there will be more frames.) When the text is to
> big to be displayed in the frame, it should be rejected.
> >
> > This is so that the document can be modified with the text from the user.
>
> http://www.pragma-ade.com/show-man-22.htm
>

Thanks I will look at it.

It is a document from 1998 and it is said it will be udated. Nothing has
changed?

-- 
Cecil Westerhof
___
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] Small capitals broken in latest beta?

2011-04-04 Thread John Haltiwanger
Completely misunderstood the problem from the beginning. Wiki entry
reverted. But I still hope that there is an easier solution to resolving a
psuedo smallcaps from available capitals in a font in mkIV.

On Tue, Apr 5, 2011 at 3:49 AM, C.  wrote:

> Erm, these are no pseudo small caps! It’s a feature that substitutes
> capital letters with their small caps counterpart. So the font has actual
> small caps built into it. I’m using it to generate an “all small caps”
> title. I made this picture to explain:
>
> http://i55.tinypic.com/23tlev7.png
>
>
>
> You might wanna undo this wiki entry.
>
> Cheers!
>
>
>
> *Von:* John Haltiwanger [mailto:john.haltiwan...@gmail.com]
> *Gesendet:* Montag, 4. April 2011 22:29
>
> *An:* mailing list for ConTeXt users
> *Cc:* C.
>
> *Betreff:* Re: [NTG-context] Small capitals broken in latest beta?
>
>
>
> I've putthis on the psuedo-smallcaps wiki page as a more appropriate
> solution going into the future.
>
> On Mon, Apr 4, 2011 at 10:38 PM, C.  wrote:
>
> Oh my! So close and yet so far...
>
> It works. Thank you very much!
>
> > -Ursprüngliche Nachricht-
> > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> > Gesendet: Montag, 4. April 2011 12:56
>
> > An: mailing list for ConTeXt users
> > Betreff: Re: [NTG-context] Small capitals broken in latest beta?
> >
> >
>
> > Am 04.04.2011 um 12:50 schrieb C.:
> >
> > >> In MKII \sc switch to a different font but MKIV can just enable the
> "smcp"
> > >> feature.
> > >>
> > >> Adding "smcp=yes" doesn't work as option for \setmainfont because you
> > >> can use \definfontfeature and overload the "default" set, the only
> > >> valid options from \definefontfeature are "script", "expansion" and
> > > "protrusion".
> > >
> > > [I'm using MKiV.]
> >
> > MkIV ;)
> >
> > > Ok, let's leave the small capitals with \sc  alone, they work when I
> > > specify script=latin in setmainfont.
> > > Now, how would I activate the feature c2sc (small capitals from
> capitals)?
> > > It worked like this in the past, but does not anymore:
> > >
> > > \usemodule[simplefonts]
> > > \definefontfeature[c2sc][default][c2sc=yes]
> >
> > \definefontfeature[c2sc][c2sc=yes]
> >
> > 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] Small capitals broken in latest beta?

2011-04-04 Thread John Haltiwanger
I've putthis on the psuedo-smallcaps wiki page as a more appropriate
solution going into the future.

On Mon, Apr 4, 2011 at 10:38 PM, C.  wrote:

> Oh my! So close and yet so far...
>
> It works. Thank you very much!
>
> > -Ursprüngliche Nachricht-
> > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> > Gesendet: Montag, 4. April 2011 12:56
> > An: mailing list for ConTeXt users
> > Betreff: Re: [NTG-context] Small capitals broken in latest beta?
> >
> >
> > Am 04.04.2011 um 12:50 schrieb C.:
> >
> > >> In MKII \sc switch to a different font but MKIV can just enable the
> "smcp"
> > >> feature.
> > >>
> > >> Adding "smcp=yes" doesn't work as option for \setmainfont because you
> > >> can use \definfontfeature and overload the "default" set, the only
> > >> valid options from \definefontfeature are "script", "expansion" and
> > > "protrusion".
> > >
> > > [I'm using MKiV.]
> >
> > MkIV ;)
> >
> > > Ok, let's leave the small capitals with \sc  alone, they work when I
> > > specify script=latin in setmainfont.
> > > Now, how would I activate the feature c2sc (small capitals from
> capitals)?
> > > It worked like this in the past, but does not anymore:
> > >
> > > \usemodule[simplefonts]
> > > \definefontfeature[c2sc][default][c2sc=yes]
> >
> > \definefontfeature[c2sc][c2sc=yes]
> >
> > 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] Using forms and saving values

2011-04-04 Thread Wolfgang Schuster

Am 03.04.2011 um 13:00 schrieb Cecil Westerhof:

> I have –simplified– the following:
> \starttext
> 
> \defineframed
>   [action]
>   [width=5cm, height=3cm, offset=none, frameoffset=.5\linewidth]
> 
> \action{}
> 
> \stoptext
> 
> What I would like to do is to let the user input some text and display it in 
> this frame. (In reality there will be more frames.) When the text is to big 
> to be displayed in the frame, it should be rejected.
> 
> This is so that the document can be modified with the text from the user.

http://www.pragma-ade.com/show-man-22.htm

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] Side effect of virtual fonts

2011-04-04 Thread Ulrike Fischer
I made two copies of luatex-fonts-demo-vf-1.lua named
vf-a.lua  and vf-b.lua 

(The original file can be found in
\context-minimals\context\tex\texmf-context\tex\generic\context).


In both copies I changed the three fonts the virtual font uses as
basis to "Arial".

In vf-b.lua I added after the for-loop which manipulates the
caracters this code: 

f1.characters[98].width=300
f2.characters[98].width=300
f3.characters[98].width=300

f1.characters[97]= nil
f2.characters[97]= nil
f3.characters[97]= nil

It has the expected effect when I use vf-b: It enlarges the width of
the "b" and removes the "a" from the font.

But it not only affect the vf-b-font, it also affects vf-a: If I
load vf-a *after* vf-b, it also loose the "a" and the width of "b"
is changed.

In a older version of context, where the lua used
"fonts.tfm.readanddefine" instead of the new
"fonts.constructors.readanddefine" I got an side effect too, but
only on the "a".


My questions are

1. Why do I get the side effect only when f1, f2 and f3 call the
same font? Chance (because of the math random) or something else?

2. How can I make a virtual lua-font which is free of such side
effects? 

3. I got errors when I tried to use the old version of the virtual
font with the newest context. Is "fonts.tfm.readanddefine" now
deprecated?

-- 
Ulrike Fischer 

___
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] Small capitals broken in latest beta?

2011-04-04 Thread C.
Oh my! So close and yet so far...

It works. Thank you very much!

> -Ursprüngliche Nachricht-
> Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> Gesendet: Montag, 4. April 2011 12:56
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Small capitals broken in latest beta?
> 
> 
> Am 04.04.2011 um 12:50 schrieb C.:
> 
> >> In MKII \sc switch to a different font but MKIV can just enable the
"smcp"
> >> feature.
> >>
> >> Adding "smcp=yes" doesn't work as option for \setmainfont because you
> >> can use \definfontfeature and overload the "default" set, the only
> >> valid options from \definefontfeature are "script", "expansion" and
> > "protrusion".
> >
> > [I'm using MKiV.]
> 
> MkIV ;)
> 
> > Ok, let's leave the small capitals with \sc  alone, they work when I
> > specify script=latin in setmainfont.
> > Now, how would I activate the feature c2sc (small capitals from
capitals)?
> > It worked like this in the past, but does not anymore:
> >
> > \usemodule[simplefonts]
> > \definefontfeature[c2sc][default][c2sc=yes]
> 
> \definefontfeature[c2sc][c2sc=yes]
> 
> 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] fontsize calculation broken

2011-04-04 Thread Henning Hraban Ramm

Am 2011-04-04 um 16:03 schrieb Wolfgang Schuster:

Since about last week's beta I get an "Illegal unit of measure"  
error (pointing to a completely different place) with this line:


\definedfont[SansBold at 1.5\fontsize]


\definedfont[SansBold sa 1.5]


Thank you! I should learn those size "codes" finally...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] simpleslides/metapost bug ?

2011-04-04 Thread Henning Hraban Ramm

Am 2011-03-13 um 22:31 schrieb Thomas Schmitz:

what fails is the shadow for the highlight. Aditya wrote this code,  
so please curse him :-) I must admit I don't really understand what  
he did there. As a workaround (or solution?): line 835 of  
simpleslides-s-default.tex:

  withcolor transparent ("normal",
replace this with
  withcolor transparent (1,

We'll upload a new version when we've found out why this doesn't  
work anymore!


I just ran on the same issue: I had "normal" in my code, and that  
stopped working. 1 instead works.


Seems like nobody did find/fix the source of this issue?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] fontsize calculation broken

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 15:32 schrieb Henning Hraban Ramm:

> Since about last week's beta I get an "Illegal unit of measure" error 
> (pointing to a completely different place) with this line:
> 
> \definedfont[SansBold at 1.5\fontsize]

\definedfont[SansBold sa 1.5]

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] fontsize calculation broken

2011-04-04 Thread Henning Hraban Ramm
Since about last week's beta I get an "Illegal unit of measure" error  
(pointing to a completely different place) with this line:


\definedfont[SansBold at 1.5\fontsize]

I just want to adapt the local font size relative to the current  
setting. It worked before.

What should I do?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Small capitals broken in latest beta?

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 12:50 schrieb C.:

>> In MKII \sc switch to a different font but MKIV can just enable the "smcp"
>> feature.
>> 
>> Adding "smcp=yes" doesn't work as option for \setmainfont because you
>> can use \definfontfeature and overload the "default" set, the only valid
>> options from \definefontfeature are "script", "expansion" and
> "protrusion".
> 
> [I'm using MKiV.]

MkIV ;)

> Ok, let's leave the small capitals with \sc  alone, they work when I specify
> script=latin in setmainfont.
> Now, how would I activate the feature c2sc (small capitals from capitals)?
> It worked like this in the past, but does not anymore:
> 
> \usemodule[simplefonts]
> \definefontfeature[c2sc][default][c2sc=yes]

\definefontfeature[c2sc][c2sc=yes]

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] Small capitals broken in latest beta?

2011-04-04 Thread C.
> In MKII \sc switch to a different font but MKIV can just enable the "smcp"
> feature.
> 
> Adding "smcp=yes" doesn't work as option for \setmainfont because you
> can use \definfontfeature and overload the "default" set, the only valid
> options from \definefontfeature are "script", "expansion" and
"protrusion".

[I'm using MKiV.]
Ok, let's leave the small capitals with \sc  alone, they work when I specify
script=latin in setmainfont.
Now, how would I activate the feature c2sc (small capitals from capitals)?
It worked like this in the past, but does not anymore:

\usemodule[simplefonts]
\definefontfeature[c2sc][default][c2sc=yes]
\setmainfont[Minion Pro][expansion=quality, protrusion=quality,
script=latin]
\starttext
{\addff{c2sc} THIS TEXT SHOULD BE CONVERTED TO SMALL CAPS.} % does not
result in small caps, what's wrong???
 Compare: {\sc small caps} % does give small caps (therefore, not part of my
question)
\stoptext



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

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


[NTG-context] MKIV: Wrong conversion for \date

2011-04-04 Thread Wolfgang Schuster
Hi Hans,

there are a few problems with the keywords for \date in MkIV.

\starttext

\starttabulate[|l|l|l|]
\NC keyword  \NC MkII \NC MKIV   \NC\NR
\NC day  \NC 4\NC \currentdate[day]  \NC\NR
\NC day+ \NC 4\NC \currentdate[day+] \NC\NR
\NC month\NC April\NC \currentdate[month]\NC\NR
\NC year \NC 2011 \NC \currentdate[year] \NC\NR
\NC d\NC 4\NC \currentdate[d]\NC\NR
\NC d+   \NC 4\NC \currentdate[d+]   \NC\NR
\NC m\NC April\NC \currentdate[m]\NC\NR
\NC j\NC 2011 \NC \currentdate[j]\NC\NR
\NC y\NC 2011 \NC \currentdate[y]\NC\NR
\NC w\NC Monday   \NC \currentdate[w]\NC\NR
\NC dd   \NC 04   \NC \currentdate[dd]   \NC\NR
\NC dd+  \NC 4\NC \currentdate[dd+]  \NC\NR
\NC mm   \NC 04   \NC \currentdate[mm]   \NC\NR
\NC jj   \NC 11   \NC \currentdate[jj]   \NC\NR
\NC yy   \NC 11   \NC \currentdate[yy]   \NC\NR
\NC weekday  \NC Monday   \NC \currentdate[weekday]  \NC\NR
\NC referral \NC 20110404 \NC \currentdate[referral] \NC\NR
\stoptabulate

\stoptext

What i miss is also a way to get the month with a single digit, e.g. 

  \currentdate[day,.,month,.,year]

print “4.April.2011” but i want “4.4.2011”.

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] [OT] ymacs

2011-04-04 Thread luigi scarso
http://www.ymacs.org/

-- 
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] Small capitals broken in latest beta?

2011-04-04 Thread Bernhard Rosensteiner
thanks, Wolfgang.
@ C.: Wolfgang posted the solution already.

best regards
Bernhard

lg
Bernhard

On Sonntag, 03. April 2011 at 19:02, C. wrote: 
> Would you mind telling me how you fixed it? (even if your fix does not apply 
> here)
> 
> > -Ursprüngliche Nachricht-
> > Von: Bernhard Rosensteiner [mailto:brosenstei...@gmail.com]
> > Gesendet: Sonntag, 3. April 2011 18:31
> > An: mailing list for ConTeXt users
> > Betreff: Re: [NTG-context] Small capitals broken in latest beta?
> > 
> > Hi all,
> > 
> > sorry for the noise, indeed cmr have no smallcaps, but initially i used a 
> > adobe
> > font for testing and here it didn´t work. It seems oldstyle and smallcaps
> > fontfeature is not defined in the source anymore, so i had to define it 
> > myself
> > and now all is ok.
> > 
> > best regards
> > Bernhard
> > 
> > lg
> > Bernhard
> > 
> > 
> > 
> > On Sonntag, 03. April 2011 at 15:35, C. wrote:
> > 
> > 
> >  Wolfgang, your solution works for the small caps, even without
> > defining the font feature. I guess it's because \sc is a standard (la)tex 
> > style
> > switch like \it.
> > 
> >  BUT:
> >  Defining (or at least using) the other font feature (c2sc) does not
> > work, and since (to my knowledge) there is no style like \sc for that in 
> > tex,
> >  we have to define it using the font feature.
> >  If , like Bernhard wrote, \addff is broken, that would affect also
> > features like 'sups', 'dlig' and so on.
> > 
> > 
> > 
> > 
> > 
> >  -Ursprüngliche Nachricht-
> >  Von: Bernhard Rosensteiner
> > [mailto:brosenstei...@gmail.com]
> >  Gesendet: Sonntag, 3. April 2011 09:41
> >  An: mailing list for ConTeXt users
> >  Betreff: Re: [NTG-context] Small capitals broken in latest
> > beta?
> > 
> >  Hello all,
> > 
> > 
> >  i don´t use simplefonts but something is not working (see
> > attachment).
> >  Before the latest beta the commads \addff and \addfs
> > worked.
> > 
> >  best regards
> >  Bernhard
> > 
> > 
> > 
> >  On Samstag, 02. April 2011 at 08:09, Wolfgang Schuster wrote:
> > 
> > 
> > 
> >  Am 02.04.2011 um 00:40 schrieb C.:
> > 
> > 
> > 
> >  Hello,
> >  could it be that in the latest beta (ConTeXt ver: 2011.03.30
> >  11:21 MKIV)
> >  the font feature 'small capitals' is broken?
> > 
> > 
> > 
> >  It works but you need “script=latn”.
> > 
> >  \usemodule[simplefonts]
> > 
> >  \setmainfont[Minion
> >  Pro][expansion=quality,protrusion=quality,script=latn]
> > 
> >  \starttext
> >  {\sc Smallcaps}
> >  \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
> >  
> > ___
> 
> 
> ___
> 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] Position of MetaPost graphics

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 01:22 schrieb Tim Steenvoorden:

> Thanks Peter! You are right it is easier to draw both the wave and the
> line in Metapost. And the dx=-\cutspace is just what I needed for left
> pages!
> 
> I striped the frames out of the code and placed just the graphics in
> the layer with a reuseMPgraphic. Also, I pulled out the definition of
> the wave into a MPinclusions. I have to do LoadPageState in each
> graphic though.
> 
> %\showframe
> \setuppapersize[A5][A5]
> \setuppagenumbering[alternative=doublesided]
> 
> \startMPinclusions
> numeric periods, width;
> path wave;
> periods := 3 + 1/4;
> width   := periods * 2*pi;
> wave:= origin for x=0 step 0.1 until width:
> .. (x,x*sin(x))
>   endfor;
> \stopMPinclusions
> 
> \startreusableMPgraphic{rightwave}
> LoadPageState;
> pickup pencircle scaled 1pt;
> draw origin -- (TextWidth,0) -- wave xscaled (CutSpace/width) yscaled
> (LineHeight/width) shifted (TextWidth,0);
> %setbounds currentpicture to unitsquare xscaled (TextWidth+CutSpace);
> \stopreusableMPgraphic
> 
> \startreusableMPgraphic{leftwave}
> LoadPageState;
> pickup pencircle scaled 1pt;
> draw reverse wave xscaled (-1*CutSpace/width) yscaled
> (LineHeight/width) -- (TextWidth,0);
> \stopreusableMPgraphic
> 
> \definelayer[decorations][position=yes,option=test]
> \setupbackgrounds[page][background=decorations]
> 
> \starttext
> 
> {\ss\bfc A chapter title}
> \blank[small]
> {\ss\bfx \date \hfill Author Name}
> \setlayer[decorations][location=r]{\reuseMPgraphic{rightwave}}
> 
> \input knuth
> 
> \page
> 
> {\ss\bfc A very long chapter title on two or more lines}
> \blank[small]
> {\ss\bfx \date \hfill Author Name}
> \setlayer[decorations][location=r,dx=-\cutspace]{\reuseMPgraphic{leftwave}}
> 
> \input knuth
> 
> \stoptext
> 
> Just one problem is left. The graphic occupies space in the text layer
> as if the location was set to rb. If you place it with the position=no
> option, it is properly placed in the background and it doesn't disturb
> the text. Is this a bug or a feature?
> 
> I tried to play a bit with the bounding boxes, but I think I don't
> understand them that well.

Your problem is that you use {\ss\bfc …} etc. to place the title
rather than contexts \title command where you can define your own
command. With such a command you can put all text in a frame with
your graphic a background.

- http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content
- 
http://wiki.contextgarden.net/Titles#A_complex_graphical_element_under_the_chapter_title

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
___