[NTG-context] cannot generate cont-en format

2007-06-24 Thread In Hee Park
Hello,

I am new to ConTeXt and really wish to shift to it from LaTeX.

I was trying to install ConTeXt archive (cont-tmf.zip) on my
SuSe-10.1 linux machine, first unzip it to my texmf directory,
then add context.map to the pdftex.cfg file. Finally I got
stuck into generating cont-en.fmt format file.

=
suse:/usr/share/texmf# texexec --make en

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

 TeX hash binary : mktexlsr
comment : hashing may take a while ...
mktexlsr: Updating /etc/texmf/ls-R...
mktexlsr: Updating /usr/local/share/texmf/ls-R...
mktexlsr: /usr/share/texmf/ls-R lacks magic
string. Skipping...
mktexlsr: Updating /var/cache/fonts/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
assuming engine : pdfetex
This is pdfeTeX, Version
3.141592-1.21a-2.2 (Web2C 7.5.4) (INITEX)
\write18 enabled.
(/usr/share/texmf/web2c/natural.tcx)
entering extended mode
! I can't find file `cont-en'.
* *cont-en
=

Could you help me on that issue? Thanks in advance.

_
In-Hee Park
___
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] cannot generate cont-en format

2007-06-24 Thread Taco Hoekwater
In Hee Park wrote:
 Hello,
 
 I am new to ConTeXt and really wish to shift to it from LaTeX.
 
 I was trying to install ConTeXt archive (cont-tmf.zip) on my
 SuSe-10.1 linux machine, first unzip it to my texmf directory,
 then add context.map to the pdftex.cfg file. Finally I got
 stuck into generating cont-en.fmt format file.
 
 
 Could you help me on that issue? Thanks in advance.

You have to (re)run the mktexlsr command after unpacking the
zip archive. File searches in TeX normally uses a cache-ing
database instead of pounding the dis, and the mktexlsr command
updates that database.

I was going to point you to the wiki for more information, but
the information there is about OpenSuse, and will probably not
help you. Anyway, the link is:

   http://wiki.contextgarden.net/Linux_Installation

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
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Taco Hoekwater
Hamid Kamrani wrote:
 At least in the U.S., it is the rule and a strict requirement to
 typeset vertical lists in such a way that the numerals align on the
 dot or parenthesis following the numeral.

It is quite possible that there is a simpler solution that I simply
failed to find, but this works:

\unprotect
\startsetups [numberitemleft]
   \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
\getitemparameter\itemlevel \c!distance\relax
   \bgroup \hfill
\stopsetups

\startsetups [numberitemright]
   \egroup
\stopsetups
\protect

\starttext
\startitemize[n,packed][left={\setups[numberitemleft]},
 right={\setups[numberitemright]},
 stopper={.}]
  \item The first item.
  \item The second item.
  \item The third item.
  \item The fourth item.
  \item The fifth item.
  \item The sixth item.
  \item The seventh item.
  \item The eighth item.
  \item The ninth item.
  \item The tenth item.
\stopitemize
\stoptext


You probably want to increase the 'width' parameter, but that should be
straightforward.

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
___


Re: [NTG-context] Label loops within a XeConTeXt document

2007-06-24 Thread nicola
   how do I change
 
  \startTeXtexts
\dorecurse{10}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}}
  \stopTeXtexts
 
  so that I can print labels from x_0 up to x_9? Do I need to use
  \defineconversion and \convertnumber?
 
 No, use \dostepwiserecuse. The general syntax is
 
 \dostepwiserecurse {from} {to} {step} {action}
 
 so
 
 \dostepwiserecurse {0} {9} {1}

I guess it must be \dostepwiserecurse {0} {9} {1} {}

 {\TeXtext{\recurselevel}{$x_{\recurselevel}$} should work.

I have tried that, but sometxt(0) prints nothing. Anyway, I have solved 
it like this:

\startTeXtexts
   \TeXtext{0}{$x_0$}
   \dorecurse{30}{\TeXtext{\recurselevel}{$x_{\recurselevel}$}}
\stopTeXtexts

Thanks again!
Nicola

___
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] Vertical spacing

2007-06-24 Thread Jeff Smith
Hi again!

On 6/23/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 \setuphead[section][after={\blank[big]}]

Is this the only way? The thing is, between my section title and the
text, I want vertical spacing roughly equal to my interlinespace, not
my whitespace (as the spacing between paragraphs with
\setupwhitespace). The former is a smaller value than the latter, and
with after= and \blank it doesn't work as long as I specify such a
smaller value. It only works when I want extra spacing, but I want
less. How does one achieve this?

Thanks in advance!
Jeff
___
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] Vertical spacing

2007-06-24 Thread Wolfgang Schuster
On Sun, 24 Jun 2007 11:12:00 +0200
Jeff Smith [EMAIL PROTECTED] wrote:

 Hi again!
 
 On 6/23/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
  \setuphead[section][after={\blank[big]}]
 
 Is this the only way? The thing is, between my section title and the
 text, I want vertical spacing roughly equal to my interlinespace, not
 my whitespace (as the spacing between paragraphs with
 \setupwhitespace). The former is a smaller value than the latter, and
 with after= and \blank it doesn't work as long as I specify such a
 smaller value. It only works when I want extra spacing, but I want
 less. How does one achieve this?
 
 Thanks in advance!
 Jeff

\setuphead[section][after=\nowhitespace]

\starttext

\section{Knuth}

\input knuth

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


[NTG-context] referencing figures with \in

2007-06-24 Thread Hans van der Meer

I used to place references to figures and tables in the following way:

\placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
\in{figure}[fig:myfig]

This however printed a dot instead of the expected figure #.
Changing to
\at{figure}[fig:myfig]
again printed the correct reference.

Looking further into this I found:
\meaning\in -- \protected macro:-\dohandlemathtoken {in}
\meaning\at  -- macro:-\dohandlecommand {at}

Still, the ConText manual tells me that
\in{.1}{.2.}[ref] (with {.2.} optional)
should work.

In file core-ref.tex at line 2118 (2007-04-17 version) I find:
%\def\in%
%  {\ifmmode
% \expandafter\donormalin
%   \else
% \expandafter\doinatreference\expandafter\currenttextreference
%   \fi}
But I am definitely not in math mode when calling \in.
I did some further experimentation but nothing helped.

Has something changed here or is there something I do obviously wrong?

Hans van der Meer


___
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] referencing figures with \in

2007-06-24 Thread Taco Hoekwater
Hoi Hans,

Hans van der Meer wrote:
 I used to place references to figures and tables in the following way:
 
 \placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
 \in{figure}[fig:myfig]
 
 This however printed a dot instead of the expected figure #.

This needs an example file from you. I just ran:

% hans-prob.tex
\starttext

I used to place references to figures and tables in the following way:

\placefigure[][fig:myfig]{Title}{Content}

\in{figure}[fig:myfig]

This however printed a dot instead of the expected figure .
Changing to \at{figure}[fig:myfig] again printed the correct reference.

\stoptext


And it worked fine.

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
___


Re: [NTG-context] referencing figures with \in

2007-06-24 Thread Wolfgang Schuster
On Sun, 24 Jun 2007 14:38:34 +0200
Hans van der Meer [EMAIL PROTECTED] wrote:

 I used to place references to figures and tables in the following way:
 
 \placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
  \in{figure}[fig:myfig]
 
 This however printed a dot instead of the expected figure #.
 Changing to
  \at{figure}[fig:myfig]
 again printed the correct reference.
 
 Looking further into this I found:
  \meaning\in -- \protected macro:-\dohandlemathtoken {in}
  \meaning\at  -- macro:-\dohandlecommand {at}
 
 Still, the ConText manual tells me that
  \in{.1}{.2.}[ref] (with {.2.} optional)
 should work.
 
 In file core-ref.tex at line 2118 (2007-04-17 version) I find:
 %\def\in%
 %  {\ifmmode
 % \expandafter\donormalin
 %   \else
 % \expandafter\doinatreference\expandafter\currenttextreference
 %   \fi}
 But I am definitely not in math mode when calling \in.
 I did some further experimentation but nothing helped.
 
 Has something changed here or is there something I do obviously wrong?
 
 Hans van der Meer

Hi Hans,

please post a example, the following works for me:

\starttext

\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic

\placefigure
  []
  [fig:ref]
  {Text}
  {\useMPgraphic{circle}}

\in{figure}[fig:ref]

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


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Taco Hoekwater
Hamid Kamrani wrote:
 Taco and Wolfang,
 
 Thanks both for your responses.
 But:
 1. The setup offered by Taco does not line up the numerals on the
 dots. Maybe my problem was misunderstood.

Did you miss this?

Taco wrote:
 You probably want to increase the 'width' parameter, but that should be
 straightforward.

It should work with width=2pc (two digits and a dot do not fit in the 
default allocated space, so the 10. sticks out to the right)

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
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
Taco and Wolfang,

Thanks both for your responses.
But:
1. The setup offered by Taco does not line up the numerals on the
dots. Maybe my problem was misunderstood.

2. With Wolfgang's patch, I think I must be missing some code because
I get the Undefined control sequence error.


systems : begin file itemize-test02 at line 3
! Undefined control sequence.
\redostartitemgroup ...ands \checkcurrentnofitems
  \let \listitem \empty \doi...

\dostartitemgroup ... \dodostartitemgroup [#2][#3]
  \else \doifassignmentelse ...
l.6 \startitemize[n][style=bold]

?
! Undefined control sequence.
\dolistitem ...stelements \optimizelistitemsbreak
  \noindent \setbox 8\hbox {...

Best regards,
-Hamid

On 6/24/07, Wolfgang Schuster [EMAIL PROTECTED] wrote:
 On Sat, 23 Jun 2007 23:13:22 -0400
 Hamid Kamrani [EMAIL PROTECTED] wrote:

  At least in the U.S., it is the rule and a strict requirement to
  typeset vertical lists in such a way that the numerals align on the
  dot or parenthesis following the numeral.
 
  (even the daily violation of the rule by some of the most widely used
  word processors such as MS Word has not changed this old-aged
  convention.)
 
  I feel it must be possible in ConTeXt to do this because it is such a
  basic requirement and ConTeXt is used professionally. However, it's
  not the default behavior and I don't know which options will achieve
  it.
 
  (And if by any chance, this is not yet possible in ConTeXt, can anyone
  suggest a workaround for this, in ConTeXt of course.
 
  It is the default behavior in both LaTeX and eplain.

 Hi Hamid,

 I corrected my last patch and integrated a itemalign key. You can test
 it with the following example.

 \input core-itm-patch

 \starttext

 \startframedtext[width=\textwidth]
 \startitemize[n][style=bold]
 \item As a college student, how do you rate yourself?
   \startitemize[5,columns,two]
   \item Excellent student
   \item Good student
   \item Mediocre student
   \item Poor student
   \stopitemize
 \stopitemize
 \stopframedtext

 \startitemize[n][style=bold]
 \item As a college student, how do you rate yourself?
   \startitemize[5, columns, two]
   \item Excellent student
   \item Good student
   \item Mediocre student
   \item Poor student
   \stopitemize
 \stopitemize

 \startitemize[n,packed,broad][itemalign=left]
 \dorecurse{10}{\item Item \recurselevel.}
 \stopitemize

 \startitemize[n,packed,broad]
 \dorecurse{10}{\item Item \recurselevel.}
 \stopitemize

 \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  : 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] cannot generate cont-en format

2007-06-24 Thread Hans Hagen
In Hee Park wrote:
 Hello,
 
 I am new to ConTeXt and really wish to shift to it from LaTeX.
 
 I was trying to install ConTeXt archive (cont-tmf.zip) on my
 SuSe-10.1 linux machine, first unzip it to my texmf directory,
 then add context.map to the pdftex.cfg file. Finally I got
 stuck into generating cont-en.fmt format file.
 
 =
 suse:/usr/share/texmf# texexec --make en
 
  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

that one is real old

  TeX hash binary : mktexlsr
 comment : hashing may take a while ...
 mktexlsr: Updating /etc/texmf/ls-R...
 mktexlsr: Updating /usr/local/share/texmf/ls-R...
 mktexlsr: /usr/share/texmf/ls-R lacks magic
 string. Skipping...
 mktexlsr: Updating /var/cache/fonts/ls-R...
 mktexlsr: Updating /var/lib/texmf/ls-R...
 mktexlsr: Done.
   assuming engine : pdfetex
 This is pdfeTeX, Version
 3.141592-1.21a-2.2 (Web2C 7.5.4) (INITEX)
 \write18 enabled.
 (/usr/share/texmf/web2c/natural.tcx)
 entering extended mode
 ! I can't find file `cont-en'.
 * *cont-en

can you try:

texmfstart texexec --make --all en


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-24 Thread Hans van der Meer
Taco and Wolfgang,

Here is your counterexample:

\setupcaptions[number=no] %  the culprit
\starttext

I used to place references to figures and tables in the following way:

\placefigure[][fig:myfig]{Title}{Content}

mind the {\bf setupcations}, now \type{\in{figure}[fig:myfig]}--\in 
{figure}[fig:myfig] and does not result in the reference.

This however printed a dot instead of the expected figure .
Changing to \type{\at}\at{figure}[fig:myfig] again printed the  
correct reference.

\stoptext

On Jun 24, 2007, at 16:02, Taco Hoekwater wrote:

 \starttext

 I used to place references to figures and tables in the following way:

 \placefigure[][fig:myfig]{Title}{Content}

 \in{figure}[fig:myfig]

 This however printed a dot instead of the expected figure .
 Changing to \at{figure}[fig:myfig] again printed the correct  
 reference.

 \stoptext

Hans van der Meer


___
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] horizontal list turns into vertical list in framedtext. A bug or feature?

2007-06-24 Thread Hans Hagen
Hamid Kamrani wrote:
 Hi Wolfgang,
 
 Thanks for your explanation and patch. I appreciate it.
 However, with the patch, now I have the problem of correct indentation.
 As this example shows:
 
 \input core-itm-patch

\starttext

\usemodule[streams]

\definestreamlayer[whatever][width=12cm]

\startstreamlayer[whatever]
   \startitemize[columns,two][after=]
 \item one
 \item two
 \item three
 \item four
   \stopitemize
\stopstreamlayer

\framed[strut=no,align=normal]{\placestreamlayer[whatever]\obeydepth}

\starttextstreamlayer[whatever]
   \startitemize[columns,two]
 \item one
 \item two
 \item three
 \item four
   \stopitemize
\stoptextstreamlayer

\framed[strut=no]{\placetextstreamlayer[whatever]}

\stoptext



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF appearance tuning

2007-06-24 Thread Vyatcheslav Yatskovsky
Hello,

Sorry for a trivial question, but I cannot figure out how to tune appearance of 
my generated PDF. I want the default scaling to be Page Fit and bookmarks 
being showed.

-- 
Best regards,
Vyatcheslav Yatskovsky

___
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] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
On 6/24/07, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Hamid Kamrani wrote:
  Taco and Wolfang,
 
  Thanks both for your responses.
  But:
  1. The setup offered by Taco does not line up the numerals on the
  dots. Maybe my problem was misunderstood.

 Did you miss this?

I certainly did. I'm sorry, the misunderstanding was on my part.

I do like your solution. But how to make it the default? This should
be the default behavior and in fact the required width should be
calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word.

Please note that, second to paragraphs, lists are the most widely used
text blocks. It is imperative that they format correctly.

If you're using Arabic numerals then you have the chance to list your
first 9 items correctly.But, alas, if you have to use roman numeral.
The problem shows up in the second item. (you would not itemize if you
had only one item!)

Taco, I very much appreciate your solution. It allows me to continue
for now but I humbly ask, in fact, beg to have a solution built in the
core of ConTeXt.

My apologies for discounting your solution too quickly.

Best regards,
-Hamid






 Taco wrote:
  You probably want to increase the 'width' parameter, but that should be
  straightforward.

 It should work with width=2pc (two digits and a dot do not fit in the
 default allocated space, so the 10. sticks out to the right)

 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] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
On 6/24/07, Hamid Kamrani [EMAIL PROTECTED] wrote:
 On 6/24/07, Taco Hoekwater [EMAIL PROTECTED] wrote:
  Hamid Kamrani wrote:
   Taco and Wolfang,
  
   Thanks both for your responses.
   But:
   1. The setup offered by Taco does not line up the numerals on the
   dots. Maybe my problem was misunderstood.
 
  Did you miss this?
On a follow-up to previous note:
I think this is how I missed the width issue. In my testing, I had
both distance and width parameters. I may  be doing something wrong
but these two conflict.
\unprotect
\startsetups [numberitemleft]
  \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
   \getitemparameter\itemlevel \c!distance\relax
  \bgroup\hfill
\stopsetups

\startsetups [numberitemright]
  \egroup
\stopsetups
\protect

\starttext
\startitemize[n][style=bold]
\item As a college student, how do you rate yourself?
\startitemize[R,packed][left={\setups[numberitemleft]},
right={\setups[numberitemright]},
stopper={.},
width=3em,
style=\sc,
distance=5em]
 \item The first item.
 \item The second item.
 \item The third item.
 \item The fourth item.
 \item The fifth item.
 \item The sixth item.
 \item The seventh item.
 \item The eighth item.
 \item The ninth item.
 \item The tenth item.
\stopitemize
\stopitemize
\stoptext

Best,
-Hamid


 I certainly did. I'm sorry, the misunderstanding was on my part.

 I do like your solution. But how to make it the default? This should
 be the default behavior and in fact the required width should be
 calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word.

 Please note that, second to paragraphs, lists are the most widely used
 text blocks. It is imperative that they format correctly.

 If you're using Arabic numerals then you have the chance to list your
 first 9 items correctly.But, alas, if you have to use roman numeral.
 The problem shows up in the second item. (you would not itemize if you
 had only one item!)

 Taco, I very much appreciate your solution. It allows me to continue
 for now but I humbly ask, in fact, beg to have a solution built in the
 core of ConTeXt.

 My apologies for discounting your solution too quickly.

 Best regards,
 -Hamid





 
  Taco wrote:
   You probably want to increase the 'width' parameter, but that should be
   straightforward.
 
  It should work with width=2pc (two digits and a dot do not fit in the
  default allocated space, so the 10. sticks out to the right)
 
  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] cannot generate cont-en format

2007-06-24 Thread In Hee Park
Thanks all, Taco, Mojca, and Hans!
I tried your suggestions and finally decided to install TeXLive with
ruby, which let me compile tex files and get pdf output. Thanks again!

_
In-Hee Park

[2007-06-24.Sun.10:03am] Mojca Miklavec wrote `Re: [NTG-context] cannot...'

  Also, be aware that the TeX distribution coming with your linux is
  ancient (most probably teTeX). pdfTeX version is very old and you
  might not be able to run the latest ConTeXt. SuSE distributes ConTeXt
  as well, although it's probably an old one.

  In any case you will have to update LModern fonts as well once you
  manage to do mktexlsr and build the formats.

  You might also experience problems with ruby vs. perl binaries.

  See
  
http://wiki.contextgarden.net/TeTeX_3.0_installation#Install_a_Latin_Modern_font_update

  and pay extra attention to ruby scripts. Installing TeXLive might be
  another option though.

  Mojca


  On 6/21/07, In Hee Park [EMAIL PROTECTED] wrote:
   Hello,
  
   I am new to ConTeXt and really wish to shift to it from LaTeX.
  
   I was trying to install ConTeXt archive (cont-tmf.zip) on my
   SuSe-10.1 linux machine, first unzip it to my texmf directory,
   then add context.map to the pdftex.cfg file. Finally I got
   stuck into generating cont-en.fmt format file.
  
   =
   suse:/usr/share/texmf# texexec --make en
  
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  
TeX hash binary : mktexlsr
   comment : hashing may take a while ...
   mktexlsr: Updating /etc/texmf/ls-R...
   mktexlsr: Updating /usr/local/share/texmf/ls-R...
   mktexlsr: /usr/share/texmf/ls-R lacks magic
   string. Skipping...
   mktexlsr: Updating /var/cache/fonts/ls-R...
   mktexlsr: Updating /var/lib/texmf/ls-R...
   mktexlsr: Done.
   assuming engine : pdfetex
   This is pdfeTeX, Version
   3.141592-1.21a-2.2 (Web2C 7.5.4) (INITEX)
   \write18 enabled.
   (/usr/share/texmf/web2c/natural.tcx)
   entering extended mode
   ! I can't find file `cont-en'.
   * *cont-en
   =
  
   Could you help me on that issue? Thanks in advance.
  
   _
   In-Hee Park
   
___
   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
___