From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26080 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Gass Newsgroups: gmane.text.pandoc Subject: Re: MMD to PDF with chicago/turabian styled bibliography Date: Mon, 7 Sep 2020 19:00:44 -0700 (PDT) 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/mixed; boundary="----=_Part_2482_1973599726.1599530444251" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29916"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCH4BGORWIPRBTOL3P5AKGQEHOL7NPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 08 04:00:49 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f187.google.com ([209.85.167.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFSwD-0007gk-5r for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Sep 2020 04:00:49 +0200 Original-Received: by mail-oi1-f187.google.com with SMTP id k78sf2810457oib.5 for ; Mon, 07 Sep 2020 19:00:49 -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=A7AKVhlaVewBuI1xrhVxJ0T0/gBhzuPY3f6jpwHzJGM=; b=XoxPoefd2Mcn38kSMjYq2acQTVEVH60iisOYBR31P10ULvpspkUcyeQJFZJKJMBe6Z 60S8Iw/rrGr2WZXc7vXMXd9jc+M6FHJDHNgV+eDDUISs4+1QBGthJVLH26kILPL2BjY5 eTHEF2q0ZxyqTSDTPHPCOF7yusjmaHJ3ABezDeD+RE42+ywSpb20y5nOeUIZFfnPggx2 hHHe5xAMLcKEzL4xFk4NX7P4Q3W5jGhkbVVdkSpR44WSrNbz2hVBP/h0q5VJrxXCZqN7 ek8UjNJzUxRAau1S/js9RApc/P1pE/cbLD0WXOk19hQCTr4VUa/kIksMfs7QrsfDBTAu Ec7g== 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=A7AKVhlaVewBuI1xrhVxJ0T0/gBhzuPY3f6jpwHzJGM=; b=dLAe9Z9ssWHt+9xZDetd8UCVUqTFzBoJzRhHnK9cdQihmtl+TzBVapS8ejSY90KNbj RqE+Ahr1OGoEK4tQA3FPLwgOiOwKC/inq7XinUI0GxRvOC/nVeZpu3/xn3Tcpzd/WOs3 aZpRE5Zwg6rTr0rKN3/dRHzrp3EKm2wWHxCVJBnqZlUreSRq90zT5h+BIbWQ7Nje+hA3 97h2yO0IvhkEvcuww8sfIoBn/MeHMFMrqciHdz1yRepERQWQu8was6MPq0xWNQki1WwI 5iQMc4jAedUEaWRUeEQj2szpUhFOWh3qXPqHBGxL/gQN7qs0RuxMfBizdz24+E0KvpMJ yQEw== 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=A7AKVhlaVewBuI1xrhVxJ0T0/gBhzuPY3f6jpwHzJGM=; b=ofWFheZ3JY5VYdhqtrBrF/Bde1BNe+VEZNS+5SOjR59Ijdj0CqXJyB8V6dfhiBt3Xt 4fwKbmcjOrNjCvT9q9NSC6+KrMKVkdZjsH268ZSvaslj//3PsUK1KC030EerZ0RiTr1b JqvgzKByht/YBhar5Ua58WgqxALoCUsUTYpzW3y9cNaFB6A7U9v9Lp00GaDgzlX6xfLI l0y48payu6OZhOI30sR9ISJdKYr8EXIlgd136SxUT0NoKghKKZ6flfeKZK5jjdrXEtDs v37KkLgn6T5Yp0Vv+Gp/4ysse8Mv1kU7XXma34BI82Ad559eoW+TcV0QtYF9LZBXZiLX URXQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ICQI9OKIKDulDtkdjFUttfEDARve1ECldmz1AkKmKYQ5g19OV oeNHI1QwB1dawqgnKqc986A= X-Google-Smtp-Source: ABdhPJz3BDjDzXlLg0g7bokl7+KdUi5oO8n3KsMXQPxoOlVzsZ789rcfPwEB2Fy1n2b/IET6ITvavg== X-Received: by 2002:aca:4b12:: with SMTP id y18mr1280822oia.28.1599530448139; Mon, 07 Sep 2020 19:00:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:49c9:: with SMTP id w192ls3909361oia.5.gmail; Mon, 07 Sep 2020 19:00:45 -0700 (PDT) X-Received: by 2002:aca:5d89:: with SMTP id r131mr1231571oib.120.1599530445147; Mon, 07 Sep 2020 19:00:45 -0700 (PDT) In-Reply-To: X-Original-Sender: matt.d.gass-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.io gmane.text.pandoc:26080 Archived-At: ------=_Part_2482_1973599726.1599530444251 Content-Type: multipart/alternative; boundary="----=_Part_2483_1598433100.1599530444251" ------=_Part_2483_1598433100.1599530444251 Content-Type: text/plain; charset="UTF-8" Thanks, Denis for your reply. Hi, > > > Am 07.09.2020 um 06:28 schrieb Matt Gass: > > I'm having difficulty using pandoc with the latex package > turabian-formatting thesis, > but some 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? > > > If 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}% > {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% > \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% > {\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? > > > > If 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 "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/b37916e0-f90f-4c8e-abd9-2fc51d62b992n%40googlegroups.com. ------=_Part_2483_1598433100.1599530444251 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Denis for your reply.

<how are you load= ing the turabian-formatting package?

I tried setting the= documentclass with the `--variable` option like so:

```pandoc --variable documentclass=3D"turabian-researchpaper" --pdf-engi= ne=3Dxelatex --bibliography "Bibliography.bib" --csl "chicago-note-bibliogr= aphy-with-ibid.csl" --filter pandoc-citeproc Big_Idea.md -f markdown_mmd+ci= tations -o out.pdf
```
In order to customize the biblio= graphy formating, I started customizing the default latex template.

I modified the cslreferences environment as you suggested= :

```\newlength{\cslhangindent}
\setleng= th{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
  \singlespacing
  {\setlength{\parindent}{0pt}%
  \setlength{\parskip}{1em}%
  \everypar{\setlen= gth{\hangindent}{\cslhangindent}}\ignorespaces}%
  {\par}
```
But this makes the space between entries single not d= ouble. Is \parskip not the command to use for this?


On Monday, September 7, 2020 at 8:48:14 AM UTC-4 Denis Maier wrote:
=20 =20 =20
Hi,


Am 07.09.2020 um 06:28 schrieb Matt Gass:
=20 I'm having difficulty using pandoc with the latex package turabian-format= ting thesis, but some 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?


If 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}%
  {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
  \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}= %
  {\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?


If 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/b37916e0-f90f-4c8e-abd9-2fc51d62b992n%40googlegroups.= com.
------=_Part_2483_1598433100.1599530444251-- ------=_Part_2482_1973599726.1599530444251--