Re: [NTG-context] Dump table of contents

2012-04-10 Thread Kip Warner
On Mon, 2012-04-09 at 21:57 -0400, Aditya Mahajan wrote:
 It works at my end (but I am using a 1.5 month old beta), so sorry, I 
 cannot say what is going wrong with your file.
 
 Did you try it with a small example file to see if that works? 

I haven't tried with a minimal, but I think what I will end up doing is
just extracting the pages manually using pdftk. The direct ConTeXt
method is rather cumbersome and difficult to get working on a very large
and convoluted document, like my book.

Thanks for your help anyways Aditya. Helpful as always.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
On Mon, 2012-04-09 at 00:08 -0400, Aditya Mahajan wrote:
 \def\loaddatafile#1%
  {\ctxlua {
  job.initialize(#1.tuc,#1.tua)
  }}%
 
 \loaddatafile{full-book} %with the .tex extension
 
 \starttext
 \placelist[chapter]
 \stoptext

Thanks Aditya, but I tried doing that. ConTeXt doesn't seem to emit an
error, but neither does it a PDF. I've attached the output log.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
resolversresolving  loading configuration file '/usr/share/texmf/web2c/contextcnf.lua'

(Source/Makeup/Table_of_Contents_Standalone_Product.tex

ConTeXt  ver: 2012.04.07 14:42 MKIV  fmt: 2012.4.8  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Table_of_Contents_Standalone_Product.top loaded

system   options  start used options

used options % runtime options files (command line driven)
used options \unprotect
used options % feedback and basic job control
used options % handy for special styles
used options \startluacode
used options document = document or { }
used options document.arguments={
used options  [environment]=Source/Environment.tex,
used options }
used options document.files={
used options  Source/Makeup/Table_of_Contents_Standalone_Product.tex,
used options }
used options \stopluacode
used options % process info
used options \setupsystem[inputfile=Source/Makeup/Table_of_Contents_Standalone_Product.tex]
used options \setupsystem[\c!n=1,\c!m=1]
used options % modes
used options % options (not that important)
used options \startsetups *runtime:options
used options \stopsetups
used options % styles and modules
used options \startsetups *runtime:modules
used options \environment Source/Environment.tex 
used options \stopsetups
used options % done
used options \protect \endinput

system   options  stop used options

(Table_of_Contents_Standalone_Product.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv+ /usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) )

system   files  start used files

used files  1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source/Makeup/Table_of_Contents_Standalone_Product.tex | usedmethod=direct
used files  2: filename=cont-new.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv | usedmethod=database
used files  3: filename=Table_of_Contents_Standalone_Product.top | foundname=Table_of_Contents_Standalone_Product.top | usedmethod=direct
used files  4: filename=lang-us.lua | filetype=lua | foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua | usedmethod=database
used files  5: filename=Source/Environment.tex | foundname=Source/Environment.tex | usedmethod=direct
used files  6: filename=m-units.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  7: filename=m-units.mkiv | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  8: filename=usr/share/texmf/tex/context/base/m-units.mkiv | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=qualified
used files  9: filename=x-mathml.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/x-mathml.lua | usedmethod=database
used files 10: filename=t-simplefonts.tex | filetype=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files 11: filename=t-simplefonts.tex | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files 12: filename=usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=qualified
used files 13: filename=t-simplefonts.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua | usedmethod=database
used files 14: filename=lm.lfg | filetype=tex | 

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Aditya Mahajan

On Sun, 8 Apr 2012, Kip Warner wrote:


On Mon, 2012-04-09 at 00:08 -0400, Aditya Mahajan wrote:

\def\loaddatafile#1%
 {\ctxlua {
 job.initialize(#1.tuc,#1.tua)
 }}%

\loaddatafile{full-book} %with the .tex extension


Sorry, this should have read: WITHOUT the .tex extension


\starttext
\placelist[chapter]
\stoptext


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


Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
On Mon, 2012-04-09 at 04:07 -0400, Aditya Mahajan wrote:
 Sorry, this should have read: WITHOUT the .tex extension

I tried both with and without it. ConTeXt doesn't appear to raise any
error and it doesn't generate a PDF. I've attached the log in case it is
helpful. 

Thanks for your help Aditya.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
resolversresolving  loading configuration file '/usr/share/texmf/web2c/contextcnf.lua'

(Source/Makeup/Table_of_Contents_Standalone_Product.tex

ConTeXt  ver: 2012.04.07 14:42 MKIV  fmt: 2012.4.9  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Table_of_Contents_Standalone_Product.top loaded

system   options  start used options

used options % runtime options files (command line driven)
used options \unprotect
used options % feedback and basic job control
used options % handy for special styles
used options \startluacode
used options document = document or { }
used options document.arguments={
used options  [environment]=Source/Environment.tex,
used options }
used options document.files={
used options  Source/Makeup/Table_of_Contents_Standalone_Product.tex,
used options }
used options \stopluacode
used options % process info
used options \setupsystem[inputfile=Source/Makeup/Table_of_Contents_Standalone_Product.tex]
used options \setupsystem[\c!n=1,\c!m=1]
used options % modes
used options % options (not that important)
used options \startsetups *runtime:options
used options \stopsetups
used options % styles and modules
used options \startsetups *runtime:modules
used options \environment Source/Environment.tex 
used options \stopsetups
used options % done
used options \protect \endinput

system   options  stop used options

(Table_of_Contents_Standalone_Product.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv+ /usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) )

system   files  start used files

used files  1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source/Makeup/Table_of_Contents_Standalone_Product.tex | usedmethod=direct
used files  2: filename=cont-new.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv | usedmethod=database
used files  3: filename=Table_of_Contents_Standalone_Product.top | foundname=Table_of_Contents_Standalone_Product.top | usedmethod=direct
used files  4: filename=lang-us.lua | filetype=lua | foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua | usedmethod=database
used files  5: filename=Source/Environment.tex | foundname=Source/Environment.tex | usedmethod=direct
used files  6: filename=m-units.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  7: filename=m-units.mkiv | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  8: filename=usr/share/texmf/tex/context/base/m-units.mkiv | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=qualified
used files  9: filename=x-mathml.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/x-mathml.lua | usedmethod=database
used files 10: filename=t-simplefonts.tex | filetype=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files 11: filename=t-simplefonts.tex | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files 12: filename=usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=qualified
used files 13: filename=t-simplefonts.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua | usedmethod=database
used files 14: filename=lm.lfg | filetype=tex | foundname=/usr/share/texmf/tex/context/fonts/lm.lfg | usedmethod=database
used files 15: 

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Aditya Mahajan

On Mon, 9 Apr 2012, Kip Warner wrote:


On Mon, 2012-04-09 at 04:07 -0400, Aditya Mahajan wrote:

Sorry, this should have read: WITHOUT the .tex extension


I tried both with and without it. ConTeXt doesn't appear to raise any
error and it doesn't generate a PDF. I've attached the log in case it is
helpful.


It works at my end (but I am using a 1.5 month old beta), so sorry, I 
cannot say what is going wrong with your file.


Did you try it with a small example file to see if that works?

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


[NTG-context] Dump table of contents

2012-04-08 Thread Kip Warner
Hey list,

Is it possible to instruct ConTeXt to generate just the table of
contents, skipping all other front matter, back matter, appendices, body
matter, etc.? For example, only the following I'd like to see in the
outputted PDF:

% Contents at a glance...
\title{Contents at a Glance}
\placelist[chapter]

% Complete table of contents...
\title{Table of Contents}
\placecontent

Right now I am generating the full book, but then passing through pdftk
manually to extract just the pages that fall within the aforementioned.

I tried putting the aforementioned code in its own product file and then
passing that through ConTeXt with the book's environment, but the
problem is that the TOC now has nothing in it, of course.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Dump table of contents

2012-04-08 Thread Aditya Mahajan

On Sun, 8 Apr 2012, Kip Warner wrote:


Hey list,

Is it possible to instruct ConTeXt to generate just the table of
contents, skipping all other front matter, back matter, appendices, body
matter, etc.? For example, only the following I'd like to see in the
outputted PDF:

   % Contents at a glance...
   \title{Contents at a Glance}
   \placelist[chapter]

   % Complete table of contents...
   \title{Table of Contents}
   \placecontent

Right now I am generating the full book, but then passing through pdftk
manually to extract just the pages that fall within the aforementioned.

I tried putting the aforementioned code in its own product file and then
passing that through ConTeXt with the book's environment, but the
problem is that the TOC now has nothing in it, of course.


I don't know if there is proper interface to this, but you can just load 
the tuc file and reuse the labels.


\def\loaddatafile#1%
{\ctxlua {
job.initialize(#1.tuc,#1.tua)
}}%

\loaddatafile{full-book} %with the .tex extension

\starttext
\placelist[chapter]
\stoptext


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