Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cite" has to work for IEEE as expected #13

Closed
koppor opened this issue Aug 5, 2024 · 12 comments
Closed

"cite" has to work for IEEE as expected #13

koppor opened this issue Aug 5, 2024 · 12 comments
Assignees
Labels
bug Something isn't working depends-on-external Issues that we cannot easily fix on our own. Priority: Medium

Comments

@koppor
Copy link
Collaborator

koppor commented Aug 5, 2024

  1. I create a new document
  2. I select CSL IEEE
  3. I write some text
  4. I select the entry Katz_2011 in JabRef
  5. I click "Cite in-text"
  6. [1] appears in JabRef
  7. I click "Cite"
  8. The full reference appears

What is the correct behavior? https://docs.jabref.org/cite/openofficeintegration demnostratates it with another style. Numberics is more complicated.

Let's look at latex:

Winery~\cite{Winery} is a graphical modeling tool.
The whole idea of TOSCA is explained by \citet{Binz2009}.
  • cite is "cite" button
  • citet is cite-in-text button
  • There exist also special latex commands like \parencite{key1,key2}, which would be similar to cite in parentheses, which can be found under the cite special button.

Output:

image

Full LaTeX example at https://github.com/latextemplates/ieee.

Result when using "cite" and "cite-in-text":

image

Expected output:

--

Note that the description of "Cite special" also gives a hint:

image

image

  • 1: [1] (preceded by a space)
  • 2: Binz et al. [2] (preceded by a space)
  • 3: Only one newline between the entries. Better no new line.

Regarding 2: I know, this is hard. Maybe even not possible. - I would "just" send the authors to JabRef's AuthorFormatter saying: I want to have the last name of the first author and then "et al"


I know, I need to craft an example using Chocolate.bib. #FutureWork

@koppor
Copy link
Collaborator Author

koppor commented Aug 5, 2024

Note that the buttons work as expected with JStyle.

image

@subhramit subhramit self-assigned this Aug 5, 2024
@subhramit
Copy link
Owner

subhramit commented Aug 5, 2024

  • 1: [1] (preceded by a space)
  • 2: Binz et al. [2] (preceded by a space)
  • 3: Only one newline between the entries. Better no new line.

Regarding 2: I know, this is hard. Maybe even not possible. - I would "just" send the authors to JabRef's AuthorFormatter saying: I want to have the last name of the first author and then "et al"

I know, I need to craft an example using Chocolate.bib. #FutureWork

Task 1: On priority. In-text citations should be preceded by space.
Task 2: Moving for later.
Task 3: On priority. Investigate what's causing the newlines (in certain citation styles only).

@Siedlerchr
Copy link
Collaborator

Siedlerchr commented Aug 6, 2024

Number 2 is out of scope, we should not mess with the CSL output, cite proc should be able to handle it

@subhramit subhramit added Priority: Medium bug Something isn't working depends-on-external Issues that we cannot easily fix on our own. labels Aug 6, 2024
@koppor
Copy link
Collaborator Author

koppor commented Aug 7, 2024

Please note that in the current version the buttons are not working as expected.

What you implemented in "Cite in-text" should happen when pressing "Cite".

What you implemented in "Cite" should not happen at all. The bibliography is generated by the "Refresh" button.

@koppor koppor changed the title "cite" should work for IEEE "cite" has to work for IEEE as expected Aug 7, 2024
@subhramit
Copy link
Owner

subhramit commented Aug 7, 2024

The bibliography is generated by the "Refresh" button.

This was, a confusing convention followed even by JStyles, so I kept it like that for the first version. The tooltip said "Make sure that the bibliography is up to date" which I changed to "Make or update bibliography" to make it more helpful/relevant. Ideally the button icon should be +/loop instead of just loop. Optionally, do you want me to move the make bibliography function to the "Cite" button for both jstyle and csl? (note that in jstyle it has a dedicated function already). I am unsure how to make this consistent.

What you implemented in "Cite in-text" should happen when pressing "Cite".

I did some reading, correct me if I am wrong - what happens currently in CSL when we do "Cite in-text" is actually a valid form of in-text citation:
image

image
Source: https://guides.library.unr.edu/apacitation/in-textcite#:~:text=What%20Is%20In%2DText%20Citation,method%20of%20in%2Dtext%20citation.

This is valid, in our context, for IEEE as well:
image
image
image
Source : https://www.scribbr.com/ieee/ieee-in-text-citation/
This is exactly how our "Cite in-text" works (for both single/grouped entries).
More (as sent my @Siedlerchr ) - https://libguides.unf.edu/citationguide/Intext, parenthetical in-text citations (https://apastyle.apa.org/style-grammar-guidelines/citations/basic-principles/parenthetical-versus-narrative).

If we don't agree to go with this, I can disable the "Cite in-text" button for CSL and move its functionality to "Cite". Then, we may need an additional button for adding individual bibliography (the way Cite works now) (this is absent in JStyles).

@koppor
Copy link
Collaborator Author

koppor commented Aug 7, 2024

The bibliography is generated by the "Refresh" button.
This was, a confusing convention followed even by JStyles,

No.

  1. Open LibreOffice
  2. LibreOffice: Create new document
  3. JabRef: Open Chocolate.bib
  4. JabRef: Select JStyle
  5. JabRef: connect to libreoffice
  6. JabRef: Select "Corti et al."
  7. JabRef: Click on "Cite"
  8. JabRef: Click on button "Regenerate"

grafik

so I kept it like thAT FOR THE FIRST VERSION. The tooltip said "Make sure that the bibliography is up to date" which I changed to "Make or update bibliography" to make it more helpful/relevant.

This is OK to guide first-time users.

Please rename to "Create or update reference list". I think "reference list" is more clear to newcomers, since they might confuse "bibliography" with something inside JabRef.

Ideally the button icon should be +/loop instead of just loop.

No.

  • A) It should be "+" when there is no bibliography and "loop'" when there is one
  • B) It should be a bibliography or list icon

For B, I found

grafik

It is called format-list-numbered. See https://devdocs.jabref.org/code-howtos/custom-svg-icons.html for background information of how to include.

Optionally, do you want me to move the make bibliography function to the "Cite" button for both jstyle and csl? (note that in jstyle it has a dedicated function already). I am unsure how to make this consistent.

No. The bibliography generating/updating functionality has nothing to do with the bibliography.

What you implemented in "Cite in-text" should happen when pressing "Cite".
I did some reading, correct me if I am wrong

I have more than 20 years experience in that. And jstyle implementation is right.

If we don't agree to go with this, I can disable the "Cite in-text" button for CSL and move its functionality to "Cite".

Please do that.

Then, we may need an additional button for adding individual bibliography (the way Cite works now) (this is absent in JStyles).

Please give me one reason why the "Make or create bibliography" button does not cover the use cases of researchers. Until that: Do not add such a button.

@koppor
Copy link
Collaborator Author

koppor commented Aug 7, 2024

This is cite:

grafik

This is cite in-text:

grafik

Background: See #13 (comment) for the latex equivalents \cite and \citet.

@subhramit
Copy link
Owner

Please give me one reason why the "Make or create bibliography" button does not cover the use cases of researchers. Until that: Do not add such a button.

Right, I did think it does not make sense to have that. I think I was confused about what "Cite" should do in case of CSL (back when we did not have bibliography generation), and that felt like a way.

@subhramit subhramit assigned koppor and unassigned subhramit Aug 7, 2024
@koppor
Copy link
Collaborator Author

koppor commented Aug 7, 2024

Fixed with 1b72f94

@koppor koppor closed this as completed Aug 7, 2024
@ThiloteE
Copy link
Collaborator

ThiloteE commented Aug 7, 2024

Please rename to "Create or update reference list". I think "reference list" is more clear to newcomers, since they might confuse "bibliography" with something inside JabRef.

"References are used to document and substantiate statements made in the paper.

APA publications and other publishers and institutions using APA Style generally require reference lists, not bibliographies. A reference list contains works that specifically support the ideas, claims, and concepts in a paper; in contrast, a bibliography provides works for background or further reading and may include descriptive notes (e.g., an annotated bibliography)."

Source: https://apastyle.apa.org/style-grammar-guidelines/references/lists-vs-bibliographies

Going by that definition, bibliography is more fitting, because it encompases a wider use case. I argue, all reference lists are bibliographies, but not all bibliographies are reference lists.

When it comes to JabRef specifically, there is nothing in JabRef that coincides with the word "bibliography". Things that come close are bibtex, biblatex and library. That's it. It is fine to us bibliography.

@koppor
Copy link
Collaborator Author

koppor commented Aug 9, 2024

Please rename to "Create or update reference list". I think "reference list" is more clear to newcomers, since they might confuse "bibliography" with something inside JabRef.
"References are used to document and substantiate statements made in the paper.

I assume following main use case:

The user of JabRef writes a scientific paper.

In my 20+ years experience, papers list only cited references in the "Bibliography", which makes it a "Reference List". Therefore, JabRef (w/ JStyles activated) uses "References" as title, not "Bibliography".

Only the "Insert empty citation" allows the user to derivate from the use case to write clean scientific paper.

Therefore, I proposed "reference list" and not "bibliography"

@ThiloteE
Copy link
Collaborator

ThiloteE commented Aug 9, 2024

You are pointing to the difference between what JabRef offers as a whole and how JabRef is largely used in practice. We cannot know exactly without surveys, statistics and telemetry, but yes I would agree that the large share of our users probably use it for scientific papers, hence setting "References" as default is fine by me, because I assume it eases the workflow of the majority.

For the record:

Other alternatives:
A) have a setting for both --> requires much more coding effort
B) split the header from the main body and let users fill the header manually --> Less "magic". Users have to do research about how to call their list of preferences/bibliography and also may forget to add a header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working depends-on-external Issues that we cannot easily fix on our own. Priority: Medium
Projects
None yet
Development

No branches or pull requests

4 participants