# Pandoc style copy

**URL:** <https://discourse.jabref.org/t/pandoc-style-copy/2592>\
**Category:** Help\
**Created:** [March 8, 2021, 2:59am UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592 "2021-03-08T02:59:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_B\_Gozzoli](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/robert_b_gozzoli/32/900_2.png) [@Robert\_B\_Gozzoli](https://discourse.jabref.org/u/Robert_B_Gozzoli)\
**Post date:** [March 8, 2021, 2:59am UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592/1 "2021-03-08T02:59:26Z")

</div>

I need to use a Pandoc-style citation in Scrivener foir Windows/Mac. As known, the Pandoc-style citation assumes a form like this: @Doe99, sometime with or without square brackets. I understand that I can copy the citations and put [@] after the paste. But as you deal with book writing and many citations to be added, the citations might be hundreds and a sort of automation would be welcome. Can a Pandoc-style copy be added, or an option for the user to create one free style citation, so it can be added to Jabref in the preference tab? In Mac side, there are some tools to create Pandoc style citations from bibliographic software, but I do not see anything like that in the Windows world.

I thank you for the consideration.

Roberto

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [March 8, 2021, 2:30pm UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592/2 "2021-03-08T14:30:01Z")

</div>

Hi,

you can easily adjust the custom preview style [Entry preview setup - JabRef](https://docs.jabref.org/setup/preview#modification-of-the-customized-preview-style) for your format.

In the first line you would simple need to change the first line to  
` <font face="sans-serif" font-size="44px"><b><i>\bibtextype</i><a name="\citationkey">\begin{citationkey} (@\citationkey)</a>\end{citationkey}</b><br>`

Simply add the at symbol before the `\ctiationkey` command

---

<div class="post-metadata">

**Author:** ![Robert\_B\_Gozzoli](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/robert_b_gozzoli/32/900_2.png) [@Robert\_B\_Gozzoli](https://discourse.jabref.org/u/Robert_B_Gozzoli)\
**Post date:** [March 9, 2021, 1:33am UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592/3 "2021-03-09T01:33:52Z")

</div>

Thanks, and I have done as you said.

But at this stage, when I press copy citation key, it is still giving me Doe99, and not @Doe99. I found the only way to copy @Doe99 as it is I need create a customised preview style as @Doe99, thus erasing everything apart from @\citationkey. In that case, when I execute “Copy preview” command, it gives such a citation key format.

Please let me know if there is another way, or I have done something wrong. As far as I see, putting something @ or [], does not change anything when I press copy citation key, which still keeps BibTeX citation key only.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [March 9, 2021, 4:44pm UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592/4 "2021-03-09T16:44:52Z")

</div>

Hi,  
sorry, this was a misunderstanding. For the citation key itself, it’s even easier!  
[https://docs.jabref.org/setup/citationkeypatterns#citation-key-patterns](https://docs.jabref.org/setup/citationkeypatterns#citation-key-patterns)  
Just add the “@” before the pattern: `@[auth][year]`  
(Note you have to press enter/return to save the changes in the table)

---

<div class="post-metadata">

**Author:** ![Robert\_B\_Gozzoli](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/robert_b_gozzoli/32/900_2.png) [@Robert\_B\_Gozzoli](https://discourse.jabref.org/u/Robert_B_Gozzoli)\
**Post date:** [March 11, 2021, 5:23am UTC](https://discourse.jabref.org/t/pandoc-style-copy/2592/5 "2021-03-11T05:23:21Z")

</div>

Thanks,  
I tried and it seems working fine. I consider your answer as solution to my request.
