# Push to application: Citation format should not depend on cite command

**URL:** <https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360>\
**Category:** Help\
**Created:** [October 15, 2020, 8:05am UTC](https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360 "2020-10-15T08:05:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [October 15, 2020, 8:05am UTC](https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360/1 "2020-10-15T08:05:56Z")

</div>

When I push one entry from JabRef (v5.2) to TexStudio (v3), `\cite{myref}` in inserted in my TeX file.  
If I push several entries in a row, I get `\cite{myref1, myref2, myref3}`.

My issue is that after changing the cite command to be pushed from `\cite` to `\citep` ( **Options -\> Preferences** , tab **External programs** ), pushing several entries in a row gives `\citep{myref1}\citep{myref2}\citep{myref3}`.  
I would like to get `\citep{myref1, myref2, myref3}`.

- Is it an issue with JabRef or with TexStudio?
- Anything to alter in the configuration of one of the two pieces of software to get a consistent behavior?

---

<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:** [October 18, 2020, 3:03pm UTC](https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360/2 "2020-10-18T15:03:51Z")

</div>

A quick look in the code reveals that it should work if you select multiple entries in the table and then hit the “Push to …” button

> <https://github.com/JabRef/jabref/blob/0ef37d88ed2139873ad9a204c673dc3548fbbb64/src/main/java/org/jabref/gui/push/PushToApplicationAction.java#L71-L89>

---

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [October 19, 2020, 8:05am UTC](https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360/3 "2020-10-19T08:05:27Z")

</div>

Indeed, when I select myref1, myref2 and myref3, clicking on the push button, \citep{myref1, myref2, myref3} is inserted. But it is not my workflow.  
When inserting the references one by one, I expect JabRef and TeXstudio to behave the same way whether it is \cite or \citep (or any other cite command).

---

<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:** [October 19, 2020, 9:35am UTC](https://discourse.jabref.org/t/push-to-application-citation-format-should-not-depend-on-cite-command/2360/4 "2020-10-19T09:35:29Z")

</div>

Hm. Indeed interesting behaviour. I cannot yet say if it’s JabRef’s fault or an issue with TexStudio. I will try to debug it,  
Maybe it’s a preference somehow in TexStudio
