ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* table of contents
@ 2012-07-09  9:43 Meer, H. van der
  2012-07-09  9:54 ` Wolfgang Schuster
  0 siblings, 1 reply; 47+ messages in thread
From: Meer, H. van der @ 2012-07-09  9:43 UTC (permalink / raw)
  To: ConTeXt NTG

Is there a simple manner to restrict the table of contents to chapter and section, excluding subsections, subsubsections?

Now I use (and get all)

\startfrontmatter% the table of contents
  \setuppagenumber[number=1,numberconversion=romannumerals]
  \completecontent
\stopfrontmatter

I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
Could not find it on the wiki, but I might have missed the right search term.

Hans van der Meer



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


^ permalink raw reply	[flat|nested] 47+ messages in thread
[parent not found: <mailman.198.1457685375.2302.ntg-context@ntg.nl>]
* Table of Contents
@ 2016-03-10 20:45 Aidan Nichol
  2016-03-10 22:48 ` Pablo Rodriguez
  0 siblings, 1 reply; 47+ messages in thread
From: Aidan Nichol @ 2016-03-10 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I’m using using pandoc and ConTeXt to generate pdf documentation from markdown.

I started with the option to use latex (xetex) and swapped to ConTeXt, letting pandoc create the conTeXt file and invoke ConTeXt on it.C
Both produce a table of contents active links etc. which is pretty much identical but the xetex version in my various pdf readers can show it in side panel referred to as Table of Contents or outline. This is really nice because it makes it just a click or swipe away.

Following advice from Pablo I’ve swapped over to generating XHTML and using the XML mapping ability to generate ConTeXt and the PDF. Using this route the TOC looks the same but it’s no longer there in the outline panel.

What do I need in addition to 
\completecontent
to get this feature to work?

Aidan

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

^ permalink raw reply	[flat|nested] 47+ messages in thread
* table of contents
@ 2015-09-28 12:27 Meer, Hans van der
  2015-09-28 13:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 47+ messages in thread
From: Meer, Hans van der @ 2015-09-28 12:27 UTC (permalink / raw)
  To: NTG ConTeXt

I would like to restrict the tableofcontents to chapters only, leaving the sections etc. out.
 \completecontent does not seem the right command here.

I am sure it is simple, but I don't see it. How to accomplish?

Hans van der Meer




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

^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of contents
@ 2012-04-04 12:20 John Devereux
  2012-04-05  7:14 ` John Devereux
  0 siblings, 1 reply; 47+ messages in thread
From: John Devereux @ 2012-04-04 12:20 UTC (permalink / raw)
  To: ntg-context

Hi all,

Feeling stupid...

I updated my context MKIV to the latest version, was working with one
~1y old.

I can't get a table of contents to work at all for some strange reason,
am I misunderstanding something basic? I have tried all sorts of
variants, but a test case and log follows. 

Thanks,

John


======================================================================
%-*-context-*-
\starttext
\completecontent
\section{One}
some text
\stoptext
======================================================================


mtx-context     | run 1: luatex --fmt="/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./test.mkiv" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.
(test.mkiv

ConTeXt  ver: 2012.04.02 22:23 MKIV  fmt: 2012.4.4  int: english/english

system          > cont-new.mkiv loaded
(/home/jd/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > test.top loaded
(test.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
{/home/jd/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown: library 'loc'
{/home/jd/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/jd/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
structure       > sectioning > title @ level 2 : 0.0 -> \headtext {content}
! Undefined control sequence.

system          > tex > error on line 11 in file test.mkiv: Undefined control sequence ...

1     %-*-context-*-
2     \starttext
3     \completecontent
4     \section{One}
5     some text
6     \stoptext
7     


\12>:77>:abc ...trc_lists_get_reference_attribute 
                                                  \v!all \strc_lists_get_des...
\strc_lists_apply_renderingsetup ...nderingsetup }
                                                  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
                                                  \dostoptagged \listextrapa...
l.11 {}
       
\ctxcommand ...\directlua \zerocount {commands.#1}
                                                  
\doplacestructurelist ...s = "#4", order = "#5" }}
                                                  \dostoptagged 
...
l.4 \section
            {One}
? ! Interruption.

system          > tex > error on line 11 in file test.mkiv: Interruption ...

1     %-*-context-*-
2     \starttext
3     \completecontent
4     \section{One}
5     some text
6     \stoptext
7     

<to be read again> a
                    l
\v!all ->al
           l
\12>:77>:abc ...ts_get_reference_attribute \v!all 
                                                  \strc_lists_get_destinatio...
\strc_lists_apply_renderingsetup ...nderingsetup }
                                                  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
                                                  \dostoptagged \listextrapa...
l.11 {}
       
...
l.4 \section
            {One}
? 
! Emergency stop.

system          > tex > error on line 11 in file test.mkiv: Emergency stop ...

1     %-*-context-*-
2     \starttext
3     \completecontent
4     \section{One}
5     some text
6     \stoptext
7     

<to be read again> a
                    l
\v!all ->al
           l
\12>:77>:abc ...ts_get_reference_attribute \v!all 
                                                  \strc_lists_get_destinatio...
\strc_lists_apply_renderingsetup ...nderingsetup }
                                                  \relax \the \t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname 
                                                  \dostoptagged \listextrapa...
l.11 {}
       
...
l.4 \section
            {One}
!  ==> Fatal error occurred, no output PDF file produced!

-- 

John Devereux
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of contents
@ 2011-05-23 17:18 Oliver Buerschaper
  2011-05-23 17:27 ` Wolfgang Schuster
  0 siblings, 1 reply; 47+ messages in thread
From: Oliver Buerschaper @ 2011-05-23 17:18 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Dear all,

is it possible to have entries in the table of contents not indented at all whenever they stem from unnumbered headings? For example:

---
\starttext


\startfrontmatter
    \completecontent
    
    \chapter{Preface}
\stopfrontmatter


\startbodymatter
    \part{Test}
    \chapter{Tufte}
    \chapter{Bryson}

    \part{Test}
    \chapter{Tufte}
    \chapter{Bryson}
\stopbodymatter


\startbackmatter
    \chapter{Acknowledgements}
\stopbackmatter


\stoptext
---

Many thanks,
Oliver
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 47+ messages in thread
* table of contents
@ 2010-04-29 10:12 Marius
  2010-04-29 10:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 47+ messages in thread
From: Marius @ 2010-04-29 10:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

There must be two tables of contents in my document, one in a native
language and the other in english. In LaTeX I made new commands
\enchapter, \ensection, etc., which I use just after the \chapter or
\section command.

How do I make such commands in ConTeXt, so that these commands just
insert a line into the english table of contents, but do not insert
chapter or section in the current page?

Thanks,
Marius
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of contents
@ 2010-03-21  9:18 Alain Delmotte
  2010-03-21  9:36 ` Mari Voipio
  2010-03-21  9:37 ` Wolfgang Schuster
  0 siblings, 2 replies; 47+ messages in thread
From: Alain Delmotte @ 2010-03-21  9:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi!

I have two question about table of contents.

1) is it possible to have the toc at the end of the document.
I tried to place \placecontent or \completecontent at the end and it 
didn't work; I only managed to have the toc at the beginning of the 
document.

2) If I define my own header (like in ConTeXt an excursion: 5. Headers) 
and so, for example, replacing \section by \myheader, which has a 
section level, the table of content is empty!

If the information is in another document, please give me a pointer, thanks!

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


^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of Contents
@ 2003-06-18 17:44 John Culleton
  2003-06-18 18:16 ` wmcclain
  2003-06-18 18:25 ` Idris S Hamid
  0 siblings, 2 replies; 47+ messages in thread
From: John Culleton @ 2003-06-18 17:44 UTC (permalink / raw)


I want to typeset a book with chapters and sections, but with no numbering, 
either on the chapter heading itself or in the TOC. I do want both chapters 
and sections in the TOC. I prefer the dotleader layout (alternative=c).

I have spent two days now chasing down blind alleys. What is the shortest way 
to achieve this goal?
-- 
John Culleton
Able Typesetters and Indexers

^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of Contents
@ 2002-08-16 18:20 Peter Denisevich
  2002-08-18 12:11 ` Hans Hagen
  0 siblings, 1 reply; 47+ messages in thread
From: Peter Denisevich @ 2002-08-16 18:20 UTC (permalink / raw)


Hi,
Like Kris Hermans, I can't get Context to generate a TOC.  It was working with 
the version on from TexLive 7 (installed from my TUG CDROM) but since 
upgrading to Context 7.26.02 *AND* 8.15.02 it's broken.  Minimal testfile:

\starttext
\placecontent
\chapter{First}
The quick red fox
\stoptext

Output:
<snip>
systems        : begin file tt at line 1
! Undefined control sequence.
\ExpandCommand [#1][#2]->\dobeginoflist 
                                        \dostellijstin [#1][#2]\doutilities 
...

\doplaatssamengesteldelijst ...gesteldelijst ][#2]
                                                  \stoplistreferences 
{#1}\e...
<to be read again> 
                   \chapter 
l.3 \chapter
            {First}
? 
<snip>

BTW:  This is the 1st time I've upgraded Context.  What I did was:  
1) unzip *.zip's into /usr/share/TeX/texmf-local (local tree _was_ previously 
empty, so I downloaded _all_ the zips).

2) Copy ../perltk/* to /usr/share/TeX/texmf/context/perltk -- since TL7 has a 
wrapper script in TEXHOME/bin/i386-linux that calls texexec.pl.
3) texhash, texexec --make, texhash

Is this approximately correct?  In the future I would normally just upgrade 
the fmt zip...

Regards,
Peter
-- 
"'I could have done it in a _much_ more complicated way', said the Red Queen,
 immensely proud."  -- quoted in Froberg, Intro. to Numerical Analysis, 1969.


^ permalink raw reply	[flat|nested] 47+ messages in thread
* table of contents
@ 2002-08-15 14:29 Kris Hermans
  2002-08-15 16:11 ` Hans Hagen
  0 siblings, 1 reply; 47+ messages in thread
From: Kris Hermans @ 2002-08-15 14:29 UTC (permalink / raw)


Hi,

I create a table of contents as follows:

in the style.tex:
\setupcombinedlist[content][alternative=c,aligntitle=no,width=2.5em]

in the doc.tex:
\placecontent

This worked before, but since I upgraded to the latest beta, apparently it
is broken. How can I fix this?

My context version:
ConTeXt  ver: 2002.7.26  fmt: 2002.8.6  int: english  mes: english

thanks,

Kris Hermans.


^ permalink raw reply	[flat|nested] 47+ messages in thread
* Table of contents
@ 2000-09-09 13:25 Zeljko Vrba
  2000-09-09 13:58 ` Berend de Boer
  2000-09-11  8:30 ` Hans Hagen
  0 siblings, 2 replies; 47+ messages in thread
From: Zeljko Vrba @ 2000-09-09 13:25 UTC (permalink / raw)


How can I make table of contents look more like Latex's?
I'd like subsections etc. to be indented.. this is in Latex:

1. section......................1
   1.1 subsection...............1
   1.2 subsection...............2
2. section......................10


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

end of thread, other threads:[~2016-03-12  7:29 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09  9:43 table of contents Meer, H. van der
2012-07-09  9:54 ` Wolfgang Schuster
2012-07-09 10:10   ` Wolfgang Schuster
2012-07-09 11:26   ` Aditya Mahajan
     [not found] <mailman.198.1457685375.2302.ntg-context@ntg.nl>
2016-03-11  9:32 ` Table of Contents Aidan Nichol
  -- strict thread matches above, loose matches on Subject: below --
2016-03-10 20:45 Aidan Nichol
2016-03-10 22:48 ` Pablo Rodriguez
2016-03-12  7:29   ` Wolfgang Schuster
2015-09-28 12:27 table of contents Meer, Hans van der
2015-09-28 13:31 ` Wolfgang Schuster
2012-04-04 12:20 Table " John Devereux
2012-04-05  7:14 ` John Devereux
2012-04-05 10:13   ` Willi Egger
2012-04-05 10:51     ` John Devereux
2011-05-23 17:18 Oliver Buerschaper
2011-05-23 17:27 ` Wolfgang Schuster
2010-04-29 10:12 table " Marius
2010-04-29 10:19 ` Wolfgang Schuster
2010-04-29 13:17   ` Marius
2010-04-29 20:17     ` Marius
2010-04-30  6:55       ` Wolfgang Schuster
2010-04-30  8:41         ` Marius
2010-04-30 11:13           ` Wolfgang Schuster
2010-03-21  9:18 Table " Alain Delmotte
2010-03-21  9:36 ` Mari Voipio
2010-03-21  9:37 ` Wolfgang Schuster
2010-03-21 10:39   ` Alain Delmotte
2003-06-18 17:44 Table of Contents John Culleton
2003-06-18 18:16 ` wmcclain
2003-06-18 18:25 ` Idris S Hamid
2003-06-18 19:38   ` John Culleton
2003-06-18 20:13     ` Idris S Hamid
2003-06-19  0:30       ` John Culleton
2003-06-19 17:08         ` John Culleton
2003-06-20 19:02           ` Idris S Hamid
     [not found]           ` <3EF349DF.88E61AE4@lamar.colostate.edu>
2003-06-21 15:03             ` John Culleton
2003-06-26  8:07               ` Hans Hagen
2003-06-26 16:33                 ` John Culleton
2002-08-16 18:20 Peter Denisevich
2002-08-18 12:11 ` Hans Hagen
2002-08-15 14:29 table of contents Kris Hermans
2002-08-15 16:11 ` Hans Hagen
2000-09-09 13:25 Table " Zeljko Vrba
2000-09-09 13:58 ` Berend de Boer
2000-09-10  7:36   ` Zeljko Vrba
2000-09-10  9:09     ` Mr. Wang Lei
2000-09-11  8:30 ` Hans Hagen

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