mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Removing deeply nested headlines from toc


Chronological Thread 
  • From: Alvaro Tejero Cantero <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Removing deeply nested headlines from toc
  • Date: Fri, 24 Feb 2012 23:03:10 +0000
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of address@hidden designates 10.236.201.201 as permitted sender) smtp.mail=address@hidden; dkim=pass header.i=address@hidden

Spoke too soon: with the redefinition described above, the TOC
miscounts pages, e.g. the total is 102 but the document has over 170.

-á.



On Fri, Feb 24, 2012 at 21:41, Sam Liddicott <address@hidden> wrote:
> I also propose that blank paragraphs should not be rendered which would
> solve other problems were conditional blocks show as a blank paragraph when
> they try to hide.
>
> Sam
>
> On Feb 24, 2012 9:35 PM, "Alvaro Tejero Cantero" <address@hidden> wrote:
>>
>> Hi,
>>
>> For the record, I assigned paragraph-toc to a macro with one argument
>> and no body and obtained the desired result (paragraphs, which are
>> depth level 4 in book.ts, didn't show anymore in the TOC).
>>
>> For user friendliness, I do think it would be convenient to endow the
>> toc macro with an optional depth argument, since this is a very common
>> manipulation (and use a reasonable, maybe style-dependent, default).
>>
>> Thanks!
>>
>> -á.
>>
>>
>>
>> On Fri, Feb 24, 2012 at 20:41, Joris van der Hoeven
>> <address@hidden> wrote:
>> > Hi Alvaro,
>> >
>> > You may redefine the macros section-toc, subsection-toc, ...
>> >
>> > Best wishes, --Joris
>> >
>> >
>> > On Fri, Feb 24, 2012 at 05:51:49PM +0000, Alvaro Tejero Cantero wrote:
>> >> I am trying to remove headings of level 4 (and superior) from the
>> >> table of contents (TOC).
>> >>
>> >> The documentation says that macros like <toc-4|contents|where> can be
>> >> overriden to achieve that. I have tried it and it works, after
>> >> update->styles and document->update->toc (potentially several times).
>> >>
>> >> However, with <assign|toc-4|<macro|contents|where|>> (i.e., empty body
>> >> of macro)
>> >>
>> >> a blank line is still inserted.
>> >>
>> >> How can it be removed?
>> >>
>> >> -á.



Archive powered by MHonArc 2.6.19.

Top of page