From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105198 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Unexpected behavior of subsection labels Date: Sun, 6 Oct 2019 23:49:09 +0200 Message-ID: <72a1cce7-fe79-afb8-acaa-8fdd900bd194@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1699860828056874940==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="215425"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.5.2 To: mailing list for ConTeXt users , "Jairo A. del Rio" Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 06 23:49:47 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHEPT-000tsK-4E for gctc-ntg-context-518@m.gmane.org; Sun, 06 Oct 2019 23:49:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48ADA1615BC; Sun, 6 Oct 2019 23:49:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WITvHeQijFA9; Sun, 6 Oct 2019 23:49:20 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B3A3F161850; Sun, 6 Oct 2019 23:49:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C08C161847 for ; Sun, 6 Oct 2019 23:49:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LNmqdVMGeSfJ for ; Sun, 6 Oct 2019 23:49:18 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.42; helo=mail-wr1-f42.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 43B171615BC for ; Sun, 6 Oct 2019 23:49:18 +0200 (CEST) Original-Received: by mail-wr1-f42.google.com with SMTP id y19so12943127wrd.3 for ; Sun, 06 Oct 2019 14:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=4YR95j4Gd8DheUhrRlWBtp7cTFkpWOpNw4OqT5N+d3E=; b=Qf+k5FzAm0gQ7Za1Zsu1bHysWdcX4XXA82QRXPvpWhEu+18VXfdwAlJsOC0Z3fQXus JxAHBVgOh0/yb723MQSOIp4pg5PjFNDHQcgVqYDGwdRcOAxnXWXA/X8p3dCmLvvtzR2x lSRtuTJa87b/wTq4CYXONV6ETxsCCDqjPQ8xJ0dwazX1egKvfE4J9I8VFho1ZdIEVCrk RLHqeYIz/uwkZB4v79IPSifXabA5AESp8xZqdCOWTZhNZZy2GTRJ1SWFo/atXU/f4FQn rCVmvxdb7fSz6EtsbLbR+YNAmjwA20BL5KqDA+hqoLt8I8VTmN/0stiiVq1uS9YBsie0 0WJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=4YR95j4Gd8DheUhrRlWBtp7cTFkpWOpNw4OqT5N+d3E=; b=LGmkXgWo1XlDJYwNjjZPavbjEbRUIVcApw9m9H8iUfHf0LmPBR6zSBuRiuVUzpfztS d+XHQuaoIzLZsZT+lg9/UBFQrshv2IJvFoWsgIk9F831OhzNiPmV3JN/+WOFWIcpyasI yT+Zaorwt5uo4i5kBCR/CVkIcM1tByhtzlX04Qy8V8cK6VyCAsNtj5Vql53mUdQpc8t5 GGycj6owrLvfPFb9IYf3QvIqI4AsO7b2rKT+ynZvCMTfcRywlzawqxX9jw8S1uMagHRl 8tu9YaZ9VvHAzBlTZXLVGX5+iVjx2+8NQIiWZSBBCjzJ1CCf5IGXHMjlJ9M5VdafQ6WM BpIg== X-Gm-Message-State: APjAAAXMFpbKB3jt9GCHrSAMi76rHKcmyekgGoaM53G+FwlTOoPtcwNH 16iWdWsrPgyv8/LfSx6meCQ= X-Google-Smtp-Source: APXvYqz6+P12Rj0OXRyOyYKEeLYbGQtsnkIvxUkfogS5VJGfLon9ISS8Z6bIhdTkNI5QPvTp5au30g== X-Received: by 2002:adf:ef0d:: with SMTP id e13mr20734474wro.300.1570398557813; Sun, 06 Oct 2019 14:49:17 -0700 (PDT) Original-Received: from [192.168.1.9] (x5f7540a8.dyn.telefonica.de. [95.117.64.168]) by smtp.gmail.com with ESMTPSA id x5sm11220731wrt.75.2019.10.06.14.49.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Oct 2019 14:49:17 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105198 Archived-At: This is a multi-part message in MIME format. --===============1699860828056874940== Content-Type: multipart/alternative; boundary="------------5248C2AD8FC8A0D65750BBD6" Content-Language: en-US This is a multi-part message in MIME format. --------------5248C2AD8FC8A0D65750BBD6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi, 1. Try to make shorter example because your example contains too much stuff for a minimal example. 2. You forgot \starttext in your example. 3. Your fonts don't contain greek letters which explains the missing counter in the PDF. Did you check if the fallback fonts are loaded. \setuphead   [section]   [number=no] \setuphead   [subsection]   [number=yes,    sectionsegments=subsection,    conversion=g] \setupbodyfont[dejavu] \starttext \completecontent \chapter{yay} \section{wow} \subsection{Text} \stoptext Wolfgang Jairo A. del Rio schrieb am 06.10.2019 um 23:29: > I tried the following > > \setuphead[chapter][align=middle,header=empty,footer=empty] > \setuphead[section][align=middle,number=no] > \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] > \mainlanguage[spanish] > \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, > force=yes] > \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, > force=yes] > \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, > force=yes] > \definefallbackfamily[mainface][rm][Noto Serif CJK > KR][preset=range:korean, force=yes] > \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, > force=yes] > \definefallbackfamily[mainface][ss][CMU Sans > Serif][preset=range:greek, force=yes] > \definefallbackfamily[mainface][tt][CMU Typewriter > Text][preset=range:greek, force=yes] > \definefontfamily[mainface][rm][Latin Modern > Roman][sc=file:lmromancaps10regular] > \definefontfamily[mainface][ss][Latin Modern Sans] > \definefontfamily[mainface][tt][Latin Modern Typewriter] > \definefontfamily[mainface][mm][Latin Modern Math] > \setupbodyfont[mainface,10pt] > \setuplayout[backspace=2cm,topspace=2cm] > \definepapersize[nice][width=180mm,height=250mm] > \setuppapersize[nice][nice] > \setupinteraction[state=start] > \placebookmarks[chapter,section,subsection][chapter,section,subsection] > \setupinteractionscreen[option=bookmark] > \setupindenting[medium,yes] > \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] > \startsectionblockenvironment [bodypart] > \setcounter [userpage] [1] > \stopsectionblockenvironment > \setuppagenumbering[location=,alternative=doublesided] > \setupheadertexts[\setups{text right}][][][\setups{text left}] > \startsetups[text right] > \rlap{} > \hfill > \sc \getmarking[section] > \hfill > \llap{\userpagenumber} > \stopsetups > \startsetups[text left] > \rlap{\userpagenumber} > \hfill > \sc \getmarking[chapter] > \hfill > \llap{} > \stopsetups > \startfrontmatter > Hello > \completecontent > \stopfrontmatter > \startbodymatter > \startchapter[title=yay] > \startsection[title=wow] > \startsubsection[title=Text] > Bye > \stopsubsection > \stopsection > \stopchapter > \stopbodymatter > \stoptext > > What is puzzling to me is the absence of subsection labels. What I > expect is: > > 1. Yay >    Wow >       α. Text > > However, what I've got is: > > 1. Yay > Wow >       Text > > It's weird that bookmarks and TOC correctly show α before "Text". I > don't know what is wrong. Thank you in advance. > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------5248C2AD8FC8A0D65750BBD6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi,

1. Try to make shorter example because your example contains too much stuff for a minimal example.

2. You forgot \starttext in your example.

3. Your fonts don't contain greek letters which explains the missing counter in the PDF. Did you check if the fallback fonts are loaded.

\setuphead
  [section]
  [number=no]

\setuphead
  [subsection]
  [number=yes,
   sectionsegments=subsection,
   conversion=g]

\setupbodyfont[dejavu]

\starttext

\completecontent

\chapter{yay}

\section{wow}

\subsection{Text}

\stoptext

Wolfgang


Jairo A. del Rio schrieb am 06.10.2019 um 23:29:
I tried the following

\setuphead[chapter][align=middle,header=empty,footer=empty]
\setuphead[section][align=middle,number=no]
\setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g]
\mainlanguage[spanish]
\definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes]
\definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes]
\definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes]
\definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes]
\definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes]
\definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes]
\definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes]
\definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular]
\definefontfamily[mainface][ss][Latin Modern Sans]
\definefontfamily[mainface][tt][Latin Modern Typewriter]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,10pt]
\setuplayout[backspace=2cm,topspace=2cm]
\definepapersize[nice][width=180mm,height=250mm]
\setuppapersize[nice][nice]
\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section,subsection]
\setupinteractionscreen[option=bookmark]
\setupindenting[medium,yes]
\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{}
\hfill
\sc \getmarking[section]
\hfill
\llap{\userpagenumber}
\stopsetups
\startsetups[text left]
\rlap{\userpagenumber}
\hfill
\sc \getmarking[chapter]
\hfill
\llap{}
\stopsetups
\startfrontmatter
Hello
\completecontent
\stopfrontmatter
\startbodymatter
\startchapter[title=yay]
\startsection[title=wow]
\startsubsection[title=Text]
Bye
\stopsubsection
\stopsection
\stopchapter
\stopbodymatter
\stoptext

What is puzzling to me is the absence of subsection labels. What I expect is:

1. Yay
   Wow
      α. Text

However, what I've got is:

1. Yay
   Wow
      Text

It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance.


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

--------------5248C2AD8FC8A0D65750BBD6-- --===============1699860828056874940== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1699860828056874940==--