Also, why wouldn't 

What do you think about the theory of [@smith2000?]?

be valid formatting? 
 

Den torsdag 2 november 2017 kl. 08:39:29 UTC+1 skrev Björn Ekström:
Hello,

Thanks for your replies. I could of course change the bibkeys. But since 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 didn't seem 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
spans and filters might come in handy:

Write citations as a markdown span

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

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

    function Span(elem)
      if elem.classes[1] == "cite" then
        local citeId = elem.content[1].text
        local citeMode = pandoc.AuthorInText
        local citation = pandoc.Citation(citeId, citeMode)
        return pandoc.Cite(elem.content, {citation})
      end
    end
   
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 bibliographical 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 = {Title},
> author = {{Statute. 2014/Foo:Bar}},
> langid = {swedish}
> }
>
> @report{author_report:_2014,
> location = {Foobar},
> title = {Report: Foo (Bar)},
> url = {http://foo.bar},
> author = {{Author}},
> urldate = {2017-11-01},
> date = {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 formatting and the sources cannot be converted to plain text using pandoc.
>
> What can be done about this?

--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124

--
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-/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.com.
For more options, visit https://groups.google.com/d/optout.