ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: Mark IV and pre-processing input file processing.
Date: Sun, 11 Nov 2007 13:15:38 +0100	[thread overview]
Message-ID: <20071111131538.aef0a6a3.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <4730C50A.6040804@wxs.nl>

On Tue, 06 Nov 2007 20:48:26 +0100
Hans Hagen <pragma@wxs.nl> wrote:

> Johannes Graumann wrote:
> > Hans Hagen wrote:
> > 
> >>> Thanks for that! I found the zipping reference and got it to work.
> >>> Returning now to the example above ("texmfstart
> >>> texexec --lua --environments=myfile.tex someotherfile.zip"), what I would
> >>> like to do is using lua in "myfile.tex" to extract the filename to be
> >>> texed (someotherfile.zip) and rewrite it on the fly to a zip-archive
> >>> content along the lines of
> >>> \input zip::someotherfile.zip::somezipcontent.tex
> >>>
> >>> Is that possible? "texmfstart texexec --verbose" produces something like
> >>> TeXExec | option 'filename' is set to 'someotherfile.tex', so how to
> >>> access this during processing using lua?
> >> texmfstart texexec --lua myfile.tex --arg="name=someotherfile.zip"
> >>
> >> mak emyfile.tex your main tex file (use --global if needed) and then use
> >> \env{name}
> > 
> > Thanks Hans! Not as elegant as I had hoped, but it does what I want when I
> > use "\input zip::\env{name}::somezipcontent.tex" in myfile.tex ... 
> > Now is there any way to define the output-filename from within myfile.tex?
> > This would be analogous to texexec's '--result' option, but from within the
> > texfile to change the output-name with the help of the newly
> > defined '\env{name}' - in the example to '\env{name}.pdf'.
> 
> no ... maybe some day

this give us so many options.

I think about something like,

We can create a zip archive of a current project with a file ending
like cdx (ConTeXt Document Excange) and can now process this file by
calling texexec only on this file.

Nothing special at this moment for now but it is easier send only one
files to someone else instead of a many files or many files in a zip
file he has to unzip first and call texexec later on the main file.

What I want is to create a document in one directory with the normal
structure with projects, components, a figure directory etc. and zip
this directory to only one file. I can now process file simply by
calling texexec on the directory and it is unzipped on the fly
(unnoticed by the user) and I have no longer many different files in my
directory and it is easier to send a docuemnt to someone else because
he get from me only the zipped project file.

I know this is nearly the same as a openoffice document (also a zip
archive with many files) but why not.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-11-11 12:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 13:32 Johannes Graumann
2007-11-06 14:08 ` Wolfgang Schuster
2007-11-06 15:29   ` Johannes Graumann
2007-11-06 16:35     ` Hans Hagen
2007-11-06 18:08       ` Johannes Graumann
2007-11-06 19:48         ` Hans Hagen
2007-11-11 12:15           ` Wolfgang Schuster [this message]
2007-11-11 21:37             ` Hans Hagen
2007-11-12  9:33             ` Johannes Graumann

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=20071111131538.aef0a6a3.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /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).