Re: [NTG-context] Fixme replacement

2005-04-05 Thread Robert Ullrey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Apr 4, 2005, at 5:30 AM, Hans Hagen wrote:

 I don't believe you can do this at the moment, but it sounds like a 
 nice
 feature to have. I'm stressed for time right now, but otherwise I'd be
 tempted to create such a module.

 if someone writes down what is needed i can write it (can run on top 
 of exiting mechanisms for which i may need to add states 
 [start|stop]); it sounds rather trivial to do


Thanks Taco and Hans.

So Hans, what do you need? I can give you an explanation of what the 
program does, but I am not LateX marco savvy enough to tell you how it 
does it.

Basically, the macro is \fixme and it allows four types of notes; 
fixme, fxnote, fxwarning, and fxerror.

Notes can appear in several ways; inline, margin, footnote, or index 
and can be in one or a combination of all four appearances. With the 
index environment, there is an extra \listoffixmes command needed.
The environment that \fixme uses is by default that of quotation.

I would be happy to provide more specific information including 
environments and customizations either in the list or off list.

Thank you.
Robert


-BEGIN PGP SIGNATURE-
Version: PGP 8.1

iQA/AwUBQlK31fFTYcwurb3FEQI0tQCfUOn05x9OsCjYbLw3YCpUSRwPd6wAn3ii
if0BWaFTGCsFEwtKQhgE0om6
=bTnG
-END PGP SIGNATURE-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fixme replacement

2005-04-04 Thread Taco Hoekwater
Robert Ullrey wrote:
Hello,
I am wondering if anyone knows of a similar macro in CoNTeXt to the 
LaTeX \Fixme package 
http://www.tug.org/tex-archive/help/Catalogue/entries/fixme.html. What 
fixme allowed me to do that I have yet to figure out in context is make 
inline notes \fxnote or marks \fxwarning \fxerror that would then 
in draft mode print either margin or footnotes where the change was 
needed. It was very handy when, as an editor, wanting to make quick 
comments in proofing. Fixme also prints an index of all the fixmes.

Any ideas?
I don't believe you can do this at the moment, but it sounds like a nice
feature to have. I'm stressed for time right now, but otherwise I'd be
tempted to create such a module.
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fixme replacement

2005-04-04 Thread Hans Hagen
Taco Hoekwater wrote:
Robert Ullrey wrote:
Hello,
I am wondering if anyone knows of a similar macro in CoNTeXt to the 
LaTeX \Fixme package 
http://www.tug.org/tex-archive/help/Catalogue/entries/fixme.html. 
What fixme allowed me to do that I have yet to figure out in context 
is make inline notes \fxnote or marks \fxwarning \fxerror that 
would then in draft mode print either margin or footnotes where the 
change was needed. It was very handy when, as an editor, wanting to 
make quick comments in proofing. Fixme also prints an index of all the 
fixmes.

Any ideas?

I don't believe you can do this at the moment, but it sounds like a nice
feature to have. I'm stressed for time right now, but otherwise I'd be
tempted to create such a module.
if someone writes down what is needed i can write it (can run on top of exiting 
mechanisms for which i may need to add states [start|stop]); it sounds rather 
trivial to do

Hans
-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fixme replacement

2005-04-03 Thread Robert Ullrey
Hello, 

I am wondering if anyone knows of a similar macro in CoNTeXt to the LaTeX \Fixme package http://www.tug.org/tex-archive/help/Catalogue/entries/fixme.html>. What fixme allowed me to do that I have yet to figure out in context is make inline notes \fxnote or marks \fxwarning \fxerror that would then in draft mode print either margin or footnotes where the change was needed. It was very handy when, as an editor, wanting to make quick comments in proofing. Fixme also prints an index of all the fixmes. 

Any ideas? 

Thanks
Robert 


Robert Ullrey

Office of the President,
Sacramento City College Academic Senate,

Suite RN236
3835 Freeport Boulevard
Sacramento, California 95822
(916) 558-2150

_

http://web.scc.losrios.edu/asenate/
Senate email: [EMAIL PROTECTED]
Personal email: [EMAIL PROTECTED]

PGP.sig
Description: PGP signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] run external programs from tex

2005-03-30 Thread Eckhart Guthöhrlein
Hi,

I wonder what would be the best way to use programs inline like it is
possible for metapost. Are there already macros to set this up easily?
I would like to use gnuplot, so something like
[start|stop]GNUPLOTgraphic would be fine. Has anybody tried this or
something similar?

-- 
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] run external programs from tex

2005-03-30 Thread Hans Hagen
Eckhart Guthöhrlein wrote:
Hi,
I wonder what would be the best way to use programs inline like it is
possible for metapost. Are there already macros to set this up easily?
I would like to use gnuplot, so something like
[start|stop]GNUPLOTgraphic would be fine. Has anybody tried this or
something similar?
you can have a look at m-pstric
Hans
-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] run external programs from tex

2005-03-30 Thread Peter Münster
On Wed, 30 Mar 2005, Eckhart Guthöhrlein wrote:

 I wonder what would be the best way to use programs inline like it is
 possible for metapost. Are there already macros to set this up easily?

Just a small example (can be put to the wiki):
http://pmrb.free.fr/work/OS/ConTeXt/createFig/

If you use teTeX, you should verify, that shell_escape = t in texmf.cnf.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread Gerben Wierda
I am trying to learn metapost/fun, inline in ConTeXt source. Some basic 
things are clear, but now the issue is metapost itself.

For instance, I would like to plot a Fourier approximation of a block 
function.

For instance, I would like to plot a gaussian spread.
I am looking for examples on how to do this. I need to do a bit of 
programming here and these are my initial projects.

Thanks in advance,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread David Arnold
*ux,0);
%Draw and label x-axis
 drawarrow L--R;
 label.rt(btex $\scriptstyle x$ etex,(b*ux,0));
 label.bot(btex $\scriptstyle 0$ etex,L);
 label.bot(btex $\scriptstyle 150$ etex,R);
%Initialize bottom and top endpoints on y-axis
 B=(0,c*uy);T=(0,d*uy);
%Draw and label vertical axis
 drawarrow B--T;
 label.rt(btex $\scriptstyle y$ etex,(0,d*uy));
 label.lft(btex $\scriptstyle 0$ etex, B);
 label.lft(btex $\scriptstyle 100$ etex, T);
endfig;
end;
On Mar 26, 2005, at 3:19 PM, Gerben Wierda wrote:
I am trying to learn metapost/fun, inline in ConTeXt source. Some 
basic things are clear, but now the issue is metapost itself.

For instance, I would like to plot a Fourier approximation of a block 
function.

For instance, I would like to plot a gaussian spread.
I am looking for examples on how to do this. I need to do a bit of 
programming here and these are my initial projects.

Thanks in advance,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread David Arnold
Gerben, Again, thanks for all you do. Here's a Fourier approximation of 
a square wave. Again, I compiled this in Texshop so I know it works.

%verbatimtex
% \input mtplain
% \MTMI{8pt}{6pt}{5pt}
% \MTSY{8pt}{6pt}{5pt}
% \MTEX{8pt}
% \MathRoman{tir}{8pt}{6pt}{5pt}
% \MathBold{tib}{8pt}{6pt}{5pt}
%etex
%Input Context macros
input mp-tool
%define ytick
 vardef ytick(expr pos)=
  path p;
  p:=(-2,0)--(2,0);
  draw p shifted pos;
 enddef;
%define xtick
 vardef xtick(expr pos)=
  path p;
  p:=(0,-2)--(0,2);
  draw p shifted pos;
 enddef;
%define pi
 pi:=3.14159;
%define cosine in radians
 vardef cos(expr x)=
  cosd(x*180/pi)
 enddef;
%define sine in radians
 vardef sin(expr x)=
  sind(x*180/pi)
 enddef;
%hyperbolic sine
 vardef sinh(expr x)=
  (exp(x)-exp(-x))/2
 enddef;
beginfig(1);
%enter number of terms
 numeric N;
 N=6;
%define L
 numeric L;
 L:=pi;
%define a_0
 ao:=1;
%define a_n
 vardef a(expr n)=
  2*sin(n*pi/2)/(n*pi)
 enddef;
%define b_n
 vardef b(expr n)=
  0
 enddef;
%initialize scale
 numeric ux, uy;
 pi*ux=2in; 1.5*uy=2in;
%draw axes
 drawarrow (0,0)--(3.5ux,0);
 drawarrow (0,0)--(0,1.5uy);
%label axes
 label.rt(btex $x$ etex, (3.5ux,0));
%tick marks
 xtick((pi*ux,0));
 label.bot(btex $\pi$ etex, (pi*ux,0));
 ytick((0,1*uy));
 label.lft(btex $1$ etex, (0,1*uy));
%draw the function in black
 draw (0,1uy)--((pi/2)*ux,1uy);
%draw Fourier approximation in cyan
 path p;
 numeric x, y;
 x:=0;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=(x,y);
 for x=0 step .1 until pi:
  y:=ao/2;
  for k=1 step 1 until N:
   y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
  endfor;
  p:=p--(x,y);
 endfor;
 x:=pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=p--(x,y);
 p:=p xyscaled(ux,uy);
 draw p withcolor cyan;
endfig;
beginfig(0);
%enter number of terms
 numeric N;
 N=6;
%define L
 numeric L;
 L:=pi;
%define a_0
 ao:=1;
%define a_n
 vardef a(expr n)=
  2*sin(n*pi/2)/(n*pi)
 enddef;
%define b_n
 vardef b(expr n)=
  0
 enddef;
%initialize scale
 numeric ux, uy;
 6*pi*ux=2in; 1.5*uy=2in;
%draw axes
 drawdblarrow (-3.5*pi*ux,0)--(3.5*pi*ux,0);
 drawarrow (0,0)--(0,1.5uy);
%label axes
 label.rt(btex $x$ etex, (3.5*pi*ux,0));
%tick marks
 xtick((pi*ux,0));
 xtick((2*pi*ux,0));
 xtick((3*pi*ux,0));
 label.bot(btex $3\pi$ etex, (3*pi*ux,0));
 xtick((-pi*ux,0));
 xtick((-2*pi*ux,0));
 xtick((-3*pi*ux,0));
 label.bot(btex $-3\pi$ etex, (-3*pi*ux,0));
 ytick((0,1*uy));
 label.lft(btex $1$ etex, (0,1*uy));
%draw the function in black
 path q;
 q:=(-pi/2,1)--(pi/2,1);
 q:=q xyscaled(ux,uy);
 draw q;
 draw q shifted (2*pi*ux,0);
 draw q shifted (-2*pi*ux,0);
%draw Fourier approximation in cyan
 path p;
 numeric x, y;
 x:=-3*pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=(x,y);
 for x=-3*pi step .1 until 3*pi:
  y:=ao/2;
  for k=1 step 1 until N:
   y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
  endfor;
  p:=p--(x,y);
 endfor;
 x:=3*pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=p--(x,y);
 p:=p xyscaled(ux,uy);
 draw p withcolor cyan;
endfig;
end;
On Mar 26, 2005, at 3:19 PM, Gerben Wierda wrote:
I am trying to learn metapost/fun, inline in ConTeXt source. Some 
basic things are clear, but now the issue is metapost itself.

For instance, I would like to plot a Fourier approximation of a block 
function.

For instance, I would like to plot a gaussian spread.
I am looking for examples on how to do this. I need to do a bit of 
programming here and these are my initial projects.

Thanks in advance,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread Thomas A . Schmitz
Gerben,
I assume you already know about the wonderful metafun manual 
(http://www.pragma-ade.com/general/manuals/metafun-s.pdf). I also found 
this website extremely useful: 
http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

HTH
Thomas
On Mar 27, 2005, at 12:19 AM, Gerben Wierda wrote:
I am trying to learn metapost/fun, inline in ConTeXt source. Some 
basic things are clear, but now the issue is metapost itself.

For instance, I would like to plot a Fourier approximation of a block 
function.

For instance, I would like to plot a gaussian spread.
I am looking for examples on how to do this. I need to do a bit of 
programming here and these are my initial projects.

Thanks in advance,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ppchtex

2005-03-15 Thread Willi Egger
Hi Johannes,
I looked at your coding.
The use module line has two typo's It should be \usemodule[pictex,chemic]
The statements are not complete i.e. you forgot  the \stopcombination. 
Further when starting a combination one needs to give the number of rows 
and columns e.g. [2*3]. with only [6] all of the structures are placed 
inline, but only 4 of them fit in one row  so ...
In order to produce output you need to enclose the code between 
\starttext ... \stoptext.

Please see the attached file
Kind regards
Willi
Johannes Werner wrote:
Hans Hagen wrote:
Johannes Werner wrote:
hi everyone,
i want to use PPCHTEX. when i process my .tex-file with texexec i get 
the message:
   .
   specials : fdf loaded
   )
   specials : fdf,tpd loaded
   \openout6 = `chemie-mpgraph.mp'.
   Randomizer initialized to 1275417501. [MP to PDF] 
(./chemie-mpgraph.4000))
   *

and the program stops and waits for a command. when i type \end  it 
continues. this happens again and then i have my target file.
what wants the system tell me? why does it stop?. it's irksome, to 
type in a command for nothing. when i process with latex everything 
is ok.

how does your smallest test file that does thsi look like?
Hans

the testfile was:
   \enableregime[utf]
   \usemodule[pictex,chemie]
   \setupoutput[pdf]
   %\setupchemical[axis=on, frames=on]
   \par Substituent A
   \startchemical
   \chemical[ONE,SB4,SB6,Z0][O]
   \stopchemical
with a file, which is a little bit bigger i get the following (an no 
output is generated):

Randomizer initialized to 1431757445. [MP chemie-bigger-mpgraph.4000]
   [MP chemie-bigger-mpgraph.3999] [MP chemie-bigger-mpgraph.3998]
   [MP chemie-bigger-mpgraph.3997] [MP chemie-bigger-mpgraph.3996]
   [MP chemie-bigger-mpgraph.3995])
   *


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
% CHmeical structures
% Johannes Werner
% CONTEXT file
% filename:

\enableregime[utf]
\usemodule[pictex,chemic]%pstricks
\setupoutput[pdf]

%\setupchemical[axis=on, frames=on]

\starttext
\par A
\placefigure[force]{none}
{\startcombination[2*3]
{\startchemical \chemical[ONE,SB4,SB6,Z0][O] \stopchemical}{}
{\startchemical \chemical[ONE,SB4,SB6,Z0][S] \stopchemical}{}
{\startchemical \chemical[ONE,SB4,SB6,Z0][NH] \stopchemical}{}
{\startchemical \chemical[ONE,DB1,SB4,SB6,Z01][C,O] \stopchemical}{}
{\startchemical \chemical[ONE,DB1,SB4,SB6,Z01][C,NR] \stopchemical}{}
{\startchemical \chemical[ONE,DB1,SB4,SB6,Z01][C,CR_2] \stopchemical}{}
\stopcombination}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] small caps

2005-02-27 Thread h h extern
Adam Lindsay wrote:
This is good stuff. I've tried to advocate a naming convention that would
be appropriate to this. I would suggest calling this texnansi-osfsc.enc,
as baseencoding-variant.enc. This is so a modified encoding can
masquerade as the base encoding within ConTeXt.
i'll add the encoding to the distribution (i just made the formatted file with 
the info sent) [of course users will need to generate the tfm files themselves]

once we have made the switch from map files to inline map code, we can apply 
different encodings more easily at the typescript level (no more need for map files)

another thing coming is that pdftex will provide primitives to set those 
encodings independently of other characteristics (hartmut is working on this);

Hans
-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] nath bug

2004-12-23 Thread David Munger
Giuseppe Bilotta wrote :

 \appendtoks
 \livesupsub@
 \to\everymath
 
 in t-nath.tex after the definition of livesupsub@ and
 killsupsub@

Hmm... It seemed to work at first, but it just moved the problem. Now
it's (\sum) limits that are typeset like in inline style.

 Maybe Hans has some suggestion for a better solution: the
 problem is that the mathcode is ignored for characters with
 code 7 or 8 (sup- or subscript). So I'm currently changing the
 catcode of ^ and _ when entering mathmode.

I hope he has!


Regards,

David



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] figure base

2004-12-08 Thread Wolfgang Zillig
)
(./myfigures.tuo) (./myfigures.tuo) (./myfigures.tuo) (./myfigures.tuo)
(./myfigures.tuo) (./myfigures.tuo) (./myfigures.tuo) (./myfigures.tuo)
(./myfigures.tuo) (./myfigures.tuo) (./myfigures.tuo)
fonts  : using map file: original-youngryu-tx.map
fonts  : using map file: ec-urw-times.map
fonts  : using map file: ec-urw-helvetica.map
fonts  : using map file: ec-urw-courier.map
fonts  : using map file: texnansi-public-lm.map
fonts  : using map file: original-public-vnr.map
fonts  : using map file: original-public-csr.map
fonts  : using map file: original-public-plr.map
fonts  : using map file: original-public-lm.map
fonts  : using map file: original-ams-euler.map
fonts  : using map file: original-ams-cmr.map
fonts  : using map file: texnansi-base.map
fonts  : using map file: t5-base.map
fonts  : using map file: qx-base.map
fonts  : using map file: 8r-base.map
fonts  : using map file: ec-base.map
fonts  : using map file: ec-public-lm.map
fonts  : using map file: original-base.map
systems: begin file myfigures at line 333
(./myfigures.xml) (./myfigures.xml ./me.jpg
figures: dimensions of ./me.jpg loaded from figurefile itself
(./myfigures.tuo)
interaction: aspect ratio 1965.3425 x 2926.935 (b x h)
interaction: pdftex code inserted
[1.1] (././myfigures-myfigures.tmp)
figures: dimensions of ./myfigures-myfigures.tmp loaded from figurefile
   itself
interaction: aspect ratio 85.35826 x 113.81102 (b x h)
[2.1{original-empty.map}{original-youngryu-tx.map}
Warning: pdfetex (file ec-urw-times.map): cannot open font map file
Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file
Warning: pdfetex (file ec-urw-courier.map): cannot open font map file
{texnansi-public-lm.map}{original-public-vnr.map}{original-public-csr.map}{orig
inal-public-plr.map}{original-public-lm.map}{original-ams-euler.map}{original-a
ms-cmr.map}{texnansi-base.map}{t5-base.map}{qx-base.map}{8r-base.map}{ec-base.m
ap}{ec-public-lm.map}{original-base.map}]) (./myfigures.xml
subject: - Figure collection
references : unknown reference [][GridPg]
figures: figureobject me.jpg is reused
figures: figureobject me.jpg is reused
references : unknown reference [][GridPg]
(././myfigures-myfigures.tmp)
figures: dimensions of ./myfigures-myfigures.tmp loaded from figurefile
   itself
(././myfigures-myfigures.tmp)
figures: dimensions of ./myfigures-myfigures.tmp loaded from figurefile
   itself
)
interaction: aspect ratio 600.0 x 450.0 (b x h)
[3.1]
subject: - List of figures
(./myfigures.tuo) [4.2]
subject: - Index of figures
(./myfigures.tuo)
columns: balanced in 1 step(s)
[5.3]
systems: end file myfigures at line 381
   ) )
Here is how much of TeX's memory you used:
   2055 strings out of 64788
   31123 string characters out of 708904
   491054 words of memory out of 1102403
   34519 multiletter control sequences out of 6
   75795 words of font info for 51 fonts, out of 50 for 1000
   102 hyphenation exceptions out of 607
   69i,23n,114p,401b,1420s stack positions out of 
1500i,500n,5000p,20b,32768s
   70 PDF objects out of 30
   18 named destinations out of 30
   6 words of extra memory for PDF output out of 65536
{8r.enc}C:\texmf\fonts\type1\urw\urwstd\utmri8a.pfbC:\texmf\fonts\type1\
bluesky\cm\cmsy10.pfbC:\texmf\fonts\type1\urw\urwstd\utmr8a.pfbC:\texmf\fon
ts\type1\urw\urwstd\utmb8a.pfb
Output written on myfigures.pdf (5 pages, 109278 bytes).

inline: screenshot Kopie.gif___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] precompiling inline mp to pdf?

2004-11-02 Thread Christopher Creutzig
Salvete,
 for my latest project (almost done, so I don't need the answer for 
this one, but possibly in the future) I have compilation times which 
were dominated by Metapost until I switched to using --nomp most of the 
time and --automp --runs=2 whenever I changed something that results in 
changes to the Metapost stuff.  (I needed the --automp anyway, since to 
work around size limits in MetaPost I had to split the background into 
separate images, yet they had to influence one another via global 
variables -- increasing the memory limit to 80 MB made Metapost 
predictably freeze at unpredictable places in the run.)

 Now, my compile times are dominated by the mp to pdf conversion. 
Since pdf inclusion is fast (as expected), I'd like to use mptopdf once 
on each generated file and have ConTeXt include that.  Should I redefine 
\insertMPfile to first look for the pdf or is there a more clever way? 
(Note that I do want the automatic inclusion, since I'm passing the 
dimensions of external figures etc. to metapost and use the result in a 
background layer and/or as frame backgrounds.)

regards,
Christopher Creutzig
PS: I didn't have time to analyze this when I came across it, but it 
seems that texexec --automp file consistently performs one TeX run too 
little.  In any case, the last thing it does is a metapost run, which 
doesn't seem sensible to me.

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


Re: [NTG-context] How to set matrices with amsl

2004-10-28 Thread Giuseppe Bilotta
Thursday, October 28, 2004 David Arnold wrote:

 All,

 This loses the one:

 \usemodule[amsl]

 \starttext

 \startformula
 \left(
 \startarray
 1\\2\\3
 \stoparray
 \right)
 \stopformula

 \stoptext

With amsl, you need to specify the array column type for each
column (l=left aligned inline math, r=right aligned inline
math, c=centered inline math, d=displaymath, t=text). The 1
gets gobbled as if it were the array specification.

 And this chokes completely with the error message that follows:

 \usemodule[nath]

 \starttext

 \startformula
 \left(
 \startarray
 1\\2\\3
 \stoparray
 \right)
 \stopformula

 \stoptext


 Error message:

 ERROR: Undefined control sequence.

 --- TeX said ---
 argument \c!voorwit 
   =\intereqnsskip 

Well, this is because nath has not been updated to the new
english internals version, which I assume you are using. Put
\c!spacebefore there and try again.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] Metapost + metaObjet connector label on arcs

2004-10-24 Thread Maurice Diamantini
Le 22 oct. 04, à 14:24, Eckhart Guthöhrlein a écrit :
You can attach named paths to objects and then labels these. Here is my
first try, seems to work:
Thank very much Eckhart, I read the metaObj manual, but I
didn't realised showing that one can attached a labelObj
to arbitrary objects (just for Matrix and trees).
Now it works !
It is my first Metapost figure (I am switching
from pstricks).
As graph (in the sens nodes + arcs, not curve functions)
will be frequentjy used (at least by me).
I am thinking about some highlevel  class (using MetaObj)
- class Node for creating node
- class Arc for connecting nodes.
The goal is that the data (coordinate, various labels, ...)
will be as simple as possible.
Also it should be easy to pick the Node and Arc class,
and personnalide them gor its own graph.
For now, I'm trying to anderstand how the label options
works,
A new problem is that the label sep is to big from thes arcs, and
I'm not able to ajust it. The labshift option doesn't seem
to work with ncarc, althought it works for the nodes.
P.S.
is one of the Metapost lists still alive?
Here is the full exemple (with only 2 nodes)
I don use the inline context feature because it
doesnt work for me, and I have to work on several
workstation, so I still stay (for now) with the indenpendent
file
I'm sorry for the latex line on a context list, but
Metafun is not clean installed (texlive 2003), I wanting
for the next texlive... And I hope context will be install
by default with Metafun
.
Thank you very much.
-- Maurice Diamantini,
verbatimtex   % -*-latex-*-
%latex
\documentclass{article}
\usepackage[latin1]{inputenc}
\begin{document}
\sffamily
etex
input mp-tool ; % some initializations and auxiliary macros
input mp-spec ; % macros that support special features
input metaobj.mp ; % suffixe non indispensable ?
beginfig(1) ;
% For now node positions will be hardcoded
numeric u; u=1cm;
z0=(0u,2u);
z1=(3u,4u);
% % verbatimtex \small etex;
setCurveDefaultOption(arcangle, 25);
%
% building nodes of the graph. Nodes are object that arc will be 
able to
% refere to.
% Later, I will have to build my own Class Activity with some 
other
% parameters (labels above and under the circle, ...)
%
newCircle.n0(btex \large 0 etex) circmargin(0.1u);
ObjLabel.n0(btex b0 etex)  labshift((0, -.5u));
ObjLabel.n0(btex u0 etex)  labshift((0, .5u));
n0.c = z0;

newCircle.n1(btex  \large 1 etex) circmargin(0.1u);
ObjLabel.n1(btex b1 etex)  labshift((0, -.5u));
ObjLabel.n1(btex u1 etex)  labshift((0, .5u));
n1.c = z1;
%
% build some Arcs, with various label or other parameters
% I'll have to make some vardef fonction for that.
% For now, all arcs related stuffs are in th esame place
%
% - Howto reduce the label separation ? (labshift doen't work)
ncarc.n0(n0)(n1)  name(n0_n1);
ObjLabel.n0(btex $\times$ etex) labpathname(n0_n1),
labpos(0.8);
ObjLabel.n0(btex $0\rightarrow 1$ etex)
labpathname(n0_n1),
labpos(0.8),
labangle(0),
labshift((0, -0.5u)),
labdir(bot) ;
ncarc.n1(n1)(n0)  name(n1_n0);
ObjLabel.n1(btex $\times$ etex) labpathname(n1_n0),
labpos(0.8);
ObjLabel.n1(btex $1\rightarrow 0$ etex)
labpathname(n1_n0),
labpos(0.8),
labangle(180),
labdir(top) ;
drawObj(n0, n1);
endfig ;
end .
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \dh in ConTeXt

2004-09-15 Thread Charles Doherty
On 14 Sep 2004, at 12:17, Taco Hoekwater wrote:
 Howth  {\em H\k{o}f\eth i} / {\em H\k{o}f\eth a},
(LaTeX 'dh' = [eE]th, 'th'= [tT]horn, 'ng' = [eE]ng)
Greetings, Taco
Dear Taco,
Thank you very much for your reply. I get ? when I use the above. But I 
just chanced mathmode
{\em H\k{o}f$\eth$i} / {\em H\k{o}f$\eth$a}, and I get inline: pastedGraphic1.tiff
This is not quite the character shown in the Palatino examples in 
Hans's Fonts in ConTeXt pp 17 ff. number 240 in the bottom left of the 
font table but I can get by with that.

If you think of another way I would be grateful.
Thanks again,
Charlie
**
Charles Doherty,
Early Irish History,
School of History,
University College Dublin,
Belfield,
Dublin 4
Ireland
Telephone +353 1 7168381
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Ancient Greek / a few modules for SW with thanks to GB

2004-08-23 Thread Steffen Wolfrum
Hans, thank you.

But do you also have a solution for writing ancient Greek directly in Unicode UTF-8?

Steffen




Hans Hagen Outside [EMAIL PROTECTED] wrote:

 This is a multi-part message in MIME format.
 --070603090106080805000407
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Giuseppe Bilotta wrote:
 
 Use the attached cbgreek.tex typescript file (Hans, maybe it's
 the case to add it to the distribution?) and you should then be
 able to type something like this:
   
 
 interesting, it worked right away after adding
 
   \loadmapfile[cbgreek.map]
 
 so you know greek, interesting; it's so long ago that i had greek at
 school, i cannot see if this is old or new greek -)
 
 Attached a type-* (i replaced 10.95 by 11pt) file and a s-* file (watch 
 the definition of start/stop),
 
\texexec --mode=demo --pdf s-grk-00
 
 should work. In cont-fil.tex add:
 
\definefilesynonym [greek] [grk-00]
 
 and then you can say:
 
\usemodule[greek]
 
 and go ahead.
 
 Hans
 
 -
   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
 -
 
 
 
 --070603090106080805000407
 Content-Type: text/plain;
  name=s-grk-00.tex
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename=s-grk-00.tex
 
 %D \module
 %D   [  file=s-grk-00,
 %Dversion=2004.08.23,
 %D  title=\CONTEXT\ Style File,
 %D   subtitle=CB Greek Support,
 %D author=Hans Hagen,
 %D   date=\currentdate,
 %Dsuggestions=Giuseppe Bilotta,
 %D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
 %C
 %C This module is part of the \CONTEXT\ macro||package and is
 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
 %C details.
 
 \usetypescriptfile[type-cbg]
 
 \usetypescript [all] [cbgreek]
 
 \startsetups [cbgreek]
 
   \catcode`~=\other
   \catcode`|=\other
 
   \language[greek]
   \switchtobodyfont[cbgreek]
 
 \stopsetups
 
 \definestartstop
   [greek]
   [commands=\directsetup{cbgreek}]
 
 \doifnotmode{demo}{\endinput}
 
 % The following sample file was submitted to the \CONTEXT\
 % mailing list by Giuseppe Bilotta, along with the right
 % typescripts.
 
 % already loaded: \usemodule[greek]
 
 \mainlanguage[english]
 
 \starttext
 
 We can easily use plain English for normal text, and then switch
 to greek when we want; as a first try we type the lower and
 upper case 26 letters of the latin alphabet and see how they come
 out in greek:
 
 \startgreek
 a b c d e f g h i j k l m n o p q r s t u v w x y z \par
 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
 \stopgreek
 
 As it can be observed, some uppercase letters have strange
 outcomes; also, j gives \greek{j} and c gives the
 end-of-word sigma \greek{c}; interestingly, s gives either the
 normal sigma or the end-of-word one, depending on whether it's at
 the end of the word or not: \greek{satrapws}.
 
 Of course we can use the various diacritical signs: accents
 (\greek{`a, 'a, ~a}), breathings (\greek{r, w, a}) and
 subscribed iotas (\greek{a|, h|, w|}) (these last are pretty ugly in my
 opinion); observe how they automatically get the correct position
 with uppercase letters: (\greek{`A, 'A, ~A, A, A, A|}).
 
 Can the thing be used for serious work?
 
 \startgreek
 'Andra moi 'ennepe, Mo~usa, pol'utropon, 'os m'ala poll`a\hfill\break
 pl'agqjh, epe`i Tro'ihs er`on ptol'iejron 'eperse;\hfill\break
 poll~wn d anjr'wpwn 'iden 'astea ka`i n'oon 'egnw,\hfill\break
 poll`a d 'o g en p'ontw| p'ajen 'algea `on kat`a jum'on,\hfill\break
 arn'umenos 'hn te yuq`hn ka`i n'oston eta'irwn.
 \stopgreek
 
 \stoptext
 --070603090106080805000407
 Content-Type: text/plain;
  name=type-cbg.tex
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename=type-cbg.tex
 
 %D \module
 %D   [   file=type-cbg,
 %Dversion=2004.08.23,
 %D  title=\CONTEXT\ Typescript Macros,
 %D   subtitle=CB Greek,
 %D author=Giuseppe Bilotta,
 %D   date=\currentdate,
 %D  copyright=PRAGMA-ADE]
 %C
 %C This module is part of the \CONTEXT\ macro||package and is
 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
 %C details.
 
 \starttypescript [serif] [cb-greek] [name]
 
   \definefontsynonym [CBGreek-Regular-Medium-Normal]  [grmn]
   \definefontsynonym [CBGreek-Regular-Medium-Oblique] [grmo]
   \definefontsynonym [CBGreek-Regular-Medium-Italic]  [grmi]
   \definefontsynonym [CBGreek-Regular-Medium-UprightItalic]   [grmu]
   \definefontsynonym [CBGreek-Regular-Medium-Caps][grmc]
   \definefontsynonym [CBGreek-Regular-Medium-Leipzig

Re: [NTG-context] trim pdf figures

2004-08-06 Thread Hans Hagen
Christopher Creutzig wrote:
Taco Hoekwater wrote:
epstopdf.sty runs (attemps to run)  the epstopdf executable 'inline'

First shot (even untested, sorry):
\def\externalEPSfigure[#1]{%
  \immediate\write18{epstopdf #1}%
  \externalfigure[#1]%
}
How does a command make texexec/texutil invoke a command in case
\write18 has not been enabled?
\expanded{\installprogram{pstopdf \appliedfigurefullname}}
Hans 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] trim pdf figures

2004-07-08 Thread Taco Hoekwater


epstopdf.sty runs (attemps to run)  the epstopdf executable 'inline'


On Thu, 8 Jul 2004 11:24:14 +0200, Henning wrote:

  I don't know anything about ConTeXt, but does \usepackage{epstopdf} 
  work? (Or something similar?) You then don't need to worry about 
  explicitly converting all the eps files, it's automated within the 
  TeX process.
  Alan, thanks for this-I didn't know. Unfortunately I don't think 
  ConTeXt includes this feature. But I will cross post to the ConTeXt 
  list to see.
 
 \usepackage is a LaTeX command that loads a LaTeX package and has 
 nothing to do with ConTeXt at all.
 
 What do you like to achieve? Minimal working example!
 
 Grüßlis vom Hraban!
 ---
 http://www.fiee.net/texnique/
 
 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context


-- 
groeten,

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


Re: [NTG-context] math in ConTeXt

2004-06-25 Thread Tobias Burnus
Hello,
[EMAIL PROTECTED] wrote:
is ConTeXt prepared for math?
 

With regard to mathematics ConTeXt can do all things which plain TeX can.
I mean...can I do...
$\sum_{i=1}^{n}{x_{i}}$
as I used to in LaTeX?
 

Yes. For displaymath you can use plain TeX's $$\sum$$ or better
\placeformula
\startformula
\stopfromula
(LaTeX's \[ ... \] doesn't work.)
I don't make the \Sigma to be under and over characterised by i=1 and n.
In inline math you need \limits\sum if you want to have the i=1 below 
and the n above the sum sign. If I'm not mistaken, LaTeX does the same.

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


Re: Re[6]: [NTG-context] Known nath bugs?

2004-06-08 Thread Gary Pajer
 The latest nath (submitted to CTAN, you can retrieve it from
 there) works correctly on my MiKTeX installation, both inline
 and displayed obey the structure. Please try updating nath. If it
 still doesn't work: do you have the same ConTeXt version on the
 two system?

 -- 
 Giuseppe Oblomov Bilotta

Thank you very much, yes, the new version does work.

Giuseppe, please note:  I waited a few days to make sure CTAN was up to
date.  When I first looked for the file, there were different versions on
different mirrors.  One was dated 2003.12.07, the other 2003.12.08.The
version that I downloaded today, and works properly, is dated 2003.12.08.
Typo?

-gary

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


Re[6]: [NTG-context] Known nath bugs?

2004-06-05 Thread Giuseppe Bilotta
Tuesday, June 1, 2004 Gary Pajer wrote:

 Let me point out, mainly for the record, that ConTeXt / nath does not seem
 to work properly under MikTeX.

 The following script works fine with Linux / teTeX, but with MikTeX, the
 in-line versions of the math is wrong.


 -gary

 --
 \usemodule[nath]
 \starttext

 $ y = (1 + \frac{}{a}{b}) $

 $ y = (1 + \frac{a}{b}) $

 $ y = (1 + a\frac{b}{c}{d})$

 $$ y = (1 + \frac{}{a}{b}) $$

 $$ y = (1 + \frac{a}{b}) $$

 $$ y = (1 + a\frac{b}{c}{d})$$

 \stoptext

The latest nath (submitted to CTAN, you can retrieve it from
there) works correctly on my MiKTeX installation, both inline
and displayed obey the structure. Please try updating nath. If it
still doesn't work: do you have the same ConTeXt version on the
two system?

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] mpost called from context

2004-04-04 Thread Thomas A . Schmitz
On Apr 4, 2004, at 1:56 PM, Henning Hraban Ramm wrote:

Am Sonntag, 04.04.04, um 11:30 Uhr (Europe/Zurich) schrieb Laurent 
Chéno:
Abstract : after a fresh reinstall of TeTeX via Gerben Wierda's 
i-packages, I cannot obtain a Metapost figure in my pdf-output via 
ConTeXt.

Who can help me ? Thank in advance !
You must at least enable write18 in your texmf.cnf;
that allows ConTeXt to call MetaPost inline;
pdfTeX will tell you about in every run:
This is pdfTeX, Version 3.14159-1.00b-pretest-20020211 (Web2C 7.3.7x)
\write18 enabled.

Right, and in texmf/tex/context/user/cont-sys.tex, you must uncomment 
these two lines:
 \runMPgraphicstrue
 \runMPTEXgraphicstrue

HTH

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


Re : [NTG-context] boldsymbol workaround

2004-02-22 Thread David Munger
\define[1]\boldsymbol{{\hbox{\formula{\bfm #1
When using nath, it doesn't work with inline formulas. So in that case,  
better use

\unprotect
[EMAIL PROTECTED] \bfm #1 [EMAIL PROTECTED]
\protect
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-nath difficulty

2004-02-19 Thread Gary Pajer

Furthermore:  in

\usemodule[nath]
\starttext

$ y = (1 + \frac{}{a}{b}) $

$ y = (1 + \frac{a}{b}) $

$ y = (1 + a\frac{b}{c}{d})$

$$ y = (1 + \frac{}{a}{b}) $$

$$ y = (1 + \frac{a}{b}) $$

$$ y = (1 + a\frac{b}{c}{d})$$

\stoptext

The displayed equation is correct, but the inline isn't.I'm probing this
in my spare time.

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


Re: [NTG-context] bfmath in nath

2004-02-19 Thread Giuseppe Bilotta
Tuesday, February 17, 2004 David Munger wrote:

 Hello,


 The following outputs a nice bold displayed omega (the first one), and
 a thin normal inline one (the second one):

 \usemodule [nath]
 \setupbodyfont [12pt]
 \definebodyfont [12pt] [mm] [mibf=cmmib10 sa 1]
 \starttext
 \[\bfmath \omega\] $\bfmath \omega$
 \stoptext

 Note that replacing nath with amsl in \usemodule[nath] results in two
 bold omegas, so the problem has to be in t-nath.tex.

 Btw, this nath module is very useful to me. If I'd be able to do some
 debugging into it, I sure would. Could you please point me to some
 ConTeXt hacking references?

Ok, I'll keep this too for my todo on my next recheck of nath
(I really have too many things in my hands these days ...)

Anyway, ConTeXt hacking will only partially help you, since
nath contains a lot of LaTeX-imported code.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] bfmath in nath

2004-02-17 Thread David Munger
Hello,

The following outputs a nice bold displayed omega (the first one), and  
a thin normal inline one (the second one):

\usemodule [nath]
\setupbodyfont [12pt]
\definebodyfont [12pt] [mm] [mibf=cmmib10 sa 1]
\starttext
\[\bfmath \omega\] $\bfmath \omega$
\stoptext
Note that replacing nath with amsl in \usemodule[nath] results in two  
bold omegas, so the problem has to be in t-nath.tex.

Btw, this nath module is very useful to me. If I'd be able to do some  
debugging into it, I sure would. Could you please point me to some  
ConTeXt hacking references?

Thanks in advance,

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


Re: [NTG-context] Synchronization (.tex - .pdf)

2003-12-22 Thread Nigel King
Now that would be a Christmas present! I didn't dare ask.
-- 
Nigel

 From: Steffen Wolfrum [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Mon, 22 Dec 2003 15:38:25 +0100
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: [NTG-context] Synchronization (.tex - .pdf)
 
 Hi,
 
 I don't now how many ConTeXt user are aware of the idea of synchronization. In
 the LaTeX area of TeX it has a kind of tradition (Textures, srcltx, ...) for
 dvi output.
 
 For PDF output Jérôme Laurens has now written a package (for use with iTeXMac
 and TeXShop) that makes the advantages from source-output synchronization also
 available for the todays standard PDF. But as so many things in the TeX world
 it is written as a plug-in for LaTeX.
 
 Does anybody has an idea how to use this great achievement also with ConTeXt?
 For those who would like to have a look at Jérôme's great work, I insert his
 code at the end of this email.
 
 Thank you very much,
 
 Steffen Wolfrum
 
 
   This is pdfsync.sty
   2003-12-08:
   There is a bug in using everyvbox... novbox is now the default
   bug fixed: $0$ was no visible
   2003-11-28:
   comment characters added to fix an error. Don't know exactly the
 cause...
   Default option is all...
   Could not use \everydisplay... (bug in eqnarray)
   2003-11-19
   first version
  usage: \usepackage[display,cr,vbox]{PDFSYNC}
  appends reference points before each \par and at each \hbox, inline math;
  optionally also at every displayed math, with the option [display]
  optionally also at every \cr, with the option [cr]
  optionally also at every \vbox, with the option [vbox]
 
  If you want additional files to be parsed, please use the command
  \include (which is redefined below)
  This file is due to Piero D'Ancona and [EMAIL PROTECTED]
  iTeXMac is supporting pdfsync
  Copy this file to ~/Library/texmf/tex/latex or
 ~/Library/TeX/texmf/tex/latex if available
  This file is distributed under the GPL and the smart licence: please
 make things better if you can
  © 2003, [EMAIL PROTECTED]
 %
 \NeedsTeXFormat{LaTeX2e}%
 \ProvidesPackage{pdfsync}[2003/12/08 v0.3]%
 \newif\ifPDFSYNCOK%
 \newif\ifPDFSYNCStar%
 \newif\ifPDFSYNCPar \PDFSYNCPartrue%
 \newif\ifPDFSYNCMath \PDFSYNCMathtrue%
 \newif\ifPDFSYNCCr \PDFSYNCCrtrue%
 \newif\ifPDFSYNCHBox \PDFSYNCHBoxtrue%
 \newif\ifPDFSYNCVBox \PDFSYNCVBoxfalse%
 \newif\ifPDFSYNCExtra \PDFSYNCExtratrue%
 \newwrite\PDFPOS%
 [EMAIL PROTECTED]@folio=0%
 [EMAIL PROTECTED]@rder=0%
 \DeclareOption{nopar}{\PDFSYNCParfalse}%
 \DeclareOption{nomath}{\PDFSYNCMathfalse}%
 \DeclareOption{nocr}{\PDFSYNCCrfalse}%
 \DeclareOption{nohbox}{\PDFSYNCHBoxfalse}%
 \DeclareOption{novbox}{\PDFSYNCVBoxfalse}%
 \DeclareOption{vbox}{\PDFSYNCVBoxtrue}%
 \DeclareOption{noextra}{\PDFSYNCExtrafalse}%
 \DeclareOption{nothing}{\let\pdfsyncstart\pdfsyncstop}%
 \ProcessOptions\relax%
 \RequirePackage{everyshi}%
 \ifx\pdfsavepos\undefined%
 \wlog{Synchronization is only available with pdf. Use a dvi viewer instead.}%
 \let\pdfsyncstart\relax%
 \let\pdfsyncstop\relax%
 \let\pdfsync\relax%
 [EMAIL PROTECTED]
 \else%
 \def\pdfsyncstart{\global\PDFSYNCOKtrue}%
 \def\pdfsyncstop{\global\PDFSYNCOKfalse}%
 [EMAIL PROTECTED]@folio by
 [EMAIL PROTECTED]
  \immediate\openout\PDFPOS\jobname.pdfsync%
   \immediate\write\PDFPOS{\jobname}%control info
   \immediate\write\PDFPOS{version 0}%control info
   [EMAIL PROTECTED]
   \def\PDFSYNC@@include#1{%
\immediate\write\PDFPOS{(#1}%
[EMAIL PROTECTED])}}%
   \let\include\PDFSYNC@@include%
   [EMAIL PROTECTED]
   \ifPDFSYNCOK%
 \pdfsavepos%
 [EMAIL PROTECTED]
 \def\position{\the\pdflastxpos\space\the\pdflastypos}%
 \ifPDFSYNCStar%
[EMAIL PROTECTED]
 \else%
[EMAIL PROTECTED]
 \fi%
 \expandafter\write\expandafter\PDFPOS\argument%
 [EMAIL PROTECTED] by 1%
   \fi}%
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 %  
 [EMAIL PROTECTED]@maketitle\
 pdfsyncstart}
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 [EMAIL PROTECTED]
 }%
 \AtBeginDocument{%
 \pdfsyncstart%
 \ifPDFSYNCPar\global\let\p@@[EMAIL PROTECTED]@@r}\fi%
 [EMAIL PROTECTED]
 \ifPDFSYNCCr\everycr [EMAIL PROTECTED]
 \ifPDFSYNCHBox\everyhbox [EMAIL PROTECTED]
 \ifPDFSYNCVBox\everyvbox [EMAIL PROTECTED] is a bug here
 [EMAIL PROTECTED]
 }%
 \fi%
 \endinput
 
 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context

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


Re: [NTG-context] Synchronization (.tex - .pdf)

2003-12-22 Thread Hans Hagen
At 15:38 22/12/2003, Steffen Wolfrum wrote:

I don't now how many ConTeXt user are aware of the idea of 
synchronization. In the LaTeX area of TeX it has a kind of tradition 
(Textures, srcltx, ...) for dvi output.

For PDF output Jérôme Laurens has now written a package (for use with 
iTeXMac and TeXShop) that makes the advantages from source-output 
synchronization also available for the todays standard PDF. But as so many 
things in the TeX world it is written as a plug-in for LaTeX.

Does anybody has an idea how to use this great achievement also with ConTeXt?
For those who would like to have a look at Jérôme's great work, I insert 
his code at the end of this email.
It's not that complicated to implement this kind of support in context, but 
i'd rather start from the editor's specs, so what is it that texshop wants 
as input (syntax and so)? Once that is known, i can have a look at it and 
see to what extend it can be supported in an non-interfering way. 
(furthermore i'd also support it in dvi mode)

(in one of old context manuals the typeset result is crosslinked to the 
input in a similar way; one reason for me to drop it is that in many cases 
my output is not in sync with the source, i.e. as soon as you move data 
around ...)

Hans


  This is pdfsync.sty
  2003-12-08:
  There is a bug in using everyvbox... novbox is now the default
  bug fixed: $0$ was no visible
  2003-11-28:
  comment characters added to fix an error. Don't know exactly the 
cause...
  Default option is all...
  Could not use \everydisplay... (bug in eqnarray)
  2003-11-19
  first version
 usage: \usepackage[display,cr,vbox]{PDFSYNC}
 appends reference points before each \par and at each \hbox, inline math;
 optionally also at every displayed math, with the option [display]
 optionally also at every \cr, with the option [cr]
 optionally also at every \vbox, with the option [vbox]

 If you want additional files to be parsed, please use the command
 \include (which is redefined below)
 This file is due to Piero D'Ancona and [EMAIL PROTECTED]
 iTeXMac is supporting pdfsync
 Copy this file to ~/Library/texmf/tex/latex or 
~/Library/TeX/texmf/tex/latex if available
 This file is distributed under the GPL and the smart licence: 
please make things better if you can
 © 2003, [EMAIL PROTECTED]
%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{pdfsync}[2003/12/08 v0.3]%
\newif\ifPDFSYNCOK%
\newif\ifPDFSYNCStar%
\newif\ifPDFSYNCPar \PDFSYNCPartrue%
\newif\ifPDFSYNCMath \PDFSYNCMathtrue%
\newif\ifPDFSYNCCr \PDFSYNCCrtrue%
\newif\ifPDFSYNCHBox \PDFSYNCHBoxtrue%
\newif\ifPDFSYNCVBox \PDFSYNCVBoxfalse%
\newif\ifPDFSYNCExtra \PDFSYNCExtratrue%
\newwrite\PDFPOS%
[EMAIL PROTECTED]@folio=0%
[EMAIL PROTECTED]@rder=0%
\DeclareOption{nopar}{\PDFSYNCParfalse}%
\DeclareOption{nomath}{\PDFSYNCMathfalse}%
\DeclareOption{nocr}{\PDFSYNCCrfalse}%
\DeclareOption{nohbox}{\PDFSYNCHBoxfalse}%
\DeclareOption{novbox}{\PDFSYNCVBoxfalse}%
\DeclareOption{vbox}{\PDFSYNCVBoxtrue}%
\DeclareOption{noextra}{\PDFSYNCExtrafalse}%
\DeclareOption{nothing}{\let\pdfsyncstart\pdfsyncstop}%
\ProcessOptions\relax%
\RequirePackage{everyshi}%
\ifx\pdfsavepos\undefined%
  \wlog{Synchronization is only available with pdf. Use a dvi viewer 
instead.}%
  \let\pdfsyncstart\relax%
  \let\pdfsyncstop\relax%
  \let\pdfsync\relax%
  [EMAIL PROTECTED]
\else%
  \def\pdfsyncstart{\global\PDFSYNCOKtrue}%
  \def\pdfsyncstop{\global\PDFSYNCOKfalse}%
  [EMAIL PROTECTED]@folio by 
[EMAIL PROTECTED]
   \immediate\openout\PDFPOS\jobname.pdfsync%
\immediate\write\PDFPOS{\jobname}%control info
\immediate\write\PDFPOS{version 0}%control info
[EMAIL PROTECTED]
\def\PDFSYNC@@include#1{%
\immediate\write\PDFPOS{(#1}%
[EMAIL PROTECTED])}}%
\let\include\PDFSYNC@@include%
[EMAIL PROTECTED]
\ifPDFSYNCOK%
\pdfsavepos%

[EMAIL PROTECTED]
\def\position{\the\pdflastxpos\space\the\pdflastypos}%
\ifPDFSYNCStar%
[EMAIL PROTECTED]
\else%
[EMAIL PROTECTED]
\fi%
\expandafter\write\expandafter\PDFPOS\argument%
[EMAIL PROTECTED] by 1%
\fi}%
 [EMAIL PROTECTED]
  [EMAIL PROTECTED]
% 
[EMAIL PROTECTED]@maketitle\pdfsyncstart}
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  [EMAIL PROTECTED]

[EMAIL PROTECTED]@[EMAIL PROTECTED]@newline}}%
  }%
\AtBeginDocument{%
\pdfsyncstart%
\ifPDFSYNCPar\global\let\p@@[EMAIL PROTECTED]@@r}\fi%
[EMAIL PROTECTED]
\ifPDFSYNCCr\everycr [EMAIL PROTECTED]
\ifPDFSYNCHBox\everyhbox [EMAIL PROTECTED]
\ifPDFSYNCVBox\everyvbox [EMAIL PROTECTED] is a bug here
[EMAIL PROTECTED]
}%
\fi%
\endinput
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd 
op virussen.
Op

<    4   5   6   7   8   9