ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: "j. van den hoff" <veedeehjay@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Loading modules
Date: Tue, 23 Dec 2014 14:38:30 +0100	[thread overview]
Message-ID: <DE68279C-1D7A-4AFF-B1C4-DBFFB2998C04@gmail.com> (raw)
In-Reply-To: <op.xrbo3117p7eajd@muck.fritz.box>


> Am 23.12.2014 um 14:29 schrieb j. van den hoff <veedeehjay@googlemail.com>:
> 
> uups. I was to quick with my answer: in the meantime I did reset my $PATH variable in order to use
> the texlive-context version again. so adding the  \enabledirectives[modules.permitunprefixed] and recompiling
> the document did not proof anything (stupid error...). so I have now retried with the current standalone
> `context' and -- alas! -- the `undefined control sequence' error does not go away. do be specifc:
> 
> -- document and module reside in the same directory
> 
> -- the module is residing in file `t-title.tex' and defines (upon others) `\doctitle'
> 
> -- the document loads the module with `\usemodule[title]' (which is now preceded by `\enabledirectives[modules.permitunprefixed]')
>   and then uses `\doctitle' which triggers the error.
> 
> -- right now, the standalone `context' binary is at the very top of $PATH.
> 
> any ideas?

The ConTeXt suite includes a title module (when you install the  third party modules)
which is loaded instead of your own title module. The following example shows how
you can use the module in your document.


\usemodule[title]

\starttext

\placetitle
  [author=Ben Lee User,
    title=How to write a \tex{placetitle} command,
     date=\currentdate\space\currenttime]

\dorecurse{6}
  {\startparagraph
   \input tufte\par
   \stopparagraph}

\stoptext


When you want to use your module instead of the third party module rename
it from t-title.tex to p-title.tex.

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

  reply	other threads:[~2014-12-23 13:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-20 18:31 access to system fonts under MacOSX j. van den hoff
2014-12-20 22:26 ` Pablo Rodriguez
2014-12-21 10:51   ` j. van den hoff
2014-12-21 16:01     ` Pablo Rodriguez
2014-12-21 13:31   ` j. van den hoff
2014-12-21 16:20     ` Pablo Rodriguez
2014-12-21 17:37       ` j. van den hoff
2014-12-21 18:22         ` Pablo Rodriguez
2014-12-21 20:24           ` j. van den hoff
2014-12-21 21:39             ` Wolfgang Schuster
2014-12-21 21:45               ` j. van den hoff
2014-12-21 21:56                 ` Wolfgang Schuster
2014-12-21 22:23                   ` j. van den hoff
2014-12-21 23:12                   ` j. van den hoff
2014-12-22  6:09                     ` Pablo Rodriguez
2014-12-23 13:19                       ` j. van den hoff
2014-12-22 21:35                     ` Loading modules (was: access to system fonts under MacOSX) Wolfgang Schuster
2014-12-23 13:15                       ` j. van den hoff
2014-12-23 13:29                         ` Loading modules Wolfgang Schuster
2014-12-23 13:29                         ` Loading modules (was: access to system fonts under MacOSX) j. van den hoff
2014-12-23 13:38                           ` Wolfgang Schuster [this message]
2014-12-21 22:17                 ` access to system fonts under MacOSX Pablo Rodriguez
2014-12-21 22:22                   ` j. van den hoff
2014-12-21 22:11             ` Pablo Rodriguez

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=DE68279C-1D7A-4AFF-B1C4-DBFFB2998C04@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=veedeehjay@googlemail.com \
    /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).