[NTG-context] Question: [mpost .. texnum.mpfatal: Command failed]

2011-01-04 Thread Rebecca Searls
Hello,

I am using the default implementation of TeXLive 2010 which provides
MetaPost 1.211
on Windows 7.  I'm getting a fatal error on texnum.mp on the simplest
possible use
of graph.  Here is the simplest possible test case that shows the error:

  input graph
  end


Here is the error message I get.

C:\texlive\2010\bin\win32\mpost xtest
This is MetaPost, version 1.211 (Web2C 2010) (kpathsea version 6.0.0)
(./xtest.mp (c:/TeXLive/2010/texmf-dist/metapost/base/graph.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/marith.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/string.mp))
(c:/TeXLive/2010/texmf-dist/metapost/base/format.mp
(c:/TeXLive/2010/texmf-dist/metapost/base/string.mp)
(c:/TeXLive/2010/texmf-dist/metapost/base/texnum.mpfatal: Command
failed: etex -
-parse-first-line --interaction=nonstopmode mpa05524.tex; see mpxerr.log
 texnum.mp
 texnum.mpx
! Unable to make mpx file.
l.17 init_numbers(btex
  $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on xtest.log.


Here is the information I get when running etex.

C:\texlive\2010\bin\win32\etex --parse-first-line
--interaction=nonstopmode mpxerr.tex
This is pdfTeX, Version 3.1415926-1.40.11 (Web2C 2010)
 restricted \write18 enabled.
entering extended mode
(./mpxerr.tex [1] [1] [1] [1] [1] [1] )
Output written on mpxerr.dvi (6 pages, 672 bytes).
Transcript written on mpxerr.log.

Is there something I need to configure in TeXLive or my .mp file in
order to get this to work?  Or is there some other debugging I can do to
determine
how to resolve this problem?
___
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] counter values as label names

2011-01-04 Thread Daniel Schopper
Thomas and Aditya, thank you both for your replies! As Thomas already 
suspected it was a mere typo that \advance\entrycounter lied outside of 
the macro definition - sorry for the unnecessary confusion.
I tried to compile Aditya's attempt (MKIV  ver: 2010.12.31) but receive 
the following errors:


references  : unknown reference [][lr:b:line:0]
! Missing control sequence inserted.
inserted text \inaccessible

 I am not sure what you want to do,
My simple idea - being a total newbie to macro programming - was to 
create an automation of the following, in which the unique numbers in 
the label names would be inserted by a counter:


\starttext
\startlinenumbering
This is a sample %
% wrapper macro would start here
\startline[line:1]\pagereference[page:1]lemma\stopline[line:1]
\footnote{\at[page:1] \inline[line:1] some comment}%
% and end here
. \crlf
And this is another 
\startline[line:2]\pagereference[page:2]one\stopline[line:2]\footnote{\at[page:2] 
\inline[line:2] another comment}. \crlf

\stoplinenumbering
\bigskip
Endnotes
\placefootnotes
\stoptext

But probably my whole approach is completely out of the (Con)TeXt-Way of 
thinking… (May it be possible to collect the endnotes into various 
buffers and recurse over them at the end?)

Thanks for the hints,
Daniel



Am 03.01.11 23:23, schrieb Aditya Mahajan:

On Mon, 3 Jan 2011, Daniel Schopper wrote:


First of all thanks for the advice and sorry for my naïve posting!
Here's a test file for what I try to do. The problem is that the page-
and linenumbers printed by \placefootnotes all take the values of the
last reference.

\setupfootnotes[
location=text,
numberconversion=empty,
paragraph=,
]
\newcount\entrycounter
\entrycounter=0
\def\appentry#1#2{%
\startline[line:\the\entrycounter]%
\pagereference[page:\the\entrycounter]%
#1%
\stopline[line:\the\entrycounter]%
\footnote{{\bf \at[page:\the\entrycounter]}
\inline[line:\the\entrycounter] #1] #2}}%
\advance\entrycounter by1%
\starttext\startlinenumbering
This is a sample \appentry{paragraph}{om. h1}.\\
An this is another \appentry{one}{sentence}.
\stoplinenumbering
\bigskip
Endnotes
\placefootnotes
\stoptext


Finally: is the format of your apparatus (endnotes) a requirement?

Yes, unfortunately it is.


I am not sure what you want to do, but the following at least increments
the references (in MKIV)

\setupfootnotes
[
location=text,
numberconversion=empty,
paragraph=,
]

\newcount\entrycounter \entrycounter=0
\def\appentry#1#2%
{\expanded
{\startline[line:\the\entrycounter]%
\noexpand\pagereference[page:\the\entrycounter]%
#1%
\noexpand\stopline[line:\the\entrycounter]%
\noexpand\footnote{{\bf \at[page:\the\entrycounter]}
\inline[line:\the\entrycounter]
#1 #2}}%
\advance\entrycounter by 1\relax}

\starttext
\startlinenumbering
This is a sample \appentry{paragraph}{om. h1}. \crlf
An this is another \appentry{one}{sentence}.
\stoplinenumbering
\bigskip
Endnotes
\placefootnotes
\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] pstopdf setting lower-case?

2011-01-04 Thread Pau
No hints? Thanks.

Pau

2010/11/5 Pau vim.u...@googlemail.com:
 Hello,

 why is the ruby script pstopdf renaming files to lower-case?

 See the examples

 deukalion(pts/15)| ps2ps 1.ps U.ps
 deukalion(pts/15)| file U.ps
 U.ps: PostScript document text conforming DSC level 3.0, Level 2
 deukalion(pts/15)| pstopdf U.ps
 PsToPdf | file U.ps does not exist
 deukalion(pts/15)| file U.ps
 U.ps: cannot open `U.ps' (No such file or directory)


 deukalion(pts/15)| cp 1.ps TEST.ps
 deukalion(pts/15)| file TEST.ps
 TEST.ps: PostScript document text conforming DSC level 3.0, type EPS, Level 1
 deukalion(pts/15)| ls -lartsh TEST.ps
 12K -rw---. 1 pau pau 11K Nov  5 19:03 TEST.ps
 deukalion(pts/15)| pstopdf TEST.ps
 PsToPdf | file TEST.ps does not exist

 Thanks,

 Pau

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

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


Re: [NTG-context] How to get numbered cases'ed equations ?

2011-01-04 Thread Cedric Mauclair
On Mon, Jan 3, 2011 at 16:00, Cedric Mauclair cedric.maucl...@gmail.com wrote:
 Hi,

 Maybe someone had the same problem, no ?

 Best regards.

 -- Cédric



 On Tue, Dec 21, 2010 at 09:19, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair
 cedric.maucl...@gmail.com wrote:
 Hi list,

 How can I get a numbered equation when using cases in MkIV? The hack
 proposed by Aditya in [1] doesn't work as it uses macros that no
 longer exist (\makesesctionnumber and others). The reference doesn't
 even get recorded. I precise that I don't want (well, don't need) the
 sub numbering per-line, just a regular number would do.

 Minimal example:

 \starttext

 My equation \in[eq:equation] and my other equation \in[eq:other-equation].

 \placeformula[eq:equation]
 \startformula
  E = mc^2
 \stopformula

 \placeformula[eq:equation]
 Typo \placeformula[eq:other-equation]. Still doesn't work.
 \startformula
  \startcases
    \NC E = mc^2 \NC some text\NR
    \NC E = mc^2 \NC some more text\NR
  \stopcases
 \stopformula

 \stoptext


 Thanks.


 [1] http://dl.contextgarden.net/myway/mathalign.pdf

 -- Cédric




I am pretty sure there is a better way to do it, but adding
\handleplaceformulanumbering after \stopcases works.

Regards.

-- Cédric
___
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] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
Hi ConTeXtans,

\startitemize[text] is a very cool command, but i run frequently into
“Overfull \hbox” errors.

It would be nice if some context magicians would change the ~1em-wide space
in front of the “•” or “(1.)” to scale and compensate the majority of line
width issues. (you can easily chop off or add loads of space to a 1em-space
without making it ugly)

i hope you dig my idea,
Philipp

PS: if somebody doesn’t know how \startitemize[text] looks like; about like
this: „Formen sind • Überspringen von Exons, • Benutzung alternativer 3’-
und 5’-Splice-Stellen, • und alle Kombinationen aus oben genanntem.“ (You’ll
need a proportional Font to see this and gmail and the mailing list need to
conserve the em quad…)
___
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] In-text itemizations break spacing

2011-01-04 Thread Wolfgang Schuster

Am 04.01.2011 um 17:44 schrieb Philipp A.:

 Hi ConTeXtans,
 
 \startitemize[text] is a very cool command, but i run frequently into 
 “Overfull \hbox” errors.
 
 It would be nice if some context magicians would change the ~1em-wide space 
 in front of the “•” or “(1.)” to scale and compensate the majority of line 
 width issues. (you can easily chop off or add loads of space to a 1em-space 
 without making it ugly)
 
 i hope you dig my idea,

Make a example next time!

\showframe
\setbreakpoints[compound]
\starttext
„Formen sind
\startitemize[text][textdistance=medium]
\item Überspringen von Exons,
\item Benutzung alternativer 3’- und 5’-Splice-Stellen,
\item und alle Kombinationen
\stopitemize
aus oben genanntem.“
\stoptext

Wolfgang


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

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


Re: [NTG-context] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
2011/1/4 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Make a example next time!

 [Example]

 Wolfgang


so [textdistance=medium] is the solution, thanks!

nevertheless, i couldn’t find documentation about “textdistance”, and i
don’t think it to be very intuitive, that this changes the space to be more
flexible.
would you mind telling me why this is the case, and why this isn’t standard
behavior?
___
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] In-text itemizations break spacing

2011-01-04 Thread Wolfgang Schuster

Am 04.01.2011 um 18:51 schrieb Philipp A.:

 2011/1/4 Wolfgang Schuster schuster.wolfg...@googlemail.com
 Make a example next time!
 
 [Example]
 
 Wolfgang
 
 so [textdistance=medium] is the solution, thanks!
 
 nevertheless, i couldn’t find documentation about “textdistance”,

The option was added last march and it’s now up to you to document it.

The values for the key are

none   : no distance between items
small  : half the value of a normal space, can be stretched by half of a em
medium : normal space distance, can be stretched by 1em
big: 1em, can be stretched or shrinked by a space width
skip : e.g. 3pt plus 2pt minus 1pt

 and i don’t think it to be very intuitive, that this changes the space to be 
 more flexible.

sorry but i forgot why we used these values, maybe a smaller stretch value for 
small and medium make sense

 would you mind telling me why this is the case, and why this isn’t standard 
 behavior?

backward compatibility, i would also prefer “medium” as default value

Wolfgang

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

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


Re: [NTG-context] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
2011/1/4 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Am 04.01.2011 um 18:51 schrieb Philipp A.:

 2011/1/4 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Make a example next time!

 [Example]

 Wolfgang


 so [textdistance=medium] is the solution, thanks!

 nevertheless, i couldn’t find documentation about “textdistance”,

 The option was added last march and it’s now up to you to document it.

 The values for the key are

 none   : no distance between items
 small  : half the value of a normal space, can be stretched by half of a em
 medium : normal space distance, can be stretched by 1em
 big: 1em, can be stretched or shrinked by a space width
 skip : e.g. 3pt plus 2pt minus 1pt


been there http://wiki.contextgarden.net/Reference/en/setupitemgroup, done
that http://wiki.contextgarden.net/Reference/en/keyword:textdistance.

 and i don’t think it to be very intuitive, that this changes the space to
 be more flexible.

 sorry but i forgot why we used these values, maybe a smaller stretch value
 for small and medium make sense


i don’t think so (or at least not much less), and i meant sth. different:
“textdistance=medium” does not mean “greater flexibility”, it does mean “no
change in flexibility, just in distance”. using medium as standard value
would be ok, though, because you get the flexible (=mostly better) behavior
as standard, and the rigid as option.

 would you mind telling me why this is the case, and why this isn’t standard
 behavior?

 backward compatibility, i would also prefer “medium” as default value


can’t we just screw backward compatibility at all costs here? i mean:
“medium” won’t make it worse in most cases, just better! (the maximum space
is 1em+1sp, so we probably will never get different hyphenation, but almost
always less overfull \hboxes)

also, \setbreakpoints[compound] should be standard in my opinion.

Wolfgang


thanks for the answer,

phil
___
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] Omega not recognized in asciimath module

2011-01-04 Thread Anand Raj
Hi,

I have a problem in displaying the omega symbols.

*xhtml *contains

br/
Suppose that am S = 20 Omega , T = 41 Omega  and  U =O84 omega /am.
br/

*tex *contains

\startxmlsetups xml:am
\expanded{\asciimath{\xmltext{#1}{.}}}
\stopxmlsetups

But the Omega symbol is not rendered in the pdf.

Can anyone help me?

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