[NTG-context] problem with def

John Culleton john at wexfordpress.com
Wed May 12 21:21:58 CEST 2010

On Wednesday 12 May 2010 10:52:03 Taco Hoekwater wrote:
> John Culleton wrote:
> > In plain pdftex I can define a string thus:
> > \def\booktitle{My Book Title}
> >
> > and then reuse it later as
> > \rightline{\bf\booktitle}
> >  But in Context when I use
> > \rightaligned{\bf\booktitle}
> >
> > it errors on the tag \booktitle
> This definitely should work, so you should post a minimal
> example (are you defining \booktitle inside a group?)
> > I tried \the\booktitle but that didn't work either.
> This should not work.
> Best wishes,
> Taco
>________ If your question is of interest to others as well, please 
add an
> entry to the Wiki!
> maillist : ntg-context at 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

When I put together an example in a single file it works. In my 
more extended example the fonts are defined in fonts.tex, the
value of the string is defined in macros.tex and the usage is 
defined in half.tex. There is a \startstandardmakeup 
\stopstandardmakeup. Here is my master file:
----------------------------------%Example book.tex file for novel.

\input macros.tex
\input fonts.tex
\input half.tex
\input title.tex
\input copy.tex
%\input ded.tex
%\input ack.tex
%\input content.tex
\input body.tex
Since I can't come up with a brief example of the problem I will 
start commenting things out, moving things from file to file and 
see what happens.

This feature is a nice to have and not a got to have. I can always 
just retype the title wherever it occurs. But it is a head scratcher. 
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95

More information about the ntg-context mailing list