ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <pg@levana.de>
Subject: Re: MetaFun on Mac OS X
Date: Sun, 4 Nov 2001 12:26:22 +0100	[thread overview]
Message-ID: <01110412262200.00351@levana> (raw)
In-Reply-To: <B80AB372.3482%king@dircon.co.uk>

Hi,

sorry I cannot help you with macos x now. Maybe in a month when I got new 
ibook (not sure yet if I really should buy it...)

> 1. I do not know how to "enable \write18". Exactly how is this written
> into the file texmf.cnf, and

on my linux box, I have in texmf.cnf:

% Enable system commands via \write18{...}?
shell_escape = t

but with web2c tex (I think it should work with yor tex)  you can also say 

tex --shell-escape myfile.tex

> 2. I do not know whether the test "\immediate\write18{echo It works}"
> passes, there is no error message and "echo It works" appears on the
> terminal demonstrating that \write18 has gone passed without obvious
> error. However TeX does not exit so I type \end. The logfile is included
> immediately below:-

ok, here is my testfile:
----------------write18test.tex--------------
\immediate\write18{cat write18test.tex}

\bye
------------------end of file--------------
the answer with write18 enabled is
---------
This is TeX, Version 3.14159 (Web2C 7.3.1)
(write18test.tex\immediate\write18{cat write18test.tex}

\bye

 )
No pages of output.
Transcript written on write18test.log.
-----------
and without write18 feature enabled:
-----------
This is TeX, Version 3.14159 (Web2C 7.3.1)
(write18test.tex
cat write18test.tex
 )
No pages of output.
Transcript written on write18test.log.
------------

`cat' in the first line of the tex source is a unix specific command that 
outputs its argument, which in this case is my tex-source itself. So in the 
first output (write18 enabled) you see that the source file is output again 
and in the second case (no write18 enabled) there is only the line with 
`cat write18test.tex'. You can also say
\immediate\write18{ls]
to output the listing of the current working directory (only works on 
unix-like systems, so it should be fine on your macos x)

HTH
Patrick, who is getting close to a texshow integrated in emacs... :-)


      reply	other threads:[~2001-11-04 11:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-22 20:02 Nigel King
2001-10-23  8:42 ` Hans Hagen
2001-11-04  9:33   ` Nigel King
2001-11-04 11:26     ` Patrick Gundlach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01110412262200.00351@levana \
    --to=pg@levana.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).