From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18494 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn_Ekstr=C3=B6m?= Newsgroups: gmane.text.pandoc Subject: Re: Markdown syntax can't handle BibLaTeX formatting Date: Thu, 2 Nov 2017 00:53:16 -0700 (PDT) Message-ID: <5fdd83a6-e681-42bf-91b5-1216e605f76b@googlegroups.com> References: <90e14ff2-6cec-4dfe-9236-0998cf317b6c@googlegroups.com> <87tvyd4trv.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_408_817993548.1509609196175" X-Trace: blaine.gmane.org 1509609199 31822 195.159.176.226 (2 Nov 2017 07:53:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 07:53:19 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCR4PQ5D3UPRB3M55PHQKGQEHARYDHI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 02 08:53:11 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f59.google.com ([209.85.218.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAAJK-0007hH-Gb for gtp-pandoc-discuss@m.gmane.org; Thu, 02 Nov 2017 08:53:10 +0100 Original-Received: by mail-oi0-f59.google.com with SMTP id 82sf5223854oid.11 for ; Thu, 02 Nov 2017 00:53:18 -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=CMTSrvkA97wA9lohIDexNvNiHoji+g7aZ9kcgNRUl5I=; b=mFgtNsMmqrbl5n+B2JKxlKDqjVByl/8HJ26FIxyVJmLS9YpaLKlh9PN9OKKWQdAz6P kk/Rsqhz/RaJ4v9yvf8pnWlNfPdTnQ1JEo9H1aQk1rHtmOuzQJYcEDtDufT4WQNKHzNr KiSuxtQjnoo2mTKICz3nDSJq7N6ogXm/2IjvZvdJvQlw30/Sh8Ra3UWS67y6+1LGcjtF lNj1AEmdv09WWK1ASS+XRBVI8XLs421s0KkUnTsXl7ZyYLkG+dTMUNB8LH9kUpxnpJHd 7gJERKzx2Tu6MojW/Rc3oMZ0tgiS5g6oJqZJvYT484pr4DzIHZkKvWAEaTPaYU0xJgKg KbXQ== 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=CMTSrvkA97wA9lohIDexNvNiHoji+g7aZ9kcgNRUl5I=; b=fvx3NeBqO6ixh+jRhSNuDOCn8XRfyDX1RjTCiKwn530fayWMYemlntbrpF856Rcbq3 aWmA/LRIH1HRG6DlKpWhvUK74PmBQT5YqAB8MgiDq3DyxQsuCkY4aTfuFtDttaFG3WxI UlLuiVvUKqTbu0Waybe3kwsLVFRzo1UuECRtACYKOJGXs4b4jsp4KYo21X/6axZsTikw K4iH9Za3E90j5c7yJPlrj0i8OEtPSVPWOahNKecZ5pYJ8h7WQiJEOEK8SXuVOREnNniz 9i2tY6btuJmFqj90aqdogNCjdENofUr+5VJJqsEvQI1rkhaDGOrzGFquhxbTLWezfYqF kK5Q== 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=CMTSrvkA97wA9lohIDexNvNiHoji+g7aZ9kcgNRUl5I=; b=R2+LhrG523caI27Z59Qc5Mlxkzo9FVzCwf9AATnVmfs4ym64ftnDHKWnKZc3i1mDu6 /xc0/9N6uYUG6kRNC+GvSGhYdqWfRvXu2ziSr3IUWcf+V8e8U67+zYli77i68EWXe9U4 rPkwyAc2vrpvcoPTP9jHfM99DO3R+2sqGGZsCy0V6aGzEgaGalFWCgnvCpqtCdrR2WIJ iv5CqH5QCDnJef45lkkewXZzD6MBzTuRrPkpRZPMwKEc0aU/ra3FH4OokoanRhu3gir8 x/wfNwbCbRCrtcnXJpX8ios2ebHwuapNIe7mWRRxFUV3VfBEhLOZHVZZy4OZ17TX4bI0 gFfQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX4JxX9wcL8u63YMGRHjACZSkT51yZeZHBjj4PJF5Bg2eD5dsvME pfQfEtRfo4x+rSwuMdZkNZo= X-Google-Smtp-Source: ABhQp+T7wXAd4KKA280oHEYFptZ8wCSZvnAXCBoB+QuSxNBXc2r2hPJkKpNwPMc81urFAUbEocR4sg== X-Received: by 10.157.52.218 with SMTP id t26mr75871otd.10.1509609197807; Thu, 02 Nov 2017 00:53:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.89.1 with SMTP id t1ls835389oth.7.gmail; Thu, 02 Nov 2017 00:53:17 -0700 (PDT) X-Received: by 10.157.14.201 with SMTP id 67mr77288otj.4.1509609196779; Thu, 02 Nov 2017 00:53:16 -0700 (PDT) In-Reply-To: X-Original-Sender: eksbjo-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.org gmane.text.pandoc:18494 Archived-At: ------=_Part_408_817993548.1509609196175 Content-Type: multipart/alternative; boundary="----=_Part_409_359044157.1509609196176" ------=_Part_409_359044157.1509609196176 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Also, why wouldn't=20 What do you think about the theory of [@smith2000?]? be valid formatting?=20 =20 Den torsdag 2 november 2017 kl. 08:39:29 UTC+1 skrev Bj=C3=B6rn Ekstr=C3=B6= m: > > Hello, > > Thanks for your replies. I could of course change the bibkeys. But since = I=20 > am generating them through export from Zotero I would like to do so now a= nd=20 > again when adding citations to a text, not having to edit each and every= =20 > faulty bibkey each time this export process is done. > > Albert Krewinkel: This script seems handy. Where do I place it? As a file= =20 > by itself or inside the Markdown file? I tried the latter but I didn't se= em=20 > to get it right. > > Den onsdag 1 november 2017 kl. 21:41:48 UTC+1 skrev Albert Krewinkel: >> >> If, for some reason, the bib keys cannot be changed, the combination of= =20 >> spans and filters might come in handy:=20 >> >> Write citations as a markdown span=20 >> >> [statute._2014/foo:bar_title_????]{.cite}=20 >> >> and use a filter like the following to convert the span into a citation.= =20 >> >> function Span(elem)=20 >> if elem.classes[1] =3D=3D "cite" then=20 >> local citeId =3D elem.content[1].text=20 >> local citeMode =3D pandoc.AuthorInText=20 >> local citation =3D pandoc.Citation(citeId, citeMode)=20 >> return pandoc.Cite(elem.content, {citation})=20 >> end=20 >> end=20 >> =20 >> It is not a pretty solution, but you might find it useful regardless.=20 >> >> >> distantflag writes:=20 >> >> > I have an issue where the Markdown syntax for referring to=20 >> bibliographical sources can't treat direct links to the entries in an=20 >> BibLaTeX file.=20 >> >=20 >> > For instance, the BibLaTeX file looks like this:=20 >> >=20 >> > @online{statute._2014/foo:bar_title_????,=20 >> > title =3D {Title},=20 >> > author =3D {{Statute. 2014/Foo:Bar}},=20 >> > langid =3D {swedish}=20 >> > }=20 >> >=20 >> > @report{author_report:_2014,=20 >> > location =3D {Foobar},=20 >> > title =3D {Report: Foo (Bar)},=20 >> > url =3D {http://foo.bar},=20 >> > author =3D {{Author}},=20 >> > urldate =3D {2017-11-01},=20 >> > date =3D {2014}=20 >> > }=20 >> >=20 >> > The Markdown formatting for referring to this would be=20 >> >=20 >> > [@statute._2014/foo:bar_title_????]=20 >> >=20 >> > and=20 >> >=20 >> > [@author_report:_2014]=20 >> >=20 >> > However, the question marks and the colon messes up the syntax=20 >> formatting and the sources cannot be converted to plain text using pando= c.=20 >> >=20 >> > What can be done about this?=20 >> >> --=20 >> Albert Krewinkel=20 >> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124=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/5fdd83a6-e681-42bf-91b5-1216e605f76b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_409_359044157.1509609196176 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, why wouldn't=C2=A0

What do you thi= nk about the theory of [@smith2000?]?

be valid formatting?=C2=A0
=C2=A0

Den tors= dag 2 november 2017 kl. 08:39:29 UTC+1 skrev Bj=C3=B6rn Ekstr=C3=B6m:
Hello,

Thanks for your replies. I could of course change the bibkeys. But s= ince I am generating them through export from Zotero I would like to do so = now and again when adding citations to a text, not having to edit each and = every faulty bibkey each time this export process is done.

Albert Krewinkel: This script seems handy. Where do I place it? As= a file by itself or inside the Markdown file? I tried the latter but I did= n't seem to get it right.

Den onsdag 1 november 2017 kl. 21:41:4= 8 UTC+1 skrev Albert Krewinkel:
If, = for some reason, the bib keys cannot be changed, the combination of
spans and filters might come in handy:

Write citations as a markdown span

=C2=A0 =C2=A0 [statute._2014/foo:bar_title_????]{.cite}

and use a filter like the following to convert the span into a citation= .

=C2=A0 =C2=A0 function Span(elem)
=C2=A0 =C2=A0 =C2=A0 if elem.classes[1] =3D=3D "cite" then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local citeId =3D elem.content[1].text
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local citeMode =3D pandoc.AuthorInText
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local citation =3D pandoc.Citation(citeId, = citeMode)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return pandoc.Cite(elem.content, {citation}= )
=C2=A0 =C2=A0 =C2=A0 end
=C2=A0 =C2=A0 end
=C2=A0 =C2=A0=20
It is not a pretty solution, but you might find it useful regardless.


distantflag <eks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I have an issue where the Markdown syntax for referring to bibliog= raphical sources can't treat direct links to the entries in an BibLaTeX= file.
>
> For instance, the BibLaTeX file looks like this:
>
> @online{statute._2014/foo:bar_title_????,
> title =3D {Title},
> author =3D {{Statute. 2014/Foo:Bar}},
> langid =3D {swedish}
> }
>
> @report{author_report:_2014,
> location =3D {Foobar},
> title =3D {Report: Foo (Bar)},
> url =3D {http://foo.bar},
> author =3D {{Author}},
> urldate =3D {2017-11-01},
> date =3D {2014}
> }
>
> The Markdown formatting for referring to this would be
>
> [@statute._2014/foo:bar_title_????]
>
> and
>
> [@author_report:_2014]
>
> However, the question marks and the colon messes up the syntax for= matting and the sources cannot be converted to plain text using pandoc.
>
> What can be done about this?=20

--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe =C2=A0e836 388d c0b2 1f63 1124

--
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/5fdd83a6-e681-42bf-91b5-1216e605f76b%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_409_359044157.1509609196176-- ------=_Part_408_817993548.1509609196175--