schema icon indicating copy to clipboard operation
schema copied to clipboard

Suppress newline between bibliography entries?

Open davidorme opened this issue 7 years ago • 11 comments

Hi,

More of a request for help than an issue, really, but I can't find anything in the CSL spec that allows you to remove the linebreak between bibliography entries. In many ways it is a terrible and stupid thing to do, but there are circumstances (e.g. grants) where providing an ultra compact bibliography without line breaks is useful (although not really for the reader). I can't see how to specify this in the XML.

Thanks, David

davidorme avatar May 21 '18 12:05 davidorme

I never considered this option, but you could see what the entry-spacing option does if set to 0?

http://docs.citationstyles.org/en/stable/specification.html#bibliography-specific-options

On Mon, May 21, 2018 at 8:27 AM David Orme [email protected] wrote:

Hi,

More of a request for help than an issue, really, but I can't find anything in the CSL spec that allows you to remove the linebreak between bibliography entries. In many ways it is a terrible and stupid thing to do, but there are circumstances (e.g. grants) where providing an ultra compact bibliography without line breaks is useful (although not really for the reader). I can't see how to specify this in the XML.

Thanks, David

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/citation-style-language/documentation/issues/54, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAEbmOmZs5_EnILNCHrFH8AIPs27zaHks5t0rKzgaJpZM4UG6RL .

bdarcus avatar May 21 '18 12:05 bdarcus

I'd wondered the same and tried out a style that sets it: http://www.zotero.org/styles/international-pig-veterinary-society-congress-proceedings

Sadly, nope - still gives line breaks. My reading of that bit of the docs was that it is the spacing between entries: "are separated by a single additional line-height" and that's what happens (at least using Papers 3.4.16 on Mac, so it could be an implementation detail).

davidorme avatar May 21 '18 12:05 davidorme

I've seen this request often enough in the context of grant applications that we might want to consider line-spacing="0", meaning suppress bibliography line breaks, as an option.

bwiernik avatar Nov 04 '20 20:11 bwiernik

Probably want to make that self-documenting, ie line-spacing="no-linebreak", because my first guess would be that the zero is meaningful as some kind of "no extra spacing" value.

cormacrelf avatar Nov 09 '20 04:11 cormacrelf

Shouldn't line spacing and line breaking be different options. I can imagine cases where you want no linebreaks but a line spacing of a certain amount.

denismaier avatar Nov 09 '20 05:11 denismaier

Oh, you're right, this be the entry-spacing attribute, not line-spacing.

bwiernik avatar Nov 09 '20 07:11 bwiernik

entry-spacing="0" looks good to me.

denismaier avatar Nov 09 '20 08:11 denismaier

Thanks for re-visiting this. I think entry-spacing=0 is what I originally tried and it removed the additional vertical spacing between entries. That's what I thought it would do from the docs, to be honest. I think the self-documenting "no-linebreak" would make it clearer to me.

davidorme avatar Nov 09 '20 09:11 davidorme

This came up again on the citeproc-el issue tracker. Should we consider this for 1.1? @bwiernik @bdarcus ?

denismaier avatar Jan 11 '22 10:01 denismaier

Has there been any update on this? I'm preparing a grant right now and it would be very useful to be able to condense the references without doing it manually!

sbaross avatar Sep 08 '23 17:09 sbaross

I'm in the same boat and would like this option.

Sorry to hijack, but it is related to the same use case: is it possible for citation number to not be followed by a tab? There is no tab in the suffix, but it is always inserted between the citation number and the name.

jiversen avatar Oct 04 '23 18:10 jiversen