From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30699 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "R (Chandra) Chandrasekhar" Newsgroups: gmane.text.pandoc Subject: Re: Is there a YAML metadata option for `--shift-heading-level-by` on the command line? Date: Tue, 7 Jun 2022 13:31:02 +0530 Message-ID: <884ca060-dab6-8730-fe09-a46d66238883@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQPFLNGRAERB34L7SKAMGQEFMTFCTQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 07 10:01:55 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyU9y-0004d5-T5 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Jun 2022 10:01:54 +0200 Original-Received: by mail-yb1-f187.google.com with SMTP id e75-20020a25e74e000000b0066128644d3dsf9287058ybh.1 for ; Tue, 07 Jun 2022 01:01:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654588914; cv=pass; d=google.com; s=arc-20160816; b=pFKpusFfYPgHxBfLMBply9ebrhwvGgKD3EoMYga9+P21ykg9O5AhCfL74MkxeRsfn4 AJ1fIRRO3piyV+5iJxoEl6mIYnsb/HR+vRXgZG+onYBO8sVUtoPy8/HznX/SnUB66S8g bn5/x2WC1tB0uU7tVX/g/Z5JqTs81zjeQudK2lp2ImkT+x115xkS8FlluyjWEneGiH/+ AqhKvL9bxKqHp4OqUueZWscIaptRijZg0xxRgqA5iBHG3qiupa/WpqzJId0HMcUPNncp siLN3DbOhyT5CH4QLC3yPFu38PL3c0Gk2KXhVVvtrVUOudn2OeIItlLrZ5IZ15kbtiGn MI5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to:references:to :from:content-language:subject:user-agent:mime-version:date :message-id:sender:dkim-signature:dkim-signature; bh=mBgNzWqkzknQaX1AS5U7edH3DWr1dXArHuvhTwUbKMM=; b=xy6n3Ni2ylL7UhFnjvbF2Tgxl1gRwvHT+ARcoRza+Cace5ko9UUsGEZc8uoqlpfWgw ez3Q6knk6ScA0lhD6JbYF6dx6ykvJ2pDalrzE/DSDy8mUv4JJb3OSeB0LW7bEP5NS4oJ um6eY4MPPD3gmBMZjJZczj0EERlx135m15Rw4ppma/J30RP9nyQ55QVEl3bQqebikaW5 48M67H0nAHY2G3XF4feCRh7gg4GK27iZ0F0CZNiquHVRfFFWwwyac3vEDVSDSlIHs/oh 6RwOoPPEpETdXjaMUQbXgwFzezOfpCUEGkKB3NqwuVDOxhb16W7+4cQFl3OQDjVFxUaH GCGw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxYYLVRa; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=mBgNzWqkzknQaX1AS5U7edH3DWr1dXArHuvhTwUbKMM=; b=CgtqcDclIBjvo5ViYEEDq7lOvx78qPjXnJ4x4AEoWTs5rPTUKabSeW6K0UScIvoVlr Hk3Xt/Smy4fNddJHQolJ0v3iAvZQrY8GjqN7zwK/2DMrBnxQqenV9V7xWHUrNLqGc1Ct bcsOzfRSAqLOaaJv4F1uzqX4iE0SfICxxnFO6FfbgT3rhAvwpBtS6Z/LbPOwPswJIjlm tBF6Yhm1c5xM/L5X05hhcAe/sAkp/e1iGj0OoMijplKPsjKsEFz4fZYUbek5TnXubgUm BkbdNlprIb8SGMfUWl2VsKCK/gzypBEJpVW1NzqW++K2Ln41Dkl3rfTCKPehbYh9wzhl +bWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:references:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=mBgNzWqkzknQaX1AS5U7edH3DWr1dXArHuvhTwUbKMM=; b=YR/dDYLvUHyRMuXiCoYMdYX+rqL/iQfWkcw+8NoKZk/C9yqf8RAUJIBrgZMeJEsSPs r7Hdkec5ojowP5ApaW6oxm8TgDlG2hHhM/HxusJqlRJd0i9XW3a0akzPSsR40ToptaGR 7gXexKrUcAoAQq0pvMpMNntAcNVtpJRac2qsE0CC7M58ArPhkJ3Xd5G+bM9F+r8SD//5 Mo3HH3wSrZ//0c7JJMIK8dOOexTuUbKKz69+JsBZyX9FwkEgLhuZh0ZCTALwKslJ1Kw8 kjX7eItx/6ZY+0ddT61XsQ5Q0vIhJ7Be3TQohcxaa4atfAVQAdqSf+LrvDOrv9cUdMi+ LI0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:message-id:date:mime-version:user-agent :subject:content-language:from:to:references:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=mBgNzWqkzknQaX1AS5U7edH3DWr1dXArHuvhTwUbKMM=; b=qj35d7DXxHUEFCQLBbIKoqFMsYZzF/+wue0h3r3HRY+nqTm3jx6N70IzhttaoNW/GP uBscUnQp38oREz4snABWIHZP/baeSIwEDkPyII8AacCJ2zE3+6IlafOHkvjpDOykruF8 jjAlqhd8QT0nGrp/Nd+NXIFZNFAYAtiIcj8ltTByH/Lvl9wz50hMsinq1z4kpI6853LB ZqMCuAFt+CPhI8kGwPhbgYwWAFqfauOYaP4XOWurY/mT1QhHJCXb71lQZ3iZbujkho9X oJyfxDnXY8Fu4ELbwEd67rI0WwQni5HmpLP5uYthzUlaNJJG6eB25LfGzmMAYhwowvjS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530oAV04+N0jXuloBkoFPcXz6i5AOfzpqKy88zvi/sJ50A9mMfTn vWK+YAKSqtPEZdluFVVw1OQ= X-Google-Smtp-Source: ABdhPJzTcORy6xxqaqeJd6neudWtpfDqBINO4l+04D5lhCio5qrxWZMMJtUOsE/wD5OtST4RnEu8eA== X-Received: by 2002:a25:6141:0:b0:663:2893:ab0 with SMTP id v62-20020a256141000000b0066328930ab0mr18354381ybb.308.1654588913744; Tue, 07 Jun 2022 01:01:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:2fce:0:b0:30f:9fc1:d286 with SMTP id v197-20020a812fce000000b0030f9fc1d286ls2176276ywv.2.gmail; Tue, 07 Jun 2022 01:01:50 -0700 (PDT) X-Received: by 2002:a81:b652:0:b0:30c:480d:96d2 with SMTP id h18-20020a81b652000000b0030c480d96d2mr30052128ywk.170.1654588910852; Tue, 07 Jun 2022 01:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654588910; cv=none; d=google.com; s=arc-20160816; b=qYDPj/3zbtrpAoPSm2Z19TIG9hnd/x7z7aBs7vvjcOuDLyw3mN2InixStHWWumcAwR Gt4jLJyzEY8KzbypgVkzh2pyrXtKOo/xUQAZ40OZyeAM8M3xZOZnISEJptESqqAHEzz3 q9eBF6ije3qHSAF23hJK5zgawOvbjfwsDlRZdzh6EB4kserPYJUXWy0+i9A8diXGUAU4 KAsnu9936EveqT0XxIqoeidtjRpS9Xphk8GOjfcAfbkqerz0YL9DPHAckG6eqjV5Fbzw Olen4kYuHdv6px+HsmRNSVkZFgLsB4u5HopCL+iXTbkorEibMmBgarAmxDDh4+kdVJ5U 4K/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=uNbquwEqS4qUTQ87nR1ZEKDimf5IjRkRLU7/ABP1fRg=; b=clONOQcCGXFLmmdWo69UM683pTEh9L1YfXFoOXafQBB7v/6bNqZhg7FpH7YyqMvjjr 6LICqis3BDxzmITJl6Y+FpoQS/gy1cytmpJbNOUd82Tk/9BcAW0rFMiCk03irG10j2A3 PIISMsstLL3AfRgdZzMC4S/wiw0Op6V8ONO2UsxCnbcffAqOx5uK0MTYFNzrSAUaLgin m+iIdz81bR28sM3z5XrU/li7PtVkCRlUItK1TQQIWF1Pv5W5x7WFCdUzZpB/C4sG94VU fFkr7CcJM1hdsewI5tEPO2FqzhCKt1KqND3C5ymYBwJ+/aQ2Pgj5yvjhMZtjNJOreY46 iVsQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxYYLVRa; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id a9-20020a056902144900b0065c507e98c6si982794ybv.0.2022.06.07.01.01.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 01:01:50 -0700 (PDT) Received-SPF: pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id w3so14154758plp.13 for ; Tue, 07 Jun 2022 01:01:50 -0700 (PDT) X-Received: by 2002:a17:90a:86c8:b0:1e3:52ee:953d with SMTP id y8-20020a17090a86c800b001e352ee953dmr37091154pjv.171.1654588909800; Tue, 07 Jun 2022 01:01:49 -0700 (PDT) Original-Received: from [192.168.0.2] ([103.28.246.51]) by smtp.gmail.com with ESMTPSA id gb23-20020a17090b061700b001d95c09f877sm11346665pjb.35.2022.06.07.01.01.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 01:01:49 -0700 (PDT) Content-Language: en-GB In-Reply-To: X-Original-Sender: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxYYLVRa; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30699 Archived-At: So far, I have succeeded in getting the desired numbering by: 1. Adding shift-heading-level-by: -1 after the line specifying the reader in my defaults file. 2. Adding numbersections: true in the YAML metadata block that specifies the title, etc., in my source file. Thus, I get 1 for the first level-2 heading in my source file. Moreover, I can turn the numbering on or off per individual source file from its YAML metadata block, rather than having to generate a separate default file just for turning section numbering on or off with 1 for level-2 headings. However, if I move the line shift-heading-level-by: -1 from the defaults file to the YAML metadata block in my source file, the numbering starts at 0.1 rather than 1 for the first level-2 heading. Finally, I have found that there are three ways to turn numbering on or off: (a) to turn section numbering on in the command line, I need to use `--number-sections` (b) to turn it on in the defaults file I need to specify `number-sections: true` (c) but to turn it on in the YAML metadata block, I need to specify `numbersections: true` without an intervening hyphen. Is this deliberate or an artefact of history? Chandra 2022-06-07 On 06/06/2022 23:28, R (Chandra) Chandrasekhar wrote: > All my section headings start at level 2, and I wish to number them > starting at that level, with no numeric prefix. > > I am also hoping that I would be able to enshrine my choice in a default > file. > > Is there a YAML metadata option for `--shift-heading-level-by` on the > command line that could either be used in a defaults file, or in the > YAML metadata block of the source file?? > > Thanks. > > Chandra