From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28310 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Is $header-includes$ too high in default.latex? Date: Sat, 08 May 2021 08:36:58 -0600 Message-ID: References: <0c7b7414-fe12-41c3-8978-731808fe79b5n@googlegroups.com> 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="10121"; mail-complaints-to="usenet@ciao.gmane.io" To: John Bentley , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBF6E3KCAMGQESNBDS3I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 08 16:37:16 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f185.google.com ([209.85.214.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lfO4v-0002SU-RR for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 08 May 2021 16:37:13 +0200 Original-Received: by mail-pl1-f185.google.com with SMTP id x3-20020a170902fe83b02900ed392de0bfsf4799682plm.22 for ; Sat, 08 May 2021 07:37:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620484632; cv=pass; d=google.com; s=arc-20160816; b=adM5/cAq81435/PtsCFv739UrkAztGi4e9vAQVDTmgV9Vp0kxohSPfHFnDOIJvGN4X Jzdyxd+a/Q1BGw6OooI/bn/SYRPukQYmhrGpTHdjt9A1OiAFH0LvuTzVKS06NJa96P0a Tb9+2eh6LkRe/6dnPyMlEPJINMx7uOUCya2cyA31ZYsp1FSkHm1JnmUgitAtzweqeyz0 JZxrE0UATJsq1jaM9HphwhYNMtgfXn48u/YKyrrIkcT18cITSlaqqKnSxZ9tJGjA/Xu7 JPIqLTKHQhhGbTbAIWs4hJGA4HXiaWk/IMD5umhQsE3Y6vvFqpSq4m4WDOvRpyXAltqu kRlQ== 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 :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=eD9XGA67fh4YlEOh4eshNOgM/Q8SkszJdIJEYRCxz7o=; b=c211/V3r9Qq2EEfLvEH1Q+QURQ4x9DEyzpv3yYlTDVcOBIVohE6CYpAX2Eqel5k+Xe 3GxhwStWh8TP54KMO1WMQBoeVgBgbWoavD3wHlLBHZ3msav9cID57AKqiZ8KqlQETjsU jHewq6kZQ1b9EaSD9yEf107kVfzqPTXVVWlOrk4RudKOVl1snxfX999ziN/hiwxWjhA9 jGoMxzUHf0lCqM18sJ+id0h0IWRLp3t3rjle8ndNPdodRZFTBmt80U3gaj/OVbo+KdhK vsK7w35NeJhQDTxfhiao9zj2xMSUaRJa+8NkPFz5E21dg4EiZn2rIP4KFerS4XNzej3J TUYA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0NzhIPvO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=eD9XGA67fh4YlEOh4eshNOgM/Q8SkszJdIJEYRCxz7o=; b=mKz12gLUNdDXcowYIqbH43UjRCKR2CMCDKbSbWjPrueA2i0fxlw4s0XdejN+SPCbZJ Hg1ib8KSZFH19OPyAPGFKmOxhkz/7m3J+qvMxEwUGsNN5tYkeV4kGxMRzn6iCuQdhnH6 BKnkupNgsJB1oVUtE22XEnjoAtldXAg74XcwnKQcqF0nEd8YmP9SLt8SWmQxDKIMvmbY 00hX6y3wFk60XUwuKyvZyVKapd+vPY5EFyslu2aC5p5u5SInfj+86nMlFmFiYAN59nTy bFqZLcq+8eZ4DbPJKgnFgylamv70tV3IzviSLF32pIEJxLfUCGMZIzaR1xJhRfEVGFQ/ xmEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=eD9XGA67fh4YlEOh4eshNOgM/Q8SkszJdIJEYRCxz7o=; b=gduFkPN6n/AemIiu2ZAGeUmivdbzT2xaXzoPnTCK146CiNrSvXznzIp3Quw3vr9lNo T4xGUL84IO6C2d5QzdWUdGJ/nHbPisvpi+OzhS383TmNoI3t07p226kBdU78tWp/5H8U yhViDcjxNBjD0sLJucQ0T+lTbUh+AqYT10xMKzqE3bmhCx83weT14Hi5QyJZkwkbxJ1J viMO4XwwJZU+upkGws42qCmBwRSHXowxER1vfGYhoOGlMo4p9N1nnLSBGLx79TAX63kN x/pITkhEJsof3sRmIV5WsZrUAi5KcjRZg9nOifYDstsvTDF3xsePgNSzr37+MBR3cwgU h0AA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532aYgPkjCiYXxdy0N8+IolUvEv2KrQ15/wEIMqb8vSN6STXpWGW qmg7TAtDsvReZzHg2fl/hlQ= X-Google-Smtp-Source: ABdhPJyVnF3HceqhjCeIzeti3u7Khi3hAI8ZyhYF6SUtL6okuoPuR29SYV6L5lwanr1P9vJA/TO4CQ== X-Received: by 2002:a17:90a:3847:: with SMTP id l7mr29249545pjf.37.1620484632576; Sat, 08 May 2021 07:37:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:860c:: with SMTP id f12ls4939156plo.5.gmail; Sat, 08 May 2021 07:37:10 -0700 (PDT) X-Received: by 2002:a17:90a:f285:: with SMTP id fs5mr16564720pjb.7.1620484630661; Sat, 08 May 2021 07:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620484630; cv=none; d=google.com; s=arc-20160816; b=hdutGkuMz7uAVFFMQwB3yqDMAdEvUSzLoayPSwiJAxF7II5ItFwcxdRY360tYECmXW zh80XO2j4okIRQUJXH5l7TA3ZYKH84zz00eVm2WvRd/lqK5ds2vZF7JWSvzVzj9VIC6z HjAjNyGZ483/jsOxi6hN3mu8PC+/nluE4c2KuJz3sUjN4fGLOo62LBjLWqV+aEjKP9F2 jtl1cV/0DOILnKxSH/q4lZhEOaxQ5yeI691VwxG+cT1rjK0qUMDK9Iz//IshC4Cw6bp1 rB+KxdGiIZQaEo/M+vAaKJ+y7mWm+pUDG4c9xnelgdsIUjS173Hk6XakxMmRDHkxbTdo uX2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=24Lzjl5Xnw2mQaTxXfEoIE3q/VgeuGrOXPmX4fghAYA=; b=AaJvgsdj0Koc2550jXD5fbdVW24EoBHUt2oFu7+k2KhTMLaqb4CH3MSt/1kLWPhpXX rJxreU4MBS3ct1y8ilEhJonNsVCI1s3qW5TwRi9Gw9b2qNbs1akU1pBug2To0UomeBRm x9ofYOic/il2YgsDfD5yELrsDmGe1GBeFkn3udI6wjAgosfnoWg2G/+sWmYJKOVPP+bn sM/zSql85+4UbxtKILZMCczxjQuK+mtXbAD5OOMcWGLkALKCsO9Q3ixtocWgojmQ/EEJ EjrMjVHY9kkWWKxcectfIkgFXqW2hOnYrsv0VEAoUoDd27ZDKJh/rlIr36sJueURWCz7 5jOA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0NzhIPvO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com. [2607:f8b0:4864:20::430]) by gmr-mx.google.com with ESMTPS id z15si1309774pjt.2.2021.05.08.07.37.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 May 2021 07:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) client-ip=2607:f8b0:4864:20::430; Original-Received: by mail-pf1-x430.google.com with SMTP id h11so10140534pfn.0 for ; Sat, 08 May 2021 07:37:10 -0700 (PDT) X-Received: by 2002:a63:6f81:: with SMTP id k123mr15519098pgc.230.1620484630054; Sat, 08 May 2021 07:37:10 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 14sm7346117pfi.145.2021.05.08.07.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 07:37:09 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id BC107A231; Sat, 8 May 2021 10:36:58 -0400 (EDT) In-Reply-To: <0c7b7414-fe12-41c3-8978-731808fe79b5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0NzhIPvO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28310 Archived-At: We've put it as late as possible in the template. The reason it's not at the very end is that some things really need to be loaded as late as possible -- if you look at the changes in this template over time, you'll see that the migration of header-incldes up was driven by some real problems. But it might not be optimal; it could be that we've added some things to the end of the preamble that don't need to be there. I know there's a good reason the language-related and bibi stuff comes before header-includes. But the csl commands, natbib/bibtex commands, and csquotes commands maybe could move up. We'd need to check the logs to mae sure there's not a good reason they're there. go ahead and submit an issue on the GitHub tracker so we can think more about this. John Bentley writes: > The option `--include-in-header` is specified to "Include contents of FILE, > verbatim, at the end of the header". > https://pandoc.org/MANUAL.html#option--include-in-header > > The option `--include-in-header` sets the template variable `$ > header-includes$`. > > However, in default.latex the `$header-includes` variable is placed quite > high in the header, preceding quite a number of latex header commands. > Shouldn't `$header-includes` be placed just before `\begin{document}`? > > My motivation is to override prior default settings. Specifically I'm > trying to override `\setlength{\csllabelwidth}{3em}` that gets spit out in > the header when processing citations. > > I *can* do this by using --include-before-body/$include-before$ instead. > But that seems like abusing what should be a content option rather than a > coding option. > > Of course I could alter default.latex at my end, and use a custom default > template. But I'm trying to avoid that path. > > So, is $header-includes$ too high in default.latex? > > -- > 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 email 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/0c7b7414-fe12-41c3-8978-731808fe79b5n%40googlegroups.com.