ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \hyphenatedfile redefined!!
@ 2008-04-14 16:42 Aditya Mahajan
  0 siblings, 0 replies; only message in thread
From: Aditya Mahajan @ 2008-04-14 16:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Typeset this file :)

\starttext

The file \filename{knuth} contains a quotation from Don Knuth, the creator
of \TEX.

\stoptext

core-ver.tex defines \filename to be

\unexpanded\def\filename#1{{\tttf\hyphenatedfile{#1}}}

and supp-lan.tex defines \hypenatedfile to be

\let\hyphenatedfile\hyphenatedurl

However this is redefined in supp-box.tex, due to which \filename gets 
redefined.

%D \macros
%D   {hyphenatedword,
%D    hyphenatedpar,
%D    hyphenatedfile,
%D    dohyphenateword}
%D
%D The next one is a tricky one. \PLAIN\ \TEX\ provides
%D \type{\showhyphens} for showing macros on the terminal. When
%D preparing a long list of words we decided to show the
%D hyphens, but had to find out that the \PLAIN\ alternative
%D can hardly be used and|/|or adapted to typesetting. The next
%D two macros do the job and a little more.

Although, I cannot gather this from the definition, it seems that 
\hypenatedfile is showing all the hyphens in a file.

One of the macros need to get a different name :)

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-14 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-14 16:42 \hyphenatedfile redefined!! Aditya Mahajan

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).