From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Batch Files and texmf
Date: Fri, 10 Aug 2007 08:53:17 -0600 [thread overview]
Message-ID: <op.twuma3z7nx1yh1@your-b27fb1c401> (raw)
In-Reply-To: <46BC35C6.8050806@wxs.nl>
On Fri, 10 Aug 2007 03:54:14 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>>> I want to create a batch file to open a program so that it will search
>>> the
>>> contents of C:\ConTeXt, which contains my entire system, including
>>> subdirectories. For example, if foo.tex is a file in C:\ConTeXt, and
>>> goo.exe is some program, then for
>>>
>>>> goo.bat foo.tex
>>> I want goo to seach C:\ConTeXt for foo.tex. Is there a straightforward
>>> way
>>> to edit the following to get this effect?
>>>
>>> ============================
>>> rem batch file
>>>
>>> goo %
>>> ============================
>>>
>>> Any pointers will be appreciated.
>
> well, if it's part of the tree ...
But what if it's not part of the tree? For example
> Acrobat.lnk cow.pdf
Now you will say, "Why not use texmfstart --file=showcase.pdf
--program=context"
Answer: Because texmfstart always resizes the acrobat window, and I want
to keep the relative positions of my editor and viewer the same at all
times. (of course showcase.pdf is full screen-mode but the restore
position is still resized). This is also why I don't use the --autopdf
option.
If one opens Acrobat with a link file this does not happen: the relative
position generally stays the same as when it was last closed. If I make
LNK executable in System Properties then I can use the following batch file
Acrobat.lnk %*
which will start its argument without resizing the window. So what I need
is a batch file such that, from a console, I can say
Acrobat.bat cow.pdf
and C:\context will be searched for the file.
How can I do this?
I hope this is clearer. I wrote the question more abstractly because there
could be many programs one may want to operate on the context tree.
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-08-10 14:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 3:28 Idris Samawi Hamid
2007-08-10 5:17 ` Hamid Kamrani
2007-08-10 9:54 ` Hans Hagen
2007-08-10 14:53 ` Idris Samawi Hamid [this message]
2007-08-10 15:46 ` Hans Hagen
2007-08-10 16:00 ` Idris Samawi Hamid
2007-08-10 16:09 ` Hans Hagen
2007-08-10 16:38 ` Idris Samawi Hamid
2007-08-10 16:47 ` Hans Hagen
2007-08-10 17:04 ` Idris Samawi Hamid
2007-08-10 18:29 Batch files " Adrian Drury
2007-08-10 19:15 ` Idris Samawi Hamid
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=op.twuma3z7nx1yh1@your-b27fb1c401 \
--to=ishamid@colostate.edu \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).