From: Peter Rolf <indiego@gmx.net>
Subject: Re: using 1 layout on several documents
Date: Fri, 30 Sep 2005 13:46:45 +0200 [thread overview]
Message-ID: <433D25A5.6050505@gmx.net> (raw)
In-Reply-To: <BAY24-F18A15D57EBE44596FEBB7CE8F0@phx.gbl>
Hi Boris,
Boris Pedrofiets wrote:
> Hi,
>
> I made a layout that I want to use for several documents. What is the
> best way to handle this, without placing a copy of the layout
> description in every file?
>
Simply use an environment (file).
Something like...
[content of file 'env-mylayout.tex']
--------
\startenvironment env-mylayout
....your layout settings....
\stopenvironment
--------
Then put the file somewhere in the tex-path
(??/texmf/texmf-local/tex/context/user/ is a good place) and call
texhash/mktexlsr(!), so that context can find it;
Now you can use your layout settings by just typing
\environment env-mylayout
at the beginning of your document (before \starttext).
If the environment is not already defined, then context tries to load a
file with the same name as the environment name (environment foo -->
foo.tex). I just use the prefix 'env-' to seperate the env. files from
the rest in this folder (typescripts, modules, ...).
Hope that helps,
Peter
> Thanks for helping!
>
> Boris
>
> _________________________________________________________________
> Vind alles terug op je PC: MSN Search Toolbar http://toolbar.msn.nl/
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
next prev parent reply other threads:[~2005-09-30 11:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-30 10:50 Boris Pedrofiets
2005-09-30 11:46 ` Peter Rolf [this message]
2005-09-30 13:08 ` Boris Pedrofiets
2005-09-30 14:57 ` Peter Rolf
2005-10-01 20:06 ` Modules how? Boris Pedrofiets
2005-10-02 8:09 ` Taco Hoekwater
2005-10-02 16:58 ` Boris Pedrofiets
2005-10-02 17:53 ` Christopher Creutzig
2005-10-02 20:05 ` using 1 layout on several documents Hans Hagen
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=433D25A5.6050505@gmx.net \
--to=indiego@gmx.net \
--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).