From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26074 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.text.pandoc Subject: Re: MMD to PDF with chicago/turabian styled bibliography Date: Mon, 7 Sep 2020 14:48:01 +0200 Message-ID: References: <571d8037-a829-4216-aac8-6fab02b386c9n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------52C2C6874937C029B55A9F91" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9452"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAN5ZVOUMHBBCGY3D5AKGQEMNOASWA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 07 14:48:14 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f58.google.com ([209.85.167.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFGZB-0002LP-8I for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Sep 2020 14:48:13 +0200 Original-Received: by mail-lf1-f58.google.com with SMTP id 134sf1767333lfm.6 for ; Mon, 07 Sep 2020 05:48:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599482892; cv=pass; d=google.com; s=arc-20160816; b=xPsvL+hg0YxRYaqkoCgik3RX0ar89z/x6bQyPx4JFrHX5xaY/OeBAqUlh59ajgcw3q LGXTK9xV5AIY06B+/Jc7kTImb6SVG5Kg7dSlgi77HtjLU+j+J1cNbQv942ufEb9SpC8L bMvlF+YViSBAoOQpgggCYk8/p+lCEaCkOsmhew8IQ7/9wTBtjjPQGWetFCDDP6+aHmTt BS7MAvtJr87jc1qFatI3IFSQzIkMFu3BQrzd828txUF3nEpXOZcnenkiBClhesc86IPP NtOYiw+9xx/YCprGoYMUyq1NZubC64+vqel70lNcXky9B58lyeig0EoamV9xs65eyeB6 le/w== 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:in-reply-to:mime-version :date:message-id:from:references:to:subject:sender:dkim-signature; bh=Vaxs/AFIAMci2RzHV6q/7gqcz3+dWw4IvyzQRbWIWQ4=; b=BVjyUx35HwUMkElYyBh1gf9FcCZA+weVl7TVvD042sEGZOHDCeYNxo5UXHJUIAwmRf ZJfU6lJhLKJdqDM1pItSLgHgzKqMrBQ8ETB93HW46+RUsJgUaNZsIEN/bdPdqC0yccql Xl3MsczAL5DuHwap27Ha7X+dH3BNxbc34ez0zOg3MXYg01d6euMZsSRG3j4kfZ2jM/AV QDcgUCxAzR2M0M1Kg2IyxJaW8wCKoU1ooeBUamgR8Y1o6m6Pcc9b0Kt31FjepoLOHDVg E05JsvxXoswXD+sz69g16t9LXcjY3GkJoXXuxAaFRDiwbD+3cHMvF0z8qEvAKZ03OqE4 6Esw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=qoEJDpdY; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=LCxPmE3a; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:mime-version :in-reply-to: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=Vaxs/AFIAMci2RzHV6q/7gqcz3+dWw4IvyzQRbWIWQ4=; b=ZSJrjZzyyWsMZImWupxk2apNPLdUmQ7I5/EXHJuXmZVgKvEQNYO7pVT16v/7Z+ySsY MfvxKg6z+YX3auTsDlPtslYSDWVKyz/11Xp6RlLrZxHMpV52U3ogA8Csy/gKINBWjg+s g8L/Oxj6gpIE5jnVH5tXil8x1dnNoa/Q5R7vawhJ7+YEnUNrDot6zT9+KprbIx/JvP6b N8NOw9RMnvScqS8MIwMZeVRZI+XwxWLyaRvHrqopzcP4FrH1sMFPY8SNUaxn6KAur52G 41rCx4HM1pva5i2UlBE3tdX0GsgfRT28/V7qszDL/xGqc+MQIyHe4cj5FJ8sa5fdUwsz BjSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:mime-version:in-reply-to: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=Vaxs/AFIAMci2RzHV6q/7gqcz3+dWw4IvyzQRbWIWQ4=; b=LP27SDX+yWHwFwAG1PTjyuBz6TVE8czswXVyN2L5QKv7oNaaFAHUCs2yxwzAO8MN4N Tu80rLNmyqjqWRJIIu+b8bLy6ml247JfZyLM1OZ3oTXBz7vpqR8wEJQu7HeZgundf9Ye MD4CbFghe8/MLBs+nXQP6vkquMyCnhgzay3//Qh0sUtm5Y4bY2rsM9bIe4UQbdbuKJnR nVkZf+Bgk3sHTv/auMUnSfog5ferNQkb9JrjiD5YijRH/H8RRc8mkBqi4kKBhxW+5Zxm qidxs2VbSMvJtG3WS9+UmKeEoTUhXwkDJ4fKktIYVDhi46OdRivb26Zky2vSmnikjtRM ZqQA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531Ur8BnjMrhUsTLWHbwvxVXlcQuA2IH9KaPEXpz3ekNg8kDm5sY w4wP2bINMvn4KBUaTRqrPRg= X-Google-Smtp-Source: ABdhPJyIw2FpK1VMjv+KbMcuiyUzsDYJp37+RLn2lRM3RA4zpKFOkfqzJ4pT4lPUEkzY/jqY1SPbMw== X-Received: by 2002:a2e:9410:: with SMTP id i16mr10959615ljh.443.1599482892673; Mon, 07 Sep 2020 05:48:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:b1c5:: with SMTP id e5ls3200457lja.0.gmail; Mon, 07 Sep 2020 05:48:08 -0700 (PDT) X-Received: by 2002:a2e:80d2:: with SMTP id r18mr10338175ljg.98.1599482888015; Mon, 07 Sep 2020 05:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599482888; cv=none; d=google.com; s=arc-20160816; b=dV5nSuar2TT3vPokvdVxkPba3ozNi+i8meMv4JnP3VvNcNtJ0eA4FnQfbg53MxlZ7j DfXCdiOULlkBREpx+7HauD4/Qz5pnBU1GGSc3O911cVWeaKTnJ9wLzJxFkIfWbOom5py tDSWSOemeDwccaaabjMyVGm2RKjlLILp1r4xuCZ3+5/FLBymxWny+B3QP8QyTEiPvnH0 d8bpN4ZtQLpRC6s+e0ImSTdfc6ywumaEUjkCIpFxIi1dfoM77Y71uLY4Ng6N1w6Y6cpY oJ0JuN0/AosSp4+ugX+Obq5ydbab62Wk481CY8MTN4IK69fQwg56boVm7x9iXQWtncEm Fh5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:mime-version:date:message-id:from:references:to:subject :dkim-signature:dkim-signature; bh=6XyCVXH8PWHjiAX30yvM2nJLUYiCzCfnyLtiLggX2Bk=; b=XusgtoJfbSxEYttBjG57Dcw6tCRFXisho6kA1+q6EkUTOlnNWXiL8mk3JmRTVHn2GE Gp+uL2OmTQ0yGphFCCMp20p8FrhZ7NV0Bt7xrlHsH8RlteYhfD7y3qYskb8sv2a2Zt4w qSKSQTcumciusv0HDcCbwxIbMweayxsgmRXcJ4y2ILDh3AYb3Hg5TeElzUCqrofD+a8h b0PN6k0Cpez8ur+gqGMr21Yxw8v4SHVCM3GZPcEylnKbklPZ6wCuOnuSTKQz/PVziGQE SI4JiZAsPnt/BJzG7gT6g9rF35gmEh05Y2togxbfs0ZAQJg1eWMjtchK8BpMLNxK6ZZk foAg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=qoEJDpdY; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=LCxPmE3a; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [2001:67c:2050::465:201]) by gmr-mx.google.com with ESMTPS id q20si372574lji.2.2020.09.07.05.48.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 05:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) client-ip=2001:67c:2050::465:201; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (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-201.mailbox.org (Postfix) with ESMTPS id 4BlSkH2NKlzQkm8 for ; Mon, 7 Sep 2020 14:48:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id OIvE48UgEZeN for ; Mon, 7 Sep 2020 14:48:03 +0200 (CEST) In-Reply-To: <571d8037-a829-4216-aac8-6fab02b386c9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -3.94 / 15.00 / 15.00 X-Rspamd-Queue-Id: 0D6AC8A9 X-Rspamd-UID: a5a691 X-Original-Sender: denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=qoEJDpdY; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=LCxPmE3a; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:201 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.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:26074 Archived-At: This is a multi-part message in MIME format. --------------52C2C6874937C029B55A9F91 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Hi, Am 07.09.2020 um 06:28 schrieb Matt Gass: > I'm having difficulty using pandoc with the latex package=20 > turabian-formatting=20 > =C2=A0thesis, but some=20 > conflict between the pandoc latex template, `pandoc-citeproc`, and/or=20 > the latex package is clobbering the bibliography: Giving advice is difficult without knowing more details... E.g. how are=20 you loading the turabian-formatting package? > If I use citeproc, the bibliography is inserted at the end of the main=20 > body where the paragraph formatting is not correct for a bibliography. Yeah, that's the way the bibliography is inserted at the moment. You can=20 adjust the formatting if you redefine the cslreferences environment. The=20 default is: ```\newlength{\cslhangindent} \setlength{\cslhangindent}{1.5em} \newenvironment{cslreferences}% =C2=A0 {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% =C2=A0 {\par} ``` So, maybe that may be an easy solution if paragraph formatting is the=20 only problem. I don't know this particular package. But maybe you could just add a=20 `\backmatter` commmand somewhere at the end of you paper? > If I use biblatex and `\printbibliography` command rather than=20 > citeproc, the bibliography never appears. You are using the the `--biblatex` option? If so, the documentation says=20 this: > Use biblatex for citations in LaTeX output. This option is not for=20 use with the pandoc-citeproc filter or with PDF output. It is intended=20 for use in producing a LaTeX file that can be processed with bibtex or=20 biber. So, you can't go directly to PDF, but you'll need to produce a tex-file=20 first. Then you can do pdflatex, biber, pdflatex as usual. > I've also tried to merge the default pandoc latex template with the=20 > turabian-formatting template, but citeproc seems determined to place=20 > the bibliography at the end of `\mainmatter`. Yes, that's how it is currently. You can use this syntax to move your=20 bibliography to some other place: ``` ::: {#refs} ::: ``` But I think it will always end up in the body. @JohnMacFarlane: Will your new-pandoc-citeproc library change that? Best, Denis --=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/e88ddd38-589f-a806-45cd-b0231e00d9bb%40mailbox.org. --------------52C2C6874937C029B55A9F91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,

Am 07.09.2020 um 06:28 schrieb Matt Gass:
I'm having difficulty using pandoc with the latex package turabian-formatting=C2=A0thesis, but s= ome conflict between the pandoc latex template, `pandoc-citeproc`, and/or the latex package is clobbering the bibliography:

Giving advice is difficult without knowing more details... E.g. how are you loading the turabian-formatting package?

I= f I use citeproc, the bibliography is inserted at the end of the main body where the paragraph formatting is not correct for a bibliography.
Yeah, that's the way the bibliography is inserted at the moment. You can adjust the formatting if you redefine the cslreferences environment. The default is:

```\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
=C2=A0 {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
=C2=A0 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}= %
=C2=A0 {\par}
```

So, maybe that may be an easy solution if paragraph formatting is the only problem.

I don't know this particular package. But maybe you could just add a `\backmatter` commmand somewhere at the end of you paper?


I= f I use biblatex and `\printbibliography` command rather than citeproc, the bibliography never appears.

You are using the the `--biblatex` option? If so, the documentation says this:

> Use biblatex for citations in LaTeX output. This option is not for use with the pandoc-citeproc filter or with PDF output. It is intended for use in producing a LaTeX file that can be processed with bibtex or biber.

So, you can't go directly to PDF, but you'll need to produce a tex-file first. Then you can do pdflatex, biber, pdflatex as usual.


I've also tried to merge the default pandoc latex template with the turabian-formatting template, but citeproc seems determined to place the bibliography at the end of `\mainmatter`.

Yes, that's how it is currently. You can use this syntax to move your bibliography to some other place:

```
::: {#refs}
:::
```
But I think it will always end up in the body.

@JohnMacFarlane: Will your new-pandoc-citeproc library change that?

Best,
Denis

--
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.com/d/msgid= /pandoc-discuss/e88ddd38-589f-a806-45cd-b0231e00d9bb%40mailbox.org.
--------------52C2C6874937C029B55A9F91--