From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28390 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeffrey T Newsgroups: gmane.text.pandoc Subject: Re: LaTeX footnote citations parentheses Date: Tue, 18 May 2021 19:21:54 -0700 (PDT) Message-ID: References: <26bec817-c8b4-4d63-ad5d-436aa281c0d7n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_142_1829089788.1621390914708" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30821"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCTKDNPE2AFBBRPMSGCQMGQEVOOSQZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 19 04:22:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljBqR-0007m4-U9 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 19 May 2021 04:22:00 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id d17-20020a0568300051b02902eef7abfb41sf7957948otp.17 for ; Tue, 18 May 2021 19:21:59 -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=/bviQXfHmoovD3y/65+3RtR/KlqVx3A36z89HqKPVC0=; b=QKe0bVjAX9B3MeVeTFhDO0XsUJvFuM+6H0RD/zU+2TNOenYuoYeLemgLWf8YCi4oy9 nNBdOrXThpsulfNxbuIurm1MewHin7IYH8aj1A5DIjOm6qbTr5D4Ow06WKL3Lb55BJbu 5wPE2PGU5mPJ023mtLr/Rc5nFwGwycuEqs4XtCssr1k9M7HXqkO07Vw+cQ5SybweKPYm Cctl3EfNFlSgl+NuNkKMRjNQI+qmvFKAzYG2XdAA/OoDnWk7PO2yMN9A+E8y/F0lAZXx Rr4GhnXZHTnYaq3c+TqRq4eNVjlZYQggqdRAAvEHvaH6bBfWCyeIEhR65kgy6L0fcLKi 0R6w== 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=/bviQXfHmoovD3y/65+3RtR/KlqVx3A36z89HqKPVC0=; b=p46CUrPcdZUdFa0VWfcbsK497sWZYM44T7wYWxijrJBxZRLNEdy19S/Yb3pkqtQMDH QilrBq1bIWmIaYbzJmDktQbxQiLLGnqJOJciYjIIch3qzQeMVM01A5gcZXUWqQ/IVgDh SpcqEalbqzgFu63gacCrHPj2/6sOMcXB8ELeqK9LHYsDBoQG0jQw3Cequtx810QRBSFq vT2MvqEBBip5bqP2g/jSMVH5UiXbaJjYegF6sYbXMm86f07Y6fgjJQfjqFzH0IsMvc1a sZTYlrRcUQJDzO86hthQzNUc9JUW2FTL8p6HBAYTq4D9SbEKLq2dpqXhcTAxstd3GOCp JyIQ== 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=/bviQXfHmoovD3y/65+3RtR/KlqVx3A36z89HqKPVC0=; b=UHIXOiQDkwo5T3bIxUCV2By/SvKmgod8nKtBvNUDmETzUWJc7N2JLjvhE3U3usWJa9 x6+mEv+q7gunaMFNdVXbfA+/PXXjvCuKt3Cmx5goMb4e5NCKqpAVdHl378j6eRTZVw9e RFsOoQhDmFqVegdOj784OzfqoGrEPPREKBQ0Ee13uIeVA+Oi54SgTnsOmF6hzV29//ba ajtmwfePmITNGKIhTpDgIbaQMI6Cgh6OkeMESZeqp8JAV+JnBynAHx+zsZhH+93r2lpA GCPNW05D0y9uA1eEWskm50skJciAnKBXbWae/iIxWWy2OxlNgVUcr7VtiWvAdiTjyTqr YCLA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530EUgPESqibJi8hpp09zoc7LIUSiApLVpgfA391v3b5J1jQwwff huuMypkUSu6Sa5+izQ4m+0U= X-Google-Smtp-Source: ABdhPJw1hDAEcnSxBmO1GGNe/iExb98v/yAOFRl2OwdbtYpaCTcqRY3xTQwHlzlRhgtQf2eoYtleRA== X-Received: by 2002:a4a:d0a5:: with SMTP id t5mr6735664oor.62.1621390918894; Tue, 18 May 2021 19:21:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:fdd2:: with SMTP id b201ls5997180oii.8.gmail; Tue, 18 May 2021 19:21:57 -0700 (PDT) X-Received: by 2002:a54:4e82:: with SMTP id c2mr5918989oiy.137.1621390916872; Tue, 18 May 2021 19:21:56 -0700 (PDT) In-Reply-To: X-Original-Sender: JeffTreistman-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:28390 Archived-At: ------=_Part_142_1829089788.1621390914708 Content-Type: multipart/alternative; boundary="----=_Part_143_437751330.1621390914708" ------=_Part_143_437751330.1621390914708 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Bastien, Thank you very much! This script with Pandoc is an absolute game changer in= =20 terms of my workflow! Do you mind if I share your script with others? Again, thank you! On Sunday, May 16, 2021 at 12:54:24 PM UTC-4 Bastien Dumont wrote: > You're welcome, I already had done much of the work for myself, so I am= =20 > happy if > it could be useful for others as well. > > I had'nt anticipate=CC=86d that you would also use \autocite in the body.= I=20 > restricted > the scope of the filter to the footnotes, so you should not have errors= =20 > anymore > provided that all your use cases are documented in the text file. I=20 > supposed that > you don't want the output of \autocite to be changed. Please try the file > attached. > > Le Saturday 15 May 2021 =C3=A0 08:34:22PM, Jeffrey T a =C3=A9crit : > > Hi Bastien, > >=20 > > Oh my, thank you very much for taking the time to assist! I downloaded= =20 > your Lua > > filter (I didn't realize that filters were possible with Pandoc!) and= =20 > included > > it in my Pandoc command: > >=20 > > pandoc --citeproc --lua-filter=3Dremove-parentheses-from-cite.lua Test.= tex > > --bibliography=3Dtestref.bib --csl=3D > > chicago-fullnote-bibliography-short-title-subsequent.csl -o test.docx > >=20 > > It worked perfectly for the \cite commands contained within \footnote. > > Unfortunately the remainder of my book manuscript uses \autocite for=20 > references > > outside of footnotes. When \autocite is included, I received an error= =20 > message: > > "bad argument #1 to 'gsub' (string expected, got nil)" > >=20 > > If helpful, I've attached the test .tex file I'm using? Your assistance= =20 > is much > > appreciated! > >=20 > >=20 > > On Saturday, May 15, 2021 at 6:05:21 PM UTC-4 Bastien Dumont wrote: > >=20 > > I had a similar problem that I resolved with the attached Lua filter > > (slightly > > modified to adapt it to your needs). I hope that it will work for you. > > Simply > > call it after --citeproc. > >=20 > > Note that it will throw an error if you have \cite commands outside > > footnotes. > > If that it the case, please let me know. > >=20 > > Le Saturday 15 May 2021 =C3=A0 12:13:37PM, Jeffrey T a =C3=A9crit : > > > > > > Hi all, > > > I'm new to the group and Pandoc and would greatly appreciate your > > assistance. > > > I'm attempting to convert my LaTeX book manuscript into a Word doc fo= r=20 > my > > > editor. Using a test .tex file, I have successfully converted the fil= e > > using > > > the following command in Mac Terminal : > > > pandoc --citeproc Test.tex --bibliography=3Dtestref.bib --csl=3D > > > chicago-fullnote-bibliography-short-title-subsequent.csl -o test.docx > > > It works wonderfully, however, the only issue concerns the \cite > > contained > > > within \footnote. In particular, the resulting citation is now placed > > within > > > parentheses which my editor has asked me to remove. Is there some sor= t=20 > of > > > solution to my dilemma? Given the length of the book I fear it will b= e > > quite > > > tedious to find/remove the offending parentheses manually. > > > Thank you in advance! > > > > > > -- > > > You received this message because you are subscribed to the Google=20 > Groups > > > "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an > > email > > > to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit https://groups.google.com/d/ > > msgid/ > > > pandoc-discuss/f4c18da4-6145-4f93-8779-fe2bd2816c38n% > 40googlegroups.com. > >=20 > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email > > to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/ > > pandoc-discuss/26bec817-c8b4-4d63-ad5d-436aa281c0d7n%40googlegroups.com= . > > > --=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/f787dab5-f3ce-41cf-815c-21f24727b781n%40googlegroups.com. ------=_Part_143_437751330.1621390914708 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Bastien,

Thank you very much! This scr= ipt with Pandoc is an absolute game changer in terms of my workflow! Do you= mind if I share your script with others?

Again, t= hank you!
On Sunday, May 16, 2021 at 12:54:24 PM UTC-4 Bastien Dumont wrote= :
You're = welcome, I already had done much of the work for myself, so I am happy if
it could be useful for others as well.

I had'nt anticipate=CC=86d that you would also use \autocite in the= body. I restricted
the scope of the filter to the footnotes, so you should not have errors= anymore
provided that all your use cases are documented in the text file. I sup= posed that
you don't want the output of \autocite to be changed. Please try th= e file
attached.

Le Saturday 15 May 2021 =C3=A0 08:34:22PM, Jeffrey T a =C3=A9crit :
> Hi Bastien,
>=20
> Oh my, thank you very much for taking the time to assist! I downlo= aded your Lua
> filter (I didn't realize that filters were possible with Pando= c!) and included
> it in my Pandoc command:
>=20
> pandoc --citeproc --lua-filter=3Dremove-parentheses-from-cite.lua = Test.tex
> --bibliography=3Dtestref.bib --csl=3D
> chicago-fullnote-bibliography-short-title-subsequent.csl -o test.d= ocx
>=20
> It worked perfectly for the \cite commands contained within \footn= ote.
> Unfortunately the remainder of my book manuscript uses \autocite f= or references
> outside of footnotes. When \autocite is included, I received an er= ror message:
> "bad argument #1 to 'gsub' (string expected, got nil)= "
>=20
> If helpful, I've attached the test .tex file I'm using? Yo= ur assistance is much
> appreciated!
>=20
>=20
> On Saturday, May 15, 2021 at 6:05:21 PM UTC-4 Bastien Dumont wrote= :
>=20
> I had a similar problem that I resolved with the attached Lua = filter
> (slightly
> modified to adapt it to your needs). I hope that it will work = for you.
> Simply
> call it after --citeproc.
>=20
> Note that it will throw an error if you have \cite commands ou= tside
> footnotes.
> If that it the case, please let me know.
>=20
> Le Saturday 15 May 2021 =C3=A0 12:13:37PM, Jeffrey T a =C3=A9c= rit :
> >
> > Hi all,
> > I'm new to the group and Pandoc and would greatly app= reciate your
> assistance.
> > I'm attempting to convert my LaTeX book manuscript in= to a Word doc for my
> > editor. Using a test .tex file, I have successfully conve= rted the file
> using
> > the following command in Mac Terminal :
> > pandoc --citeproc Test.tex --bibliography=3Dtestref.bib -= -csl=3D
> > chicago-fullnote-bibliography-short-title-subsequent.csl = -o test.docx
> > It works wonderfully, however, the only issue concerns th= e \cite
> contained
> > within \footnote. In particular, the resulting citation i= s now placed
> within
> > parentheses which my editor has asked me to remove. Is th= ere some sort of
> > solution to my dilemma? Given the length of the book I fe= ar it will be
> quite
> > tedious to find/remove the offending parentheses manually= .
> > Thank you in advance!
> >
> > --
> > You received this message because you are subscribed to t= he Google Groups
> > "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails = from it, send an
> email
> > to pandoc-disc= us...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit https://groups.google.com/d/
> msgid/
> > pandoc-discuss/f4c18da4-6145-4f93-8779-fe2bd2816c38n%40googlegroups.com.
>=20
>=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 email
> to pandoc-discus...@goo= glegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> pandoc-discuss/26bec817-c8b4-4d63-ad5d-436aa281c0d7n%40googlegroups.com.


--
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/f787dab5-f3ce-41cf-815c-21f24727b781n%40googlegroups.= com.
------=_Part_143_437751330.1621390914708-- ------=_Part_142_1829089788.1621390914708--