[NTG-context] 2011

2010-12-31 Thread Hans Hagen

Hi,

I uploaded the last beta for 2010 (only two small fixes). Furthermore:

http://www.pragma-ade.com/show-gra.pdf#page=31

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] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-31 Thread Verhaag, G.C.H.M.

Wolfgang Schuster wrote:


Am 30.12.2010 um 11:07 schrieb Verhaag, G.C.H.M.:

 


By the way, if I use MetaPost within ConTeXt using:

\loadmarkfile{m-graph}
   



The module is loaded with \usemodule[graph].

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
___

 


Hi,

So I understand that both statements:

\loadmarkfile{m-graph}

\usemodule[graph]

are actually the same thing!

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

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


Re: [NTG-context] Fwd: setuptex.csh usage

2010-12-31 Thread Alan BRASLAU
Hello,

setuptex (sh, bash, ...) has most definitions commented out
and to work with the minimals seems to need only to set the PATH.

I currently use the minimals for ConTeXt,
and TeXlive for LaTeX (for article submission, where I cannot use ConTeXt).
Having the minimals in my PATH before TeXlive works fine this way
(TeXlive lualatex is found correctly),
but it does cause problems with bibtex, for example, 
where the minimals binary is found first with this PATH.

setuptex.csh is less maintained, it appears.
I no longer use (t)csh and I see that Mojca and Arthur propose
to remove this script.  I have no objection,
but it does appears from this thread that it is indeed still used.

Alan

P.S.  by the way [concerning the (ba)sh version],
I take care of the verbose echo locally, as:
if [ -r /usr/local/context/beta/tex/setuptex ]; then
if [ x$PS1 == x ] ; then
source /usr/local/context/beta/tex/setuptex  
/dev/null
else
source /usr/local/context/beta/tex/setuptex
fi
fi
(otherwise this will cause trouble for rsync, for example)
so the portion:
# for Alan Braslau's server :)
if [ x$PS1 != x ] ; then
echo Setting \$TEXROOT\ as ConTeXt root.
fi
can be simplified, if Mojca wishes. :)



On Thursday 30 December 2010 20:29:56 Patrick Gundlach wrote:
 Hi Jon,
 
 you should post your question to the mailing list.
 
 Patrick
 
  Von: Jon Crump jjcr...@uw.edu
  Datum: 30. Dezember 2010 19:40:58 MEZ
  An: garden...@contextgarden.net
  Betreff: setuptex.csh usage
  
  Hans, et alia,
  
  [MacOSX, 10.5.8, intel Core 2 Duo, ConTeXt  ver: 2010.12.22 20:18 MKIV
  fmt: 2010.12.23  int: english/english]
  
  I just spent a pointless half hour wondering why my tex files failed
  in context when they worked just a few days ago, until I noticed that
  context was calling the old texlive installation. I forgot that I had
  used setuptex.csh to establish env vars for the running terminal
  session and then later terminated it. I intend for the foreseeable
  future to continue to use this convenience; I thank you for providing
  it, and hope you do not discontinue it.
  
  I want to continue to use texlive both at the command line and with
  some gui front-ends, and want to be able to keep the context minimals
  separate. In my inexperience I perhaps am not seeing a more effective
  way to do this, but your shell script works, and I hesitate to mess
  about with what works.
  
  Many thanks for all your prodigious and impressive work,
  
  Jon
 
___
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 graph module (metapost) to work with ConTeXt minimals?

2010-12-31 Thread Alan BRASLAU
The correct method is to use:
\usemodule [graph]
and then you can type, for example:
\startMPcode
draw begingraph(8cm,6cm) ;
gdraw (0,0)--(1,1) ;
endgraph ;
\stopMPcode
to include a graph with your text.

As pointed out, under mkiv, metapost is processed under one
continuous run, so definitions are retained. This is to be kept
in mind, as some metapost code can then yield errors, in particular,
inconsistent equations and the like.

Alan



On Thursday 30 December 2010 15:18:08 Verhaag, G.C.H.M. wrote:
 Martin 'golodhrim' Scholz wrote:
 In article 4d1c59ef.3080...@ziggo.nl, Verhaag, G.C.H.M. wrote:
 Hi,
 
 This might not be the right place to ask this question, but want to give
 it a try anyway!
 
 I've installed the ConTeXt minimals (Mark IV!) recently, and running the
 
 command:
   context --version
 
 yields the following output:
   ...
   MTXrun | current version: 2010.07.30 11:35
 
 Now I want to generate a few plots using the graph-module (by John D.
 Hobby) of MetaPost, which I used in the past to make high-quality plots.
 
 But when I add the following statement:
   input graph ;
 
 to the preamble of my MetaPost file and run the command:
   mpost plot.mp
 
 The run aborts with the following messages:
 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 texnum.log.
 TeXExec | processing graphic 'texnum.mpx'
 TeXExec | runtime: 1.547143
 
 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 plot.log.
 
 So where to go from here? Do I need to install additional TeX related
 stuff to get it working? Anybody any suggestions, please? Thanks in
 advance!
 
 Regards,
 Gerard Verhaag
 
 P.S.
 
 By the way, if I use MetaPost within ConTeXt using:
 
 \loadmarkfile{m-graph}
 
 \starttext
 
  \startMPcode
  
 .
 
 /[MetaPost code]
 
.
 
 / \stopMPcode
 \stoptext
 
 than everything works just fine!
 
 _
 __ 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
 _
 __
 
 Hi Gerard,
 
 that's because of a change in ConTeXts metapost, you can use
 
 \startMPpage
 Your MP Code here
 \stopMPpage
 
 MetaPost from ConTeXt is not able without big changes to run standalone,
 so you might need to load the MetaPost version from TeXlive, the way how
 to do so depends on your OS...
 
 Greetings
 
 Hi Martin,
 
 Okay, thanks for your answer!
 
 Embedding the code in my ConTeXt file works well, but I was used to
 obtain my MetaPost figures seperately using the mpost-command!
 
 Regards,
 Gerard Verhaag
___
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] Metric (TFM) file not found.

2010-12-31 Thread Sam Qasbah
Hello.

I downloaded showfont.pdf and I tried the first example:

 \starttext

\definetypeface [zapf] [cg] [calligraphy] [chancery]

\switchtotypeface [zapf] [12pt,cg]

\dorecurse{10}{\input tufte}

\stoptext

but I received the error message metric file not found.

This is the log file:
==
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (format=cont-en
2010.12.28)  31 DEC 2010 18:37
entering extended mode
 restricted \write18 enabled.
 %-line parsing enabled.
 (/usr/local/texlive/2010/texmf/web2c/natural.tcx)
**04-fonts.tex \emergencyend
(./04-fonts.tex

ConTeXt  ver: 2010.07.30 11:35 MKII  fmt: 2010.12.28  int: english/english

system  : cont-new loaded
(/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-new.mkii))
system  : cont-fil loaded
(/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/texlive/2010/../texmf-local/tex/context/user/cont-sys.rme
(/usr/local/texlive/2010/../texmf-local/tex/context/base/type-def.mkii)
(/usr/local/texlive/2010/../texmf-local/tex/context/base/type-siz.mkii)
(/usr/local/texlive/2010/../texmf-local/tex/context/base/type-one.mkii))
system  : 04-fonts.top loaded
(./04-fonts.top)
bodyfont: 12pt rm is loaded
language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2
us-
ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3
da-ec:ec-6-2:2
 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2
fr-ec:ec-1
0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2
it-
ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2
pt-ec:ec-17
-2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2
pl-qx:qx-21-
2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2
sk-ec:ec-25
-2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2
tk-ec:ec-29-1
:2 lt-l7x:l7x-30-2:2 agr-agr:agr-32-2:2 fi-ec:ec-33-2:2
hu-ec:ec-34-
2:2 ru-t2a:t2a-36-2:2 uk-t2a:t2a-37-3:3 loaded
specials: dvips loaded
\openout3 = `04-fonts.tui'.

\openout0 = `04-fonts-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

systems : system commands are enabled
language: language en is active
specials: loading definition file tpd
(/usr/local/texlive/2010/../texmf-local/tex/context/base/spec-tpd.mkii
specials: loading definition file fdf
(/usr/local/texlive/2010/../texmf-local/tex/context/base/spec-fdf.mkii))
publications: file 04-fonts.bbl not found, waiting for bibtex
systems : begin file 04-fonts at line 1
! Font \*zapf12ptcgtfcg*:=TeXGyreChorus-MediumItalic at 12.0pt not loadable:
Me
tric (TFM) file not found.
to be read again
   \relax
\definefontglobal ...dcsname \lastfontname \relax
  \expandafter \let
\expanda...

\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let
\localrelativefontsiz...

\fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
  \fi \iftryingfont
\fontstr...

\synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont
\...
...
l.3 \switchtotypeface [zapf] [12pt,cg]

? X

Here is how much of TeX's memory you used:
 982 strings out of 456094
 15626 string characters out of 2517944
 4851573 words of memory out of 7259343
 41916 multiletter control sequences out of 15000+20
 82418 words of font info for 37 fonts, out of 300 for 9000
 396 hyphenation exceptions out of 8191
 38i,1n,61p,227b,542s stack positions out of
5000i,500n,1p,20b,5s
No pages of output.
PDF statistics:
 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 50)
 1 words of extra memory for PDF output out of 1 (max. 1000)
==

Is there anyone who can help me? Many thanks.

Sam Qasbah
___
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] export and pagebreak

2010-12-31 Thread Achim Jander

Hi all,
first I wish a very happy new year to everybody! I think, this will be 
my last post for this year, but as i have tasted blood, the next year I 
will post a lot of further questions I think :-)
Now I have Christmas holidays and can play the whole day with ConTeXt. I 
tested a little the export function. There is one thing I have on my 
wishlist:
is it possible to get a pagebreak/ into the exported XML? The 
background is that I have often the requirement to include 
pagebreak-info in online-productions (for citation reasons) and that 
could be a very good starting point. In fact, in the moment at the 
position where a pagebreak occurs, the space (if it occurs at a space) 
is eaten up. Minimal example:

\setupbackend [export=yes]

\starttext

\startchapter [title=Tufte Example]

\startparagraph
\dorecurse{10}{\input tufte}
\stopparagraph

\stopchapter

\stoptext

At the break of pg 2 to pg 3 you will find lump,skip (without the space) 
in the exported file. Having the pagebreaks would be a great thing for me.


Greetings
Achim
___
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] mkii bug in lucida, again.

2010-12-31 Thread Yue Wang
updated to the latest context.

still not fixed

On Sun, Dec 19, 2010 at 12:26 PM, Yue Wang yuleo...@gmail.com wrote:
 This bug only exist in mkii.

 it appeared some time ago, but was fixed later, and reappeared again
 sometime later this year.

___
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] proportional oldstyle figure not working in MKIV

2010-12-31 Thread Yue Wang
Hi, Hans:

I think there are problems with the current MKIV font loading code.

sample code:


\definefontfeature[minion][language=dflt, script=latn, onum=yes,
kern=yes, pnum=yes]
\definefontsynonym[Minion][MinionPro-Regular][features=minion]
\definefont[Minion][Minion at 34pt]
\starttext
\Minion
1234567890
\stoptext


This works in MKII (XeTeX). Please fix that. Thanks



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