[NTG-context] Need help

2012-07-18 Thread Shiv Shankar Dayal
Hi,

Mu current chapter setup is as below:

\def\HeadTitle#1#2%
{\hbox to \hsize \bgroup
\hfill
\setupframed[offset=.5em,frame=off]
\tbox{\framed[width=3cm,align=left]{#1}}%
\tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}%
\egroup}
\setuphead [chapter]
[color=green1,
 textstyle=,
 align=normal,
 continue=no,
 page=right,
 style=\tfc,
 before={\blank[2*big]},
 after={\blank[2*big]},
 command=\HeadTitle]

I want a local TOC after each chapter title. If I manually put

\placelist[section][criterium=chapter]

immediately after \chapter command then it does not work. Please help.

-- 
Best regards,
Shiv Shankar Dayal
___
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] context vs texinfo

2010-07-08 Thread Shiv Shankar Dayal
Hi,

I was using context and I had to wait for 16 seconds for one run
approximately. I switched to texinfo and it barely takes 2 seconds.

Can you please explain the diffrence? I know context is complex but still?

-- 
Best regards,
Shiv Shankar Dayal
___
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] underscore in index entry

2010-07-06 Thread Shiv Shankar Dayal
Hi,

I tried to put _ in index entry and am unable to do it. I tried following
1. \index{_shiv} 2. \index{\type{_shiv}} 3. \index{\textunderscore{} shiv}

Please help.

-- 
Best regards,
Shiv Shankar Dayal
___
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] Lua and metapost

2010-05-20 Thread Shiv Shankar Dayal
Hi all,

Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it
is possible to write Lua code which can generate Metapost code for graphics.
MetaLua can also help here. However, I do not know
how to develop a Lua library which can be integrated with ConTeXt but then
again I have not looked in this matter.

As you people may be knowing Prof. John Hobby has written a Haskell frontend
for Metapost which generates Metapost code.

Having a Lua version of same will help a lot. My only concern is using
MetaLua with ConTeXt.

-- 
Best regards,
Shiv Shankar Dayal
___
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] Lua and metapost

2010-05-20 Thread Shiv Shankar Dayal
Hi,

Please discard previous mail as I did not know about MPlib.

On Fri, May 21, 2010 at 12:48 AM, Shiv Shankar Dayal 
shivshankar.da...@gmail.com wrote:

 Hi all,

 Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it
 is possible to write Lua code which can generate Metapost code for graphics.
 MetaLua can also help here. However, I do not know
 how to develop a Lua library which can be integrated with ConTeXt but then
 again I have not looked in this matter.

 As you people may be knowing Prof. John Hobby has written a Haskell
 frontend for Metapost which generates Metapost code.

 Having a Lua version of same will help a lot. My only concern is using
 MetaLua with ConTeXt.

 --
 Best regards,
 Shiv Shankar Dayal




-- 
Best regards,
Shiv Shankar Dayal
___
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] POV-Ray

2010-05-18 Thread Shiv Shankar Dayal
Hi,

I have needs of graphics which is very heavy and I am using metapost,
metaobj and
metauml. However, as you may know the problems which I have reported I
think that
it would be better if I use POV-Ray for images. Sure the file size is
going to be blown
up by a margin but I think metapost can not beat POV-Ray in terms of power.

Please advice.

-- 
Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-17 Thread Shiv Shankar Dayal
Hi all,

Thanks a lot for this help. I tried again with modifications and it is working
with wrong alignment. I am tried using simplefonts like

\usemodule[simplefonts,vim,mathml]
\setmainfont[LucidaStd]
\setmonofont[CourierNew]

If I add the above code then it overrides Hanss' suggestion but still
the alignment
is wrong. I am going to try more fonts to get the alignment right.

 \startMPinclusions
    string metauml_defaultFont            ; metauml_defaultFont     :=
 \truefontname{Serif} ;
    string metauml_defaultFontOblique     ; metauml_defaultFontOblique     :=
 \truefontname{SerifItalic} ;
    string metauml_defaultFontBold        ; metauml_defaultFontBold     :=
 \truefontname{SerifBold} ;
    string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldOblique :=
 \truefontname{SerifBoldItalic} ;

    input metauml;
 \stopMPinclusions

 At least prevents the error but alignment is weird. Some pseudo typesetting
 is going on and the quality is suboptimal then (after all mp just pastes
 glyphs then). Take this:

 Class.A (Point) (+x: int, +y: int) ();

 It's probably no big deal for the author to support pictures instead of
 strings

 Class.A (Point) (btex +x: int etex, +y: int) ();

 Class.A (Point) (textext(+x: int), +y: int) ();

 It's probabaly already possible somehow but i have no time to look into the
 code in detail now.

 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
 -




-- 
Best regards,
Shiv Shankar Dayal
___
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] metaobj problem

2010-05-17 Thread Shiv Shankar Dayal
Hi,

I was trying to run following code from its manual i.e. metaobj's manual.

newCircle.a(btex A etex);
newCircle.b(btex B etex);
newCircle.c(btex C etex);
newCircle.d(btex D etex);
newCircle.e(btex E etex);
verbatimtex \small etex;
newMatrix.mat(3,3)(nb,a,nb,b,e,c,nb,d,nb) hsep(2cm), vsep(2cm);
mcline.mat(2,2,2,3) name(a);
ObjLabel.mat(btex a etex) labpathname(a),labpos(0.75), labdir(top);
mcline.mat(2,2,2,1) name(b);
ObjLabel.mat(btex b etex) labpathname(b),labdir(bot);
mcline.mat(3,2,2,1) name(c);
ObjLabel.mat(btex c etex) labpathname(c),labdir(llft);
mcarc.mat(3,2,1,2)
arcangleA(-40),arcangleB(-40), border(3pt), name(d);
ObjLabel.mat(btex d etex) labpathname(d),labdir(lrt), labpos(0.3);
ObjLabel.mat(btex e etex) labpathname(d),labdir(llft), labpos(0.7);
mcarc.mat(1,2,2,1) arcangleA(12),arcangleB(12), name(f);
ObjLabel.mat(btex f etex) labpathname(f),labdir(lrt);
mcarc.mat(2,1,1,2) arcangleA(12),arcangleB(12), name(g);
ObjLabel.mat(btex g etex) labpathname(g),labdir(ulft);
mat.c=origin;
drawObj(mat);

The problem is that the computer kind of stops processing. I mean it
is taking too long.
My pool_size is 100MB. I have increased it.

-- 
Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.

-- 
Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

 I am running ConTeXt mark IV. I need to use metauml for my work.
 However, I could not get it installed. Please help. The install file
 which comes with it does not work for context.

 more info needed .. test file and so

 Hans

Sorry about this. Following is from a file for which I took the code from
mailing list itself.

\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}

save A;
save B;
Class.A(Point)
   (+x: int,
+y: int) ();

Class.B(Circle)
   (radius: int)
   (+getRadius(): int,
+setRadius(r: int):void);

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);

\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}

This is included in starttext block.

For verbosity I am also giving you some errors.

 Isolated expression.
to be read again
   (
*  save A; save B; Class.A(
 Point) (+x: int, +y: int) (); Class.B(Ci...

! Extra tokens will be flushed.
to be read again
   (
*  save A; save B; Class.A(
 Point) (+x: int, +y: int) (); Class.B(Ci...

 Class.B
! Isolated expression.

Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
Hi,

 I am running ConTeXt mark IV. I need to use metauml for my work.
 However, I could not get it installed. Please help. The install file
 which comes with it does not work for context.

 more info needed .. test file and so

 Hans

 Sorry about this. Following is from a file for which I took the code from
 mailing list itself.

Sorry to bother you  people. It is a pain to waste time like this.
Since metaobj works
with context I will extend and use it to draw UML diagrams. I just
thought that since
it is mentioned as a package at contextgarden I was hoping that it
will work out of the
box.

-- 
Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
Hi,

I have sources of context cont-eni.pdf. When I try to compile them I
get lots of errors. I am using Mark IV. However, I am successfully
able to compile Metafun manual using texexec. Any clues?

-- 
Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
 I got another interesting point. Adobe Reader reports that the
 application which generated original cont-eni.pdf is TeX. But for my
 compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is
 different?

 what about
 $ pdfinfo cont-eni.pdf
 ?

For the original file it says ConTeXt/www.pragma-ade.com/cont-en.tex
as creator. I wonder how is that possible. :)

Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
Hi,

Thanks for being so patient and helping me. But we should not get
diverted from the original problem. What do you think is the reason
for that error? Also, I am getting tex size exceeded[parameter stack
size=6000] with MarkIV. In mailing list there is a thread which
mentions about tex.ch but I cant find it. I have installed using
rsync.

-- 
Best regards,
Shiv Shankar Dayal
___
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] compiling cont-eni

2009-10-20 Thread Shiv Shankar Dayal
I do not remember exactly when I got the source but I remember it was
through some link of wiki.contextgarden.net. If you recall Aditya we
had a discussion regarding vim syntax highlighting. It is of that
time.

Also, I have a fresh setup of context and I found that you t-vim.tex
has a line source kpse:2context.vim which I had to modify to source
kpsewhich:2context.vim.

 Hi,

 I have sources of context cont-eni.pdf. When I try to compile them I
 get lots of errors. I am using Mark IV. However, I am successfully
 able to compile Metafun manual using texexec. Any clues?

 cont-eni was written in 2001. It will not compile with MKIV. There has been
 many changes in the internals since 2001, so it is not surprising that it
 does not compile even with MKII. Usually, such errors can be corrected with
 a few changes. Where did you get the source files that you are testing on?

 Aditya
 ___

Best regards,
Shiv Shankar Dayal
___
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] syntax highlighting problem with vim module

2008-11-21 Thread Shiv Shankar Dayal
 Finally some success. I get product-name-vimsyntax.tmp when I run context.
 It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.

 I kill the compilation and run the command for vim manually which generates
 product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
 get pretty printing. I am somewhat happy but I do not know why this is
 happening.

Do you have write18 enabled? see http://wiki.contextgarden.net/write18

Aditya

Yes. write18 is enabled.
-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-20 Thread Shiv Shankar Dayal
Hi,

Finally some success. I get product-name-vimsyntax.tmp when I run context.
It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.

I kill the compilation and run the command for vim manually which generates
product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
get pretty printing. I am somewhat happy but I do not know why this is
happening.

-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Shiv Shankar Dayal
Hi,

I am running MarkIV and luatools t-vim.tex shows me the path of t-vim.tex.
The version does say version=2008.07.15.

I tried to execute the same command which t-vim.tex executes for vim but
it says that command line is not correct. I switched on the logging and then
I read the log and it says tabstop=8 is a new file. I doubt that something may
be wrong with the command line for vim.

-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Shiv Shankar Dayal
Hi,

I updated context and grepped mtxrun for noquotes and the output is
same as yours.

I have a query. Line 270 of t-vim says \runvimsyntax{#2}
Line275: \input #2-vimsyntax.tmp\relax

where #2 is product_name-vimsyntax.tmp.

This means that if the product name is xyz then \runvimsyntax{#2}
which is basically
a run of vim over #2 and it generates the #2-vimsyntax.tmp.

-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
Hi,

If I have a product name xyz and I have following things set up.
\usemodule[vim]
\setuptyping[option=color]
\definevimtyping [C] [syntax=c]

then I have following
..
\startC
#include iostream
using namespace std;
\stopC
.
I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp

temmfstart bin:vim starts vim. vim is in the path. I am using Windows
Vista with Texlive 2008.
I would also like to know the syntax for C++.
-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
Hi,

I tried on both windows as well as on linux but I fail with the new
module as well.
The error being the same.

I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'.

One thing I noticed that there is t-vim.tpm file. Where to put it?
I have installed texlive 2008 in C\texlive on Windows and
/usr/local/texlive/ on Linux.
-- 
Best regards,
Shiv Shankar Dayal
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___