Re: [NTG-context] Steps in presentation

2015-01-02 Thread Fabrice L.

pol stra  hotmail.fr> writes:

> > Hello,I tried to use some steps in a presentation.  In the following
conversationhttp://www.mail-archive.com/ntg-context 
ntg.nl/msg53524.html, Wolfgang saysthat we can use the pre-60 module. 
So I tried this snippet:\usemodule[pre-
stepwise]\starttext\StartSteps\startitemize\item one \FlushStep\item two
\FlushStep\item three \FlushStep\stopitemize\StopSteps\stoptextBut it
does not compile:ConTeXt  ver: 2012.09.11 20:36 MKIV  fmt: 2012.9.12 
int: english/englishsystem  > cont-new.mkiv
loaded(/opt/context-minimals/texmf-context/tex/context/base/cont-new.
mkivsystem  > beware: some patches loaded from
cont-new.mkiv)fonts   > latin modern fonts are not
preloadedlanguages   > language en is
active(pre60.texresolvers   > modules > loaded:
'pre-stepwise'(/opt/context-minimals/texmf-context/tex/context/base/s-
pre-60.mkivfonts   > beware: no fonts are loaded yet, using 'lm
mono' in box(/opt/context-minimals/texmf-
context/tex/context/base/java-imp-stp.mkiv)interactions    > javascripts
> loaded: library 'stp'metapost    > loaded: library 'nav'
(/opt/context-minimals/texmf-
context/tex/context/base/meta-imp-nav.mkiv)){/opt/context-minimals/texmf
- fonts/fonts/map/pdftex/context/mkiv-base.map}fonts   >
preloading latin modern fonts (second stage)fonts   >
typescripts > unknown: library 'loc'{/opt/context-minimals/texmf-
fonts/fonts/map/dvips/lm/lm-math.map}{/opt/context-minimals/texmf-
fonts/fonts/map/dvips/lm/lm-rm.map}fonts   > virtual math >
unable to resolve name mapsfromcharfonts   > fallback modern rm
12pt is loaded!LuaTeX error: There should have been a lua  here,
not an object with type string! ==> Fatal error occurred, no output PDF
file produced!Is there something broken in recent release of conteXt? 
By the way It seemsthere is no Rawsteps module anymore but it still is
in the wiki. Is there issomething like a bugtracker for conteXt, in
order to signal when  a feature isnot working or outdated and signal
when it is back (or definitly depreciate)?(it would be a complementary
tool for the mailing list) > > >



I'm following on an old thread about the RawSteps Module, which is
broken in MKIV. Trying to move to MKIV, this is a "no go" for me since I
absolutely need this module for teaching. I've contacted David Munger,
the author of the module,  last September, which had been a real helper
in the past about this module, but he has presently no time to work on
this. If someone know how to fix the problem, I provide a short minimal
exemple:

%%% \enableregime[utf] 
\usemodule[rsteps]

\setupcolors[state=start] \setuppapersize[S4][S4]

\starttext

\StartSteps \startformula 
 \eqalign{ P[\text{atteindre l'état}\ j | \text{partant de } i] 
  & = P\left[\bigcup_{n=0}^\infty (X_n=j)| X_0 = i\right]\cr
  & \leq \sum_{n=0}^\infty P[X_n=j|X_0=i]\cr 
  & =\sum_{n=0}^\infty P_{ij}^n =0 \cr } 
\stopformula \StopSteps

\StartSteps \startformula
\eqalign{
  \FromStep[1][reserve]{P[\text{atteindre l'état}\ j | \text{partant de } i]} &
  \FromStep[1][reserve]{= P\left[\bigcup_{n=0}^\infty (X_n=j)| X_0 = 
i\right]}\cr &
  \FromStep[2][reserve]{\leq \sum_{n=0}^\infty P[X_n=j|X_0=i]}\cr &
  \FromStep[3][reserve]{=\sum_{n=0}^\infty P_{ij}^n =0 }\cr } 
\stopformula
\StopSteps

\stoptext 
 


Also, here is the contextHarden link:
http://wiki.contextgarden.net/RawSteps

If somebody know another solution to show content by step in a page, I
would be happy to know about it. Thanks, Fabrice.


___
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] Asymptote in Context

2015-01-02 Thread Context NTG
Here is an Asymptote example

unitsize(1cm);
draw((-.1,0) -- (2,0),
arrow=Arrow(TeXHead));
draw((0,-.1) -- (0,2), arrow =
Arrow(TeXHead));
draw((0,0) .. (1,1) .. (2,sqrt(2)));


Below is how I have started setting this up in Context. This creates a pdf
file with the drawing, but it is not included in the final docuement.


\defineexternalfilter
[ASY]
[filtercommand={asy -tex "context" -View -outformat pdf -outname
\externalfilteroutputfile\space \externalfilterinputfile},
output=\externalfilterbasefile.out,
readcommand=\typefile,
cache=force,
location=text,
continue=yes]

\starttext
\startASY[myplot]
unitsize(1cm);
draw((-.1,0) -- (2,0),
arrow=Arrow(TeXHead));
draw((0,-.1) -- (0,2), arrow =
Arrow(TeXHead));
draw((0,0) .. (1,1) .. (2,sqrt(2)));

\stopASY
\externalfigure[myplot]
\stoptext


Thanks
Jeroen

2014-12-28 12:04 GMT+01:00 Mojca Miklavec :

> Dear Aditya,
>
> On Sun, Dec 28, 2014 at 8:21 AM, Aditya Mahajan wrote:
> > On Wed, 24 Dec 2014, Context NTG wrote:
> >
> >> Could anybody explain how to use Asymptote in ConTeXt with the filter
> >> module.
> >
> > Can you post a minimal asymptote file and how it shoud be processed via
> the
> > command line?
>
> I have no time to create a nice minimal example, but here's an ugly
> non-minimal example which should at least enable you to test the
> interaction with the filter module.
>
> I also added one ConTeXt-specific command while trying to make math
> fonts work properly, just replace "lucidaot" with another font in case
> you don't have that one installed.
>
> You can run the example with
> asy -tex context cylinder.asy
>
> (Maybe it's possible to set the tex engine inside the file as well.)
>
>
> Bonus points if you can get PRC to work properly before TL 2015. Or if
> you can make the file print properly from OS X without using Acrobat
> or ghostscript/CUPS. Preview.app "forgets" to print the (smoothly
> shaded) cylinder for example.
>
> 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
>
> ___
>
___
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] Start an itemized list with a given number

2015-01-02 Thread Eric Gerard
Vielen dank für die Antwort und Ich wünsche Ihnen ein glückliches neues jahr.
Thanks for the answer, it works perfectly . Happy new year to every people in 
the list

Eric Gerard


___
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 in beta from 2014.12.29 10:01

2015-01-02 Thread Pablo Rodriguez
On 12/31/2014 09:10 AM, Akira Kakuto wrote:
>> $ contextjit --version
>>
>> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
> 
> I have reproduced it, after some trials, by removing files
> in "trees" in cache.
> 
> So try
> mtxrun --generate

Akira

many thanks for your reply and a Happy New Year (to every list participant).

"mtxrun --generate" solves the issue. But the weird thin is that this is
something I have to do with a brand new installation of the ConTeXt Suite.

This is beyond my knowledge, but I wonder whether it isn’t an actual bug
in the ConTeXt Suite.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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 in beta from 2014.12.29 10:01

2015-01-02 Thread Pablo Rodriguez
On 12/31/2014 12:14 PM, Philipp Gesang wrote:
> ·
>> [...]
>> I’m afraid I only get two blank lines from "mtxrunjit --find-file
>> mtx-context.lua". The same happens with mtxrun.
> 
> No result means mtxrun can’t find it. What do you get when you
> run
> 
> find ${contextdir} -type f -name mtx-context.lua

Philipp,

many thanks for your reply and a Happy New Year.

$ find ${ctxbeta/tex} -type f -name mtx-context.lua
./ctxbeta/tex/texmf-context/scripts/context/lua/mtx-context.lua


Pablo
-- 
http://www.ousia.tk
___
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] filter module's inline command and supressed spacing

2015-01-02 Thread Piotr Kopszak
OK, will do so.

Best

Piotr

2015-01-01 23:14 GMT+01:00 Mark Szepieniec :
> Hi Piotr,
>
> maybe you can try opening an issue in the code's repository:
> https://github.com/adityam/filter/issues
>
> On Tue, Dec 30, 2014 at 10:28 AM, Piotr Kopszak  wrote:
>>
>> P.S.
>>
>> Silly of me not to check ConTeXt version first. Anyway, the problem
>> persists with most recent ConTeXt although different errors are
>> produced. The space is supressed
>> in 'Januszkiewicza)"Notatki' and html entities are not interpreted
>> properly when using \inlinepandoc.
>>
>> 2014-12-30 10:00 GMT+01:00 Piotr Kopszak :
>> > Hello list,
>> >
>> > It looks like a bug in the filter module, but maybe I'm doing
>> > something wrong. Any help will be greatly appreciated. When using the
>> > \inlinepandoc command in the first paragraph below the space at the
>> > end of the paragraph in "życiaA. Mickiewicza" is supressed when it
>> > should be "życia A. Mickiewicza". This does not happen when using
>> > pandoc environment. If you want to run the minimal example you have to
>> > make sure you got the recent pandoc which supports twiki input format
>> > and create the "output" subdirectory in your working directory.
>> >
>> > Best
>> >
>> > Piotr
>> >
>> > 
>> > \usemodule[filter]
>> > \defineexternalfilter
>> >   [pandoc]
>> >   [
>> > filter={pandoc -f \externalfilterparameter{format} -t context
>> >-o \externalfilteroutputfile},
>> > format=twiki,
>> > directory=output,
>> >   ]
>> > \starttext
>> > Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
>> > perennius  Powst. Paryż, na autografie podpis: "Paryż, 12 marca
>> > 1833. Wiersze natchnione wizytą Fr. Grzymały".   Pdr: {\it Czas} 1859
>> > nr nr 118 s. 2.  (\inlinepandoc{w artykule L*** (E.
>> > Januszkiewicza)  "Notatki wspomnień z życia A. Mickiewicza"}).
>> >
>> > \startpandoc
>> > Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
>> > perennius  Powst. Paryż, na autografie podpis: "Paryż, 12 marca
>> > 1833. Wiersze natchnione wizytą Fr. Grzymały".   Pdr: {\it Czas} 1859
>> > nr nr 118 s. 2.  (w artykule L*** (E. Januszkiewicza)
>> > "Notatki wspomnień z życia A. Mickiewicza").
>> > \stoppandoc
>> > \stoptext
>> >
>> > -
>> >
>> > --
>> > http://okle.pl
>>
>>
>>
>> --
>> http://okle.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
>>
>> ___
>
>
>
> ___
> 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
> ___



-- 
http://okle.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] Title and defineenumeration

2015-01-02 Thread Fabrice

Hi Wolfgang,
Thank you and Happy New Year 2015 to all members.
Fabrice
___
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] Adjusting Kerning/Spacing between Letter

2015-01-02 Thread Hans Hagen

On 1/2/2015 12:56 AM, Malte Stien wrote:

Hi,

I am trying to typeset some strings in {\tt ...}, but they turn out to be 
pretty wide. So, I would like to compress those bits of text a little. Any 
hints on how I could do that locally, that is without adjusting the entire font.


\starttext
\definecharacterkerning[tight][factor=-.5]

test {\tt \setcharacterkerning[tight]tight} test

\stoptext

(Btw, there is a narrow monospaced lm font)


Thank you,
Malte.
___
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
___




--

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