[metapost] mpost -no-parse-first-line

Taco Hoekwater taco at elvenkind.com
Sun May 24 11:14:02 CEST 2009

Nicola wrote:
> Has -no-parse-first-line indeed any effect?

The [-no]-parse-first-line option in the pascal version of Metapost
(pre 1.100), comes from the web2c runtime library so it is shared by
all the web2c-based programs. It has nothing to do with system script
processing at all, it does something quite different.

Here is the description, that I modified from the manpage of 'tex'
(as that seemed to explain the option best)

"This version of Metapost can look in the first line of the file
  figure.mp to see if it begins with the magic sequence %&.
  If the first line begins with %&memfile then Metapost will use the
  named memfile to process the source file. This overrides the memfile
  selection based on the name by which the program is invoked.
  The -parse-first-line option or the parse_first_line  configuration
  variable controls whether this behaviour is enabled."

In the newer versions of Metapost (1.100 and up) this option is
always on and -no-parse-first-line is unimplemented.

Best wishes,

More information about the metapost mailing list