[NTG-context] A description question

2011-09-06 Thread Marcin Borkowski
Hi all!

I have something like this:

\definedescription[definition][
  text=Definition,
  location=hanging,
  width=fit,
  align=flushleft,
  headstyle=bold,
  style=normal,
]

\startdefinition{whatever}
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu
  nisl, interdum nec dignissim sit amet, blandit eu purus. Nulla
  facilisi. Vivamus quis metus mauris. Sed laoreet vulputate rhoncus.
  Suspendisse quis metus nibh, sed ultricies orci. Ut dolor diam,
  convallis vitae mollis a, ultricies vel mi. Integer leo nisl,
  scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas augue
  risus, suscipit id sodales sit amet, sagittis non augue. Praesent
  tellus lorem, vulputate sed porta ut, eleifend ac leo. In et odio
  libero, eget vulputate risus.
\stopdefinition

And I get something like this (stars mean bold):
*Definitionwhatever* Lorem ipsum dolor sit amet, consectetur adipiscing
  elit. Praesent arcu nisl, interdum nec dignissim sit amet, blandit eu
  purus. Nulla facilisi. Vivamus quis metus mauris. Sed laoreet
  vulputate rhoncus. Suspendisse quis metus nibh, sed ultricies orci. Ut
  dolor diam, convallis vitae mollis a, ultricies vel mi. Integer leo
  nisl, scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas
  augue risus, suscipit id sodales sit amet, sagittis non augue.
  Praesent tellus lorem, vulputate sed porta ut, eleifend ac leo. In et
  odio libero, eget vulputate risus.

And what I want is:

*Definition* (whatever). Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Praesent arcu nisl, interdum nec dignissim sit amet,
blandit eu purus. Nulla facilisi. Vivamus quis metus etc...

That is, I'd like to have the following:
- no indentation of the second and subsequent lines;
- whatever should be prefixed with a space and an opening brace and
suffixed with a closing brace and a period;
- whatever should not be bold.

Is it possible to accomplish this automatically?

TIA

-- 
Marcin Borkowski
http://mbork.pl

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

2011-09-06 Thread Aditya Mahajan

On Tue, 6 Sep 2011, Marcin Borkowski wrote:


Hi all!

I have something like this:

\definedescription[definition][
 text=Definition,
 location=hanging,
 width=fit,
 align=flushleft,
 headstyle=bold,
 style=normal,
]

\startdefinition{whatever}
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu
 nisl, interdum nec dignissim sit amet, blandit eu purus. Nulla
 facilisi. Vivamus quis metus mauris. Sed laoreet vulputate rhoncus.
 Suspendisse quis metus nibh, sed ultricies orci. Ut dolor diam,
 convallis vitae mollis a, ultricies vel mi. Integer leo nisl,
 scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas augue
 risus, suscipit id sodales sit amet, sagittis non augue. Praesent
 tellus lorem, vulputate sed porta ut, eleifend ac leo. In et odio
 libero, eget vulputate risus.
\stopdefinition

And I get something like this (stars mean bold):
*Definitionwhatever* Lorem ipsum dolor sit amet, consectetur adipiscing
 elit. Praesent arcu nisl, interdum nec dignissim sit amet, blandit eu
 purus. Nulla facilisi. Vivamus quis metus mauris. Sed laoreet
 vulputate rhoncus. Suspendisse quis metus nibh, sed ultricies orci. Ut
 dolor diam, convallis vitae mollis a, ultricies vel mi. Integer leo
 nisl, scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas
 augue risus, suscipit id sodales sit amet, sagittis non augue.
 Praesent tellus lorem, vulputate sed porta ut, eleifend ac leo. In et
 odio libero, eget vulputate risus.

And what I want is:

*Definition* (whatever). Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Praesent arcu nisl, interdum nec dignissim sit amet,
blandit eu purus. Nulla facilisi. Vivamus quis metus etc...

That is, I'd like to have the following:
- no indentation of the second and subsequent lines;
- whatever should be prefixed with a space and an opening brace and
suffixed with a closing brace and a period;
- whatever should not be bold.

Is it possible to accomplish this automatically?


Untested. Try

titleleft=(, titleright=), titlestyle=normal, distance=0.5em, 
location=serried,


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

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


Re: [NTG-context] \otfchar

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 00:45 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Dear gang,
 
 It appears that \otfchar is gone ...  Undefined control sequence ... Does 
 anyone know the new protocol? Thnx in advance and

\fontchar{…}

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] A description question

2011-09-06 Thread Marcin Borkowski
Dnia 2011-09-06, wto o godzinie 02:45 -0400, Aditya Mahajan pisze:
 On Tue, 6 Sep 2011, Marcin Borkowski wrote:
 
  Hi all!
 
  I have something like this:
 
  \definedescription[definition][
   text=Definition,
   location=hanging,
   width=fit,
   align=flushleft,
   headstyle=bold,
   style=normal,
  ]
 
  \startdefinition{whatever}
   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu
   nisl, interdum nec dignissim sit amet, blandit eu purus. Nulla
   facilisi. Vivamus quis metus mauris. Sed laoreet vulputate rhoncus.
   Suspendisse quis metus nibh, sed ultricies orci. Ut dolor diam,
   convallis vitae mollis a, ultricies vel mi. Integer leo nisl,
   scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas augue
   risus, suscipit id sodales sit amet, sagittis non augue. Praesent
   tellus lorem, vulputate sed porta ut, eleifend ac leo. In et odio
   libero, eget vulputate risus.
  \stopdefinition
 
  And I get something like this (stars mean bold):
  *Definitionwhatever* Lorem ipsum dolor sit amet, consectetur adipiscing
   elit. Praesent arcu nisl, interdum nec dignissim sit amet, blandit eu
   purus. Nulla facilisi. Vivamus quis metus mauris. Sed laoreet
   vulputate rhoncus. Suspendisse quis metus nibh, sed ultricies orci. Ut
   dolor diam, convallis vitae mollis a, ultricies vel mi. Integer leo
   nisl, scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas
   augue risus, suscipit id sodales sit amet, sagittis non augue.
   Praesent tellus lorem, vulputate sed porta ut, eleifend ac leo. In et
   odio libero, eget vulputate risus.
 
  And what I want is:
 
  *Definition* (whatever). Lorem ipsum dolor sit amet, consectetur
  adipiscing elit. Praesent arcu nisl, interdum nec dignissim sit amet,
  blandit eu purus. Nulla facilisi. Vivamus quis metus etc...
 
  That is, I'd like to have the following:
  - no indentation of the second and subsequent lines;
  - whatever should be prefixed with a space and an opening brace and
  suffixed with a closing brace and a period;
  - whatever should not be bold.
 
  Is it possible to accomplish this automatically?
 
 Untested. Try
 
 titleleft=(, titleright=), titlestyle=normal, distance=0.5em, 
 location=serried,

Thanks!

It almost works - location=serried made the indentation disappear, but
the rest of the problems is still unsolved.

-- 
Marcin Borkowski
http://mbork.pl

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

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 09:31 schrieb Marcin Borkowski:

 Dnia 2011-09-06, wto o godzinie 02:45 -0400, Aditya Mahajan pisze:
 
 Untested. Try
 
 titleleft=(, titleright=), titlestyle=normal, distance=0.5em, 
 location=serried,
 
 Thanks!
 
 It almost works - location=serried made the indentation disappear, but
 the rest of the problems is still unsolved.

\define[1]\DescriptionCommand
  {Definition ({\tf #1}).}

\definedescription
  [definition]
  [command=\DescriptionCommand,
   width=fit,
   distance=.5em,
   style=normal,
   location=serried]

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] A description question

2011-09-06 Thread Marcin Borkowski
Dnia 2011-09-06, wto o godzinie 09:44 +0200, Wolfgang Schuster pisze:
 \define[1]\DescriptionCommand
   {Definition ({\tf #1}).}
 
 \definedescription
   [definition]
   [command=\DescriptionCommand,
width=fit,
distance=.5em,
style=normal,
location=serried] 

Thanks a lot!

-- 
Marcin Borkowski
http://mbork.pl

___
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] Retrieve the content of comments

2011-09-06 Thread Alexandre Leray

Hi,

I have a text with commented spans. The comments come later in the book, 
and I'd like to show the commented parts just above the comments 
themselves. Here is a pseudo code:


Vestibulum ante \commented[mycomment]{ipsum primis} in faucibus orci 
luctus et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a 
egestas sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia 
sit amet dui. Nam vel tortor sed leo pulvinar ornare.


\pagereference[mycomment]
This is my comment...

I'd like to get something like this:

Vestibulum ante _ipsum primis_^1 in faucibus orci luctus et ultrices 
posuere cubilia Curae; Fusce pretium orci lectus, a egestas sapien. 
Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam 
vel tortor sed leo pulvinar ornare.


(page break)

_ipsum primis_
This is my comment...

Is there any way to achieve this?

Thanks,

Alex
___
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] Retrieve the content of comments

2011-09-06 Thread Hans Hagen

On 6-9-2011 11:00, Alexandre Leray wrote:

Hi,

I have a text with commented spans. The comments come later in the book,
and I'd like to show the commented parts just above the comments
themselves. Here is a pseudo code:

Vestibulum ante \commented[mycomment]{ipsum primis} in faucibus orci
luctus et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a
egestas sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia
sit amet dui. Nam vel tortor sed leo pulvinar ornare.

\pagereference[mycomment]
This is my comment...

I'd like to get something like this:

Vestibulum ante _ipsum primis_^1 in faucibus orci luctus et ultrices
posuere cubilia Curae; Fusce pretium orci lectus, a egestas sapien.
Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam
vel tortor sed leo pulvinar ornare.

(page break)

_ipsum primis_
This is my comment...

Is there any way to achieve this?


you probably want endnotes

\starttext

test test \endnote{test} test

\page \placenotes[endnote]

\stoptext


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] Custom parameters/options for t-vim

2011-09-06 Thread Andreas Schneider

On 03.09.2011 08:58, Aditya Mahajan wrote:

On Wed, 31 Aug 2011, Aditya Mahajan wrote:


On Wed, 31 Aug 2011, Andreas Schneider wrote:


However I also like the idea of the optional vimrc via buffer. I
think it might be a nice-to-have feature for the ToDo list :-)


In the end, adding a vimrc feature was not too difficult, so I have
added that. See the dev branch at github. For usage, see the example
at tests/vim/vimrc.tex.


I uploaded a new version of vim module with this feature. See 'Tuning
color schemes' in the user-guide for a terse documentation.

Aditya


Sorry for the late answer, I've been on the road a lot the last few days 
and didn't have the time to test the new changes.


Anyway, I now did test them and it works very well. Thanks for 
implementing this very versatile feature! :-)


--
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] Retrieve the content of comments

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 11:05 schrieb Hans Hagen:

 On 6-9-2011 11:00, Alexandre Leray wrote:
 Hi,
 
 I have a text with commented spans. The comments come later in the book,
 and I'd like to show the commented parts just above the comments
 themselves. Here is a pseudo code:
 
 […]
 
 Is there any way to achieve this?
 
 you probably want endnotes
 
 \starttext
 
 test test \endnote{test} test
 
 \page \placenotes[endnote]
 
 \stoptext


He wants also a title for each comment.

\usemodule[annotation]

\define[2]\CommentedCommand
  {\placeannotationtitle
   \expanded{\endnote{\placeannotationtitle\crlf\placeannotationcontent}}}

\defineannotation
  [commented]
  [alternative=command,
   command=\CommentedCommand]

\starttext

Vestibulum ante \commented{ipsum primis}{This is my comment …} in faucibus orci 
luctus et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a egestas 
sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam 
vel tortor sed leo pulvinar ornare.

Vestibulum ante \startcommented{ipsum primis} This is my comment … 
\stopcommented in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce 
pretium orci lectus, a egestas sapien. Maecenas ante tellus, cursus sed feugiat 
non, lacinia sit amet dui. Nam vel tortor sed leo pulvinar ornare.

\placenotes[endnote]

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


[NTG-context] Captions' alignment

2011-09-06 Thread Honza Hejzl
Hello,
I am re-posting my question because the last one was not clear and properly
written.

I am trying to set captions like paragraphs where the label is indented
negatively, like in case of itemize lists. I was successful with the shape
(\hbox{\vtop ...}}) but don't think my solution is useful. I am not able to
set this via \setupcaptions and styles.

I need something like:

Fig. 1 This figures how to...
 ... solve the problem.

This shape is very common in books and is common in cases of long paragraphs
in captions.

My test source:

\mainlanguage[cz]
\setuplayout[grid=yes]
\showgrid[yes]
\setuppagenumbering[location=footer]
\setupexternalfigures[]

\def\myblank{\blank[5pt]}

\definefont[headcap][SerifBold at 7pt]
\definefont[bodycap][SerifItalic at 7pt]
\definefloat[pic][pics]
\setupfloat[pic][location=right]
\setupfloats[spacebefore=none,frame=on,spaceafter=none,rightmargindistance=0pt,margin=5pt]
\setupcaptions[location=bottom,style={\bodycap\setupinterlinespace[small]}%
I don't want smaller captions' text on grid.
,headstyle={\headcap\setupinterlinespace[small]},distance=3pt,inbetween=\myblank]
\setuplabeltext[cz][figure=Obr.: ]

\starttext

\placefigure[right]{To je právě to, co člověka bude zas a znovu
mrzet.}{\externalfigure[jahve][width=6cm]} A jde, jak nejlépe umí; náhle
slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za ním. Zdá se, že běží.
A Prokop se v~nesnesitelné hrůze dal na útěk.Ale zrovna na krok před chodcem
se mu udělá v~hlavě tma a celý svět se s~ním pojednou zatočí; náhle vidí
zblízka, zblizoučka pár pronikavých očí, jak se do něho vpíchly, naráží na
něčí rameno, vypraví ze sebe cosi jako promiňte a vzdaluje se s~křečovitou
důstojností. Po několika krocích se zastaví a ohlédne; ten člověk stojí a
dívá se upřeně za ním. Prokop se sebere a odchází trochu rychleji; ale nedá
mu to, musí se znovu ohlédnout; a vida, ten člověk ještě pořád stojí a dívá
se za ním, dokonce samou pozorností vysunul z~límce hlavu jako želva. Ať
kouká, myslí si Prokop znepokojen, teď už se ani neohlédnu. A jde, jak
nejlépe umí; náhle slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za
ním. Zdá se, že běží.

\stoptext

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

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

[NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Marcin Borkowski
Hi,

I'd like to have something like this:

  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]

Is there any option for alignment which would enable me not to put the
blanks manually?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

___
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] Description inheritance?

2011-09-06 Thread Marcin Borkowski
Is there a way to define a description based on another one, so that all
parameters except the specified ones are inherited from the base one?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

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

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


Re: [NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 12:19 schrieb Marcin Borkowski:

 Hi,
 
 I'd like to have something like this:
 
  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]
 
 Is there any option for alignment which would enable me not to put the
 blanks manually?

\definestartstop
  [centered]
  [before={\blank[small]},
   after={\blank[small]},
   commands={\setupalign[middle]}]

\starttext

…

\startcentered
…
\stopcentered

…

\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] Description inheritance?

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 12:20 schrieb Marcin Borkowski:

 Is there a way to define a description based on another one, so that all
 parameters except the specified ones are inherited from the base one?

\definedescription[base]
\definedescription[clone][base]

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] notepenalty obsolete?

2011-09-06 Thread Steffen Wolfrum
Hi,

I didn't have to update my context version since May. Today I did it ... 

\notepenalty now is an Undefined control sequence?


Steffen
___
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] notepenalty obsolete?

2011-09-06 Thread Hans Hagen

On 6-9-2011 14:25, Steffen Wolfrum wrote:

Hi,

I didn't have to update my context version since May. Today I did it ...

\notepenalty now is an Undefined control sequence?


indeed, as it was still shared between all notes (a left-over from mkii)

you are supposed to use \setupnote (the split key can be set to 
tolerant, strict, verystrict or a number)


(such low level parameters are/were never part of the interface so using 
/ patching them is sort of dangerous)


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] trouble with kerncharacters

2011-09-06 Thread Steffen Wolfrum
Hi,

\kerncharacters doesn't have an influence on interword space in current 
context version.
Is this intended?

Steffen
---

\definehead[TopLevel] [chapter]

\setuphead[TopLevel][style=\bf,textstyle={\kerncharacters[.75]},
align=flushleft,alternative=paragraph]

\starttext

\startTopLevel[title={This is a test}]

text

\stopTopLevel
  
\stoptext



uzguzguzguzg.pdf
Description: Adobe PDF document
___
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] bug/change in definehead?

2011-09-06 Thread Steffen Wolfrum
Hi,

another thing in todays beta: This small exmaple ...

\definehead[TopLevel,MyLevel] [chapter]
\setuphead[TopLevel,MyLevel][style=\bf,textstyle={\kerncharacters[.75]},
align=flushleft,alternative=paragraph]
\starttext
\startTopLevel[title={This is a test}]
text
\stopTopLevel
\stoptext


...  gives an error:


! Undefined control sequence.

system   tex  error on line 14 in file uzguzguzguzg.tex: Undefined 
control sequence ...

 4 
 5 
 6 \definehead[TopLevel,MyLevel] [chapter]
 7 
 8 \setuphead[TopLevel,MyLevel] 
[style=\bf,textstyle={\kerncharacters[.75]},
align=flushleft,alternative=paragraph]
 9 
10 
11 
12 \starttext
13 
14   \startTopLevel[title={This is a test}]
15 
16 text
17 
18 \stopTopLevel
19   
20 \stoptext
21 
22 
23 
24 

l.14 \startTopLevel
   [title={This is a test}]
? 



Is this in intended?

Steffen

___
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] bug/change in definehead?

2011-09-06 Thread Hans Hagen

On 6-9-2011 14:55, Steffen Wolfrum wrote:

Hi,

another thing in todays beta: This small exmaple ...

\definehead[TopLevel,MyLevel] [chapter]
\setuphead[TopLevel,MyLevel][style=\bf,textstyle={\kerncharacters[.75]},
align=flushleft,alternative=paragraph]
\starttext
\startTopLevel[title={This is a test}]
text
\stopTopLevel
\stoptext


just do two \definehead's instead of combining it

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] Retrieve the content of comments

2011-09-06 Thread stdin

Thanks,

I haven't tried yet but this looks like what I was looking for :)

One question though... I have overlapping comments, is there any way I 
can do this?


Best,

Alex

On 06/09/2011 11:58, Wolfgang Schuster wrote:

Am 06.09.2011 um 11:05 schrieb Hans Hagen:


On 6-9-2011 11:00, Alexandre Leray wrote:

Hi,

I have a text with commented spans. The comments come later in the book,
and I'd like to show the commented parts just above the comments
themselves. Here is a pseudo code:

[…]

Is there any way to achieve this?

you probably want endnotes

\starttext

test test \endnote{test} test

\page \placenotes[endnote]

\stoptext


He wants also a title for each comment.

\usemodule[annotation]

\define[2]\CommentedCommand
   {\placeannotationtitle
\expanded{\endnote{\placeannotationtitle\crlf\placeannotationcontent}}}

\defineannotation
   [commented]
   [alternative=command,
command=\CommentedCommand]

\starttext

Vestibulum ante \commented{ipsum primis}{This is my comment …} in faucibus orci 
luctus et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a egestas 
sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam 
vel tortor sed leo pulvinar ornare.

Vestibulum ante \startcommented{ipsum primis} This is my comment … 
\stopcommented in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce 
pretium orci lectus, a egestas sapien. Maecenas ante tellus, cursus sed feugiat 
non, lacinia sit amet dui. Nam vel tortor sed leo pulvinar ornare.

\placenotes[endnote]

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



--
stdin
Alexandre Leray  Stéphanie Vilayphiou
http://stdin.fr/
+32 (0)4 89 00 88 59

___
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] \otfchar

2011-09-06 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 06 Sep 2011 01:11:37 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:


It appears that \otfchar is gone ...  Undefined control sequence ...  
Does anyone know the new protocol? Thnx in advance and


\fontchar{…}


Thanks!

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] animation error

2011-09-06 Thread dalyoung
Dear Wolfgang,

In the recent beta, \startanimation \stopanimation is not working.
There is a undefined control sequence error at \stopanimation.

In the version 2011/08/10, it works fine.

Is there anything changed in the recent version?

Thank you.

Best regards,

Dalyoung
___
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] trouble with kerncharacters

2011-09-06 Thread Hans Hagen

On 6-9-2011 14:44, Steffen Wolfrum wrote:

Hi,

\kerncharacters doesn't have an influence on interword space in current 
context version.
Is this intended?


it's a side effect of setting align to flushleft which makes the glue 
shrink ... i'll have a look at it


-
  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] No color with interaction and focus option is ignored

2011-09-06 Thread Hans Hagen

On 6-9-2011 04:01, Khaled Hosny wrote:


Still no color in latest beta.


It was a side effect of interaction using a different call chain as we 
can now have different presets:


\setupinteraction
  [state=start]

\defineinteraction
  [whatever]
  [color=blue,
   contrastcolor=darkyellow]

\starttext

\startchapter[title={One}]

\goto{This Page}[page(1)]
\goto{Next Page}[page(2)]

\stopchapter

\startchapter[title={Two}]

\startinteraction[whatever]

\goto{This Page}[page(2)]
\goto{First Page}[page(1)]

\stopinteraction

\stopchapter

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] defected by simple stuff - agane

2011-09-06 Thread Ian Lawrence
Hi All..

In the charts module you can set a whole cell to be a hyperlink

\destination {url(http://www.talkphysics.org)}

So what can I write to link to a local file?

Along the lines of…

\destination {url(file://XXX.pdf)}

…where the pdf is in same directory as the file containing the target…

This seems as if it ought to be kind of simple, but also seems undocumented…

Thanks

Ian




___
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] vertically aligned side margin footnotes

2011-09-06 Thread Alexandre Leray

Hi again,

is there a way to typeset footnotes in the margin, but placed at the 
same vertical distance as the text they refer to?


Thanks,

Alex
___
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] Embedding of ICC profiles and preflight

2011-09-06 Thread Honza Hejzl
It seems, after several preflights, that option=always in \setupbackends
still does not work. Is anyone able to try to produce such a file an offer
it for preflight? I have tried it on both win and unix standalone
installations, have icc profiles placed correctly but Acrobat still says the
same…

Thanks, Honza Hejzl
___
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 color with interaction and focus option is ignored

2011-09-06 Thread Khaled Hosny
On Tue, Sep 06, 2011 at 05:54:05PM +0200, Hans Hagen wrote:
 On 6-9-2011 04:01, Khaled Hosny wrote:
 
 Still no color in latest beta.
 
 It was a side effect of interaction using a different call chain as
 we can now have different presets:

Thanks Hans, colours are back now :)

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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] Charts module…custom shapes

2011-09-06 Thread Ian Lawrence
Anyone know how to add extra shapes, beyond those predefined?

Thanks

___
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] vertically aligned side margin footnotes

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 18:25 schrieb Alexandre Leray:

 Hi again,
 
 is there a way to typeset footnotes in the margin, but placed at the same 
 vertical distance as the text they refer to?

No, but you can combine \inmargin and a counter:

\usemodule[annotation]

\define[2]\SidenoteCommand
  {\rawnumber[sidenote]%
   \inright{#1: #2}}

\defineannotation
  [sidenote]
  [alternative=command,
   command=\SidenoteCommand,
   number=yes]

\starttext

text text\sidenote{this is a note} text text

\input knuth

text text\sidenote{this is a note} text text

\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] animation error

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 16:52 schrieb dalyoung:

 Dear Wolfgang,
 
 In the recent beta, \startanimation \stopanimation is not working.
 There is a undefined control sequence error at \stopanimation.
 
 In the version 2011/08/10, it works fine.
 
 Is there anything changed in the recent version?


There had been changes in the parameter handler for mkiv.

scrn-fld.mkvi:

\def\scrn_fieldstack_add#tag#settings#symbol%
  {\advance\scratchcounter\plusone
   \edef\currentfieldstackname{#tag:\number\scratchcounter}%
-  \ifnum\scratchcounter=\@@fdstart\relax
+  \ifnum\scratchcounter=\fieldcategoryparameter\c!start\relax
 
\definefieldbody[\currentfieldstackname][\c!type=check,\c!values={#symbol,\empty},\c!default={#symbol}]%
   \else
 
\definefieldbody[\currentfieldstackname][\c!type=check,\c!values={#symbol,\empty},\c!default=]%
   \fi
   \setbox\scrn_fieldstack_box\hbox{\symbol[#symbol]}%
   \setcollector
 [fieldstack]
 {\fieldbody
[\currentfieldstackname]
[\c!option=\v!readonly,
 \c!width=\wd\scrn_fieldstack_box,
 \c!height=\ht\scrn_fieldstack_box,
 \c!depth=\dp\scrn_fieldstack_box,
 #settings]}}

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
___