From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25995 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Hiding TeX headers from HTML output Date: Tue, 25 Aug 2020 14:44:20 -0700 Message-ID: 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="24378"; mail-complaints-to="usenet@ciao.gmane.io" To: Pranesh Prakash , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBQMMS35AKGQEJQUKXYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 23:44:37 2020 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 1kAgk8-0006Ek-Um for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 23:44:36 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id g99sf179082otg.0 for ; Tue, 25 Aug 2020 14:44:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598391876; cv=pass; d=google.com; s=arc-20160816; b=DSpR6FhVkZ3YoKeEJ7PB11YA3Rsrc3rotUI55T6pE05ggGBnVYkcZIywBUIn1CltoN 7DYiDSuq0BhKDlB7Hau2HH+mC6ltpRG4CaUAvQHU+sq1lryXYYAXNICbS1j/KxZ5+wFw UeEPl0A6xgnk2gPYodKNlyjHlszBS75h6RoOoc1WLbECU4VBLEOGlJEHY2YogxhMqVm4 7Luh3FzznKNJLzZf9eFR/9c6GHngqw9VS4gt4jJ7Tl8ZlOy6S8Ty6mvDaItu/b/WdjKS cFWZI7wWQFjGFiA0hGQPh73ol6BeEYzVF7uFmfAt+jFM8XpE8h5ig1rMKSjOoj4hmZk/ ZXRA== 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=byV4mWZNALAPZqBCEn4Nkm/jt6wVnx6uHSt0rF3DPOw=; b=rAns76cXha7KBW3S2VGRMT9GqgOpo6Xmfuu93Jb3Yvqw+bFnpfSme9XuAUKFY0fjUd BMvBleRgllG9aro9v9Da2kLxKd61LYuswtiIds7Piz5aaAfYw+Iq3i9nTYlcyItVh1Cb k5LodCU7qmcK6kbC+3HmfJ7mw4Cs3qC5Su//TK7ce0NbfOywJThoWUsDhaU/9bUjUYa6 hRBZoehje3ycmYFrgNWZEKChg1vIZgB5DPtu8AxqKTNewhAKaYYtjtk52aA+z6GmaWM2 1GUQg8S7Axi5RfIRPfBkBvMUtwrdX+d6y/rGb/ZcxTDL8y32L8Nkh3b7jSWKgIkyi/Y9 giOQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=uBZFy6Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1031 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=byV4mWZNALAPZqBCEn4Nkm/jt6wVnx6uHSt0rF3DPOw=; b=IkRg5igFVuPpyG1T0wR/G5exTkOXB11p+3QBVzuKeU1Zc3mf1alcp2ti9VjP/zYVDh x4zRX7nB1irUPf0s4UpVBjmMO+xdAmbGGNxmdcPC0dccC/myijE0cvHyBWh6pkTPKLYw xS/8QM/AdxJIigsOjWNz65eh7T+3xirorDPxFCSPml9/V1DQZ8sroc/q3MVFNUADwaXk +pQwVkM5WkyPYIcKsUAP1mLqm949aDwq5tS5UI8blmTB3Gjo4eca5ls+SsSGEKVJZbyl 8mbYkpgClyX4t0OnmStyrL7btIQoO9KnDHlyS3ZOqOeOSjRqLxewS4mYMvKtVIDUKoAH rHsQ== 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=byV4mWZNALAPZqBCEn4Nkm/jt6wVnx6uHSt0rF3DPOw=; b=fAGTuYbQKDSZxSGNKyAzrjTYL9U9YuKJ0mmwtiin0o+KXkqWMz3jj5ovXsF3yl/g4o e/DAphQk3B5mxLS1E7xv8eNsu9Z6YlzQ0WF0zynK4AHF5DJHv18RNSkaFYwL1fQsqtlC 0hpH3XXcI5obeMsTs7u6eEJ1Mn/CP/+Cuu7q1EL2WklNKdk8ovKI0OXGngH4Jee6OXEe k7yllpgZFMAyZgCGvOJN+ar6AEDTLKzGW1SjCiyTLdmuoGV3mtxCiVB9WeVbX01tiiZE /LHO+g+RxF1/wXQlerR82u+Jh2V5ERIMyJUOqoIWqM291jm7miZ9GgvhDPzWkkdteJ3E 42Hg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5335ZOx+p+p191aLuEt+j2t0XWQdm+GlU/MznELmRlQfWWuQ2BLR N0SL8qarFDD98T8zLjTayWU= X-Google-Smtp-Source: ABdhPJwSzNJnoykztJcIJ/eRvnfCBL5JF4NR8FZZ46YEE1R+Awiqj1CmSszLxLPMHp3AIwgPLHYBvQ== X-Received: by 2002:a9d:1c7:: with SMTP id e65mr7336937ote.147.1598391875922; Tue, 25 Aug 2020 14:44:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:545:: with SMTP id n5ls1043ooj.9.gmail; Tue, 25 Aug 2020 14:44:33 -0700 (PDT) X-Received: by 2002:a4a:de11:: with SMTP id y17mr8214846oot.29.1598391873143; Tue, 25 Aug 2020 14:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598391873; cv=none; d=google.com; s=arc-20160816; b=E+RxZyAxGq+zThR/myWUP/DCg9uXaQC2/r712IwqiKSn8ZB4hdbjdF3slVcQKxuQmm ckpYnePLI6sH1xNnloLtbUR7LvP95JuDpJpscLEA8qDHavHsrUu/yT2Dl08eKNZoVbRN 1uDuKwRMov1ipY3S+ivmnDoOTnfvlXwxQhhtAjQazvwCh46PBSoM5U5BZKTvvhMcBV6o Uld15yPbVlgcRychULU2EAECCPAFnCACe4k1zzqUTfOzEkKIzFrWwnGUee/nGT69jcuz TzJnCA9zHafxAS5fL2uAhUWBChLESqPUBJT+w67iB9TEXAHR51sQlzdU1MoxzVGY/bPu kK9g== 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=j1I/azV2KNXZSRObs7M87fkHoYl5Yi8fr4f3MbqtN9s=; b=DmgLOlYoyPdwiwzTj1K3I2DJWmgrylzpw/DneryE73uO7A4iVmrDRQ7eIpkacm9qhe B3LGbLF9oxfU0tNHTRaU7LZmIUuyAL4sZAxwVs4ZojrQR/4bQI8qlbHjhTWOmpBhjNkR yw8uNCUUiOwcnhfFXXYHKo8Lr3x+j2r7cxpOUbxTeHRFIIMgumk/u4KvZ+OKr8mj1K+2 1s/Z/gs6moOKP9YRoxYdBRgmOiVlkmd1DqaC0NhrPvcJKvHyofofLV+3lHtRFWDVPBGH BGoO+RfjTNYmZNZ3KM37r2s7E/6v4ndzGz7EyMu1sxpXbxHnT8DHj4Aju5PdmIGdC3iP fgrg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=uBZFy6Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com. [2607:f8b0:4864:20::1031]) by gmr-mx.google.com with ESMTPS id b6si14670ooq.2.2020.08.25.14.44.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Aug 2020 14:44:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1031 as permitted sender) client-ip=2607:f8b0:4864:20::1031; Original-Received: by mail-pj1-x1031.google.com with SMTP id z18so175229pjr.2 for ; Tue, 25 Aug 2020 14:44:33 -0700 (PDT) X-Received: by 2002:a17:90a:6945:: with SMTP id j5mr2765575pjm.76.1598391872295; Tue, 25 Aug 2020 14:44:32 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t11sm185381pfe.165.2020.08.25.14.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 14:44:31 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 5A46FA2A1; Tue, 25 Aug 2020 17:44:20 -0400 (EDT) In-Reply-To: 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=uBZFy6Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1031 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:25995 Archived-At: header-includes is the field name to use. Pranesh Prakash writes: > Hi all, > I use the TeX files paragraphs.tex and footnotes.tex to style the > paragraphs and footnotes in PDFs. (The input file is in pandoc-flavour > markdown.) I use them via a defaults files using "include-in-header: \n - > paragraphs.tex \n - footnotes.tex". When I convert the file to HTML, the > TeX component shows up. (It is in the part, before , > but still shows up on the screen when I open the file.) > > I've tried using the modified TeX files where I enclose them in code fences > with {=pdf} and {=latex} as well. Each time I do this, I get the error: > >> Error producing PDF. >> ! LaTeX Error: Missing \begin{document}. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H for immediate help. >> ... >> >> l.43 ` >> > > I get this same error if I try to include the headers using > "header-include:" instead of "include-in-header:". > > I've tried marking the input format as "markdown+raw_attribute" and as > "markdown+raw_tex", but that doesn't change anything. > > What am I doing wrong? How do I prevent the PDF/LaTeX-specific headers > from being used for outputs like HTML? > > Regards, > Pranesh > > -- > 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/a669b6a7-167e-4056-b0fa-546e4fe53d7fn%40googlegroups.com. > ```{=pdf} > \usepackage{parskip} > \setlength{\parskip}{5pt plus1pt} > \setlength\parindent{1.5em} > ``` > ```{=latex} > \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} > \usepackage[hang,bottom,multiple]{footmisc} > \setlength{\footnotesep}{3mm} > ``` > \usepackage{parskip} > \setlength{\parskip}{5pt plus1pt} > \setlength\parindent{1.5em} > \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} > \usepackage[hang,bottom,multiple]{footmisc} > \setlength{\footnotesep}{3mm} > ```{=pdf} > \usepackage{microtype,parskip,bookmark,setspace,xurl,secdot} > \usepackage[hang,bottom,multiple]{footmisc} > \setlength{\footnotesep}{3mm} > ``` > ```{=latex} > \usepackage{parskip} > \setlength{\parskip}{5pt plus1pt} > \setlength\parindent{1.5em} > ```