From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32673 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: oliver Newsgroups: gmane.text.pandoc Subject: Re: How to overwrite values from default file in the document Date: Mon, 22 May 2023 14:14:02 +1000 Message-ID: References: <877ct1sqx0.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_9A02D282-ECDB-4B97-8597-10BE18750D33_=" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10583"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCEMPL7DTEMRBE6YVORQMGQEJGYL7XI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 22 06:14:14 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q0ww2-0002c3-8F for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 May 2023 06:14:14 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id 46e09a7af769-6af7d74a79esf301833a34.1 for ; Sun, 21 May 2023 21:14:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684728853; cv=pass; d=google.com; s=arc-20160816; b=FJidvtEMoNY9meN2HjOUHM/5bzhJsc8ATib0w+h8dde8aT/3I1xqB0zxYwpJ7F7Paz sGVFG2GLZbXDJsntutkEkeKPh5Rwl9kbGSCHCybyUiKMgGyDjI+RHwwL+blswSy+pmEU RK5QLTPBrhRIS7focyuQicyeZaElflh+koe5LEVSSaX34EYiY2DAiweaSIj2behrAo7h l1oI5CPtRSzuTevGzwGguz4tZ6AqWeQ2i55HaRpLsjVJjhgQJ7dsRKXGAvkFN7GbLfmi 68gTRpK9b6lY/7SDQPoZobnjjj9qc1aPnYDEsiInS290+IoxYodfdE7cPzBf9HEfospO TpiA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:sender:dkim-signature; bh=5OcTZKCraKA6EUvEUJHxI9lq+TfVaFGEyM7dXa0TTAA=; b=ldy+qPq3P+yuP3OfamyDILOAvrNn/lgc0I37CMXq8naWcw//2GpRCQPBH1MZ3Q+psF JqmQJ+CN/GEiqSY6up+990NdF56Zm+xkrhDR298SfZrv9PmkGChFPZ2hc5qU/crxSRuk hFwzI9on8DMxmQKWfU/7s1TNzW64KtRVGru4pqgjAhnUJRtlv4VaDE+/gcGu504YJINY DpCzbhnfjtSFlpmfU4PpVMFkUZItNeptVVN098FRNgzx7SpTUjT3ayQKA0jK4I0Jinmb PB7fxIcFh8pN0Bq1YflCqyxBsqAnw8cyZxpRwSu9yjrMwur/etdfK4+P3yWLoSEDy4v3 xX0Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=OP1Tim7d; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zmq4rsAa; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684728853; x=1687320853; 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=5OcTZKCraKA6EUvEUJHxI9lq+TfVaFGEyM7dXa0TTAA=; b=BM2Hd+ZSicyschPyZKZL3DBcGKhhHOdCNlsJQZp8+Sw2++ROhKUuU+tWTk4KtoJptZ aQw3tuOtHZL98RmbAigzxUj5MB8gKpIAlBbtm4FqnkkafQdxNs26ggZGz01YvAOqS6lR Kp27vEO8nF6ZKlAt56ybRVuUnMC9geJwRIMy/8//A2+iPHl3rNhYqY6LpdsP/dszKvFs c8wbzMagFVQSWUPV95kwJLUyU1czTN33w/eSQ2H6nRqQS5PCEvRhOy8sIuKUmeeS5RAR L8ZNwRpLHD+4eRtoM0bHDuxY4 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684728853; x=1687320853; 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=5OcTZKCraKA6EUvEUJHxI9lq+TfVaFGEyM7dXa0TTAA=; b=OED5d3tt9uVQXivEybAZZ+msMe2NcfhPWcCF/iKdUR7gHl2Rrq5ctmOIkttW+T4imm ytd76NQHFJMTDCgafruDTaluKvlt4Pc0cZo9i7fqEHHI4aF3IGtoswJoOi3Gx1CfJhBm 6Ft0fZisbwGHa2o/RrfafCWamYPZKToh0s8oiWCKPLTccUVj87uQ7WKwyJldu9QMjt6a dIRloImPmg7GHbfSPccIG8C3oLAH10PuSGao Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwGoB+3oyhHDH3mXoiLZKNV96zWDiSkvEXe8zAV2pCW4m93jwMj PMwGAFCTlKQ6BLd09p6QSzY= X-Google-Smtp-Source: ACHHUZ40V+wigc5cYSpYiCmFoI9VtzX2DZtPaC2xzDXsYsPWKI+17ggr8tTou0NPb9DYN/c4DYSidg== X-Received: by 2002:a05:6870:fd8a:b0:19a:245b:ea70 with SMTP id ma10-20020a056870fd8a00b0019a245bea70mr3785800oab.11.1684728853125; Sun, 21 May 2023 21:14:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:6b9d:b0:195:d294:2d3d with SMTP id zh29-20020a0568716b9d00b00195d2942d3dls2286853oab.0.-pod-prod-09-us; Sun, 21 May 2023 21:14:10 -0700 (PDT) X-Received: by 2002:aca:1315:0:b0:394:711d:d150 with SMTP id e21-20020aca1315000000b00394711dd150mr4968175oii.59.1684728850771; Sun, 21 May 2023 21:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684728850; cv=none; d=google.com; s=arc-20160816; b=nVhYlK1i+46NCzaT0NOl7FE7DRS4P6sKx1zcfvNmMzB0TC3wEqMUuWAkzMw9QseyEB ASrxn9G58CLvMqRNXZ4B365pYo06ejLyAkKgjjOgElhp3qrViTyhfcxdOJmYnOCGitvM 4lTPXZmPgqjCbYc/0pmTgFKCPLBF6YhmCJkXxyKPuxiGCWJGsYkwWzN+AhWiZqhNcbym pDzAwfaBe330+6dwAqdKmRltouBfwrs3a/x01UpNQiBdn+k02jOkUR8h9gogi98pmgXF zP3kwPVClLDAhMj1lRZI87zGoxPCSpd5qVS8GT4vVeBAXXbhpkiOCHcXfi7316F2FroB bBUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:dkim-signature :dkim-signature; bh=Rcg8jif78KYGynEtEanI6htSIiLkKjjCyn9WqpYZJ38=; b=dGOaqe7iNQ2rMXy3cnhT/hhg5juKB4r/uSthiSOpExFhj4lXILf0FqDdLJxRywCDwc 5iTjVZAR0BD0WxhjeSkyQJojj1+QuZn9/0AhCWqCga9Bam1kYNG+qB5lGkR2egLf1x56 yBzdhxMBQTT38jGbA5ocMHaLegU0hL/b/of4IEaVqhzBIYFDwaNMuxhQgXHNnPNLuDwv Zi1uNXtwbasrhs6C9+JVw9F2xpXEazai+flzHzBz908jYzjAdcn08RKPTp2vcejNuh5O buoU1WGBJuYQKjkLDV45dXhRpTQE2IAmGd/qbdrjYusJPGwHdVKvQ8YKaLxlqWLT0kbP 2YxQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=OP1Tim7d; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zmq4rsAa; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net Original-Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com. [66.111.4.28]) by gmr-mx.google.com with ESMTPS id u25-20020a4ae699000000b005552377a831si20830oot.1.2023.05.21.21.14.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 21:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 66.111.4.28 as permitted sender) client-ip=66.111.4.28; Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BB3CA5C00CF for ; Mon, 22 May 2023 00:14:07 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 22 May 2023 00:14:07 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejtddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffokfgjfhggtgfgsegrke hmreertdejnecuhfhrohhmpeholhhivhgvrhcuoehnvgifsheshhgrlhhlohhlvghordhh rghilhhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepgfeukeefvdffjeefheetje fhvdetvdetkeeludfhudetjeffgedtkeevgfejgfevnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepnhgvfihssehhrghllhholhgvohdrhhgrih hlmhgrihhlrdhnvght X-ME-Proxy: Feedback-ID: i02894466:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 22 May 2023 00:14:06 -0400 (EDT) X-Mailer: MailMate (1.14r5915) In-Reply-To: <877ct1sqx0.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=OP1Tim7d; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zmq4rsAa; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net 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:32673 Archived-At: --=_MailMate_9A02D282-ECDB-4B97-8597-10BE18750D33_= Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 22 May 2023, at 0:19, Albert Krewinkel wrote: > 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*. Good point. Thanks! > Instead, you may want to use `--metadata-file`, which can be thought=20 > of > a defaults file for metadata, as those values _can_ be overridden by=20 > the > YAML in the document itself. Tried this - and it *sort of* works. Problem is, list fields like=20 `geometry` or `header-includes` are overwritten, not added to. But I=20 guess that=E2=80=99s just what it is... Thanks in any case! Olli --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/B45E906F-AE1C-4BF7-BDE7-DCE54E83EEEC%40halloleo.hailmail.net= . --=_MailMate_9A02D282-ECDB-4B97-8597-10BE18750D33_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On 22 May 2023, at 0:19, Albert Krewinkel wrote:

Oliver Baumann <news-WPTjrydoUPgeaOpM6FAJmWZHpeb/A1Y/@public.gmane.org= .net> 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 defini= ng default values for
*command line arguments*.

Good point. Thanks!

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.

Tried this - and it sort of works. Problem is, lis= t fields like geometry or header-includes are overwritten, not added to. But I guess th= at=E2=80=99s just what it is...

Thanks in any case!

Olli

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/B45E906F-AE1C-4BF7-BDE7-DCE54E83EEEC%40halloleo.h= ailmail.net.
--=_MailMate_9A02D282-ECDB-4B97-8597-10BE18750D33_=--