From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/19123 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: chapter wise bibliography in docx Date: Thu, 4 Jan 2018 08:23:19 -0800 Message-ID: <20180104162319.GB15709@Johns-MacBook-Pro.local> References: <2190ca6a-6085-4a46-a5aa-48e2b6cf3d10@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1515082896 30300 195.159.176.226 (4 Jan 2018 16:21:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2018 16:21:36 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: 'Stefan Stiene' via pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBBNKXHJAKGQE4GWD2XA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 04 17:21:32 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f60.google.com ([209.85.214.60]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eX8Gp-0007S3-AD for gtp-pandoc-discuss@m.gmane.org; Thu, 04 Jan 2018 17:21:31 +0100 Original-Received: by mail-it0-f60.google.com with SMTP id g69sf2260450ita.9 for ; Thu, 04 Jan 2018 08:23:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1515083014; cv=pass; d=google.com; s=arc-20160816; b=eT4Djqjp2JqaJdrwDAGPh7D0N9FaR8VBsp/6MxlvVjRsxeHg+NqfNs2KtuT1mwbNpz Bj6LC6VtOz9IPzUOFzBAKmkqB0bObl2pRPRXisRqK5NZb5Yj7ZWcfu7v2VsFM0gIg0ZE LqyltEI/9cUvRzx+2kPCe6eQirmMlgX0HotSt0qJ7X4gRr3BsF4N/4VI8M364PSVMMUg TMpKt8pSn9eqFEk2bORMLkcXZ4IAAFsVvG0dAd6qm+qTGLBdkqcvqFAYtPritIxxMxhF jc2MBWwxDovtVorwWDQbOF4PpEHkGT6tHAHwR+IC2Q21s7GdgDmUHz3Cye4iCySG6kG/ KRMQ== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=eP2W46ELu4HJR7bu2awNuMYGrYfWhCY5TLFWEaOtdf0=; b=FlfUPlFZWwUhahlWmdFtJR7zuxxXU9SgjUrJZpjqN91fY4obY/J/1rJni2vL596iMb CbtEfiGuw+3xIAVL0QR+CZ9flWNtHU2fUDjN4wR66DeJf0D533xtFW9FZPL1BG+WdUsJ kOHXICDxa6xwlsgc4UJB0Az2e6DkFk7dbW9ev8jGXebRCmreTPpWcM1vaaAlMiHi+u8X O6dYB7ZcGPt+4lKPVtrnsm2AL1M8xnW77ADPA0N6P5EQxaafsH12s6YCHzov9Aaz/aRw X7PrHaEogrr9wHia3RujAesfCXPT/fUyEDcwYkPgkdBZHDhYJEe6vmYchuCh/V50JD9s ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=jwukLnrA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::233 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:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=eP2W46ELu4HJR7bu2awNuMYGrYfWhCY5TLFWEaOtdf0=; b=V3cALJaQ4PS+MKwMxUfUwpVJCrXZco9LDlzocX0cPt5c0L8FOUHsz9FbsZSBKKCLHQ Vw943lWImhN5PM/4EUdG2Xd3IWLz8xYDHOxBrI68IgNSL2RQg1Brl0SGCM/3wRK6o7wg Vd0DLySoTQ0Y3i1WWKGL595XOINrTGco8rIx4AIT8DZ3tRvkPATa5UylRFJiFs3i8L2M 4r8xdmgQdStAcpGgXkBGuHxoFoNZCgmvE8pHyCNw6OxFV7by70fHI6moATgq+bkh0wa8 wPvZhFr8uaBd6NewEpbChmQH5/ZIeIMnWwIAv/v1ZNVhoEzOJjDLDwET7ipZyxQ9bdFs 6sbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=eP2W46ELu4HJR7bu2awNuMYGrYfWhCY5TLFWEaOtdf0=; b=NDq9TsSWgRD3jJR8o/hPdkIsQx8KiBuDuS5TrYSUqCsRm7aJX7wDhIJXbgByxSitdX 7CQwYhiGzp78hkJqxT/zdoRre1qzjEi6AKecIGT//jzIFb5KDq3dOZp/QxRwq3AeqtcS 0/nvLL0v8MOJboHNaL3x7gGeSzL9+hnckK7gZzliTPZ1JaucaMlG/cDT4dHQulwoStnR vxfZGvdHsTTOtILEL0BnnWARGiKJCch2ufAD2b0i4ZsZa5MkuZMSFdSntwRMWPSIDreS Q/H3+DujJvsmododOEd5LNmMi8ycE+4i1ZdJLawqmiMty4j2Arak2/CKkRel8rXFg55w Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AKGB3mILhLPAI1bGTRtkHzjHMupWBBu4fnHc2ugLC+zHWACMOt/fap94 YvGPtWPEgZGHsO77RZoyMlE= X-Google-Smtp-Source: ACJfBos/VqVKTSLVEO701+lYItVUmL5mF1VUxm9oIpVNYJdbF6PzBJM+h0sMGTreOa0hmLDtU1OqKQ== X-Received: by 10.36.69.208 with SMTP id c77mr847itd.5.1515083014552; Thu, 04 Jan 2018 08:23:34 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.35.198 with SMTP id j189ls15498ioj.22.gmail; Thu, 04 Jan 2018 08:23:33 -0800 (PST) X-Received: by 10.107.41.16 with SMTP id p16mr63731iop.2.1515083013587; Thu, 04 Jan 2018 08:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515083013; cv=none; d=google.com; s=arc-20160816; b=DXZzyg3sSHfwQkQ74O344GxOB/RhlqNee7HVk5RzVkysJb2Va6cukXQgYjQe+0v6e5 bzTsbkBRaKOf4Uog0Yjw5KRIcrCj1SR1xgW3LsC4D/k3vCDBjpgdL/+Xx3xDFxwRplc7 he/vpTZ/8zfY3NApcUHib7UgWq7Z8ULgVukSA5d+BP4RYL/ii0pwjPkooxo8R20Z+SbU vZMLDG8tZIf0gJev8mKPJZi+A9klaNsT1u38YQJxhC3BuPESHejtpyliCfCbC/FdgqlO W7XXV3r3HacSg4Qi8DiCn3Rh4bdBjZxsGPnX/taaOjW8MnfQtGNaofq+NdU5ZrSPJrLa GTmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=u8M/jqKRSwIEESizdPH4ALVF7n3C9YcO3fgk9C4Ybg0=; b=Tvbjw5wuIdhGqsPsPHVMncW5TMHHZaApRbvkBSV+3xQgilTW7KcY+YecyJEVfX5iMQ 22zH8MPJE4O22I+a0lHFVOolkwohvHDZmmffBcUT4BJhV5xO9HvrDeOdLx+tqVSF1CH+ 67v4nVXv3brm01rLhw40fxitrrgp+c0/YN63+V/GKVC3QVIH5PiESk78YWuQy+9lKe5k NCrdHFYrV/6Hy/ZEF9IeR2Orn66uk/+Ys5X/IYqu84KvIMO8tluqabRO5aUX8jt/XjZc unYgvSaMtEkNS0VTASTPYPwijclBlsVJW38gYA5ejmm4IveT/4vpOOeunuOqcb3KOmZT hsZA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=jwukLnrA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::233 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com. [2607:f8b0:400e:c05::233]) by gmr-mx.google.com with ESMTPS id m133si151868ioe.5.2018.01.04.08.23.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 08:23:33 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::233 as permitted sender) client-ip=2607:f8b0:400e:c05::233; Original-Received: by mail-pg0-x233.google.com with SMTP id 81so871621pgf.6 for ; Thu, 04 Jan 2018 08:23:33 -0800 (PST) X-Received: by 10.101.65.203 with SMTP id b11mr82159pgq.44.1515083012723; Thu, 04 Jan 2018 08:23:32 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a23sm7957757pfa.177.2018.01.04.08.23.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jan 2018 08:23:31 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7999BA21C; Thu, 4 Jan 2018 11:23:20 -0500 (EST) Content-Disposition: inline In-Reply-To: <2190ca6a-6085-4a46-a5aa-48e2b6cf3d10-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc 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=jwukLnrA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::233 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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:19123 Archived-At: Pandoc-citeproc doesn't support multiple bibliographies, sorry. You could probably work around this by processing the parts separately. E.g. suppose your chapters are chap1.tex, chapt2.tex, etc. for x in 1 2 3 4; do \ pandoc chap$x.tex -F pandoc-citeproc \ --bibliography references.bib -M link-citations \ --csl ieee.csl -t markdown-citations -o chap$x.md ; \ done This gives you chap1.md, chap2.md, etc., with the bibliographies in Markdown format at the end of each chapter. Then stitch these together: pandoc chap*.md -o book.docx +++ 'Stefan Stiene' via pandoc-discuss [Jan 04 18 01:12 ]: > Hi, > I have a latex file with a bibliography after each chapter. I want to > convert this into a docx file but all references go into one > bibliography at the end of the document. Is there any chance to > generate multiple bibliography sections in docx? > I use pandoc 2.0.6 and the pandoc cmd I use is: > pandoc -s word_bibtex.tex -o pandoc.docx --metadata > bibliography=references.bib --filter pandoc-citeproc --metadata > link-citations --csl ieee.csl > In latex I use biblatex like described here: > https://tex.stackexchange.com/questions/333617/how-to-use-chapterbib-pa > ckage-syntax but I'm not bound to this. If any other solution > (multibib, chapterbib,...) works with pandoc I can switch. > Thanks and Regards > Stefan > > -- > 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/2190ca6a-6085-4a46- > a5aa-48e2b6cf3d10%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-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/2190ca6a-6085-4a46-a5aa-48e2b6cf3d10-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout