[NTG-context] custom command \myframedsection does not always work. Bug?

2011-10-30 Thread Curiouslearn
Hi All,

Please see the working example below. I have defined a command called
\myframedsection. It works the first two times I use it, but not the
third time. I think it has something to do with using
\startitemize...\stopitemize before the command is used the third
time. But I am not sure. Can someone please tell me why it is not
working, and how I can change my definition so that it works? Is this
a bug?



Minimal Example:

\setuppapersize[letter][letter]
\setupwhitespace[medium]
\setuplayout[height=middle,width=middle,topspace=0.5in,header=1cm,backspace=1.25in]
\setupcolors[state=start]
\setupcolor[xwi]
\setupinteraction[state=start]

% Changing the location of the page numbers so that they appear in the footer.
\setuppagenumbering[location=footer]
\setupnarrower[left=2ex]
\setupitemize[margin=0.5cm]
\setupitemize[a]
\setupitemize[stopper=)]



%%% Defining \mysection and \myframedsection %%%
\definehead[mysection][section]
\setuphead[mysection][color=blue*:3]


\def\myframedsection#1{\bgroup\vskip 0.5in
\framed[background=color, backgroundcolor=gray:10]
{\mysection{#1}}%
  \egroup}

\starttext

\myframedsection{Confidence Intervals from the normal and $t$-distributions}

{\bf Here myframedsection commmand works.}

\subsection{Confidence Interval for Mean}


\subsection{Confidence Interval for Proportion}


\subsection{Confidence Interval for Linear Transformation}


 SECTION 
\myframedsection{Classical Hypothesis Testing}
 SECTION 

{\bf Here myframedsection commmand works.}


\startitemize
\item
  some item here

 \item
some item here
\stopitemize

 SECTION 

\myframedsection{Problems with Statistical Significance}

 SECTION 

{\bf where is the section title??}

Researchers often compare results based on statistical
significance. There are two pitfalls in doing so:

\startitemize
\item
  Statistical significance does not mean practical significance.

  A result that is statistically significant may be practically
  insignificant.

\item
  If one result is statistically significant and other is not, it
  does not necessarily mean that the difference in the two results
  is statistically significant.

  For example, suppose there are two independent studies, one with
  an effect estimate of 25 and standard error of 10. Another with
  an effect estimate of 10 and standard error of 10. The former is
  statistically significant at 1\% significance level. The latter
  is not significant at 1\%. From this one may be tempted to
  conclude that there is a large/significant difference between
  the results in two studies. However, this is not true. The
  estimate of difference in the effects is 15 with standard error
  of $ \sqrt{10^{2} + 10^{2}} = 14 $. This is not even close to being
  statistically significant at 1\% level.
\stopitemize



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


Re: [NTG-context] custom command \myframedsection does not always work. Bug?

2011-10-30 Thread Curiouslearn
Hi Wolfgang,

Thanks very much. Your command worked great.

Regards,
Bharat

On Sun, Oct 30, 2011 at 1:42 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 30.10.2011 um 16:00 schrieb Curiouslearn:

 Hi All,

 Please see the working example below. I have defined a command called
 \myframedsection. It works the first two times I use it, but not the
 third time. I think it has something to do with using
 \startitemize...\stopitemize before the command is used the third
 time. But I am not sure. Can someone please tell me why it is not
 working, and how I can change my definition so that it works? Is this
 a bug?

 \definehead[mysection][section]
 \setuphead[mysection][color=blue*:3]

 \def\myframedsection#1{\bgroup\vskip 0.5in
            \framed[background=color, backgroundcolor=gray:10]
                            {\mysection{#1}}%
                      \egroup}

 No wonder you get unexpected results with this definition, better solutions 
 are

 \definehead[myframedsection][section]

 \setuphead
  [myframedsection]
  [before={\blank[0.5in]\startframedtext[background=color,backgroundcolor=gray:10]},
   after={\stopframedtext\blank[0.25in]},
   color=blue*:3]

 and

 \define[2]\MyframedsectionCommand
  {\framed
     [background=color,backgroundcolor=gray:10,align=flushleft]
     {\hbox to 2cm{#1}\vtop{\hsize=\dimexpr\hsize-2cm\relax#2}}}

 \definehead[myframedsection][section]

 \setuphead
  [myframedsection]
  [before={\blank[0.5in]},
   command=\MyframedsectionCommand,
   style=blue*:3]

 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
___


[NTG-context] margin in TEXpage

2011-04-20 Thread Curiouslearn
Hello All,

In the following minimal example there is no whitespace around the
figure. Is it possible to add some white space around the figure when
using \startTEXpage \stopTEXpage environment.

Thank you.

\usemodule[tikz]
\starttext
\startTEXpage
  \starttikzpicture
\draw[fill=blue!20] (0,0) rectangle (3,2);
  \stoptikzpicture
\stopTEXpage
\stoptext

Regards,
Bharat
___
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 in TEXpage

2011-04-20 Thread Curiouslearn
Awesome! Thanks so much, Khaled.

On Wed, Apr 20, 2011 at 10:41 AM, Khaled Hosny khaledho...@eglug.org wrote:
 On Wed, Apr 20, 2011 at 10:25:15AM -0400, Curiouslearn wrote:
 Hello All,

 In the following minimal example there is no whitespace around the
 figure. Is it possible to add some white space around the figure when
 using \startTEXpage \stopTEXpage environment.

 Thank you.

 \usemodule[tikz]
 \starttext
 \startTEXpage
   \starttikzpicture
       \draw[fill=blue!20] (0,0) rectangle (3,2);
   \stoptikzpicture
 \stopTEXpage
 \stoptext

 Try \startTEXpage[offset=1pt] etc.

 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
 ___

___
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] What are the best fonts to use

2011-03-16 Thread Curiouslearn
Cecil, thanks for asking this question. Even though the answers
may/will be subjective, it is quite likely that there are people here
who have given some thought to font choice. I agree with previous
responses that reading a book on typography would certainly be
helpful. Nevertheless, I am interested in hearing what fonts people
like (if they do not mind sharing). I, and perhaps some others, may
learn about a few fonts.

Bharat


On Mon, Mar 14, 2011 at 8:31 PM, David Rogers
davidandrewrog...@gmail.com wrote:
 * Cecil Westerhof cldwester...@gmail.com [2011-03-14 12:44]:

 At the moment I use for my ebook:
 \usetypescript[palatino][texnansi]
 \setupbodyfont[palatino,rm,12pt]

 Does not look to bad, but layout is not my forte. So if people have tips
 about the fonts to use, I like to hear them.

 Do you use other fonts when using a printed book?


 I don't think this question can have one answer. There are many good
 answers, depending on the kind of book (or other printed material).

 1. I think the layout of the page itself can have a great deal to do
 with whether a certain font looks good (e.g. amount of white space,
 length of lines, etc). Paying proper attention to the gross aspects of
 your layout, such as margins and line heights, goes a long way to
 improving the appearance of the whole work, and brings out the best in
 whichever font you choose.

 2. To some extent, different fonts can suit different material (e.g. a
 book of poems vs a financial report, or a textbook vs a novel). For
 extended reading, the conventional wisdom is to choose a
 normal-looking font that doesn't call attention to itself too much,
 but obviously you also want one that is at least somewhat attractive to
 look at.

 3. Frankly, giving people what they are already used to is often the
 best plan - probably more often than typographers would care to admit.
 In my opinion, variation for its own sake is over-rated and over-used.

 --
 David
 ___
 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] slide steps again

2011-03-07 Thread Curiouslearn
Thanks for pointing me to this, Dalyoung.

On Sun, Mar 6, 2011 at 7:17 PM, Jeong Dalyoung hak...@me.com wrote:

 Hi,

 If you want to reveal parts of a drawing sequentially, you may try MetaFun 
 and AdobeReader.

 There is a sample  in 13.6 Growing graphics, metafun manual(metafun-p).

 It needs your time but the result is very nice.

 I hope you enjoy it.

 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
 ___

___
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] problem with tikz remember picture and overlay.

2011-03-07 Thread Curiouslearn
Hello,

I am trying to use tikz's remember picture and overlay for absolute
positioning. With the code below, the content in the tikz picture
appears on a new page after the slide title. I want it to appear on
the same page. Please see the minimal example below. I have explained
with comments where the problem occurs.

Thanks for your help.

\setuppapersize[S6][S6]
\setuplayout[backspace=0.5in, width=middle, header=0.25in,
  topspace=0.25in, height=middle]
\setupbackgrounds[page][background=color, backgroundcolor=linen]
\setupwhitespace[medium]
\setuppagenumbering[location=]
\setupcolors[state=start]
\setupinteraction[state=start,color=blue]
\setupcolor[xwi]

\definehead[slidetitle][subject]
\setuphead[slidetitle][style=\tfb,
   color=lightsteelblue]

\def\SlideTitle#1{\page\framed[frame=off, background=color, %
backgroundcolor=gray:9]{\slidetitle{#1}}}
\usemodule[simplefonts]
\setmainfont[Helvetica]
\switchtobodyfont[20pt]

\definehead[slidetitle][subject]
\setuphead[slidetitle][style=\tfb,
   color=lightsteelblue]

 \def\SlideTitle#1{\page\framed[frame=off, background=color, %
backgroundcolor=gray:9]{\slidetitle{#1}}}

\starttext

 \SlideTitle{Product Characteristics and Quality}

 % This tikz content should appear on the same page as the title,
but it appears
  % on a new page. If I use \subject{Product Characteristics and
Quality} then
  % the tikz content appears on the same page.

 \starttikzpicture[remember picture, overlay]
   \node[xshift=2in, yshift=2in] at (current page.north west)
[text width = 2in]{Weight?}
 \stoptikzpicture

% The following content appears on another page after the tikz
content. This is independent
% of whether I use \SlideTitle or \subject. How can I make all of
these appear on the same page?

 MORE CONTENT HERE


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


Re: [NTG-context] problem with tikz remember picture and overlay.

2011-03-07 Thread Curiouslearn
Hi All,

I realized one error in my tikz code. I forgot the semi-colon. But
with the semi-colon, the tikz part is completely ignored.

Anyhow, in a previous post here I found a good example of absolute
positioning of text using Context's positioning macro. That is awesome
for my current purpose. Thanks Peter for that (and of course, Hans for
everything).

But would still like to learn if Tikz's absolute positioning is
incompatible with Context.

Bharat

On Mon, Mar 7, 2011 at 8:02 AM, Curiouslearn curiousle...@gmail.com wrote:
 Hello,

 I am trying to use tikz's remember picture and overlay for absolute
 positioning. With the code below, the content in the tikz picture
 appears on a new page after the slide title. I want it to appear on
 the same page. Please see the minimal example below. I have explained
 with comments where the problem occurs.

 Thanks for your help.

    \setuppapersize[S6][S6]
    \setuplayout[backspace=0.5in, width=middle, header=0.25in,
      topspace=0.25in, height=middle]
    \setupbackgrounds[page][background=color, backgroundcolor=linen]
    \setupwhitespace[medium]
    \setuppagenumbering[location=]
    \setupcolors[state=start]
    \setupinteraction[state=start,color=blue]
    \setupcolor[xwi]

    \definehead[slidetitle][subject]
    \setuphead[slidetitle][style=\tfb,
                           color=lightsteelblue]

    \def\SlideTitle#1{\page\framed[frame=off, background=color, %
        backgroundcolor=gray:9]{\slidetitle{#1}}}
    \usemodule[simplefonts]
    \setmainfont[Helvetica]
    \switchtobodyfont[20pt]

    \definehead[slidetitle][subject]
    \setuphead[slidetitle][style=\tfb,
                           color=lightsteelblue]

     \def\SlideTitle#1{\page\framed[frame=off, background=color, %
        backgroundcolor=gray:9]{\slidetitle{#1}}}

    \starttext

     \SlideTitle{Product Characteristics and Quality}

     % This tikz content should appear on the same page as the title,
 but it appears
      % on a new page. If I use \subject{Product Characteristics and
 Quality} then
      % the tikz content appears on the same page.

     \starttikzpicture[remember picture, overlay]
       \node[xshift=2in, yshift=2in] at (current page.north west)
            [text width = 2in]{Weight?}
     \stoptikzpicture

    % The following content appears on another page after the tikz
 content. This is independent
    % of whether I use \SlideTitle or \subject. How can I make all of
 these appear on the same page?

     MORE CONTENT HERE


     \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] Layers for absolute positioning

2011-03-07 Thread Curiouslearn
Hi,

I have been trying to learn the best way to position text on a page.
From the messages it appears that a good way to do so, is to use
layers. But it seems that to activate them I need to set them as
background of the page. However, that removes the background color.
How can I get both layers and a background color?

I have given a minimal example below.

Thanks,
Bharat


This is the minimal example I am working with:

\setupcolors[state=start]
\setupcolor[xwi]

\setupbackgrounds[page][background=color, backgroundcolor=linen]
\starttext

\definelayer [windows] [x=3in, y=3in, width=3in, height=4in]

\setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7}

\setupbackgrounds[page][background=windows]

\page[empty]

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


Re: [NTG-context] Layers for absolute positioning

2011-03-07 Thread Curiouslearn
Thanks, Wolfgang!  That works great.

Another related question...can I add a different background color to
the layer (a color different than rest of the page).

Thanks.

On Mon, Mar 7, 2011 at 3:34 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 07.03.2011 um 20:51 schrieb Curiouslearn:

 Hi,

 I have been trying to learn the best way to position text on a page.
 From the messages it appears that a good way to do so, is to use
 layers. But it seems that to activate them I need to set them as
 background of the page. However, that removes the background color.
 How can I get both layers and a background color?

 \setupbackgrounds[page][background={color,windows}]

 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
___


[NTG-context] Can Layers be combined with \startitemize

2011-03-07 Thread Curiouslearn
The following does not work as expected. All the items are on the same
line and they overlap each other.

Can someone please let me know if Layers can be combined with
\startitemize...\stopitemize and if so, how to do it.

Thanks,
Bharat

\setupcolors[state=start]
\setupcolor[xwi]

\setupbackgrounds[page][background=color, backgroundcolor=linen]
\starttext

\definelayer [windows] [x=3in, y=3in, width=3in, height=4in]
\definelayer [apple] [x=0.5in, y=0.5in, width=2in, height=2in]

\setlayer [windows] [hoffset=1cm, voffset=1cm]
{Windows 7
\startitemize[n]
  \item
Starter
  \item
Home Premium
  \item
Professional
  \item
Ultimate
\stopitemize }

\setlayer [apple][background=color, backgroundcolor=gray]{Apple}

\setupbackgrounds[page][background=windows]

\page[empty]

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


Re: [NTG-context] Can Layers be combined with \startitemize

2011-03-07 Thread Curiouslearn
Thanks very much Wolfgang. This is very helpful.

Regards,
Bharat

On Mon, Mar 7, 2011 at 5:14 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 07.03.2011 um 23:09 schrieb Curiouslearn:

 The following does not work as expected. All the items are on the same
 line and they overlap each other.

 Can someone please let me know if Layers can be combined with
 \startitemize...\stopitemize and if so, how to do it.

 \setlayer [windows] [hoffset=1cm, voffset=1cm]
 {Windows 7
        \startitemize[n]
          \item
            Starter
          \item
            Home Premium
          \item
            Professional
          \item
            Ultimate
        \stopitemize }

 \setlayer [apple][background=color, backgroundcolor=gray]{Apple}

 \setlayerframed
  [name]
  [background=color,
   backgroundcolor=color,
   align=right,
   ...]
  {\startitemize ... \stopitemize}

 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
___


[NTG-context] slide steps again

2011-03-06 Thread Curiouslearn
Hi All,

I am making some slides using the Swoosh style in simpleslides module.
I wanted to reveal some content sequentially. I read the messages here
and learn about pre-stepwise.

I tried the following. It does not, however, work.

  \usemodule[simpleslides][style=Swoosh]
  \usemodule[pre-stepwise]

  \starttext
  \SlideTitle{Context can be used for \dots}

 \StartSteps

 \startitemize[n]
  \item
  Writing your articles \FlushStep
  \item
  Making slides for presentations \FlushStep
 \stopitemize

\StopSteps

   \SlideTitle{Context Wish List}

  Can someone please enhance simpleslides so that one can
do as many things with it as with Beamer?

 \stoptext

The material on first slide does not appear. When one clicks next, one
goes directly to the next slide. I am using

ConTeXt  ver: 2010.12.15 13:04 MKIV  fmt: 2010.12.15  int: english/english

Thanks,
Bharat
___
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] slide steps again

2011-03-06 Thread Curiouslearn
Thanks Aditya! I will try this. But I suppose this will not work with
TikZ (revealing parts of a drawing sequentially). I think neither does
pre-stepwise (if I am wrong about this, that would be nice)



On Sun, Mar 6, 2011 at 6:21 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sun, 6 Mar 2011, Curiouslearn wrote:

 I am making some slides using the Swoosh style in simpleslides module.
 I wanted to reveal some content sequentially.

 simpleslides does not support stepwise presentation of material.

 I occasionally use the following macros for quick and dirty stepwise
 effects. This is for really simple material (no counters, no glues ...)

 \usemodule[simpleslides][style=Swoosh]
 \def\StartSteps#1#2\StopSteps%
   {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
    \dorecurse{#1}{\long\setvalue{\recurselevel}{\oneofone} #2}}

 \long\def\gobble#1{}
 \long\def\oneofone#1{#1}

 \starttext
 \StartSteps{3}
 \SlideTitle{Context can be used for \dots}

 \null

 \startitemize[n]
  \2{\item Writing your articles}

  \3{ \item Making slides for presentations }
 \stopitemize

 \StopSteps

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

___
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] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Hi

Today I started making lecture slides for one of my classes and
decided to try out simpleslides. First of all, thanks to Thomas and
Aditya for writing the module.

I had a question regarding vertical alignment. Consider the following
minimal example:

   \usemodule[simpleslides][style=Swoosh]
   \starttext
   \SlideTitle{Context can be used for \dots}

  \startitemize[n]
   \item
   Writing your articles
   \item
   Making slides for presentations
  \stopitemize

  \stoptext

The two items appear at the top of the slide. Is there a command or a
setting such that items will be aligned around the center of the
screen?

Thank you for your help.

Bharat
___
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] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Thanks for the response, Aditya.

However, the first method

\setupitemize[before=\vfill,after=\vfill]

does not change anything for me. The items are still at the top.

The second one (\setupitemize[1][inbetween=\vfill]) changes things.
However, the first item is at the top of the screen and the second is
at the bottom. I would like them to be near the center. Something like
what 'middle' does for horizontal alignment with two words, I want to
do for vertical alignment.

Thanks.



On Sat, Mar 5, 2011 at 11:23 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 5 Mar 2011, Curiouslearn wrote:

 Hi

 Today I started making lecture slides for one of my classes and
 decided to try out simpleslides. First of all, thanks to Thomas and
 Aditya for writing the module.

 I had a question regarding vertical alignment. Consider the following
 minimal example:

              \usemodule[simpleslides][style=Swoosh]
              \starttext
              \SlideTitle{Context can be used for \dots}

             \startitemize[n]
              \item
                  Writing your articles
              \item
                  Making slides for presentations
             \stopitemize

             \stoptext

 The two items appear at the top of the slide. Is there a command or a
 setting such that items will be aligned around the center of the
 screen?

 \setupitemize[before=\vfill,after=\vfill]

 You can also add

 \setupitemize[1][inbetween=\vfill]

 Another option is:

 \def\StartSlide#1%
  {\SlideTitle{#1}
   \vfill}

 \def\StopSlide
  {\vfill}

 and then

 \StartSlide{...}
 ...
 \StopSlide

 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
 ___

___
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] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Awesome!! This worked great. I need to understand what 2fill and 3fill
does. I will try looking at Victor Eijkhout's book. But if you know of
any other easy reference, please let me know.

Thanks for your help.

Bharat

On Sat, Mar 5, 2011 at 11:56 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 5 Mar 2011, Curiouslearn wrote:

 Thanks for the response, Aditya.

 However, the first method

   \setupitemize[before=\vfill,after=\vfill]

 does not change anything for me. The items are still at the top.

 Didn't realize that you were using the Swoosh style, that sets its title
 using a layer. Therefore you need to use

 \setupitemize[before=\null\vfill, after=\vfill]

 The second one (\setupitemize[1][inbetween=\vfill]) changes things.
 However, the first item is at the top of the screen and the second is
 at the bottom. I would like them to be near the center. Something like
 what 'middle' does for horizontal alignment with two words, I want to
 do for vertical alignment.

 This is useful only if the previous command works. You can play around with
 the amount of fill at the start and end to create symmetric looking layouts.
 For example:

 \setupitemize[1][before={\null\vskip 1ex plus 2fill},
                 after={\vskip 1ex plus 3fill}]
 \setupitemize[1][inbetween=\vfill]

 (Actually, rather than using the low-level \vskip, it is better to use
 ConTeXt high level interface using \blank. But I do not remember how create
 \blank with vertical glue).

 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
 ___

___
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] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Thanks very much!! That makes it very clear.



On Sun, Mar 6, 2011 at 12:28 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Sun, 6 Mar 2011, Curiouslearn wrote:

 Awesome!! This worked great. I need to understand what 2fill and 3fill
 does. I will try looking at Victor Eijkhout's book. But if you know of
 any other easy reference, please let me know.

 Think of fill as a spring that pushes both sides. 2fill is a spring that
 pushes twice as hard. With a \vskip 1ex plus 2fill at top and \vskip 1ex
 plus 3fill at bottom, 2/5 th of the total blank space is on the top, and 3/5
 th is at the bottom.

 With inbetween=\vfill, and two items, the equation changes to

 2/6th of the empty space on top
 1/6th of the empty space inbetween the two items
 3/6th of the empty at the bottom

 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
 ___

___
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] problems with bib

2011-02-28 Thread Curiouslearn
I had the same problem a few months back (the bibliography includes
all references not only the ones I have cited in my document)

I still have this problem. I think Thomas Schmitz is going to fix
this. Any ideas on when this is going to be fixed? Can I request that
this be fixed soon as it is important for writing papers that need to
be circulated to others.

Thanks in advance.

Regards,
Bharat


On Mon, Feb 28, 2011 at 9:37 AM, Stefan Müller warrence@gmx.de wrote:
 Hi list,

 until now I used the bib module for my bibliography in a rather large
 document in MkIV by calling \usemodule[bib].

 Today I updated to version 2011.02.25 22:03 and the document does no longer
 compile. I removed the above line from my document and it ran again, but the
 References section was empty and I got [[error 1]] everywhere I used
 \cite. So I changed \completepublications to
 \completepublications[criterium=all]. Now I have the complete list of
 references (I know, I asked for it) but instead I only want to have those
 references in the list that I cited in the document.

 Some questions:
 (1) Is the bib module obsolete? If so, can someone provide me with a small
 example how to properly make bibliographies now, preferably from a
 .bib-file?

 (2) If this is not already answered by the first question: How do I get the
 references list to display only the cited entries from my bibliography,
 [criterium=?]?

 (3) What do I have to do to let context find the sample.bib database? I get
 I couldn't open database file sample.bib.bib or I couldn't open database
 file sample.bib in the output depending on whether I added .bib or not.

 My current setup is this:
 %\usemodule[bib]
 \setupbibtex[database={mybibdatabase.bib}]
 \setuppublications[alternative=ams, refcommand=num]
 \setupcite[num][lastpubsep={, }]
 \setupcite[author][left=, right=]
 ...
 \completepublications[criterium=all]

 Any help appreciated,
 Stefan
 ___
 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] problems with bib

2011-02-28 Thread Curiouslearn
Thank you, Thomas. Using

 \usepublications[criterium=text]

fixed the problem of all citations. However, the names in bibliography
do not appear in alphabetical order. I will look through the thread to
see any solutions to that.

Thanks again. Appreciate your help.

Bharat



On Mon, Feb 28, 2011 at 12:00 PM, Thomas Schmitz tschm...@uni-bonn.de wrote:
 On Mon, 28 Feb 2011 11:41:02 -0500
  Curiouslearn curiousle...@gmail.com wrote:

 I had the same problem a few months back (the bibliography includes
 all references not only the ones I have cited in my document)

 I still have this problem. I think Thomas Schmitz is going to fix
 this. Any ideas on when this is going to be fixed? Can I request that
 this be fixed soon as it is important for writing papers that need to
 be circulated to others.

 Thanks in advance.

 Regards,
 Bharat

 Hi Bharat and all,

 1. No, that's not right. I simply collected outstanding issues, I can't fix
 them.

 2. Hans is working on bib issues as we speak, but he has only so much time,
 so no ETA.

 3. For the problem described above, try

 \usepublications[criterium=text]

 Bib support is an extremely complex area, so be aware that we're still
 experimenting and things are moving. Having as many testers as possible with
 many different requirements helps a lot finding and identifying errors.

 HTH

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

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

___
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] increase space on the left of pages included using \copypages

2011-02-23 Thread Curiouslearn
Anyone? If it cannot be done, I would appreciate if someone can say that. I

Thanks you.

On Tue, Feb 22, 2011 at 9:16 AM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please help me with this? I suppose I have not received an
 answer because there is no minimal example. I thought it would be
 straightforward for someone in the forum without seeing an example.

 Anyhow I have attached a pdf file (includethis.pdf) and a tex file in
 which I am trying to include pages from the pdf file. I want to
 increase the left side margin on the pages on which included file is
 present.

 Thank you in advance.

 On Mon, Feb 21, 2011 at 10:58 AM, Curiouslearn curiousle...@gmail.com wrote:
 Hello,

 I am trying to use the \copypages command to include a pdf file,
 say file3pages.pdf with three pages in my context
 document. First, I issued the command:

    \copypages[file3pages.pdf]

 The pages from file3pages.pdf are too close to the left
 margin. There is not enough white space on the left whereas,
 there is a lot of space on the right of the included pages. So, I tried

    \hskip 0.5in \copypages[file3pages.pdf]

 This creates appropriate space on the left of the included pages,
 but only for the first page of file3pages.pdf. The second and
 third pages of file3pages.pdf are the same as before (too close
 to the left margin).

 How can I apply \hskip 0.5in to each of the pages included from the
 file3pages.pdf.
 Can someone please suggest if there is a better way to
 increase the space on the left. Please note that the included
 pages do not respect the margins I have set for the document.

 Thanks a lot.


___
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] increase space on the left of pages included using \copypages

2011-02-23 Thread Curiouslearn
Thanks very much Hans. I suppose I will have to issue the command for
each page separately then (with possibly a loop). I was wondering if
there was an option in \copypages or some other command that applied
to each page of the PDF file. But having heard from you, now I know
there isn't. Thanks again. Context is really awesome.



On Wed, Feb 23, 2011 at 6:21 AM, Hans Hagen pra...@wxs.nl wrote:
 On 23-2-2011 12:11, Curiouslearn wrote:

 Anyone? If it cannot be done, I would appreciate if someone can say that.
 I

 i have no time now, but you can always do

 \startTEXpage
 \hskip1cm\externalfigure[...][page=1]
 \stopTEXpage

 -
                                          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] increase space on the left of pages included using \copypages

2011-02-23 Thread Curiouslearn
Hi Thomas,

I am preparing notes for my lectures and I would like to include some
online news articles (such as NY times) that I save as PDF,  in my
notes (these notes are for me). When I save these online articles as
pdf, I often get a small left margin and big right margin (just as in
includethis.pdf; I deliberately made it similar to these news
articles).

I will try to do this using lua loop. I should learn it. I am learning
so many new things currently that I have not had a chance to learn
Lua.

I was wondering if Aditya's filter module could be used to use Python
instead of Lua, but I suppose I should ask that as a new question.

Thanks for your help.

Bharat


On Wed, Feb 23, 2011 at 6:33 AM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Curiouslearn (if you're older than 13 years, I'd appreciate a real name), 
 it's not easy to see what you want to do. The included pages, like the 
 document where you want to include them, are letter size. If you simply 
 include them, they will take the entire width. The small margin left and big 
 margin right are already in you includethis.pdf. If you want more margin 
 left, all you can do is scale the image. Or adjust the papersize of the file 
 you want to include. But if you want to have some special effect (like 
 pushing part of your included image off the page), you'll have to use 
 something like \externalfigure, as Hans suggested. Btw, if you know the 
 number of pages you want to include, it's relatively trivial to write a 
 simple loop, both in mkii (with \dorecurse and \recurselevel) or with a lua 
 loop.

 Thomas

 On Feb 23, 2011, at 12:11 PM, Curiouslearn wrote:

 Anyone? If it cannot be done, I would appreciate if someone can say that. I

 Thanks you.

 On Tue, Feb 22, 2011 at 9:16 AM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please help me with this? I suppose I have not received an
 answer because there is no minimal example. I thought it would be
 straightforward for someone in the forum without seeing an example.

 Anyhow I have attached a pdf file (includethis.pdf) and a tex file in
 which I am trying to include pages from the pdf file. I want to
 increase the left side margin on the pages on which included file is
 present.

 Thank you in advance.

 On Mon, Feb 21, 2011 at 10:58 AM, Curiouslearn curiousle...@gmail.com 
 wrote:
 Hello,

 I am trying to use the \copypages command to include a pdf file,
 say file3pages.pdf with three pages in my context
 document. First, I issued the command:

    \copypages[file3pages.pdf]

 The pages from file3pages.pdf are too close to the left
 margin. There is not enough white space on the left whereas,
 there is a lot of space on the right of the included pages. So, I tried

    \hskip 0.5in \copypages[file3pages.pdf]

 This creates appropriate space on the left of the included pages,
 but only for the first page of file3pages.pdf. The second and
 third pages of file3pages.pdf are the same as before (too close
 to the left margin).

 How can I apply \hskip 0.5in to each of the pages included from the
 file3pages.pdf.
 Can someone please suggest if there is a better way to
 increase the space on the left. Please note that the included
 pages do not respect the margins I have set for the document.

 Thanks a lot.


 ___
 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] increase space on the left of pages included using \copypages

2011-02-23 Thread Curiouslearn
Thanks to all. This time around I will use the lua route since I know
the number of pages and it seems more natural to me...I will
understand what it is doing even if I look at the thing after one
month.

Bharat

On Wed, Feb 23, 2011 at 10:27 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Wed, 23 Feb 2011, Curiouslearn wrote:

 I will try to do this using lua loop. I should learn it. I am learning
 so many new things currently that I have not had a chance to learn
 Lua.

 I was wondering if Aditya's filter module could be used to use Python
 instead of Lua, but I suppose I should ask that as a new question.

 It is easy to do this in TeX, so no need to go to lua (or python).

 Call

 \getfiguredimensions[filename]

 Then you can use

 \noffigurepages
 \figurenaturalwidth \figurenaturalheight

 to place each page of the figure. Something like:

 \getfiguredimensions[filename]
 \dorecurse{\noffigurepages}
 {\externalfigure[figurename][page=\recurselevel]}

 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
 ___

___
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] increase space on the left of pages included using \copypages

2011-02-22 Thread Curiouslearn
Can someone please help me with this? I suppose I have not received an
answer because there is no minimal example. I thought it would be
straightforward for someone in the forum without seeing an example.

Anyhow I have attached a pdf file (includethis.pdf) and a tex file in
which I am trying to include pages from the pdf file. I want to
increase the left side margin on the pages on which included file is
present.

Thank you in advance.

On Mon, Feb 21, 2011 at 10:58 AM, Curiouslearn curiousle...@gmail.com wrote:
 Hello,

 I am trying to use the \copypages command to include a pdf file,
 say file3pages.pdf with three pages in my context
 document. First, I issued the command:

    \copypages[file3pages.pdf]

 The pages from file3pages.pdf are too close to the left
 margin. There is not enough white space on the left whereas,
 there is a lot of space on the right of the included pages. So, I tried

    \hskip 0.5in \copypages[file3pages.pdf]

 This creates appropriate space on the left of the included pages,
 but only for the first page of file3pages.pdf. The second and
 third pages of file3pages.pdf are the same as before (too close
 to the left margin).

 How can I apply \hskip 0.5in to each of the pages included from the
 file3pages.pdf.
 Can someone please suggest if there is a better way to
 increase the space on the left. Please note that the included
 pages do not respect the margins I have set for the document.

 Thanks a lot.



minimal_example.tex
Description: TeX document


includethis.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] increase space on the left of pages included using \copypages

2011-02-21 Thread Curiouslearn
Hello,

I am trying to use the \copypages command to include a pdf file,
say file3pages.pdf with three pages in my context
document. First, I issued the command:

\copypages[file3pages.pdf]

The pages from file3pages.pdf are too close to the left
margin. There is not enough white space on the left whereas,
there is a lot of space on the right of the included pages. So, I tried

\hskip 0.5in \copypages[file3pages.pdf]

This creates appropriate space on the left of the included pages,
but only for the first page of file3pages.pdf. The second and
third pages of file3pages.pdf are the same as before (too close
to the left margin).

How can I apply \hskip 0.5in to each of the pages included from the
file3pages.pdf.
Can someone please suggest if there is a better way to
increase the space on the left. Please note that the included
pages do not respect the margins I have set for the document.

Thanks a lot.
___
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] Installation context minimals

2010-12-15 Thread Curiouslearn
Hello,

Can someone please tell me if the instructions for
installation/updating of minimals given on

http://wiki.contextgarden.net/ConTeXt_Minimals#Unix-like_platforms_.28Linux.2FMacOS_X.2FFreeBSD.2FSolaris.29

are still valid.

I went to my /Applications/ContextMinimals folder (on Mac OSX) and typed:

sh first-setup.sh --extras=all

Then I entered,

mtxrun --selfupdate

However, I got the following:


MTXrun | resolvers: to be replaced old script
/Applications/ConTeXtMinimalsStable/tex/texmf-osx-intel/bin/mtxrun
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: unable to locate new script

Seems like there was a problem here. Anyway, I went ahead and did

luatools --selfupdate

and I got:

MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

and, then I did

context --make

which gave me,

MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Can someone please explain the recipe for installation. What I should do?

Also, I have read long back in the forum that some people have two
installations at the same time and you can switch between these. How
is this done? Is there any information about this on the Wiki.

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] Installation context minimals

2010-12-15 Thread Curiouslearn
I just want to update my post to include the following information:

I had forgotten to run the following step during the installation:

source /Applications/ContextMinimals/tex/setuptex

I did that and ran the three commands

   mtxrun --selfupdate
   luatools --generate
   context --make


This time a lot of things happened for the the latter two commands.

I should mention that I also added the following line to my .bash_profile file

. /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex

However, when I try to typeset the file, I get the following error:

MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Any ideas. Please help!
___
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] Installation context minimals

2010-12-15 Thread Curiouslearn
OkayI think the following was missing. In addition to the three
commands I needed

mtxrun --generate

I have update the Wiki by adding this command to making formats. Let
me know if this is incorrect.


On Wed, Dec 15, 2010 at 7:41 PM, Curiouslearn curiousle...@gmail.com wrote:
 I just want to update my post to include the following information:

 I had forgotten to run the following step during the installation:

    source /Applications/ContextMinimals/tex/setuptex

 I did that and ran the three commands

   mtxrun --selfupdate
   luatools --generate
   context --make


 This time a lot of things happened for the the latter two commands.

 I should mention that I also added the following line to my .bash_profile file

 . /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex

 However, when I try to typeset the file, I get the following error:

 MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

 Any ideas. Please help!

___
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] Bibliography contains references not cited in the text

2010-12-01 Thread Curiouslearn
Thanks a ton for doing all of this, Hans.

Thanks also to all other developers of Context.

On Wed, Dec 1, 2010 at 4:24 AM, Hans Hagen pra...@wxs.nl wrote:
 On 30-11-2010 11:02, Curiouslearn wrote:

 Perhaps, by coincidence the example that I sent had the bbl file
 sorted. But the full file does not have the references sorted. Does
 this mean I have to first get the bbl file sorted. If so, how do I do
 that?

 Why is Hans quiet if this is a bug? He usually always says something
 about when he will fix it.

 because i'm in the middle of something else and thomas will wrap up all
 problems with bibliographies so that i can look into 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] Bibliography contains references not cited in the text

2010-11-30 Thread Curiouslearn
Perhaps, by coincidence the example that I sent had the bbl file
sorted. But the full file does not have the references sorted. Does
this mean I have to first get the bbl file sorted. If so, how do I do
that?

Why is Hans quiet if this is a bug? He usually always says something
about when he will fix it.

Thanks.

On Mon, Nov 29, 2010 at 11:09 AM, Mathieu Boespflug mb...@tweag.net wrote:
 No, indeed they were not sorted. But I saw that the the .bbl file was
 sorted. I then found that when you add sorttype=bbl as an argument to
 \setuppublications  (so, in your example use
 \setuppublications[refcommand=authoryear,sorttype=bbl]) and use
 \placepublications[] you will get the cited publications sorted
 alphabetically by author name.

 I later saw that this solution was already given by Aditya Mahajan in
 ntg-context Digest, Vol 76, Issue 141   Date:   29 oktober 2010, Message
 4, Subject:  sorttype for bibtex

 On top of that, this is also documented in the bib module's manual.

 Except that doesn't seem to work with the bibliography being placed
 using \placepublications in its own chapter in the backmatter. A
 similar issue was reported in 2006

 http://www.mail-archive.com/ntg-context@ntg.nl/msg15442.html

 but the solution given then involved writing 
 \placepublications[criterium=all].
 ___
 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] Bibliography contains references not cited in the text

2010-11-26 Thread Curiouslearn
Thanks to all who replied to this.  If there is a bug, I am sure Hans
will fix it. That is assuring.

Robert, your suggestion helps removing uncited articles from the
references...however, the references I got were not sorted anymore.



On Fri, Nov 26, 2010 at 1:11 PM, Robert Blackstone
blackstone.rob...@gmail.com wrote:
 On Fri, Nov 26, 2010 at 5:15 PM,  Mathieu Boespflug mb...@tweag.net wrote:

 I am having trouble with the bib module. The bibliography section of
 my article contains references that I have not cited in the text.
 These are in my .bib file, but it seems to me that references that
 were not cited in the text were ignored when constructing the
 bibliography.

 Hi,
 When you add

 \nocite[Aucremanne2005]
 \nocite[Fabiani2007]


 before \section{References}
 these non cited publications will show up in your bibliography. (At
 least it does here with Minimals of 24 november)

 ... which is the way it should be, no? The problem of the original
 poster is that these entries should not appear in the bibliography
 despite being in the .bib file, because they aren't mentionned at all
 in the main text.

 I can confirm this issue. I have run into myself in typesetting my thesis.

 Hi,
 Apparently I misunderstood the problem in the original post. If you do
 not want to mention uncited literature in your bibliography leave the
 argument of  \placepublications[] empty  or comment out
 %[criterium=all].

 Regards,
 Robert Blackstone
 ___
 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
___


[NTG-context] Bibliography contains references not cited in the text

2010-11-25 Thread Curiouslearn
Hi All,

I am having trouble with the bib module. The bibliography section of
my article contains references that I have not cited in the text.
These are in my .bib file, but it seems to me that references that
were not cited in the text were ignored when constructing the
bibliography.

This is a minimal example. The bib file is attached. Thanks very much
for your help.


\setuppapersize[letter][letter]
\setuplayout[backspace=1.25in,
width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in]
\setupwhitespace[medium]
\setuppagenumbering[location=footer]


\setuphead[section][textstyle=bold, numberstyle=bold, continue=yes]


\usemodule[bib]
\setupbibtex[database=templib]
\setuppublications[refcommand=authoryear]
\setupcite[authoryears][left=,right=]


\starttext
\section{Main Body}
This file is for testing whether the bibliography works. There seems
to be some problem.

Let us first cite \cite[Aghion1991], then we will cite
\cite[authoryears][Trefler1993].

In the new para we cite: \cite[Segal2003]

\section{References}
\placepublications[criterium=all]
\stoptext


templib.bib
Description: Binary data
___
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] interaction fails with footnotes (was: xml with interaction fails in footnotes)

2010-03-14 Thread Curiouslearn
Have you updated to the latest context minimals version. That might
solve the problem. I had a similar  problem with including a clickable
URL in a footnote. Updating solved it.

On 3/14/10, Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote:
 On 2010-03-15 00:12:03, Philipp Gesang wrote:
 Good evening all,


 I'm experiencing a weird behaviour when using my module to transliterate
 stuff in a footnote.  ConTeXt fails with an undefined control sequence
 if an only if I switch on interaction.

 The issue vanishes when I removing either the footnote environment or
 the interaction or the transliteration or the tag with the text to be
 transliterated.

 In the following minimal example I specified the lines that will make
 context process the file when commented out.  Please note that
 everything works fine outside xml as the transliteration immediately
 after “\starttext” demonstrates.
 Correction: It doesn't work fine outside xml, too, when again put in a
 footnote.[1]  So forget about the xml part.  Interaction seems to be the
 culprit.

 Philipp


 [1] Like this:
 ---8--
 Words before a footnote\footnote{
 \transliterate{раз, два, три}
 }
 ---8--



 Thanks for any help,


 Philipp

 ---8--

 \enabletrackers[xml.entities]
 \enabletrackers[xml.parse]
 \enabletrackers[xml.path]
 \enabletrackers[xml.profile]
 \enabletrackers[xml.remap]
 \enabletrackers[lxml.access]
 \enabletrackers[lxml.comments]
 \enabletrackers[lxml.loading]
 \enabletrackers[lxml.manipulations]
 \enabletrackers[lxml.setups]

 \setupinteraction[state=start]%this one
 \usemodule[transliterator]

 \startxmlsetups xml:testsetups
 \xmlsetsetup{\xmldocument}{*}{-}
 \xmlsetsetup{\xmldocument}{
   body|
   content|
   trru|   %this one
   fn|
   }{xml:*}
 \stopxmlsetups

 \xmlregistersetup{xml:testsetups}

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

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

 \startxmlsetups xml:fn
 \startfootnote%this together with …
 \xmlflush{#1}
 \stopfootnote %… this one
 \stopxmlsetups

 \startxmlsetups xml:trru
   \starttransliterate %this together with …
 \xmlflush{#1}
   \stoptransliterate  %… this one
 \stopxmlsetups

 \starttext

 \transliterate{раз, два, три}

 \startbuffer
 body
 content
   Content to include with a footnote
   fn
   trruраз, два, три/trru  %this one
   /fn
 /content
 /body
 \stopbuffer

 \xmlprocessbuffer{test}{}{}

 \stoptext

 ---8--

 --
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments



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


 --
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments


-- 
Sent from my mobile device
___
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] Why is the figure not centered

2010-03-12 Thread Curiouslearn
Can someone please tell me why the code below does not (horizontally)
center the figure? The caption is in the middle but the figure is not.

Thanks.

\usemodule[pgfplots]
\starttext

\placefigure[here][fig:demand]{Demand Curve}
{\starttikzpicture
\startaxis[line width=1pt,
   axis x line = bottom,
   axis y line =left,
   xmin=0,xmax=60,
   ymax=120]
\addplot[mark=none] coordinates {(0,100)
  (50,0)};
\stopaxis
\stoptikzpicture}

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


Re: [NTG-context] Why is the figure not centered

2010-03-12 Thread Curiouslearn
That worked great! Thanks.

On Fri, Mar 12, 2010 at 11:50 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Fri, 12 Mar 2010, Curiouslearn wrote:

 Can someone please tell me why the code below does not (horizontally)
 center the figure? The caption is in the middle but the figure is not.

 Thanks.

 \usemodule[pgfplots]
 \starttext

 \placefigure[here][fig:demand]{Demand Curve}
 {\starttikzpicture
        \startaxis[line width=1pt,
                           axis x line = bottom,
                           axis y line =left,
                           xmin=0,xmax=60,
                           ymax=120]
                \addplot[mark=none] coordinates {(0,100)
                                                          (50,0)};
        \stopaxis
 \stoptikzpicture}

 \stoptext

 Add a \hbox around \starttikzpicture ... \stoptikzpicture

 See
 http://archive.contextgarden.net/message/20090722.010815.d9c051d3.en.html

 and Hans's reply.

 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
 ___

___
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] Mac installation-file not found error

2010-03-09 Thread Curiouslearn
Hi,

I tried updating my context minimal installation today (on Mac OSX
10.5.8) using the command

sh ./first-setup.sh --extras=all

Somewhere during the installation process the terminal gave me an
error saying something like

file \loadmarkfile{node-mig} not found. Enter another file name.

I did not know what to enter so I pressed (Ctrl-C) and then
installation process continued. I compiled a simple file and it
compiled without any problems. Should I be worried about that file?

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] What do you miss in ConTeXt?

2010-02-08 Thread Curiouslearn
Nice thread. Thanks for starting this Wolfgang.

First of all, Context is great and I love it. I think I miss the
geometry package of the latex. It makes setting margins very easy. I
think setting margins (left, right, top and bottom) could be easier in
Context.

I am glad that tikz has started working well with context. That is a
big relief.

I hope (and this perhaps has nothing to do with the brilliant Context
development team) is that journals start accepting Context files.
While I use context for my personal and class notes, for articles I am
still forced to go to latex because journals do not accept context
files.



On Mon, Feb 8, 2010 at 6:40 PM, Philipp Gesang
pges...@ix.urz.uni-heidelberg.de wrote:
 On 2010-02-08 23:20:17, Hans Hagen wrote:
 On 8-2-2010 23:08, Philipp Gesang wrote:
 On 2010-02-0822:26:06, Wolfgang Schuster wrote:
 Great news, indeed!  Is some of this already usable / accessable by way
 of functions in minimals?  I can't wait to have a glance at those
 features, especially no. 3.
 http://archive.contextgarden.net/message/20100126.184359.e6567256.en.html
 Ahh, thanks for the example.  But when running context on it I get the
 following:
 
    --
 ! Undefined control sequence.
 \@@su:xml:bibtex:sorter #1-\xmlresetsorter

 maye your version is too old
 That was it, sorry, I reinstalled minimals and LuaTeX recently and
 forgot to update ConTeXt.  Now the file is processed and I get a pdf
 file containing the words
  
 sortkeys:
 n   id  entry
  
 and an hrule beneath that.  As I'm not (yet) familiar with the control
 sequences used in the file as well as parts of its syntax, I can only
 guess that there's a table missing from \startxmlsetups bibtex:one
 \starttabulate etc..
 Good night,


 Philipp

 ___
 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] natural table row color

2010-01-25 Thread Curiouslearn
Do you mean background color or do you just want the text highlighted?
If you mean the background color, and assuming that the row you
referring to is the first row, you could add before \bTABLE:

\setupTABLE[row][1][background=color,backgroundcolor=blue]

On Mon, Jan 25, 2010 at 4:16 PM, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:
 Hi,

 How to color (highlight) a natural table row?

 \bTABLEbody

 \bTR \bTD this \eTD \bTD whole \eTD \bTD row \eTD \bTD needs \eTD \bTD to be
 \eTD \bTD  highlighted \eTD \eTR

 

 BR,
 Vyatcheslav


 ___
 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] Natural Tables Cell Borders

2010-01-06 Thread Curiouslearn
Thanks very much Wolfgang. Will try to play with this during this week.



On Wed, Jan 6, 2010 at 6:54 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.01.2010 um 04:02 schrieb Curiouslearn:

 Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
 to understand your code. But will look at it more carefully later.

 Meanwhile, is there any further work going on on Natural Tables? Are
 there plans to introduce the ability to have borders of different
 thickness for the same cell through simple options.


 A TeX based solution won't be possible without Hans but you can set
 the values in TeX (\framed, \setupTABLE) and use them in MetaPost.

 The following example show you what can be done.

 \unprotect

 \startuseMPgraphic{tableborder}

 %linecap := butt ;

 numeric FrameOffset, LeftRuleThickness, RightRuleThickness, TopRuleThickness, 
 BottomRuleThickness ;

 FrameOffset         := \frameddimension{frameoffset}         ;
 LeftRuleThickness   := \frameddimension{leftrulethickness}   ;
 RightRuleThickness  := \frameddimension{rightrulethickness}  ;
 TopRuleThickness    := \frameddimension{toprulethickness}    ;
 BottomRuleThickness := \frameddimension{bottomrulethickness} ;

 pair lt, rt, lb, rb ;

 lt = (FrameOffset/2,OverlayHeight-FrameOffset/2) ;
 rt = (OverlayWidth-FrameOffset/2,OverlayHeight-FrameOffset/2) ;
 lb = (FrameOffset/2,FrameOffset/2) ;
 rb = (OverlayWidth-FrameOffset/2,FrameOffset/2) ;

 draw lt--rt withpen pencircle scaled TopRuleThickness    ;
 draw lb--rb withpen pencircle scaled BottomRuleThickness ;
 draw lb--lt withpen pencircle scaled LeftRuleThickness   ;
 draw rb--rt withpen pencircle scaled RightRuleThickness  ;

 setbounds currentpicture to OverlayBox ;

 \stopuseMPgraphic

 \defineoverlay
  [tableborder]
  [%\edef\topframeparameter   {\framedparameter\c!topframe   }%
   %\edef\bottomframeparameter{\framedparameter\c!bottomframe}%
   %\edef\leftframeparameter  {\framedparameter\c!leftframe  }%
   %\edef\rightframeparameter {\framedparameter\c!rightframe }%
   \useMPgraphic{tableborder}]

 \setupTABLE
  [   toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness},
     leftrulethickness=\framedparameter{rulethickness},
    rightrulethickness=\framedparameter{rulethickness},
 %              topframe=on,
 %           bottomframe=on,
 %             leftframe=on,
 %            rightframe=on,
            background=tableborder,
                 frame=off]

 \protect

 \starttext

 \start

 \setupTABLE[y][1][bottomrulethickness=2pt]
 \setupTABLE[3][3][bottomrulethickness=2pt,rightrulethickness=2pt]
 \setupTABLE[1][3][bottomframe=off]

 \bTABLE
    \bTR
        \bTD 1 \eTD
        \bTD 2 \eTD
        \bTD 3 \eTD
    \eTR
    \bTR
        \bTD 4 \eTD
        \bTD 5 \eTD
        \bTD 6 \eTD
    \eTR
    \bTR
        \bTD 7 \eTD
        \bTD 8 \eTD
        \bTD 9 \eTD
    \eTR
 \eTABLE

 \stop

 \stoptext

 Wolfgang

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

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

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

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


Re: [NTG-context] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Curiouslearn
Vladimir, I am not sure that the settings are incorrect. Why does it
work with MKII then? Also it worked with MKIV before. It broke only
recently.

Can someone please throw light on this? Is the disapperance of the
numbers, as Vladimir suggests, expected behavior of the minimal
example in MKIV.



On Mon, Jan 4, 2010 at 11:03 PM, Vladimir Lomov lomov...@gmail.com wrote:
 Hi.

 I'm newbie with ConTeXt but have experience with LaTeX.

 2010/1/5 Curiouslearn curiousle...@gmail.com:
 Minimal example

 \setuppapersize[letter][letter]

 \starttext
 \defineenumeration[problem][text= ,location=inleft]
 \setupenumerations[problem][stopper=)]

 \problem
 problem 1


 \problem
 problem 2

 \stoptext

 In MKIV there are numbers do not appear.

 Thanks.
 This is because of your settings. Try change location. In order to
 understand what's wrong with your settings see output for this example
 (I tried with context minimals):

 \setuppapersize[A5][A4]

 \setuplayout[location=middle]
 \starttext
 \defineenumeration[problem][text= ,location=inleft]
 \setupenumerations[problem][stopper=)]

 \problem
 problem 1


 \problem
 problem 2

 \stoptext

 In okular (or Adobe Reader) you see that enumeration numbers are out
 of page and you don't see them.
 ___
 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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Curiouslearn
Thanks! That worked great.

On Tue, Jan 5, 2010 at 8:52 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.01.2010 um 14:22 schrieb Curiouslearn:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.

 Add 'headalign=flushright'.

 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
___


[NTG-context] defineenumeration does not work with MKIV. Works with MKII

2010-01-04 Thread Curiouslearn
Minimal example

\setuppapersize[letter][letter]

\starttext
\defineenumeration[problem][text= ,location=inleft]
\setupenumerations[problem][stopper=)]

\problem
problem 1


\problem
problem 2

\stoptext

In MKIV there are numbers do not appear.

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] Natural Tables Cell Borders

2010-01-04 Thread Curiouslearn
Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
to understand your code. But will look at it more carefully later.

Meanwhile, is there any further work going on on Natural Tables? Are
there plans to introduce the ability to have borders of different
thickness for the same cell through simple options.

Thanks.

On Mon, Jan 4, 2010 at 11:55 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 31.12.2009 um 23:04 schrieb Curiouslearn:

 Help needed! The fifth \setupTABLE command below reduces the
 rulethickness of the bottomframe in cells (2,5) and (3,5). Is there a
 way to avoid that? I just want the rightframe to be thin in these
 cells, but the bottomframe to be thick.

 You can use MetaPost to draw the rules, you can use the example i posted
 today [1] as starting point.

 [1] http://www.ntg.nl/pipermail/ntg-context/2010/046077.html

 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
___


[NTG-context] Natural Tables Cell Borders

2009-12-31 Thread Curiouslearn
Help needed! The fifth \setupTABLE command below reduces the
rulethickness of the bottomframe in cells (2,5) and (3,5). Is there a
way to avoid that? I just want the rightframe to be thin in these
cells, but the bottomframe to be thick.

Thanks a ton!

\starttext
\start
\setupTABLE[frame=off]
\setupTABLE[column][align={middle,lohi}]
\setupTABLE[2,3,4,][1,5][bottomframe=on,rulethickness=1pt]
\setupTABLE[1,4][2,3,4,5,][rightframe=on,rulethickness=1pt]
\setupTABLE[2,3][2,3,4,5][rightframe=on,rulethickness=0.2pt]

\bTABLE
\bTR
  \bTD\eTD\bTD\eTD\bTD[nc=2] {\bf 2} \eTD
\eTR
\bTR
  \bTD\eTD\bTD\eTD
  \bTD
a2
  \eTD
  \bTD
b2
  \eTD
\eTR
\bTR
  \bTD[nr=3] 1 \eTD \bTD a1 \eTD
  \bTD 2,2 \eTD
  \bTD 4,5 \eTD
\eTR
\bTR
  \bTD b1 \eTD
  \bTD 5,4 \eTD
  \bTD 3,3 \eTD
\eTR
\bTR
  \bTD c1 \eTD
  \bTD 6,6 \eTD
  \bTD 4,4 \eTD
\eTR
\eTABLE
\stop
\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
___


Re: [NTG-context] Using ConTeXt for a thesis?

2009-12-20 Thread Curiouslearn
In addition to the advantages others have mentioned, I have found that
typesetting tables is much easier in Context. I use Natural Tables for
the purpose. It is easy and intuitive to use. I really like the way it
is designed.



On Sun, Dec 20, 2009 at 2:15 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Sun, Dec 20, 2009 at 6:12 PM, Manuel P. ayeye.sysfo...@gmail.com wrote:
 John Haltiwanger ha scritto:

 ConTeXt is great because there is only one system to learn. As was already
 mentioned, it is much more consistent than LaTeX.


 And if you want something extreme
 http://www.pragma-ade.com/general/manuals/columns.pdf


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

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

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


Re: [NTG-context] Metapost label - Truncating digits after decimal point

2009-12-15 Thread Curiouslearn
Thanks for this solution. Sounds small and clean. I need to learn Lua I guess.



On Tue, Dec 15, 2009 at 5:34 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 28 Nov 2009, Curiouslearn wrote:

 Hi,

 Is it possible to truncate the digits after decimal point in Metapost
 when using textext()? Please see the minimal example below which
 produces 1.84375. Can I just keep the first digit and have it produce
 1.8 ?

 Thanks.

 If you are using mkiv, you can use lua to truncate a number.

 \unexpanded\def\truncate#1{\ctxlua{context(\%.1f, #1)}}

 \startMPdefinitions
  def truncatedtext(expr s) =
    textext(\truncate{  s  })
  enddef ;
 \stopMPdefinitions

 \starttext
 \startuseMPgraphic{Figure}
  u := 1cm;
  pickup pencircle scaled 2pt; % default pen thickness
  %TheFunction
  vardef f(expr x) =
          (10/x)-x*((0.5)**x)
  enddef;
  %Labels
  %label.lft(textext(\truncate{  decimal f(5)  }),(0,f(5)) scaled u);
  label.lft(truncatedtext(decimal f(5)),(0,f(5)) scaled u);
 \stopuseMPgraphic
 \useMPgraphic{Figure}


 \stoptext

 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
 ___

___
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] Math Alignment - start equation at left margin

2009-12-15 Thread Curiouslearn
I had tried using \setupformulas, but it did not work when I posted my
question. I suppose it was for the reason you mentioned. I will try it
again, once I have downloaded the latest beta.

Thanks.

On Tue, Dec 15, 2009 at 6:41 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Sun, 29 Nov 2009, Curiouslearn wrote:

 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.

 Thanks.

 \setuppapersize[letter][letter]

 \starttext

 \startformula\startalign[align={left}]
                                \NC\text{\bf Example: }
  \frac{d(4x^{2})}{dx} = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula

 \stoptext

 The correct way to do this is

 \setupformulas[align=flushleft]

 \starttext
 \startformula
  a = b
 \stopformula
 \stoptext

 However, this does not work in MkIV due to a bug introduced in the splitting
 of mkii-mkiv files. math alignment works using commands

 \def\startinnermath
  {\getvalue{\e!start\??fm\formulaparameter\c!align}}

 \def\stopinnermath
  {\getvalue{\e!stop \??fm\formulaparameter\c!align}}

 which are defined in math-ali.mkiv. However, strc-mat.mkiv redefines these
 to \empty, so the simple math alignment does not work anymore.

 Hans: we need to either move these definitions from math-ali to strc-mat or
 remove

 \let\startinnermath\empty
 \let\stopinnermath \empty

 from strc-mat.mkiv

 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
 ___

___
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 option in itemize

2009-12-12 Thread Curiouslearn
Thanks Wolfgang and Luigi. Luigi's solution worked well.
Unfortunately, left={hspace[normal]} did not give the desired outcome.
The item symbols were still at their original location.

I have a follow up question. Based on your solution I also tried
left=\hskip 2.10em, which works too? Is there a reason why \kern is
better than \hskip?

Thanks.

On Sat, Dec 12, 2009 at 1:37 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Tue, Dec 8, 2009 at 4:11 PM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please explain why the margin command does not work in
 this example? What can I do to obtain the margin.

 Thanks.

 \setuppapersize[letter][letter]
 \starttext

 \input tufte

 \startitemize
        \item This is the first item of outer list.
                \startitemize[a][stopper=)]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
        \item This is the second item of outer list. Margin command does not
 work below.
                \startitemize[a][stopper=),margin=2in]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
 \stopitemize

 \input tufte

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


 As wolfgang already wrote

 \setuppapersize[letter][letter]
 \setupitemize[2][stopper={:},left={\kern2.10em},width=\dimexpr 
 2.10em+1em\relax]
 \starttext
 \input tufte
 \startitemize
       \item This is the first item of outer list.
               \startitemize[a]
                       \item Context is great. The more I use it the more it
                       \item Hope it continues to develop further.
               \stopitemize
       \item This is the second item of outer list. Margin command does not
 work below.
               \startitemize[a]
                       \item Context is great. The more I use it the
 more I love it.
                       \item Hope it continues to develop further.
               \stopitemize
 \stopitemize
 \input tufte
 \stoptext


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

___
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 option in itemize

2009-12-11 Thread Curiouslearn
I suppose you can think of 'margin=dimension' option as increasing the
margin by the specified dimension for the list. It works without any
problems for a list that is not nested within another list. However,
with nesting, as in the example I emailed, it does not work.

I tried the 'width' command but that does not do what I want. It
inserts the space between the item symbol and the item text. I want
the space before item symbol.

Thanks.

On Fri, Dec 11, 2009 at 8:32 AM, Taco Hoekwater t...@elvenkind.com wrote:


 Curiouslearn wrote:
 Can someone please say whether it is possible to do what I am trying
 to do below?

 According to the docs 'margin' should do something, but I am not sure
 what and it seems to have no effect over here. You can try if 'width'
 does what you want.

 Best wishes,
 Taco

 Thanks.


 On Tue, Dec 8, 2009 at 10:11 AM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please explain why the margin command does not work in
 this example? What can I do to obtain the margin.

 Thanks.

 \setuppapersize[letter][letter]
 \starttext

 \input tufte

 \startitemize
        \item This is the first item of outer list.
                \startitemize[a][stopper=)]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
        \item This is the second item of outer list. Margin command does not
 work below.
                \startitemize[a][stopper=),margin=2in]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
 \stopitemize

 \input tufte

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


[NTG-context] Division symbol \div does not work

2009-12-11 Thread Curiouslearn
How to obtain the division symbol? Command \div does not work.

\setuppapersize[letter][letter]

\starttext

$  a \div b $

\stoptext

gives output

a div b
___
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] Division symbol \div does not work

2009-12-11 Thread Curiouslearn
Thanks Jason. You are right, it works well with MKII. The problem
seems to be with MKIV.

On Fri, Dec 11, 2009 at 10:33 PM, Jason Earl je...@notengoamigos.org wrote:

 Curiouslearn curiousle...@gmail.com writes:

 How to obtain the division symbol? Command \div does not work.

 \setuppapersize[letter][letter]

 \starttext

 $  a \div b $

 \stoptext

 gives output

 a div b

 I am using an older version of Context, but running texexec on your
 example gets me the correct output.

 a ÷ b

 Jason
 ___
 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] margin option in itemize

2009-12-10 Thread Curiouslearn
Can someone please say whether it is possible to do what I am trying
to do below?

Thanks.


On Tue, Dec 8, 2009 at 10:11 AM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please explain why the margin command does not work in
 this example? What can I do to obtain the margin.

 Thanks.

 \setuppapersize[letter][letter]
 \starttext

 \input tufte

 \startitemize
        \item This is the first item of outer list.
                \startitemize[a][stopper=)]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
        \item This is the second item of outer list. Margin command does not
 work below.
                \startitemize[a][stopper=),margin=2in]
                        \item Context is great. The more I use it the more I 
 love it.
                        \item Hope it continues to develop further.
                \stopitemize
 \stopitemize

 \input tufte

 \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] margin option in itemize

2009-12-08 Thread Curiouslearn
Can someone please explain why the margin command does not work in
this example? What can I do to obtain the margin.

Thanks.

\setuppapersize[letter][letter]
\starttext

\input tufte

\startitemize
\item This is the first item of outer list.
\startitemize[a][stopper=)]
\item Context is great. The more I use it the more I 
love it.
\item Hope it continues to develop further.
\stopitemize
\item This is the second item of outer list. Margin command does not
work below.
\startitemize[a][stopper=),margin=2in]
\item Context is great. The more I use it the more I 
love it.
\item Hope it continues to develop further.
\stopitemize
\stopitemize

\input tufte

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


Re: [NTG-context] Bibliography help - some problems I have noticed

2009-12-06 Thread Curiouslearn
Thanks very much Taco. This is very helpful.

Regards,
Bharat

On Sun, Dec 6, 2009 at 4:40 AM, Taco Hoekwater t...@elvenkind.com wrote:

 Hi,
 Curiouslearn wrote:

 (0)  Do I need bibltx for latex databases?

 No. These days, the ConTeXt core defines \newcommand so the bibltx
 module is obsolete.

 (0.5) Using \type{\cite[author,year][BergstromBagnoli2005]} just returns
 the key in the document

 This is caused by the \cite[author,year][] input. If the first argument
 of \cite[] has a comma, it is taken to be the list of references, and
 the second set of square brackets is just typeset text.
 Use \cite[authoryear][] or \cite[authoryears][].

 (1) If the Key has a paranthesis, the \cite[Reference] gives empty
 brackets.

 In this example, I do not know what is wrong, but adding an
 explicit first argument to \cite fixes it. It could be that the
 optional argument parser in ConTeXt gets confused by the ().

 (2) If I use \cite[author][Reference] then I get a line break after
 the opening paranthesis.

 This is a bug in current mkiv that was also mentioned in a thread last
 week. Should be fixed in this beta or one of the next ones.

 As a workaround, you can add

  \usepublications[\jobname]

 just after the \usemodule[bib] line

 (3) Also, note that I refer to only one paper of Daughety and
 Reinganum in the minimal example below. However, because there are two
 papers by them in my database, the References section lists the year
 as (2000a) instead of just (2000). The bbl file generated contains all
 the references in my database and not only the once I have cited.

 Adding

  \def\maybeyear#1{}

 works around this. It is one of the few bibtex features that I have
 not found a good solution for. Otherwise, just remove the \setupbibtex
 command from the source and edit the bbl file by hand.

 Should it not contain only the ones I have cited in the document.

 No, it always contains the entire database. That is why manuak editing
 is possible.

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

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

___
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] Bibliography help

2009-12-05 Thread Curiouslearn
Hi,

Is it possible to use .bib files that I had made for latex (it is a
bibtex database), with Context? Do I need to use the module bibltx for
these? When I compile my source code the Log window says, module
bibltx not found (log file is pasted below).

I tried the first example in the Bibliography article on Context
Garden with some small changes. That is, I tried the following.

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=econbibTest]
\starttext
\section{Checking Bib}
See \cite[Bergstrom_Bagnoli(2005)] for monotonicity properties of
hazard rates of various standard distributions.
\completepublications[criterium=all]
\stoptext
@ARTICLE{Bergstrom_Bagnoli(2005),
  author = {Mark Bagnoli and Ted Bergstrom},
  title = {Log-concave Probability and its Applications},
  journal = {Economic Theory},
  year = {2005},
  volume = {26},
  pages = {445-469},
  timestamp = {2008.06.08}
}

I have attached the output.  I have reproduced the citation from the
bibtex file above to show what the bib file contains. Can someone
please point out where I am going wrong?

Thanks very much.


The following is the log:

This is LuaTeX, Version beta-0.46.0-2009112820
 \write18 enabled.
(BibTest.tex

ConTeXt  ver: 2009.11.27 21:24 MKIV  fmt: 2009.11.29  int: english/english

system  : cont-new loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-lua.tex)
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : BibTest.top loaded
(BibTest.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
system  : module bib loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/m-obsolete.texThis
is BibTeX, Version 0.99c (TeX Live 2009)
The top-level auxiliary file: BibTest.aux
The style file: cont-no.bst
Database file #1: econbibTest.bib

systems : skipping obsolete module
)
system  : module bibltx not found
publications: wrote a new auxiliary file cont-en.aux
systems : begin file BibTest at line 4
structure   : section @ level 3 : 0.0.1 - Checking Bib
fonts   : resetting map file list
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
!pages  : flushing page, realpage 1, userpage 1
structure   : chapter @ level 2 : 0.1 - \headtext {pubs}
publications: loading database from BibTest.bbl
(BibTest.bbl)
publications: warning: cite argument article-full is unknown on line 175
system  : xmp data not flushed (needs luatex upgrade)
!pages  : flushing page, realpage 2, userpage 2
systems : end file BibTest at line 8
system  : cont-err loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)

system  : module bibltx not found

 
)/Applications/ConTeXtMinimals/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  -
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf;/Applications/ConTeXtMinimals/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   -

Re: [NTG-context] Bibliography help - some problems I have noticed

2009-12-05 Thread Curiouslearn
I was trying to figure out the problem and I found that the database I
was referring to was empty. I perhaps forgot to save it. When replaced
with the appropriate .bib file I do get the references at the end of
the document. But I observed the following. Would really appreciate if
someone could point out whether I am making a mistake or whether there
is a bug.

(1) If the Key has a paranthesis, the \cite[Reference] gives empty brackets.
(2) If I use \cite[author][Reference] then I get a line break after
the opening paranthesis.
(3) Also, note that I refer to only one paper of Daughety and
Reinganum in the minimal example below. However, because there are two
papers by them in my database, the References section lists the year
as (2000a) instead of just (2000). The bbl file generated contains all
the references in my database and not only the once I have cited.
Should it not contain only the ones I have cited in the document.

The following is a minimals example, demonstrating above problems. I
have included the bibtex source of the citations used below. If you
need more information, please let me know.

*
\usemodule[bib]
\setupbibtex[database=econbibTest]
\setupwhitespace[big]
\starttext
\section{Checking Bib}

Using \type{\cite[author][BergstromBagnoli2005]}  gives a line break
after the opening paranthesis.
Using \cite[author][BergstromBagnoli2005] gives a line break after the
opening paranthesis.

Using \type{\cite[author,year][BergstromBagnoli2005]} just returns the
key in the document in place of the author names and the year.
Using \cite[author,year][BergstromBagnoli2005] just returns the key in
the document in place of the author names and the year

Paranthesis in the key such as this one,
\type{\cite[Daughety_Reinganum(2000)]}, gives empty brackets.
Paranthesis in the key such as this
one,\cite[Daughety_Reinganum(2000)], gives empty brackets

Also, note that even though I refer to only one paper of Daughety and
Reinganum, because there are two papers by them in my database, the
References section lists the year as (2000a) instead of just (2000).
The bbl file generated contains all the references in my database and
not only the once I have cited. Should it not contain only the ones I
have cited in the document.

\completepublications[criterium=all]
\stoptext

*
@ARTICLE{Daughety_Reinganum(2000),
  author = {Andrew Daughety and Jennifer Reinganum},
  title = {Appealing Judgments},
  journal = {Rand Journal of Economics},
  year = {2000},
  volume = {31},
  pages = {502-525},
  owner = {Bharat},
  timestamp = {2009.01.18}
}

@ARTICLE{BergstromBagnoli2005,
  author = {Mark Bagnoli and Ted Bergstrom},
  title = {Log-concave Probability and its Applications},
  journal = {Economic Theory},
  year = {2005},
  volume = {26},
  pages = {445-469},
  owner = {bbhole},
  timestamp = {2008.06.08}
}
___
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] Metapost code does not work - Can you find the problem?

2009-12-01 Thread Curiouslearn
Can someone please tell me why the code below does not work?

Thanks a ton.

\starttext

\startuseMPgraphic[CS]
u:=1cm;
pickup pencircle scaled 2pt;
%Paths
path demandCS;
demandCS := (0,5u) -- (10u,0);
% Draw Demand
draw demandCS withcolor 0.5red;
% The point on demand curve
draw ((6,2) -- (6,0)) scaled u dashed evenly withpen pencircle
scaled 1pt withcolor 0.5white;
draw ((6,2) -- (0,2)) scaled u dashed evenly withpen pencircle
scaled 1pt withcolor 0.5white;
\stopuseMPgraphic

\useMPgraphic{CS}

\placefigure[here][CS1]{Consumer Surplus}{\useMPgraphic{CS}}



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


Re: [NTG-context] Metapost code does not work - Can you find the problem?

2009-12-01 Thread Curiouslearn
Sorry for the question. I figured it out. I have square brackets
instead of braces in the \startuseMPgraphic line.

On Tue, Dec 1, 2009 at 3:52 PM, Curiouslearn curiousle...@gmail.com wrote:
 Can someone please tell me why the code below does not work?

 Thanks a ton.

 \starttext

 \startuseMPgraphic[CS]
                u:=1cm;
                pickup pencircle scaled 2pt;
                %Paths
                path demandCS;
                demandCS := (0,5u) -- (10u,0);
                % Draw Demand
                draw demandCS withcolor 0.5red;
                % The point on demand curve
                draw ((6,2) -- (6,0)) scaled u dashed evenly withpen pencircle
 scaled 1pt withcolor 0.5white;
                draw ((6,2) -- (0,2)) scaled u dashed evenly withpen pencircle
 scaled 1pt withcolor 0.5white;
 \stopuseMPgraphic

        \useMPgraphic{CS}

 \placefigure[here][CS1]{Consumer Surplus}{\useMPgraphic{CS}}



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


Re: [NTG-context] Math Alignment - start equation at left margin

2009-11-30 Thread Curiouslearn
Otared, thanks very much for bringing Aditya's article to my
attention. The method worked well.



On Mon, Nov 30, 2009 at 2:50 AM, Otared Kavian ota...@gmail.com wrote:
 Sorry for sending this again: I forgot a closing } in  \type{FLalign]…)}…
 Hi,
 Is this what you want to achieve:
 %% begin
 \starttext
 From Aditya's \type{mathalign.pdf}, where he defines in fact a
 \type{\definemathalignment[flalign]},
 (but I prefer \type{FLalign]…)} one has
 \definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set
 a default value for m
 Curiouslearn'  input was:
 \startformula
 \startalign
 \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign
 \stopformula
 \startformula
 \startFLalign %% here you can add [m=2] or [m=3] if you need more columns
 \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC
 \stopFLalign
 \stopformula
 \stoptext
 %% end
 Best regards: OK
 On 30 nov. 2009, at 00:45, Curiouslearn wrote:

 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.

 Thanks.

 \setuppapersize[letter][letter]

 \starttext

 \startformula\startalign[align={left}]
 \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula

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

 %%
 Otared Kavian
 Département de Mathématiques
 Université de Versailles Saint-Quentin
 Bâtiment Fermat
 45 aveue des Etats Unis
 78035 Versailles cedex
 Téléphone: +33 1 39 25 46 42
 Secrétariat: +33 1 39 25 46 44
 Secrétariat: +33 1 39 25 46 46
 e-mail: otared.kav...@math.uvsq.fr



 ___
 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] Metapost label - Truncating digits after decimal point

2009-11-29 Thread Curiouslearn
Thanks so much, Taco. I will try out the code below. Good to know that
Metapost has functions such as substring.




On Sun, Nov 29, 2009 at 3:32 AM, Taco Hoekwater t...@elvenkind.com wrote:
 Curiouslearn wrote:

 Hi,

 Is it possible to truncate the digits after decimal point in Metapost
 when using textext()? Please see the minimal example below which
 produces 1.84375. Can I just keep the first digit and have it produce
 1.8 ?

 Here is a helper macro for you:

 def trunc_digits(expr n, origs) =
  hide(
    string s, tmp;
    numeric ii, e;
    e := -1;
    for i=1 upto length(origs):
      ii := i;
      tmp := substring (i-1,i) of origs;
      if tmp = .: if n=0: ii:=ii-1; exitif true; fi e:=0; fi
      if e=0: e := e+1; exitif en;  fi
    endfor;
    s:=substring(0,ii) of origs; )
  s
 enddef;


 When run this macro with the result of decimal() as second argument,
 it will create a new string as many fractional digits as you specify
 in the first argument:

  label.lft(textext(trunc_digits(1,decimal f(5))),(0,f(5)) scaled u);

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

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

___
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] Math Alignment - start equation at left margin

2009-11-29 Thread Curiouslearn
Hi,
Can someone please help with the alignment of  the equation so that it
starts at left. I tried flushleft and other options (such as without
\NC \NR, with align=left etc.). None of them result in the equation
starting at the left margin. The equation is either placed in the
middle or is aligned to the right. I want it to start at the left.

Thanks.

\setuppapersize[letter][letter]

\starttext

\startformula\startalign[align={left}]
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 
4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
\stopalign\stopformula

\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] Math Alignment - start equation at left margin (Bug in latest beta)

2009-11-29 Thread Curiouslearn
Just wanted to mention that I tried to achieve left alignment of
single equation using:

 \setupformulas[align=flushleft]
  \startformula
\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4 
\frac{dx^{2}}{dx} = 4
(2x) = 8x.\NC\NR
   \stopformula

But that does not work with the latest beta -- (This is LuaTeX,
Version beta-0.46.0-2009112820
ConTeXt  ver: 2009.11.27 21:24 MKIV  fmt: 2009.11.29  int:
english/english). It, however, works with MKII.

I suppose, my question is, whether is another way of doing it, or
should I wait until the bug is fixed.

Thanks.



On Sun, Nov 29, 2009 at 6:45 PM, Curiouslearn curiousle...@gmail.com wrote:
 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.

 Thanks.

 \setuppapersize[letter][letter]

 \starttext

 \startformula\startalign[align={left}]
                                \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} 
 = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula

 \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] Metapost label - Truncating digits after decimal point

2009-11-28 Thread Curiouslearn
Hi,

Is it possible to truncate the digits after decimal point in Metapost
when using textext()? Please see the minimal example below which
produces 1.84375. Can I just keep the first digit and have it produce
1.8 ?

Thanks.

\setuppapersize[letter][letter]

\setupcolors[state=start]


\starttext

\startuseMPgraphic{Figure}
u := 1cm;
pickup pencircle scaled 2pt; % default pen thickness
%TheFunction
vardef f(expr x) =
(10/x)-x*((0.5)**x)
enddef;
%Labels 
label.lft(textext(decimal f(5)),(0,f(5)) scaled u); 
\stopuseMPgraphic
\useMPgraphic{Figure}

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


Re: [NTG-context] Layout - once again!

2009-11-26 Thread Curiouslearn
Thanks Mojca. I knew the backspace would work, but I did not know why
the settings I specified did not work. I thought that if I explicitly
specify all the relevant dimensions, it would calculate backspace.
Seems like backspace is a necessary input. Maybe this should be
clarified on the Wiki.


On Wed, Nov 25, 2009 at 11:45 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 On Thu, Nov 26, 2009 at 05:19, Curiouslearn wrote:
 Why does the following does not center the text? I am choosing a
 letter size paper which is 8.5 inches wide. I have both margins at
 1.5in

 That's width of box called margin (the one where you put side notes
 etc). You need to set backspace=1.5in and that should suffice.

 and all other distances equal to 0 in. Should the text be not
 centered.

 No, because backspace=1in by default, so what you thought of as left
 margin is only 1in wide and the right one probably 2in then.

 Mojca

 \setuppapersize[letter][letter]
 \setuplayout[leftmargin=1.5in,rightmargin=1.5in,leftedge=0in,rightedge=0in,leftmargindistance=0in,rightmargindistance=0in,leftedgedistance=0in,rightedgedistance=0in,width=5.5in]

 \starttext
 \showlayout
 \input tufte
 \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
 ___

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

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


Re: [NTG-context] Metapost - Seems like weird behavior. Is it a bug?

2009-11-25 Thread Curiouslearn
Taco, thanks for the suggestions. I will try using intersectiontimes.
It would be great if, as you said, this is solved with Metapost 2.0.

Any idea when that version is coming out?

Thanks.

On Wed, Nov 25, 2009 at 2:47 AM, Taco Hoekwater t...@elvenkind.com wrote:
 Taco Hoekwater wrote:

 The solution is to add an explicit fix to Lint[4] just after its
 current assignment:

    Lint[4]:=(xpart Lint[4], 0);

 Even better is to not use intersectionpoint at all: use
 intersectiontimes instead. With that, you can select a point
 that is guaranteed to be on one of the two paths.

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

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

___
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] Layout - once again!

2009-11-25 Thread Curiouslearn
Why does the following does not center the text? I am choosing a
letter size paper which is 8.5 inches wide. I have both margins at
1.5in and all other distances equal to 0 in. Should the text be not
centered.

Thanks.


\setuppapersize[letter][letter]
\setuplayout[leftmargin=1.5in,rightmargin=1.5in,leftedge=0in,rightedge=0in,leftmargindistance=0in,rightmargindistance=0in,leftedgedistance=0in,rightedgedistance=0in,width=5.5in]

\starttext
\showlayout
\input tufte
\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] Adjusting the size of a figure when using placefigure

2009-11-24 Thread Curiouslearn
Please see the figure generated by the following minimal example. Due
to the dimensions chosen in the figure, the figure is wider than the
text width. Is there an option in \placefigure or another command that
can help to make this figure smaller (without changing the code of the
original figure)?

 Thank you.

\setuppapersize[letter][letter]
\setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]

\setupcolors[state=start]


\starttext
\startuseMPgraphic{firstFig}
numeric u;
u:=1in;
draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;
\stopuseMPgraphic

\startuseMPgraphic{secondFig}
numeric u;
u:=1in;
draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue;
\stopuseMPgraphic

\placefigure[here]{Two figures next to each other}
\startcombination[2*1]  
{\useMPgraphic{firstFig}}{(a)}
{\useMPgraphic{secondFig}}{(b)}
\stopcombination

It can be seen that due to the dimensions in the figure, the figure is
wider than the text. Is there a way to make the figure as wide as the
text by setting some option of \placefigure.

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


Re: [NTG-context] Adjusting the size of a figure when using placefigure

2009-11-24 Thread Curiouslearn
Thanks Luigi. I did not know where exactly to put the width command.
Your solution works great.


On Tue, Nov 24, 2009 at 9:20 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Wed, Nov 25, 2009 at 2:44 AM, Curiouslearn curiousle...@gmail.com wrote:
 Please see the figure generated by the following minimal example. Due
 to the dimensions chosen in the figure, the figure is wider than the
 text width. Is there an option in \placefigure or another command that
 can help to make this figure smaller (without changing the code of the
 original figure)?

  Thank you.

 \setuppapersize[letter][letter]
 \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]

 \setupcolors[state=start]


 \starttext
        \startuseMPgraphic{firstFig}
                numeric u;
                u:=1in;
                draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;
        \stopuseMPgraphic

        \startuseMPgraphic{secondFig}
                numeric u;
                u:=1in;
                draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor 
 blue;
        \stopuseMPgraphic

        \placefigure[here]{Two figures next to each other}
        \startcombination[2*1]
                {\useMPgraphic{firstFig}}{(a)}
                {\useMPgraphic{secondFig}}{(b)}
        \stopcombination

 It can be seen that due to the dimensions in the figure, the figure is
 wider than the text. Is there a way to make the figure as wide as the
 text by setting some option of \placefigure.

 \stoptext


 \setuppapersize[letter][letter]
 \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]

 \setupcolors[state=start]


 \definemeasure[textgap]  [\dimexpr 1em\relax]
 \definecombination[both][distance=\measure{textgap}]


 \showframe
 \starttext
       \startuseMPgraphic{firstFig}
               numeric u;
               u:=1in;
               draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;
       \stopuseMPgraphic

       \startuseMPgraphic{secondFig}
               numeric u;
               u:=1in;
               draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor blue;
       \stopuseMPgraphic

       \placefigure[here]{Two figures next to each other}
       \startcombination[both][2*1]
               {\scale[width=\dimexpr
 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{firstFig}}}{(a)}
               {\scale[width=\dimexpr
 0.5\textwidth-0.5\measure{textgap}\relax]{\useMPgraphic{secondFig}}}{(b)}
       \stopcombination

 It can be seen that due to the dimensions in the figure, the figure is
 wider than the text. Is there a way to make the figure as wide as the
 text by setting some option of \type{\placefigure}.

 \stoptext

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

___
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] Metapost - Seems like weird behavior. Is it a bug?

2009-11-24 Thread Curiouslearn
The code below shows a cyclic path that I am interested in creating
(it is in red if you run the code). The example works fine as long as
I have, u:=1cm, as in the code below. But if I replace it by ,
u:=0.6cm, there is no output. There is an error saying that paths 4
and 3 do not intersect. Is this a bug?

Thanks for your help.

\setuppapersize[letter][letter]
\setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]

\setupcolors[state=start]


\starttext

\startuseMPgraphic{buildS22}
numeric u;
u := 1cm;
w:= 2pt;
path xaxis; path yaxis;
xaxis := (0,0)--(12,0) scaled u;
yaxis := (0,0)--(0,12) scaled u;
path stLine;
path Curve;
stLine :=
function (1,x,10-x,0,10,1) scaled u;
Curve :=
function(1,x,2+8/x,1,10,0.1) scaled u;
drawarrow xaxis withpen pencircle scaled w;
drawarrow yaxis withpen pencircle scaled w; 
draw stLine withpen pencircle scaled w withcolor 0.5red;
draw Curve withpen pencircle scaled w withcolor 0.5green;
pair Lint[];
Lint[1]:=yaxis intersectionpoint stLine;
Lint[2]:=stLine intersectionpoint Curve;
Lint[3]:=reverse stLine intersectionpoint Curve;
Lint[4]:=stLine intersectionpoint xaxis;
path cyclicPath;
cyclicPath := buildcycle(Lint[1]--Lint[2],Curve,Lint[3]--Lint[4],reverse
xaxis,yaxis);
draw cyclicPath withpen pencircle scaled 5pt withcolor red;
\stopuseMPgraphic
\useMPgraphic{buildS22}

\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] Metapost Code works with MKII not with MKIV

2009-11-18 Thread Curiouslearn
Hi,

I am back to trying Metapost. I spent sometime yesterday and today
learning about clipping, buildcycles etc. to fill areas with patterns.
I think I will try to write a simple tutorial with it.

Meanwhile, I just updated my installation of Context minimals. The
following simple Metapost code does not compile with MKIV, but
compiles okay with MKII.

\setuppapersize[letter][letter]
\setupcolors[state=start]
\setuppagenumbering[state=stop]

\starttext

\startuseMPgraphic{Filling}
u := 1cm;
w:= 2pt;
%Axes
path xaxis; path yaxis;
xaxis := (0,0)--(12,0) scaled u;
yaxis := (0,0)--(0,12) scaled u;
path demand; path AC;
demand :=
function (1,x,10-x,0,10,1) scaled u;
AC :=
function(1,x,2+8/x,1,10,0.1) scaled u;

drawarrow xaxis withpen pencircle scaled w;
drawarrow yaxis withpen pencircle scaled w; 
draw demand withpen pencircle scaled w withcolor 0.5red;
draw AC withpen pencircle scaled w withcolor 0.5green;
fill fullcircle scaled u shifted (4*u,5*u) withcolor 0.1[white,blue] ;
label(btex \tfb S1 etex,(4,5)*u);
\stopuseMPgraphic
\midaligned{\useMPgraphic{Filling}}


The LOG file is:
This is LuaTeX, Version beta-0.44.0-2009103007
 \write18 enabled.
(TestFile.tex

ConTeXt  ver: 2009.11.18 21:51 MKIV  fmt: 2009.11.18  int: english/english

system  : cont-new loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : TestFile.top loaded
(TestFile.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
color   : system all is global activated
systems : begin file TestFile at line 5
mplib   : initializing instance 'metafun' using format 'metafun'
mplib   : loading 'metafun.mp' from
'/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en-metafun.mem'
)
*
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Metapost Code works with MKII not with MKIV

2009-11-18 Thread Curiouslearn
Thanks. That was a stupid mistake. It works fine now.

On Wed, Nov 18, 2009 at 8:43 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Nov 19, 2009 at 2:31 AM, Curiouslearn curiousle...@gmail.com wrote:
 Hi,

 I am back to trying Metapost. I spent sometime yesterday and today
 learning about clipping, buildcycles etc. to fill areas with patterns.
 I think I will try to write a simple tutorial with it.

 Meanwhile, I just updated my installation of Context minimals. The
 following simple Metapost code does not compile with MKIV, but
 compiles okay with MKII.

  \setuppapersize[letter][letter]
  \setupcolors[state=start]
  \setuppagenumbering[state=stop]

  \starttext

  \startuseMPgraphic{Filling}
         u := 1cm;
         w:= 2pt;
         %Axes
         path xaxis; path yaxis;
         xaxis := (0,0)--(12,0) scaled u;
         yaxis := (0,0)--(0,12) scaled u;
         path demand; path AC;
         demand :=
                         function (1,x,10-x,0,10,1) scaled u;
         AC :=
                         function(1,x,2+8/x,1,10,0.1) scaled u;

         drawarrow xaxis withpen pencircle scaled w;
         drawarrow yaxis withpen pencircle scaled w;
         draw demand withpen pencircle scaled w withcolor 0.5red;
         draw AC withpen pencircle scaled w withcolor 0.5green;
         fill fullcircle scaled u shifted (4*u,5*u) withcolor 0.1[white,blue] ;
         label(btex \tfb S1 etex,(4,5)*u);
  \stopuseMPgraphic
  \midaligned{\useMPgraphic{Filling}}
  \stoptext

 You forgot \stoptext at the end
 It works here
 --
 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
 ___

___
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] Pstricks and Asymptote

2009-11-17 Thread Curiouslearn
I tried Metapost last year for a few graphs and liked the fact that it
is tightly integrated with Context. I found John Hobby's document a
good place to learn it and then used Hans' Metafun to learn further.
The reason I am looking at Asymptote and pstricks is because they have
libraries or functionality which Metapost lacks. For example, the tree
drawing library in pstricks. If Metapost has such a library I don't
know since I cannot find any document that explains the new things
added to Metapost other than what is mentioned in Metafun(2001). As
you said documentation is lacking.
Similarly, Asymptote allows one to find intersection points of any two
paths (even nonlinear paths). I am not sure whether Metapost can do
that.

I keep reading that Taco is working on development of Metapost.
However, I am not sure what exactly has changed. If there is any new
documentation, I would love to read it.

Thanks.

On Tue, Nov 17, 2009 at 2:13 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Monday 16 November 2009 23:57:28 Curiouslearn wrote:
 Thanks everyone for replying.

 Alan, the tikz module does not work with MKIV. From what I have read
 before, it seems it will not unless the creator of tikz makes some
 changes to tikz package so that it works with Context. I am not sure
 how likely that is.


 I know that tikz is (currently) not working under mkiv, but I choose to ignore
 this as I expect that this will be fixed. I have not been concerned with this,
 as I no longer actively use tikz. Indeed, since learning (and still learning)
 metapost, I find it far superior: cleaner syntax, much more powerful... Tikz
 is/was a very welcome addition to laTeX, but metapost, whose syntax is more
 closely related to plain TeX, is more coherent with ConTeXt. So I now find the
 syntax of tikz uncomfortable under ConTeXt.

 I still sometimes use LaTeX for the submission of articles to scientific
 journals (in particular using RevTeX), but I now use ConTeXt
 (\startTEXpage\stopTEXpage) to make the figures (that must be submitted as
 separate files in any case).

 Alan

 P.S. What I really liked about tikz is the quality of its documentation, in
 particular the tutorial that is very clear. The documentation for metapost
 (and metafun) is very good, but not so easy. *We* need to write a good
 tutorial!
 ___
 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] Pstricks and Asymptote

2009-11-17 Thread Curiouslearn
Thanks, Hraban.

On Tue, Nov 17, 2009 at 8:55 AM, Henning Hraban Ramm hra...@fiee.net wrote:
 2009/11/17 Curiouslearn curiousle...@gmail.com:
 The reason I am looking at Asymptote and pstricks is because they have
 libraries or functionality which Metapost lacks. For example, the tree
 drawing library in pstricks. If Metapost has such a library I don't
 know since I cannot find any document that explains the new things
 added to Metapost other than what is mentioned in Metafun(2001). As
 you said documentation is lacking.

 Google for metapost tree, and you'll find at least this:
 http://www.isi.edu/~chiang/software/texmf/texmf.html

 Don't know it it works, I don't use MetaPost myself.

 Greetlings, Hraban
 ___
 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] Pstricks and Asymptote

2009-11-17 Thread Curiouslearn
Thanks to all who made some suggestions about where I can find
Metapost libraries. Will look into those.

It seems Asymptote + Tikz  is a good way to go and also try out Metapost again.

Mojca, you  said that number of pstricks users are decreasing. Is this
amongst Context users, or in general amongst all users who use
pstricks. If the overall number of users is decreasing then perhaps I
don't want to spend time learning it as it won't have new features in
the future. I don't like its syntax, though it can do neat things.
Asymptote syntax is really good.

Thanks again.


On Tue, Nov 17, 2009 at 1:21 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 On Tue, Nov 17, 2009 at 18:22, Hans Hagen wrote:
 Mojca Miklavec wrote:

 I just forgot to add: MKIV is currently broken in TL 2009 and
 asymptote is not part of minimals (yet). In both cases I guess that
 I'm the one to blame for both. I'll be on health leave (skipping
 work) for the next 7-10 days, so you should better hurry up if you
 need anything :) :) :)

 hey, you're not to blame for tex live .. that's just because tl was frozen
 already long ago

 I'm to blame for not setting up the ConTeXt-specific TL repository yet
 (for which Norbert has written the code twice already).

 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] Pstricks and Asymptote

2009-11-17 Thread Curiouslearn
I think I should give Metapost a try. There are two reasons, I tried
out asymptote
(i) Its syntax seems easier to remember
(ii) It can find intersections of curves (not only straight lines)
quite easily.

Can Metapost do the second? Anyhow, I am going to give it a try again
to see if I like it.

Thanks.

On Tue, Nov 17, 2009 at 2:59 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 On Tue, Nov 17, 2009 at 20:35, Curiouslearn wrote:
 Thanks to all who made some suggestions about where I can find
 Metapost libraries. Will look into those.

 It seems Asymptote + Tikz  is a good way to go and also try out Metapost 
 again.

 Mojca, you  said that number of pstricks users are decreasing.

 I didn't say that it's decreasing. I just said that it's really low,
 but I meant ConTeXt users with that. There are still plenty LaTeX
 users around.

 The main problem is that PS Tricks cannot be very well integrated
 unless one uses tex-dvips, but ConTeXt doesn't use that for ages and
 there is basically no support for dvi in ConTeXt either.

 Is this
 amongst Context users, or in general amongst all users who use
 pstricks. If the overall number of users is decreasing then perhaps I
 don't want to spend time learning it as it won't have new features in
 the future. I don't like its syntax, though it can do neat things.

 Are there any neat features that you won't to do, but cannot do with
 TikZ? (I'm sure there are some, but I'm also sure that 99% of drawings
 can be done in a very similar way in TikZ as well unless there is a
 well-developed PSTricks library around that's missing in TikZ.)

 Asymptote is very similar to MetaPost. The main reason why I would
 want to use it is to draw 3D, else I would go for MetaPost since it's
 much faster and better integrated when used within ConTeXt.

 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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
The following is an example. Randomization occurs with MKII, but not with
MKIV.

\setupsystem[random=123]

\starttext

\startitemize[a,random]
\startitem This is item 1 \stopitem
\startitem This is item 2 \stopitem
\startitem This is item 3 \stopitem
\startitem This is item 4 \stopitem
\stopitemize

\stoptext

On Sun, Nov 15, 2009 at 1:42 PM, curiouslearn curiousle...@gmail.comwrote:

 I wanted to bring this  to your attention. It seems that
 setupsystem[random= ]
 command does not work with MKIV. If I use different numbers for [random= ]
 option the arrangement of items changes when compiled with MKII but do not
 change when compiled with MKIV.

 I tried emailing the above message with my email, but it bounced everytime
 I
 sent it. Do you know what might have happened.

 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

 ___

___
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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui
--backend=pdf ./Test_setupsystem.tex
MTXrun | total runtime: 1.200



On Mon, Nov 16, 2009 at 8:58 AM, Taco Hoekwater t...@elvenkind.com wrote:


 Curiouslearn wrote:
  The following is an example. Randomization occurs with MKII, but not
  with MKIV.

 Works here (it outputs in 2-4-1-3 order)

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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___
___
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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Does not work for me.

Luigi, the reason I have used the \setupsystem[random=] is to control
the randomization and not have it change everytime I compile it. This
is I think necessary if I want the answerkey that identfies the
correct option.



On Mon, Nov 16, 2009 at 9:05 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn curiousle...@gmail.com wrote:
 The following is an example. Randomization occurs with MKII, but not with
 MKIV.

 \setupsystem[random=123]

 \starttext

 \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
 \stopitemize

 \stoptext

 It works ok here, if I undertstand what you want.

 What about
 %%test.tex
 \starttext

  \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
  \stopitemize
 \stoptext

 $context --purgeall; context test.tex ; mv test.pdf test-1.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-2.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-3.pdf

 I see differents pdfs test-1,test-2,test-3

 With your code, all pdf are the same.


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

___
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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Thanks Taco. I will try that.

On Mon, Nov 16, 2009 at 9:09 AM, Taco Hoekwater t...@elvenkind.com wrote:


 Curiouslearn wrote:
 Thanks Taco. I am not sure, why it does not work for me. I am copying
 and pasting the log file. Could please someone take a look and let me
 know what the problem might be.

 Could be a fix in a beta. I run

 This is LuaTeX, Version beta-0.45.0-2009111614


  \write18 enabled.


 (./rand



 ConTeXt  ver: 2009.11.15 18:01 MKIV  fmt: 2009.11.16  int: english/english

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

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

___
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] Pstricks and Asymptote

2009-11-16 Thread curiouslearn
I apologize if this has been asked before, but would appreciate if anyone could
answer this again.

(a) Is there an easy way to incorporate asymptote code in a Context document,
like there exists in Latex. In latex you can include it between
\begin{asy}

\end{asy}
   

(b) Is there an easy way to incorporate pstricks code in a Context document. If
there is, does that way work both with MKII and MKIV or only with one of them. 

The reason I am asking is that eventually all the new Context features will be
in MKIV. I want to know what graphics packages I can use with it other than
Metapost.
   
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] Pstricks and Asymptote

2009-11-16 Thread Curiouslearn
Thanks everyone for replying.

Mojca, in case you read this, can you please let me know what the
status on asymptote is.

Alan, the tikz module does not work with MKIV. From what I have read
before, it seems it will not unless the creator of tikz makes some
changes to tikz package so that it works with Context. I am not sure
how likely that is.

Thomas or someone else can you please confirm that the pstricks module
works with MKIV. Also, where I can find the module? It is not there
with the other third party modules.

Thanks.

On Mon, Nov 16, 2009 at 9:43 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Monday 16 November 2009 15:29:14 Thomas A. Schmitz wrote:
 On Nov 16, 2009, at 3:12 PM, curiouslearn wrote:
  I apologize if this has been asked before, but would appreciate if
  anyone could
  answer this again.
 
  (a) Is there an easy way to incorporate asymptote code in a Context
  document,
  like there exists in Latex. In latex you can include it between
  \begin{asy}
 
  \end{asy}

 There was a discussion about asymptote on this list in the summer,
 Mojca has done quite a lot of work towards integrating it. But I'm not
 sure what the current state is.

  (b) Is there an easy way to incorporate pstricks code in a Context
  document. If
  there is, does that way work both with MKII and MKIV or only with
  one of them.

 There's a module pstricks. Again, a search in the list archives would
 have shown that.

  The reason I am asking is that eventually all the new Context
  features will be
  in MKIV. I want to know what graphics packages I can use with it
  other than
  Metapost.
 
  Thanks.

 In addition, there is a module tikz, integrating pgf/tikz, also maintained by
 Mojca.

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


[NTG-context] setupsystem command

2009-11-15 Thread curiouslearn
I wanted to bring this  to your attention. It seems that setupsystem[random= ]
command does not work with MKIV. If I use different numbers for [random= ] 
option the arrangement of items changes when compiled with MKII but do not
change when compiled with MKIV.

I tried emailing the above message with my email, but it bounced everytime I
sent it. Do you know what might have happened.

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] reducing the space after the enumeration heading

2009-11-12 Thread Curiouslearn
No one wants to help on this? I would appreciate any help. Am I missing
something too obvious?  I tried some other options but they do not help.

Thanks.

On Wed, Nov 11, 2009 at 5:16 PM, Curiouslearn curiousle...@gmail.comwrote:

 Hello All,

 I have defined the following enumeration:
 \defineenumeration
 [Problem]
 [location=top,
 text=Problem,
 between=\blank,
 before=\blank,
 after=\blank]

 Now for one of  the problems, I want the heading Problem 13 to appear not
 on the top, but on the left. So before this particular problem I entered

 \setupenumerations[Problem][location=left,stopper=:]
 \Problem (From book XYZ)

 The issue is that there is a big space between words Problem 13: and
 (From book XYZ). How can I reduce this space so that it is equal to the
 standard spacing?

 Thank you.

___
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] Changing the formatting of Natural Tables

2009-11-12 Thread Curiouslearn
Hello,

I am using natural tables to make tables in my document. Can someone please
tell me how I can prevent context from applying features I choose for an
earlier table to a table that appears later in the document. Following is an
example of two tables. Even though I choose

\setupTABLE[frame=off]

for the second table, there is a frame created based on what I define for an
earlier table. I am using MKII (since I want to use Tikz).

I would really appreciate any help.

Example:

\setuplayout[letter,height=
9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in]

% Changing the location of the page numbers so that they appear in the
footer.
\setuppagenumbering[location=footer]

\setupcolors[state=start]
\setupcolor[xwi]

\starttext

%% First Table  %%
\setupTABLE[frame=off]
\setupTABLE[column][3,4,5][align={middle,lohi},width=0.6in]
\setupTABLE[column][2][align=lohi]
\setupTABLE[row][3][align={lohi,middle}]

\setupTABLE[3,4,5][3,4,5][background=color,backgroundcolor=ivory,framecolor=midnightblue,frame=on]
% Using color names from xwi colorscheme
\bTABLE
\bTR
\bTD   \eTD
\bTD   \eTD
\bTD[nc=3] {\bf Player 2} \eTD \eTR
\bTR
\bTD   \eTD
\bTD   \eTD
\bTD  $ L $ \eTD
\bTD  $ M $ \eTD
\bTD  $ R $ \eTD \eTR
\bTR
\bTD[nr=3,width=1in] {\bf Player 1}  \eTD
\bTD  $ U $ \eTD
\bTD  (8,8) \eTD
\bTD  (0,9) \eTD
\bTD  (0,0) \eTD \eTR
\bTR
\bTD  $ C $ \eTD
\bTD  (9,0) \eTD
\bTD  (0,0) \eTD
\bTD  (3,1) \eTD \eTR
\bTR
\bTD  $ D $ \eTD
\bTD  (0,0) \eTD
\bTD  (1,3) \eTD
\bTD  (3,3) \eTD \eTR
\eTABLE

%% Second Table  %%

Even though I repeat {\tt \\setupTABLE[frame=off]} command the table has
frame.

\setupTABLE[frame=off]
\bTABLE
\bTR
\bTD \eTD
\bTD\eTD
\bTD[nc=2] Player 2 \eTD
\bTD\eTD
\eTR
\bTR
\bTD \eTD
\bTD\eTD
\bTD  C\eTD
\bTD D\eTD
\eTR
\bTR
\bTD[nr=2] Player 1 \eTD
\bTD  C\eTD
\bTD  (2,2)\eTD
\bTD  (0,4)\eTD
\eTR
\bTR

\bTD  D\eTD
\bTD  (4,0)\eTD
\bTD (1,1)\eTD
\eTR


\eTABLE

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


Re: [NTG-context] reducing the space after the enumeration heading

2009-11-12 Thread Curiouslearn
Thanks Wolfgang. Here is a working example. The use of distance reduces the
space if I put a negative number. But is there an option that gives a
regular space as between any two words, or do I have to play with the
negative distance number until I get the right value (which is fine, but
just want to make sure that, that is the best way).

Thanks very much for your help.

% Defining Problem enumeration
\defineenumeration
[Problem]
[location=top,
text=Problem,
between=\blank,
before=\blank,
after=\blank]

% Changing the location of the page numbers so that they appear in the
footer.
\setuppagenumbering[location=footer]

\setupcolors[state=start]
\setupcolor[xwi]

\starttext
\Problem
The problem heading is at the top.

\setupenumerations[Problem][location=left]
\Problem See the space between the heading and the first word.

\setupenumerations[Problem][location=left,distance=-0.15in]
\Problem The addition of distance option reduces the space. Do I have to
play around with this?

\stoptext



On Thu, Nov 12, 2009 at 4:28 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 12.11.2009 um 22:18 schrieb Curiouslearn:

  No one wants to help on this? I would appreciate any help. Am I missing
 something too obvious?  I tried some other options but they do not help.

 Since there is no complete working example I can't test it but you can add
 'distance=\spaceamount' to your enumeration setup.

 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] reducing the space after the enumeration heading

2009-11-12 Thread Curiouslearn
Thanks Wolfgang. 'width=fit,distance=...' option does the trick.

On Thu, Nov 12, 2009 at 5:03 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 12.11.2009 um 22:56 schrieb Curiouslearn:

  Thanks Wolfgang. Here is a working example. The use of distance reduces
 the space if I put a negative number. But is there an option that gives a
 regular space as between any two words, or do I have to play with the
 negative distance number until I get the right value (which is fine, but
 just want to make sure that, that is the best way).

 add either 'width=broad' or 'width=fit,distance=...' to your setup while in
 the second
 case it's sometimes better to use a font related value like 1ex or 0.5em.

 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
___


[NTG-context] reducing the space after the enumeration heading

2009-11-11 Thread Curiouslearn
Hello All,

I have defined the following enumeration:
\defineenumeration
[Problem]
[location=top,
text=Problem,
between=\blank,
before=\blank,
after=\blank]

Now for one of  the problems, I want the heading Problem 13 to appear not
on the top, but on the left. So before this particular problem I entered

\setupenumerations[Problem][location=left,stopper=:]
\Problem (From book XYZ)

The issue is that there is a big space between words Problem 13: and
(From book XYZ). How can I reduce this space so that it is equal to the
standard spacing?

Thank you.
___
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] List of fonts that comes with context minimals

2009-08-18 Thread Curiouslearn
Hi,

I wanted to check the fonts that are properly installed with (that come
with)  the default installation of Context Minimals. As mentioned on the
Context Garden, I entered the following command at the terminal prompt

*mtxrun --script fonts --list*

After doing some things, the terminal gives me the following message:

*font loading failed for /System/Library/Fonts/Keyboard.dfont

*I also tried*

*

*mtxrun --script fonts --reload*


But that did not work either. I got the same message.
___
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] List of fonts that comes with context minimals

2009-08-18 Thread Curiouslearn
Hi Taco,

Thanks for replying. Sorry for not being clear. The main problem is that I
do not get any list with fonts. So I do not know which fonts I can use,
other than the default font. Please see below for the complete message that
the terminal gives me.

MTXrun | fontnames: identifying tree font files with suffix otf
MTXrun | fontnames: identifying tree font files with suffix OTF
MTXrun | fontnames: 161 tree files identified, 161 hash entries added,
runtime 0.080 seconds
MTXrun | fontnames: identifying tree font files with suffix ttf
MTXrun | fontnames: identifying tree font files with suffix TTF
MTXrun | fontnames: 5 tree files identified, 5 hash entries added, runtime
0.058 seconds
MTXrun | fontnames: identifying tree font files with suffix ttc
MTXrun | fontnames: identifying tree font files with suffix TTC
MTXrun | fontnames: 0 tree files identified, 0 hash entries added, runtime
0.053 seconds
MTXrun | fontnames: identifying tree font files with suffix dfont
MTXrun | fontnames: identifying tree font files with suffix DFONT
MTXrun | fontnames: 0 tree files identified, 0 hash entries added, runtime
0.054 seconds
MTXrun | fontnames: identifying tree font files with suffix afm
MTXrun | fontnames: identifying tree font files with suffix AFM
MTXrun | fontnames: 76 tree files identified, 65 hash entries added, runtime
0.134 seconds
MTXrun | fontnames: identifying system font files with suffix otf
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.otf
MTXrun | fontnames: globbing path /Library/Fonts/**.otf
MTXrun | fontnames: globbing path /System/Library/Fonts/**.otf
MTXrun | fontnames: identifying system font files with suffix OTF
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.OTF
MTXrun | fontnames: globbing path /Library/Fonts/**.OTF
MTXrun | fontnames: globbing path /System/Library/Fonts/**.OTF
MTXrun | fontnames: 14 system files identified, 14 hash entries added,
runtime 0.015 seconds
MTXrun | fontnames: identifying system font files with suffix ttf
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.ttf
MTXrun | fontnames: globbing path /Library/Fonts/**.ttf
MTXrun | fontnames: globbing path /System/Library/Fonts/**.ttf
MTXrun | fontnames: identifying system font files with suffix TTF
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.TTF
MTXrun | fontnames: globbing path /Library/Fonts/**.TTF
MTXrun | fontnames: globbing path /System/Library/Fonts/**.TTF
MTXrun | fontnames: 159 system files identified, 185 hash entries added,
runtime 0.097 seconds
MTXrun | fontnames: identifying system font files with suffix ttc
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.ttc
MTXrun | fontnames: globbing path /Library/Fonts/**.ttc
MTXrun | fontnames: globbing path /System/Library/Fonts/**.ttc
MTXrun | fontnames: identifying system font files with suffix TTC
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.TTC
MTXrun | fontnames: globbing path /Library/Fonts/**.TTC
MTXrun | fontnames: globbing path /System/Library/Fonts/**.TTC
MTXrun | fontnames: 0 system files identified, 0 hash entries added, runtime
0.007 seconds
MTXrun | fontnames: identifying system font files with suffix dfont
MTXrun | fontnames: globbing path /Users/blbgse/Library/Fonts/**.dfont
MTXrun | fontnames: globbing path /Library/Fonts/**.dfont
MTXrun | fontnames: globbing path /System/Library/Fonts/**.dfont
font loading failed for /System/Library/Fonts/Keyboard.dfont

Thanks.



On Tue, Aug 18, 2009 at 11:16 AM, Taco Hoekwater t...@elvenkind.com wrote:



 Curiouslearn wrote:
  Hi,
 
  I wanted to check the fonts that are properly installed with (that come
  with)  the default installation of Context Minimals. As mentioned on the
  Context Garden, I entered the following command at the terminal prompt
 
  * mtxrun --script fonts --list *
 
  After doing some things, the terminal gives me the following message:
 
  *font loading failed for /System/Library/Fonts/Keyboard.dfont

 This message is ok. Keyboard.dfont is not a normal font. mkiv could
 skip it during the iteration just to prevent frightening users, but
 nothing bad or unexpected is happening.

 Best wishes,
 Taco


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://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

Re: [NTG-context] List of fonts that comes with context minimals

2009-08-18 Thread Curiouslearn
Thanks Taco. After you release a new Luatex version tomorrow, I will update
my Context installation (to the beta version).

Thanks so much.

On Tue, Aug 18, 2009 at 11:23 AM, Taco Hoekwater t...@elvenkind.com wrote:



 Curiouslearn wrote:
  Hi Taco,
 
  Thanks for replying. Sorry for not being clear. The main problem is that
  I do not get any list with fonts.

 Ah! You need an (even) newer luatex trunk.

 I'll try to do a luatex release tomorrow, btw.

 Best wishes,
 Taco


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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bold letters in math and does tikz work

2009-08-14 Thread Curiouslearn
Thanks again, Aditya.

Anyone, is there a way to get bold upright symbols in math for the default
Context font? If not, which font can I use that is available with the
default Context minimals installation that is a unicode font.

Thank you.



On Thu, Aug 13, 2009 at 12:26 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Wed, 12 Aug 2009, Curiouslearn wrote:

  Aditya, thanks very much for your reply. Is the default font in context, a
 unicode font. The layout of my file is


 No. It is a virtual font created from latin modern math font.

  I do NOT get bold with $ {\bf x} $ command. It is upright, but not bold.
 Thanks for your help.


 Hans, there is a bug in math-vfu. In all bold variants in make_fonts,
 vector = is missing. See the attached patch.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Alignment in tables

2009-08-14 Thread Curiouslearn
Can someone please tell me why the following does not center the text in the
first row?
Thanks in advance.


\setupTABLE[row][1][align={middle}]
\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]

\bTABLE
\bTR
\bTD {\bf Concept} \eTD
\bTD {\bf Definition} \eTD
\eTR
\bTR
\bTD {\bf Closure} of a set $ E \subset M $ ($ \text{cl}(E) $) \eTD
\bTD \hskip 1em $ \text{cl}(E) = \cap\{ F : E \subset F, F \text{ is
closed} \}$ \eTD
\eTR
\bTR
\bTD $ x $ is a {\bf contact point} or {\bf accumulation point} of $
E $ if \eTD
\bTD \hskip 1em $ \forall \varepsilon  0, B_{\varepsilon}(x) \cap E
\neq \emptyset $ \eTD
\eTR
\eTABLE
___
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] Alignment in tables

2009-08-14 Thread Curiouslearn
 Can someone please tell me why the following does not center the text in
 the first row?
 Thanks in advance.

 \setupTABLE[row][1][align={middle}]
 \setupTABLE[column][1][width=2.5in,align={lohi}]



 This setup overwrites the previous one, write them in reverse order and it
 will work.

 Wolfgang


I tried

\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]
\setupTABLE[row][1][align={middle}]

But that does not work either.

Thanks for any help.
___
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] Alignment in tables

2009-08-14 Thread Curiouslearn
Yes, that worked great. After looking at your solution, I vaguely remember
that this had happened before. For the first row, first has worked 1 did
not. It was so long back that I had forgotten about it.

Thanks for the solution.

On Fri, Aug 14, 2009 at 9:15 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 14.08.2009 um 15:04 schrieb Curiouslearn:

  I tried

 \setupTABLE[column][1][width=2.5in,align={lohi}]
 \setupTABLE[column][2][width=3in,align={lohi}]
 \setupTABLE[row][1][align={middle}]

 But that does not work either.


 weird but this works

 \setupTABLE[row][first][align=middle,style=bold]

 and you can now write

\bTR
\bTD Concept \eTD
\bTD Definition \eTD
\eTR


 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bold letters in math and does tikz work

2009-08-14 Thread Curiouslearn
 You can get bold upright symbol in math fonts. There was a bug in
 math-vfu.lua, for which I gave a patch in my previous email. If you apply
 that patch to math-vfu and then regenerate formats, ${\bf A}$ will give
 upright bold math. If you do not want to patch math-vfu on your own, wait
 for the next beta by Hans.

 This will not work with bold greek letters or bold operators.


 Aditya


Thanks Aditya. I have no clue how to use the patch. I think I will wait for
the next Beta from Hans.
___
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] Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.

2009-08-12 Thread Curiouslearn
Hello,

Can someone please tell me how to get bold math symbols in Context. I am
using

ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.7.7  int: english/english

Also, does Tikz work with the latest version of context minimals?

Thank you for your help.
___
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] Bold letters in math and does tikz work

2009-08-12 Thread Curiouslearn
Aditya, thanks very much for your reply. Is the default font in context, a
unicode font. The layout of my file is

\startenvironment Layout

\setuppapersize[letter][letter]
\setuplayout[width=5.5in,height=10in,backspace=1.5in,topspace=0.5in,header=1.25in,footer=1.25in]

\setupwhitespace[medium]
\setuppagenumbering[location=]
\setupcolors[state=start]
\setupcolor[xwi]

\setupcaption[figure][headstyle=\tfx\bf,style=\tfx]
\setuphead[chapter][color=midnightblue,after=\vskip 2ex]
\setuphead[subject][color=midnightblue]
\setupitemize[stopper=),left=(]
\setupitemize[headstyle=bold]

definetextbackground[Quote]
[backgroundcolor=linen,
backgroundoffset=0.25cm,
frame=off,
location=paragraph,
before=\vskip 1ex\startnarrower,
after=\stopnarrower\vskip 2.5ex]

\def\Ex#1{{\bf Exercise #1}}
\def\Dfn#1{{\bf Definition #1}}
\def\bb#1{\blackboard{#1}}

\stopenvironment

I do NOT get bold with $ {\bf x} $ command. It is upright, but not bold.
Thanks for your help.




On Wed, Aug 12, 2009 at 10:31 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Wed, 12 Aug 2009, Curiouslearn wrote:

  Hello,

 Can someone please tell me how to get bold math symbols in Context. I am
 using

 ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.7.7  int: english/english


 ${\bi A}$ (bold italic) or with a unicode font use can also use ${\bf A}$
 (bold upright).

  Also, does Tikz work with the latest version of context minimals?


 This needs to be fixed by Till Tantanu. There was a long email discussion
 on this.

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [***SPAM***] Re: Fraktur symbol in subscript

2009-07-09 Thread curiouslearn
Mojca Miklavec mojca.miklavec.lists at gmail.com writes:


 You can fix it manually from Taco's post or you can use
 --context=experimental, but then you need to compile LuaTeX by
 yourself.
 
 Hans' version of ConTeXt doesn't work with current LuaTeX beta, so
 updating is not possible before next LuaTeX is released.
 
 Mojca

Thanks for the clarification, Mojca. Frankly, I am not sure how difficult this
would be for me, so I will perhaps wait for the next LuaTex. Any idea as to when
that would be released. 

Thank you all for being helpful and being patient.



___
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] Fraktur symbol in subscript

2009-07-06 Thread curiouslearn
Hello All,

While the \fraktur{C} command works for me in the Math mode as part of a regular
expression, it does not work in the subscript. The command I am trying is 
$ x  \sim_{\fraktur{C}}  y $. I get a blank in place of the fraktur C. However,
if I try just $ x \fraktur{C} y $, it works. Does anyone have a fix?

I am using 
This is LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009)
ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.25  int: english/english

Thank you very much.



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


  1   2   >