ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* End notes and compile per chapter question
@ 2008-07-21  8:19 Gerben Wierda
  2008-07-28 15:52 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2008-07-21  8:19 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: End notes and compile per chapter question
  2008-07-21  8:19 End notes and compile per chapter question Gerben Wierda
@ 2008-07-28 15:52 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2008-07-28 15:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-28 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-21  8:19 End notes and compile per chapter question Gerben Wierda
2008-07-28 15:52 ` Taco Hoekwater

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