[NTG-context] psfrag

2003-12-14 Thread David Munger
Hello,

I know this topic was treated in the past years, but I couldn't find the  
answer in mailing list archives.

So, is there any ConTeXt equivalent to LaTeX's \psfrag command? It would be  
very useful to process PostScript output from vector graphics drawing  
programs.

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MetaPost with etex/btex

2003-12-14 Thread Willi Egger
Hi David,

The use of the different possibilities of including metapost graphics in 
ConTeXt are described in the METAFUN-manual on pages  9,  81-82, 115

For your refernce I attach a small demo file using your code ...

Kind regards Willi



David Munger wrote:

Hello,

The following code results in no label output:

\starttext
\startMPcode
 label.top(btex Some label etex, (1cm,1cm)) ;
\stopMPcode
\stoptext
I'm using ConTeXt 2003.12.12.

By the way, why don't \startMPgraphic and \stopMPgraphic do anything?


\setupoutput[pdftex]
\starttext

\section{Including the MPcode in the placefigure mechanism}

\placefigure
[here]
[]
{the label}
{\startMPcode
 label.top(btex Some label 1 etex, (1cm,1cm)) ;
\stopMPcode}

\section{startMPgraphic -- placeMPgraphic}

\startMPgraphic
label.top(btex Some label 2 etex, (1cm,1cm)) ;
\stopMPgraphic

\loadcurrentMPgraphic{width=15cm}
\placeMPgraphic

\section{startuseMPgraphic -- useMPgraphic}

\startuseMPgraphic{Label2}
label.top(btex Some label 3 etex, (1cm,1cm)) ;
\stopuseMPgraphic

\useMPgraphic{Label2}

\section{startreusableMPgrpahic -- reuseMPgraphic}

\startreusableMPgraphic{Label3}
label.top(btex Some label 4 etex, (1cm,1cm)) ;
\stopreusableMPgraphic

\reuseMPgraphic{Label3}

\stoptext

Re : [NTG-context] MetaPost with etex/btex

2003-12-14 Thread David Munger
Hi Willi,

Thanks for the examples, they'll sure be useful. But I realize I have not been  
precise enough in my post. The point is that

\startMPcode
 fill fullcircle scaled 1cm withcolor red ;
\stopMPcode
works, while

\startMPcode
 label.top(Some label, (1cm,1cm)) ;
\stopMPcode
produces some garbage between Some and label, and

\startMPcode
 label.top(btex Some label etex, (1cm,1cm)) ;
\stopMPcode
doesn't work at all.

Sorry for being that vague.

David



On 2003-12-14 07:01:34, Willi Egger wrote :
Hi David,

The use of the different possibilities of including metapost graphics in  
ConTeXt are described in the METAFUN-manual on pages  9,  81-82, 115

For your refernce I attach a small demo file using your code ...

Kind regards Willi



David Munger wrote:

Hello,

The following code results in no label output:

\starttext
\startMPcode
 label.top(btex Some label etex, (1cm,1cm)) ;
\stopMPcode
\stoptext
I'm using ConTeXt 2003.12.12.

By the way, why don't \startMPgraphic and \stopMPgraphic do anything?

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: psfrag

2003-12-14 Thread Patrick Gundlach
Hi David,

 So, is there any ConTeXt equivalent to LaTeX's \psfrag command? 

No.

 It would be very useful to process PostScript output from vector
 graphics drawing programs.

How does psfrag from LaTeX work internally? Perhaps we are able to
make something similar.

Patrick
-- 
mon trainsistor j'adore
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread Patrick Gundlach
Hi David,

 Sorry for being that vague.

You are still very vague. Your posted example works fine here. Please
report what ConTeXt/texexec version you have. You might think of
posting your logfile. 

Do you have \protectbufferstrue in cont-sys.tex? 

Patrick
-- 
mon trainsistor j'adore
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: texexec page selection changes output?

2003-12-14 Thread Patrick Gundlach
Hello out there

 I recently used texexec to select a given page from a file (attached) of
 three pages:
   texexec --pdfselect --selection=2 --result=cover2-tx.pdf covers.pdf

When I try to do the above, ConTeXt looks for a font aicmti10. What
is going on here? Something misconfigured?

This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
 \write18 enabled.
 %-line parsing enabled.
 (/opt/texlive/8/texmf/web2c/cp8bit.tcx)
entering extended mode
(./texexec.tex{/opt/local/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2003.11.27  fmt: 2003.11.30  int: english  mes: english


[...]

systems: begin file texexec at line 14
 ./covers.pdf{/opt/texlive/8/texmf/fonts/map/pdftex/updmap/pdftex.map}{/opt/lo
cal/texmf/dvips/config/dolly.map}{/opt/local/texmf/dvips/config/typedesign.map}
kpathsea: Running mktextfm aicmti10
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input 
aicmti10
This is METAFONT, Version 2.71828 (Web2C 7.5.2)
(/opt/texlive/8/texmf/web2c/cp8bit.tcx)

kpathsea: Running mktexmf aicmti10


- error 


Patrick
-- 
mon trainsistor j'adore
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re : [NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread David Munger
Patrick Gundlach wrote :
Do you have \protectbufferstrue in cont-sys.tex?
That was the exact point. It fixed it. Thanks a lot!

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re : [NTG-context] Re: psfrag

2003-12-14 Thread David Munger
Patrick Gundlach wrote :
Hi David,

 So, is there any ConTeXt equivalent to LaTeX's \psfrag command?

No.

 It would be very useful to process PostScript output from vector
 graphics drawing programs.
How does psfrag from LaTeX work internally? Perhaps we are able to
make something similar.


I don't know how about its internals, but here's a usage example. For  
instance, using some vector graphics program, I write a text label alpha on  
some figure, and I print this figure in an EPS file. Then, using PSfrag, right  
before \including the EPS file, I tell PSfrag to replace alpha with $\alpha 
$:
\psfrag{alpha}{$\alpha$}
\includegraphics{some_eps_file}

I believe PSfrag works in conjunction with dvips. There's this PS file which  
may give you some clue:
texmf/dvips/psfrag/psfrag.pro
I can neither read TeX code nor PS code, but it is likely that it builds some  
sort of lookup table for the labels. If I can help anyway, please tell me.

There are those two other files:
texmf/tex/plain/graphics/psfrag.tex
texmf/tex/latex/misc/psfrag.sty
David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re : [NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex

2003-12-14 Thread David Munger
what ConTeXt version do you have? It sounds like an older one.
texexec says:
ConTeXt  ver: 2003.12.12  fmt: 2003.12.14  int: english  mes: english
Freshly downloaded, but poorly installed by a novice... Actually I replaced  
the ConTeXt part from the debian unstable package source. So teTeX and ConTeXt  
are not synchronized.

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: ConTeXt Switcher?

2003-12-14 Thread Bruce D'Arcus
someone (not sure who) said:
 I know XML source should work, but at least for me, creating XML source 
 is unproductive.  I work with a text editor and find writing this:
 
 ``Hello world,'' says HAL.
 
 much more productive than writing this:
 
 p#8220;Hello world#8221;/p, says HAL.
 
 Maybe I'm missing something, but for writing, XML's markup requirements 
 -- which are invisible to field-based data entry screen -- are way too 
 intense for hand-editing. TeX source is much less verbose. It is easier 
 to create, proof (both visually and audibly),  spell check 
 troubleshoot, etc. I have not seen an editor capable of doing XML 
 source in a productive manner, like (La)TeX with text editor.

You're missing something.  For one, your above example would be:

pqHello world/q, says HAL./p

Second, try something like nXML mode for emacs, or the XML plug-in for
jEdit.  Real-time markup validation, tag-completion, spell-checking,
etc.

Finally, you're missing the biggest point of all: XML is about reuse.
You cleanly separate markup from presentation so that -- among other
things -- you can trivially transform that to different output.

Bruce 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead question (long section lines not wrapping)

2003-12-14 Thread Thomas A . Schmitz
Re your question about the section numbering with a dot: This is 
nothing I found out, but something Hans (who else?) posted to the list 
a while ago, and I believe it does what you want to achieve:

\setuplabeltext[section={{},{.}}]

Best

Thomas

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Can I compare with someone?

2003-12-14 Thread Staszek Wawrykiewicz
On Wed, 10 Dec 2003, David Arnold wrote:

 I've recently installed tetex 2.0.2. I am having difficulty with Metapost
 [...]
 Now, when I compile, texexec seems to be invoked. Is this what happens on
 your systems? Is this correct behavior?
 
 [EMAIL PROTECTED] darnold]$ mpost junk
 This is MetaPost, Version 0.641 (Web2C 7.4.5)
 (junk.mp
  TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

It seems that somebody changed texmf.cnf, e.g. declaring here
something like:
TEX = context

or, worse, changed makempx script.
Anyway, tetex 2.0.2, as it is distributed is OK.

I've observed that some Linux distributions provide changed tetex
config files, not always in a happy way... 
I don't know how such situation could be cured, as packages are often
not signed. The notable example is still not updated tetex in 
the _current_ RedHat9.0. It is still tetex 1.0.7, but broken in many
parts.

-- 
Staszek Wawrykiewicz
[EMAIL PROTECTED]


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Can I compare with someone?

2003-12-14 Thread David Arnold
Staszek,

  I've recently installed tetex 2.0.2. I am having difficulty with Metapost
  [...]
  Now, when I compile, texexec seems to be invoked. Is this what happens on
  your systems? Is this correct behavior?
  
  [EMAIL PROTECTED] darnold]$ mpost junk
  This is MetaPost, Version 0.641 (Web2C 7.4.5)
  (junk.mp
   TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003
 
 It seems that somebody changed texmf.cnf, e.g. declaring here
 something like:
 TEX = context

Aha! I found this in my texmf.cnf.

% What MetaPost runs to make MPX files.  This is passed an option -troff
% if MP is in troff mode.  Set to `0' to disable this feature.
MPXCOMMAND = texexec --mptex



 or, worse, changed makempx script.
 Anyway, tetex 2.0.2, as it is distributed is OK.
 
 I've observed that some Linux distributions provide changed tetex
 config files, not always in a happy way... 
 I don't know how such situation could be cured, as packages are often
 not signed. The notable example is still not updated tetex in 
 the _current_ RedHat9.0. It is still tetex 1.0.7, but broken in many
 parts.
 
 

-- 
David Arnold
College of the Redwoods.
Mathematics Department
7351 Tompkins Hill Road
Eureka, CA 95501
Office phone: 707-476-4222
Fax: 707-476-4424
Home page: http://online.redwoods.edu/instruct/darnold/

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context