From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18300 Path: news.gmane.org!.POSTED!not-for-mail From: Dylan Bartlett Newsgroups: gmane.text.pandoc Subject: Re: Markdown to PDF - Headers and Footers Date: Thu, 12 Oct 2017 16:34:46 -0700 (PDT) Message-ID: <8af29c84-4d87-4296-b372-ca3ebfc23b13@googlegroups.com> References: <20171012201040.GA44756@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_15838_421322212.1507851286187" X-Trace: blaine.gmane.org 1507851299 28303 195.159.176.226 (12 Oct 2017 23:34:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 23:34:59 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCNMZSPCMIIJN6H7ZYCRUBELQLJB6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 13 01:34:53 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f63.google.com ([209.85.218.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2mzw-0004vx-Ag for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Oct 2017 01:34:40 +0200 Original-Received: by mail-oi0-f63.google.com with SMTP id e68sf4825569oic.3 for ; Thu, 12 Oct 2017 16:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Q4UWgcnJjYW4vGZPgqAlERY3dxtZ4s4SvgLZyBT09po=; b=sL2GU+n68q0El2M6aQgctwtULdkK+PZCfMC1qzsGL2zceSq8yrEZmfWSROIibDpGRm ftUM0w6nSrHObHvLR1ZPPfxL1cCWrcuA8nlbVQMqjGDdVOiGeVembDV/0xP6u577uNwX vEDxdkq5iwQosY7/c7hJFxM/5xcVFhStGe+bYnjyG6BtQDZwdvroucLsSW7ubyi+sCfS eEnE317bGnp+mCSULKu47R4BLcwsFlgmTbOQCiW9tckGwYA+L2oAmSLjxM31i+rP+CTd 9QplhNLJjDe8ccZeqTf7bpuRpSmVJ0On8+c7z2FGHLoh0Y336LNPE6e1cppwPK5JwwHK SYTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Q4UWgcnJjYW4vGZPgqAlERY3dxtZ4s4SvgLZyBT09po=; b=Dk+bUNMcmwfxWFJubljHa6/ffKSXSlOR9IyzKz27ezx6aZ55iMiZwDeXEANuMKvo6u BWSVITJRlUBQJDSPHL72oiVCxAgMFEamerGDFLAdnrtR35NQ5nOOTBSgUd3bQMidID8Y ToOwgWhSuwYfipoNIoaramFn7KaYEtXBDzFaUk42eaYubT6XNaAxJpZhL0aV1TCuhXSH rn1RX/fJ3XmiCygKabctD5BmNYipNAPivJOTHaekASGY2eLRWkU0y6TTEAYtULh8ZDTb +ANWAZMUg0eW92VRYky1lYObFIq1X+OeMKAUif/aLwZSJbLvrcvorl687BTDsAeWSMi4 Xuxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Q4UWgcnJjYW4vGZPgqAlERY3dxtZ4s4SvgLZyBT09po=; b=gfegzj5k/ufitbciFeINlS6v4fQHYwxSQSLZhIILVwgD0A5kLOsB351YSMUEJh8QO0 KXs/5ZA4wEL9q75Pq+kA934uhwPTUMTdyV5YiF6EO3ZGY3J+bv3PBFvbWVEXSZl8jgRO lNmfpjw0nSG68npr1LY4YtW1piRo/kjWU9DtvZHLehszfCoL6V7SCzQLlKzIfeZQTuz2 fR9YM6pCimzYSgeBjkkpubvkhQTjnipECS8yz9jt72Xay1IEk7zPJnlE8VOQQwFV1A1M n0P9TvNnItNwg2fgX6+XmaGXYUijgJQzkbN1oVCuUhsXnhMYuIogycUe5NABmUi7R7lq 2prQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaWSkFqKWQKhK9MbQYiS5PUUOpdPOx1IEc9JP8lM8sp+DdFKuDEf eWnT6daUmRODufPjhuMPb7c= X-Google-Smtp-Source: AOwi7QDz42eqd7mxMLlHUFBagNSFCuWAdRj9p17OqLDuLpcR0lU6CrnkLOmYMeH6jNKsae3ub18WoQ== X-Received: by 10.157.54.53 with SMTP id w50mr193184otb.2.1507851287539; Thu, 12 Oct 2017 16:34:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.54.99 with SMTP id w90ls1563964otb.11.gmail; Thu, 12 Oct 2017 16:34:46 -0700 (PDT) X-Received: by 10.157.0.7 with SMTP id 7mr199515ota.14.1507851286652; Thu, 12 Oct 2017 16:34:46 -0700 (PDT) In-Reply-To: <20171012201040.GA44756@protagoras> X-Original-Sender: dylanbrtlett-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:18300 Archived-At: ------=_Part_15838_421322212.1507851286187 Content-Type: multipart/alternative; boundary="----=_Part_15839_1823332107.1507851286188" ------=_Part_15839_1823332107.1507851286188 Content-Type: text/plain; charset="UTF-8" I've worked on this a bit and managed to work it out. Definitely my fault here. One thing I'm still trying to work out is if there are any tools for configuring table styles. It'd be good to be able to set a default table style rather than the one hardcoded into pandoc. Is learning how to write a filter the only way to to this? On Thursday, 12 October 2017 21:10:35 UTC+1, John MacFarlane wrote: > > This method works just fine for me (using the last release and also > the dev version). > > +++ Dylan Bartlett [Oct 12 17 12:51 ]: > > Hi All, > > I've been trying to add headers and footers to a document written in > > markdown using some notes I got from > > stackexchange. > https://tex.stackexchange.com/questions/139139/adding-he > > aders-and-footers-using-pandoc > > It looks like you used to be able to add headers and footers to a > > document by using YAML includes like this: > >--- > >title: Test > >author: Author Name > >header-includes: > > - \usepackage{fancyhdr} > > - \pagestyle{fancy} > > - \fancyhead[CO,CE]{This is fancy} > > - \fancyfoot[CO,CE]{So is this} > > - \fancyfoot[LE,RO]{\thepage} > >--- > > > > But apparently this has stopped working based on the comments I've > > read. Is there something else I need to do? Do i need to start messing > > with the default Tex template? > > Thanks in advance for the help > > > > -- > > 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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/f5b4030b-33ac-48bc- > > aec0-757922aa3b5d%40googlegroups.com. > > For more options, visit [4]https://groups.google.com/d/optout. > > > >References > > > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. > https://groups.google.com/d/msgid/pandoc-discuss/f5b4030b-33ac-48bc-aec0-757922aa3b5d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > > 4. https://groups.google.com/d/optout > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8af29c84-4d87-4296-b372-ca3ebfc23b13%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_15839_1823332107.1507851286188 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've worked on this a bit and managed to work it out. = Definitely my fault here.

One thing I'm still trying= to work out is if there are any tools for configuring table styles. It'= ;d be good to be able to set a default table style rather than the one hard= coded into pandoc.
Is learning how to write a filter the only way= to to this?

On Thursday, 12 October 2017 21:10:35 UTC+1, Joh= n MacFarlane wrote:
This metho= d works just fine for me (using the last release and also
the dev version).

+++ Dylan Bartlett [Oct 12 17 12:51 ]:
> =C2=A0 Hi All,
> =C2=A0 I've been trying to add headers and footers to a docume= nt written in
> =C2=A0 markdown using some notes I got from
> =C2=A0 stackexchange. https://tex.stackexchange.c= om/questions/139139/adding-he
> =C2=A0 aders-and-footers-using-pandoc
> =C2=A0 It looks like you used to be able to add headers and footer= s to a
> =C2=A0 document by using YAML includes like this:
>---
>title: Test
>author: Author Name
>header-includes:
> =C2=A0 =C2=A0- \usepackage{fancyhdr}
> =C2=A0 =C2=A0- \pagestyle{fancy}
> =C2=A0 =C2=A0- \fancyhead[CO,CE]{This is fancy}
> =C2=A0 =C2=A0- \fancyfoot[CO,CE]{So is this}
> =C2=A0 =C2=A0- \fancyfoot[LE,RO]{\thepage}
>---
>
> =C2=A0 But apparently this has stopped working based on the commen= ts I've
> =C2=A0 read. Is there something else I need to do? Do i need to st= art messing
> =C2=A0 with the default Tex template?
> =C2=A0 Thanks in advance for the help
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/f5b4030b-33ac-48bc-<= /a>
> =C2=A0 aec0-757922aa3b5d%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/f5b4030b-3= 3ac-48bc-aec0-757922aa3b5d@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/8af29c84-4d87-4296-b372-ca3ebfc23b13%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_15839_1823332107.1507851286188-- ------=_Part_15838_421322212.1507851286187--