From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32934 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephan Boltzmann Newsgroups: gmane.text.pandoc Subject: Re: citeproc: Missing indentation in DOCX output of list of references Date: Tue, 11 Jul 2023 08:04:48 -0700 (PDT) Message-ID: <165231d1-2fa2-4adf-97c2-cf0a9a994e8bn@googlegroups.com> References: <2a000ffa-6d52-46a6-813e-f05ff3bcbe67n@googlegroups.com> <778adde0-a246-417e-9dc7-57b31a810273n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3606_322876836.1689087888112" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14254"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZ25UWY24ERBEO7WWSQMGQE67D2BSY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 11 17:04:54 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qJEv6-0003Q5-T7 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Jul 2023 17:04:52 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id 006d021491bc7-560c7abdbdcsf4784579eaf.0 for ; Tue, 11 Jul 2023 08:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689087891; x=1691679891; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=P2b5WploCMk9/J1thm//HMsDc+qB7/dYlWv2+KO2C90=; b=EZDfYcbp54UIFlft+wOmVwT0KLYX3n5T/lB+Hz1gt3VFBZReQmM6cSIqa9XtJ2iS64 LXjsllAuNeMLoped5S1NEQK6lDR5EEWyD7oo++K3NmJuh82FSorEXWJMwhb/BK1F22yW Y69nUe/9QahoRqRja8bTwTfHUNcQiRy1z8aEeQptmqYtPK10V5jzixr2T4ldJMmrevai DmNkgLk409Xlq8IksBSMzukGXeC9rQzXTv12OykrYWeH+3EBZ//kopWsEN4hUlRPdvdD sUviPVb0rWT0bdk+w8PEBRQK+lRlIdEF88W5cImwfJNzqs2g+/B9shExqHVkSfwOV5w+ Ticg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689087891; x=1691679891; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=P2b5WploCMk9/J1thm//HMsDc+qB7/dYlWv2+KO2C90=; b=Ob6LUQywelIEZObRa7vrsPEvwjCG5piUVQEXyhSVvVxouSvrv8ewbXMYoF2bN/0mn/ jP04s90QiNx58mCBp3U7lJyj2D8WL7KByHa6iWsfdr9CTTjMW53Gu6fd2RK6YuklEjmI FZcF2RGtc4/ulCt6GpH0nUFecdI8y1/9Z6xTgslUSqyZDW3ENHJzsyaned9HXRfOnO+c IroDoAEyOLUz7+HC/pfuSIXfStP/8oy1hHijbhMmv7X2WumxqebUn+paBLNuiTLHsuix WR9QuSsOYJ8K7jnN6s+5qKbl9Ep6Zbq6wDUGGAuRuO/WlPTqMWirMgMKOzdf+v1fM+5o fs4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689087891; x=1691679891; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=P2b5WploCMk9/J1thm//HMsDc+qB7/dYlWv2+KO2C90=; b=HDwqiKRed+m54ouIKwIZElJTZMS04AruaUMSQgRn3fbWwXX/Zmz7GYvlr01yhfoqT/ 9oKI0SoeAz2ofafU85OKrJks0tyo+H6+L/genFQQere7zvVl7wCMKG5Fp1MZTm0El/Fr jvQ8kZsywTLUYutmZlkgn/mUZ2ol9W45agZcdU0zLLewumLBNDp/EpOW7Ax4vz+P9lGb 1RAuHllQ95omC5BWJTuxfaZJtmGEEJcDqDSYEMyZUcVz0ErNyEQZHnjXRjZJgvMmMvNO x9hmsnY2I3rxWlY7FoOf6coesuNWqryb+M08iTesOgaUcAzNr7 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLZdpwTHODcWB/Df4pE4HtJ6ihNlPazfnXE2j5cd+Xu4W7hNi6lP xchrTMnMHEM5iIJeiMGLJRw= X-Google-Smtp-Source: APBJJlEVAAmSg52w+z2aA+5yGvxbvM9ltJ8mMgcqIvkbEWu9bQd6Fc03XBzQNc9G6ZubnQaItoPxwA== X-Received: by 2002:a4a:410e:0:b0:565:c113:811e with SMTP id x14-20020a4a410e000000b00565c113811emr10494035ooa.1.1689087891210; Tue, 11 Jul 2023 08:04:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1ac4:b0:560:bcd4:8c7b with SMTP id bu4-20020a0568201ac400b00560bcd48c7bls103325oob.0.-pod-prod-04-us; Tue, 11 Jul 2023 08:04:48 -0700 (PDT) X-Received: by 2002:aca:6209:0:b0:3a3:9990:f396 with SMTP id w9-20020aca6209000000b003a39990f396mr1707148oib.11.1689087888662; Tue, 11 Jul 2023 08:04:48 -0700 (PDT) In-Reply-To: <778adde0-a246-417e-9dc7-57b31a810273n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: stephan2boltzmann-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:32934 Archived-At: ------=_Part_3606_322876836.1689087888112 Content-Type: multipart/alternative; boundary="----=_Part_3607_1004143722.1689087888112" ------=_Part_3607_1004143722.1689087888112 Content-Type: text/plain; charset="UTF-8" A minimal reproducible example would look like this: bibliography.bib: @article{lin1973, author = {Shen Lin and Brian W. Kernighan}, title = {An Effective Heuristic Algorithm for the Travelling-Salesman Problem}, journal = {Operations Research}, volume = {21}, year = {1973}, pages = {498--516} } document.md: # Introduction @lin1973 developed an algorithm for the travelling-salesman problem. Stephan Boltzmann schrieb am Dienstag, 11. Juli 2023 um 16:58:55 UTC+2: > Thinking and searching hard for a solution, the closest I got was to use a > DOCX template file with an enumeration in the references. > > A disadvantage of this solution is that it is no longer possible to use > the same CSL file for all output formats (because this would cause > duplicate numbers in DOCX output; in this case it is necessary to remove > the numbers). > > There was a discription the same problem on > https://community.rstudio.com/t/csl-style-is-not-recognized-when-output-in-word/143064. > I think it would be nice to have a fix for beginners. > > Stephan Boltzmann schrieb am Freitag, 16. Juni 2023 um 13:00:07 UTC+2: > >> Hello everybody out there using Pandoc-citeproc, >> >> Generating a numbered list of references from Markdown with >> Pandoc-citeproc for LaTeX output works great and there is a nice >> indentation after each (sequential) number for all references. >> This indentation is missing when generating DOCX (Word) documents for any >> citation style (CSL file) I have tried so far. >> Each reference is displayed in according to >> 1. First author, second author: A long title with >> a linebreak. Journal, Issue, Date, etc. >> whereas I would prefere >> 1. First author, second author: A long title with >> a linebreak. Journal, Issue, Date, etc. >> Is it possible to have this kind of indentation for list of references in >> DOCX documents? >> Surprisingly, I could not find any solution about this issue by web >> search. >> >> I made sure that the CSL files I use really included suitable indentation >> tags and also tried to adjust them but so for without success. >> Are there additional diagnostics I could run to pin down the problem? >> > -- 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/165231d1-2fa2-4adf-97c2-cf0a9a994e8bn%40googlegroups.com. ------=_Part_3607_1004143722.1689087888112 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
A minimal reproducible example would look like this:

bibliography.bib:
@articl= e{lin1973,
=C2=A0 a= uthor =3D {Shen Lin an= d Brian W. Kernighan},
=C2=A0 = title =3D {An Effecti= ve Heuristic Algorithm for the Travelling-Salesman Problem},
=C2=A0 journal =3D <= /span>{Operations Research},
=C2=A0 volume = =3D {21},
=C2=A0 year = =3D {1973},
= =C2=A0 pages =3D {498= --516}
}

document.md:
# Introduction
@= lin1973 developed an algorithm for the travelling-salesman problem.

Stephan Boltzmann schrieb am Dienstag, 11. Juli 2023 = um 16:58:55 UTC+2:
Thinking and searching hard for a solution, the closest I got wa= s to use a DOCX template file with an enumeration in the references.
<= div>
A disadvantage of this solution is that it is no longer = possible to use the same CSL file for all output formats (because this woul= d cause duplicate numbers in DOCX output; in this case it is necessary to r= emove the numbers).

There was a discription the sa= me problem on https://community.rstudio.com/t/csl-style-is-not-recognized-wh= en-output-in-word/143064. I think it would be nice to have a fix for be= ginners.

Stephan Boltzmann schrieb am Freitag, 16. Juni 2023 um 13:00:0= 7 UTC+2:
Hello ev= erybody out there using Pandoc-citeproc,

Generatin= g a numbered list of references from Markdown with Pandoc-citeproc for LaTe= X output works great and there is a nice indentation after each (sequential= ) number for all references.
This indentation is missing when= generating DOCX (Word) documents for any citation style (CSL file) I have = tried so far.
Each reference is displayed in according to
1. First author, second aut= hor: A long title with
a linebreak. Journal, Issue, Date, etc.
whereas I wou= ld prefere
1. First author, second author= : A long title with
pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/165231d1-2fa2-4adf-97c2-cf0a9a994e8bn%40googlegroups.= com.
------=_Part_3607_1004143722.1689087888112-- ------=_Part_3606_322876836.1689087888112--