-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
LaTeX Template: add \linebreak to \CSLBlock #7363
Comments
Test with apa-annotated-bibliography.csl |
\linebreak is probably wrong. Perhaps better |
I'm thinking
How does this interact with hanging-indent? IN a hanging-indent style, do we have a non-hanging annotation? |
My understanding of this is that the "block" covers the whole textarea, not that the content itself should be stretched to fill the available space. See this example from Word/Zotero:
See above. I don't think a non-hanging annnotation would be wanted. I guess that's why whe have these hard line breaks in the Zotero/Word example from above. cc @bwiernik What do you think about this? |
@adam3smith or @rmzelle might be a better source here. I'll admit that I find the display attribute confusing. It's supposed to follow the logic of the CSS display attribute https://www.w3schools.com/CSSref/pr_class_display.asp Following citeproc-js's behavior, I wrote apa-annotated-bibliography.csl expecting that a display="block" element would inherit the hanging indentation from the block above (that is, it's separated by a soft line break instead of a paragraph break). https://github.com/citation-style-language/styles/blob/3a2ff5f0370ab63ba962385bbc5a90de9badf9e8/apa-annotated-bibliography.csl#L1914 |
Also perhaps @fbennett ? |
Yes, this sounds like a good thing for clarification in CSL 1.1. |
Since the change to using to using: ---
csl: apa-annotated-bibliography
references:
- type: article-journal
id: WatsonCrick1953
author:
- family: Watson
given: J. D.
- family: Crick
given: F. H. C.
issued:
date-parts:
- - 1953
- 4
- 25
title: 'Molecular structure of nucleic acids: a structure for
deoxyribose nucleic acid'
title-short: Molecular structure of nucleic acids
container-title: Nature
volume: 171
issue: 4356
page: 737-738
DOI: 10.1038/171737a0
URL: https://www.nature.com/articles/171737a0
language: en-GB
note: Note this!
- id: francois2014
type: article-journal
title: >-
‘Exercise snacks’ before meals: a novel strategy to improve glycaemic
control in individuals with insulin resistance
container-title: Diabetologia
page: 1437-1445
volume: '57'
issue: '7'
DOI: 10.1007/s00125-014-3244-6
author:
- family: Williams
given: Michael J. A.
- family: Francois
given: Monique E.
- family: Baldi
given: James C.
- family: Manning
given: Patrick J.
- family: Lucas
given: Samuel J. E.
- family: Hawley
given: John A.
- family: Cotter
given: James D.
issued:
date-parts:
- - 2014
nocite: |
@*
...
|
-\newcommand{\CSLBlock}[1]{#1\hfill\break}
+\newcommand{\CSLBlock}[1]{\hfill\break#1\hfill\break} |
Currently
\CSLBlock
adds a break after the command, but we may also want to have the entire block on its own line. I suggest we add a something along the lines of\newcommand{\CSLBlock}[1]{\linebreak#1\hfill\break}
The text was updated successfully, but these errors were encountered: