ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Couple of questions
Date: Fri, 28 Jul 2017 17:05:59 +0200	[thread overview]
Message-ID: <2ad4ae92-3f4b-d4ad-4376-2f99f28100e4@gmx.es> (raw)
In-Reply-To: <1681837.mJoWgxQu02@gump>

On 07/28/2017 02:22 AM, Gerion Entrup wrote:
> 2. Own title format
> I've set an own title format for chapters, like described in the wiki. 
> Unfortunately this applies to the table of contents and bibliography as well.
> Below a minimal example, that reproduces it:
> ```
> \setupinteraction[state=start]
> 
> \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
>         {\vbox{\headtext{chapter} #1\blank#2}}}
> 
> \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, header=empty, page=mychapterpagebreak]
> \setupheadtext[chapter=Chapter, content=Table of Contents]
> 
> \starttext
> \completecontent
> \page[yes]
> 
> \startchapter[title=foo]
> 
> \stoptext
> ```
> How can I prevent the printing of "Chapter" in the table of contents and
> bibliography?

Hi Gerion,

play with the sample, in order to see what fits you best:

\setupinteraction[state=start]

\define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
        {\vbox{\headtext{chapter} #1\blank[small]#2}}}

\setuphead[chapter][command=\MyChapter,
style={\switchtobodyfont[24pt,ss]}, header=empty, page=mychapterpagebreak]

\startsectionblockenvironment[bodypart]
    \setupheadtext[chapter=Chapter]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
    \setupheadtext[chapter=Appendix]
\stopsectionblockenvironment

\starttext
\startfrontmatter
\chapter{Table of Contents}\placecontent
\stopfrontmatter

\startbodymatter
\startchapter[title=foo]
\stopbodymatter

\startappendices
\chapter{Bibliography}
\stopappendices

\startbackmatter
\chapter{Bibliography}
\stopbackmatter

\stoptext

> 5. Numbering of floats
> I want a numbering for my figures in this format:
> way=bychapter, prefixsegments=chapter
> 
> I guess, this is the default, but I've explicitly set it.
> In some captions the prefix is ignored. For example there are 5 figures in 
> chapter 2, then the captions of the figures (the text is in German) are:
> Abbildung 2.1   foo
> Abbildung 2.2   bar
> Abbildung 3    foobar
> Abbildung 4    otherfoo
> Abbildung 5    lastfoo
> 
> Is there anything, I can do, to prevent this?

I cannot reproduce the problem you mention:

\mainlanguage[de]
\starttext
\dorecurse{5}{\chapter{Kapitel}
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf]}}
\chapter{Kapitel}
    \dorecurse{5}{\placefigure{Eine andere Kuh}
        {\externalfigure[cow.pdf]}}
\dorecurse{5}{\chapter{Kapitel}
    \placefigure{Noch eine andere Kuh}{\externalfigure[cow.pdf]}}
\stoptext

In general, please provide minimal samples of code that show your problem.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2017-07-28 15:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-28  0:22 Gerion Entrup
2017-07-28  0:35 ` Aditya Mahajan
2017-07-28  5:50 ` Jan Willem Flamma
2017-07-28 14:34 ` Pablo Rodriguez
2017-07-28 17:19   ` Gerion Entrup
2017-07-28 15:05 ` Pablo Rodriguez [this message]
2017-07-29  2:45   ` Gerion Entrup
2017-07-29  9:13     ` Pablo Rodriguez
2017-07-30 20:51       ` Gerion Entrup
2017-07-31  6:01         ` Jan Willem Flamma
2017-07-31 13:32           ` Gerion Entrup
2017-07-31 15:15           ` Pablo Rodriguez
2017-07-31 15:34             ` Jan Willem Flamma
  -- strict thread matches above, loose matches on Subject: below --
2008-07-03 15:58 abbg770
2008-07-03 16:07 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ad4ae92-3f4b-d4ad-4376-2f99f28100e4@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).