From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32671 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: How to overwrite values from default file in the document Date: Sun, 21 May 2023 16:19:07 +0200 Message-ID: <877ct1sqx0.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6309"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBR6TVCRQMGQEK2Z2NGA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 21 16:25:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f57.google.com ([209.85.221.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q0jzn-0001S5-BL for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 21 May 2023 16:25:15 +0200 Original-Received: by mail-wr1-f57.google.com with SMTP id ffacd0b85a97d-30634323dfesf2123797f8f.3 for ; Sun, 21 May 2023 07:25:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684679115; cv=pass; d=google.com; s=arc-20160816; b=xA6Q9lR7EhlZuMFsefLTROAlvXrIBEt+jA+OX9OjI/fStBuiyIU2HAWyB9W3lmd0zn uXwHa2mVALGhObFGCJytMHrqiCUUNbSjG8mWKCltCj/vVxnIduTDuXrl6Lc6JFUVVN3Y 3TE9H2zciLsOzvkM9dEAstci+5IbXVh6JG7ycr9/XpuGNO/VxzMw1xVvOYDDAums/PlE MGUoX64vUaGWIJclp+/mRpCbr7RdeAzhRqiWKbh8h36znKcE3B1ttoHUcMzE+isx92MU BiyYaghvEKpGiUXolixxlXSE3s+jCN2SBI8nQyYbaTXCu86p5G+Zdnih+bKA1lqPwF3Z CN/A== 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:mime-version:message-id :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=hooSeOSbjH4aVpkXikiojZGggmWtgKJgX4pmUVqCtNM=; b=q9lB7TgWXX4DsCVGjXFzUnK/hVQyiqoJUwf62RKprxLFo7OxOWjWjPYBiVgISGy6kQ HrT0sXzgqSqtTXu5NNhm2pvGLsoy0xrWjBZJ8eqNq1uiOrzHwmS6bDKMG+uy3NhWqvmc FE1IpSrf0BZr8V3wxn7CYkAZZ4pu4/0iW2QadtrswPTSX1P5B9/Hs1Djcz8MVkohGycu u5Q08eqNyQVFp0tIh/LJ3fPFo0hTl4sv/PE+cgC70AFmdZMaQ432A0dzumdZN2aXmjyd n3c6fcH4KMYn5BqFU7C7PfKvRhAMOD6JYWI6M9a+P/dB6Rh4rYjAnD5a+S/dx6tsfneI /80A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684679115; x=1687271115; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:in-reply-to:date:subject:to:from:references:sender:from :to:cc:subject:date:message-id:reply-to; bh=hooSeOSbjH4aVpkXikiojZGggmWtgKJgX4pmUVqCtNM=; b=MjwLUw02jLNQWtjmiiO+4IdPl3DXB12DkAnwgRYNMV2lAvHc+dP0zP6UGEjgWCvmtk XYtN1WtvFhleOCHo0tQX188Y8b2o5iwMjh4dTBIn/L+XK9Xio6YCbEvCRco2RJqKk2+l /7T5yDiNrn7pL9TeM97HdCqZvTcT7+shmmHpCivUOucMvEOSSRrUibPdPMV4LBnInUhX 1sywCnxdjIQaQsSSxGrYngFO7KxEt7/jNR2fAEtQpBAZDGMI/e5NT3S4d/ZMOPPoursw XrVzoZD7tnNNVPAswRsBENBYHBd7CsBicIluI/ky42yVC9Miq1d/vL5ob7kzxblJkUpJ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684679115; x=1687271115; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:in-reply-to:date:subject:to:from:references:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=hooSeOSbjH4aVpkXikiojZGggmWtgKJgX4pmUVqCtNM=; b=GUjAbZPQtQypppzymXdMGvhrVH8LuBSpJuahT4Ve1OPgOWozkfClYzfIMFCZWpTFB8 0RvHVw7b6VRHMWArfVbo98a/elFJdti21a+/6FZylS1Zco4hZO5Lxsc5WrXj/L5i8eDn DQJ2qHK0h+3IXxO51EWgIrS6YII9kKJ86CQqPTd5sUT5iSF1sCyu++pLwB/Wizj8rrz3 LZlgQHva8bwro4Mrg9O7FmIEwGlvRI0TTlAEyetPDQlYj6hrUmdLUojiXx9a/zrFEhiJ 3YtROY Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyoZ70hdVZXLamoGmeBauftq6IdZ4kgkxyFeOQ+QgjeAzsg+GyL DicBoNAyNvPFPMA/uEjsdwQ= X-Google-Smtp-Source: ACHHUZ5MTN+6i/IQVON4RlhxJn2mEvaqI4+R837HK017hc/feI3cC6749+bkl5esrciUj+smAFXAyQ== X-Received: by 2002:adf:de05:0:b0:307:c7e0:ea10 with SMTP id b5-20020adfde05000000b00307c7e0ea10mr1224427wrm.14.1684679114574; Sun, 21 May 2023 07:25:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b0a:b0:3f1:6946:24dd with SMTP id m10-20020a05600c3b0a00b003f1694624ddls2805238wms.0.-pod-prod-09-eu; Sun, 21 May 2023 07:25:09 -0700 (PDT) X-Received: by 2002:a5d:468f:0:b0:306:8f5b:1b49 with SMTP id u15-20020a5d468f000000b003068f5b1b49mr7365780wrq.47.1684679109789; Sun, 21 May 2023 07:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684679109; cv=none; d=google.com; s=arc-20160816; b=sfe50aRwMP6l6RIcuWTnPA3OPvZZGeAEz89TR4gwXP8azXCpb2s5qcBFf5Jy41o9wJ kNYYoLsfMzTfkep1l+V3OZ0hmS1dr8ixqACVuW8nbG7c8X1HecdU3vlJBkbc9FSICcCy qkdw8v52viyK2W0WiZ1nFOCP1CazGCwf6URYeZT6mPHJ6IGmgJsDQ7Yr7blm9+f2b01R F/qxNuovNFmBlQLmI7lnCBB3CMpxOfnXWG/E3KGn+5CrcL4q7DyFNpJ7eqof5NgKdAAG qBMIWGLL46V3LPFLouuGcGgWtOEUa9rRezKxVB1zDHgu5WjetCighuQ12bCQvayhJOjW ICxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=BICe5MnLRQVRSbz3yf7dZjimk615pcp/sZ6C2n5rM+Y=; b=lgE9O2Nv0turg1fRg40EIGJcafoDCIh9PFgsA0qzPNr6lwNYEV3XoUjtnhLvXukIG4 dgER70Fa4XxeCXbhcw5qUzO3mQft8Ejo/IGzIr9JJUnD9vhwnezj7GytgsgDsxLLNKuR VaZESJiDHtPbX1WYTNRWnNmaMUwv33l/VjOyvOuqMtCuOYUyPBgwb7MfyZQLArLlBvSu dpcROnsudzCjiV+Wo9AqMTe0TkbqoyMZZTQP9IRkzd0yJA+Fu5qoSLp4isINEZk5HfeY jgZgec8XtcsrNzI5dQJ6gNRLREWeMKD7dsn/i4xwcYGuk0t/wk5jFyFCZW8WhVRYYf3n ngwQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [2001:67c:2050:0:465::101]) by gmr-mx.google.com with ESMTPS id ay27-20020a05600c1e1b00b003f5ffe894b1si166827wmb.2.2023.05.21.07.25.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 07:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) client-ip=2001:67c:2050:0:465::101; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4QPNC30hpSz9sTb for ; Sun, 21 May 2023 16:25:03 +0200 (CEST) In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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:32671 Archived-At: Oliver Baumann writes: > Hi there, I am using Defaults files to give my documents a standard > look. This works absolutely fantastic. > However sometimes I want to overwrite settings from the Defaults file > in the document YAML block, but this doesn't always work. The defaults files should be thought of defining default values for *command line arguments*. This is important in this context, because metadata values given on the command line will always override those defined in the document. That means that metadata defined in a defaults file can only be overridden via command line options, not via values in the document. Instead, you may want to use `--metadata-file`, which can be thought of a defaults file for metadata, as those values _can_ be overridden by the YAML in the document itself. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124