Re: [NTG-context] End notes and compile per chapter question

2008-07-28 Thread Taco Hoekwater


Gerben Wierda wrote:
 
 My book has per page notes as well as more lengthy end notes which end  
 up in a chapter at the end of the book. c_endnotes.tex looks like this:

One solution is using modes. If you put the next three lines
in the environment file,

   \def\maybeendnotes
  {\doifmode{standalone}{\placenotes[endnote]}}
   \appendtoks \maybeendnotes \to \everystoptext

you can do

   $ texexec --mode=standalone c_foobar

etc.

There may be better solutions ... ;-)

Best wishes,
Taco
___
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
___


[NTG-context] End notes and compile per chapter question

2008-07-21 Thread Gerben Wierda
I have a book project with a structure I copied a few years ago from  
some instructional page. The product file looks like this:

 \startproduct prd_book
 \project project_teoada

 \starttext
 \start
 \startstandardmakeup \ss
 \hairline \start
 \switchtobodyfont[20pt]\bf
 \leftaligned{Test Project Title}%
 \stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
 \blank[10cm]\start\leftskip=10cm\hairline\stop
 \rightaligned{1995--2006}%
 \stopstandardmakeup
 \stop

 \startfrontmatter
   \completecontent
   \component c_foo
 \stopfrontmatter
 \startbodymatter
   \component c_bar
   \component c_foobar
 \stopbodymatter
 \startappendices
   \component c_endnotes
 \stopappendices

 \stoptext

 \stopproduct

My book has per page notes as well as more lengthy end notes which end  
up in a chapter at the end of the book. c_endnotes.tex looks like this:

 \startcomponent c_endnotes
 \product prd_book
 \project project_teoada

 \starttext
 \startbuffer [chapter:quote]
 ToDo
 \stopbuffer
 \chapter[h:endnotes]{Notes}

 \placenotes[endnote]

 \stoptext

 \stopcomponent


But I would at this stage like to compile the chapters per chapter.  
This works, but if I compile c_chapter1.tex, I do not get the endnotes  
of the chapter.

How do I go about it that when compiling per chapter, I get the  
endnotes for that chapter at the end of that file, while when  
compiling the entire book they go at the end of the book as they should?

Thanks,

G
___
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
___