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: Sat, 29 Jul 2017 11:13:21 +0200	[thread overview]
Message-ID: <2b47374b-8315-2f36-1c26-dc6bce2249bf@gmx.es> (raw)
In-Reply-To: <2212308.DHfQVj0Eab@gump>

On 07/29/2017 04:45 AM, Gerion Entrup wrote:
> Was not that simple, but I found the problem, that causes it:
> subsubsections without numbers.
> [...]
> Is there a way to fix this?

I would say this may be a bug.

I don’t know how it is implemented, but prefixsegments (or prefixes) for
captions only work when number is enabled.

This makes sense if the section is part of the prefixsegments, but not
if it isn’t.

Another sample that shows the problem:

    \mainlanguage[de]
    \setupexternalfigures[location=default]
    \setuphead[subsection][number=no]
    \setupcaptions[prefixsegments=chapter]
    \setuphead[subsubsection][number=yes]

    \starttext

    \chapter[title=Kapitel]
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]}

    \section[title=Abschnitt]
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]}

    \subsection[title=Hier gibt’s ein Problem]
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]}

    \subsection[title=Und hier gibt’s ein Problem auch]
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]}

    \subsubsection[title=Aber hier gibt’s kein Problem]
    \placefigure{Eine Kuh}{\externalfigure[cow.pdf][scale=250]}
    \stoptext

If this isn’t a bug, the code to avoid the problem is too tricky for me
(and simply far beyond my knowledge).

Excuse my ignorance,

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
___________________________________________________________________________________

  reply	other threads:[~2017-07-29  9:13 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
2017-07-29  2:45   ` Gerion Entrup
2017-07-29  9:13     ` Pablo Rodriguez [this message]
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=2b47374b-8315-2f36-1c26-dc6bce2249bf@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).