From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13678 Path: news.gmane.org!not-for-mail From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: Specifying location of bibliography in document Date: Fri, 25 Sep 2015 01:38:07 -0700 (PDT) Message-ID: References: <20150829140403.GA47273@MacBook-Air.local> <20150829142113.GA47586@MacBook-Air.local> <20150829154527.GA49705@MacBook-Air.local> <20150831055419.GC60048@MacBook-Air.local> <42c762b6-b9b7-4748-b2b9-12daa5046c78@googlegroups.com> <20150831151128.GF60949@MacBook-Air.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1526_1628949204.1443170287403" X-Trace: ger.gmane.org 1443170301 16534 80.91.229.3 (25 Sep 2015 08:38:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 08:38:21 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIPX6WQ4INBB4EPSSYAKGQEJRJ4VCY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 25 10:38:21 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yk0-f191.google.com ([209.85.160.191]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfOWA-0007I5-1N for gtp-pandoc-discuss@m.gmane.org; Fri, 25 Sep 2015 10:38:10 +0200 Original-Received: by ykdg206 with SMTP id g206sf17081658ykd.1 for ; Fri, 25 Sep 2015 01:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=qmzS04SkkUf2ij5tSzJ73IxLItUhDJPGod5KHEoySOs=; b=d3b1h4RpbvKhB7iDqL8ltn53N1tfb81M5pHeBYk58b7RFmCETuDTqebU+kdie6EchX XWNXC1+F6Wn0a5drxzYwyOpuGN12wRjRAyKOIvx0mpj5t0YOR8bjAPN3DigHfhBtAVuZ kvuZOGJ4vqZ0dYuOhESI6s+RvZxPA78V3ZPu9bO6Mrg3Bx/F+euckjLcDKKCp23t9UeX eoan7NnOndHBkTLRbOgue3y3E0GbxgOVFiJGsibhVOnKBXuUqPoi2fMVVwWNefLS6cas HKlqkAol6PjLelrHYItZsEGxJ0wFbvNS4/0z2MPc1ttGyuGLaGo5QptFhWZwqzs93FNQ uo/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=qmzS04SkkUf2ij5tSzJ73IxLItUhDJPGod5KHEoySOs=; b=xr+etOJ+gwcNz4B2EIEnX9z+MX4gIpwLIID0FRgsDaDBOXT4NGByr4ffAH9g83dNmZ OeCdVQq7WXTpd4Ef3geB0Q66MzzDiFycXxDxVjEpta+P3maAKNaTIuvGFBs4lG8e7rJT vXV1YO2yWmIOWNvfojUShzViVpHXZlU6NG3Jf1asLS/3MG7LKsJ0mxv8RRekBfldiJDz BzIFzalkLkLY3TRk/5MZX2xdx45x974AhVPb1WLlrFlVEFtJ1wKrlCw9iQUJPr4VXqHT 4lRWdwKF2tXt4cZZVbvMELDO11DHVwv9i1cxOl3znxP4cH1f2R2xqWfp+hGNevU9s6Jv yByA== X-Received: by 10.140.39.244 with SMTP id v107mr37403qgv.14.1443170289282; Fri, 25 Sep 2015 01:38:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.39.101 with SMTP id u92ls1563586qgu.15.gmail; Fri, 25 Sep 2015 01:38:08 -0700 (PDT) X-Received: by 10.140.39.244 with SMTP id v107mr37402qgv.14.1443170288357; Fri, 25 Sep 2015 01:38:08 -0700 (PDT) In-Reply-To: <20150831151128.GF60949-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org> X-Original-Sender: nickbart1980-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-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:13678 Archived-At: ------=_Part_1526_1628949204.1443170287403 Content-Type: multipart/alternative; boundary="----=_Part_1527_1088750920.1443170287403" ------=_Part_1527_1088750920.1443170287403 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The latest changes seem to have broken my hanging indent filter again. I=20 tried to return to the previous version (see below), but this does not work= =20 either. What am I doing wrong. And again: Wouldn=E2=80=99t it be a good idea if the latex writer added a= =20 `\begin{references} \item [entry] \item [entry] =E2=80=A6 \end{references}= `=20 environment itself, with a suitable definition in the template(s)? ~~~ #!/usr/bin/env runhaskell -- addRefEnvItem.hs import Text.Pandoc.JSON main :: IO () main =3D toJSONFilter addRefEnvItem addRefEnvItem :: Maybe Format -> Block -> Block addRefEnvItem (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) =3D Div ("",["references"],[])=20 ( [h, latex "\\begin{references}\\sloppy"] ++=20 concatMap addItem blocks ++ [latex "\\end{references}"] ) where latex =3D RawBlock (Format "latex") addRefEnvItem _ x =3D x addItem :: Block -> [Block] addItem x =3D [RawBlock (Format "latex") "\\item", x] ~~~=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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/e1ffc34d-9306-4988-9218-47c6996c6c3e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1527_1088750920.1443170287403 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The latest changes seem to have broken my hanging indent f= ilter again. I tried to return to the previous version (see below), but thi= s does not work either. What am I doing wrong.

And again: Wouldn=E2= =80=99t it be a good idea if the latex writer added a `\begin{references} \= item [entry] \item [entry] =E2=80=A6=C2=A0 \end{references}` environment i= tself, with a suitable definition in the template(s)?

~~~
#!/usr/= bin/env runhaskell

-- addRefEnvItem.hs

import Text.Pandoc.JSO= N

main :: IO ()
main =3D toJSONFilter addRefEnvItem

addRef= EnvItem :: Maybe Format -> Block -> Block
addRefEnvItem (Just (For= mat "latex"))
=C2=A0 (Div ("",["references"= ;],[]) (h@(Header _ _ _) : blocks)) =3D
=C2=A0 Div ("",["= references"],[])
=C2=A0=C2=A0=C2=A0 ( [h, latex "\\begin{refe= rences}\\sloppy"] ++
=C2=A0=C2=A0=C2=A0 concatMap addItem blocks += + [latex "\\end{references}"] )
=C2=A0 where latex =3D RawBloc= k (Format "latex")
addRefEnvItem _ x =3D x

addItem :: B= lock -> [Block]
addItem x =3D [RawBlock (Format "latex") &q= uot;\\item", x]
~~~

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e1ffc34d-9306-4988-9218-47c6996c6c3e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1527_1088750920.1443170287403-- ------=_Part_1526_1628949204.1443170287403--