Comments (6)
This definitely looks like a bug. I note that adding the font-style attribute to the name element rather than names seems to produce the desired italics. But the issue with the ordering is still there, and font-style should work in either place I think.
from citeproc.
@jgm could you elaborate how you fixed it?
My goal is to use small caps for the authors:
<macro name="author">
<names variable="author">
<name delimiter=" / " delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all" font-variant="small-caps"/>
<label form="short" prefix=" (" suffix=")"/>
<substitute>
<names variable="editor author"/>
<group>
<text term="anonymous" form="short"/>
</group>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author" font-weight="normal" delimiter=";">
<name delimiter=" / " delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all" font-variant="small-caps" />
<substitute>
<names variable="editor author"/>
<group delimiter=": ">
<text term="anonymous" form="short"/>
<text variable="title"/>
</group>
</substitute>
</names>
</macro>
from citeproc.
@JostBrand this issue is not fixed -- as you can see, it still has the Open status.
from citeproc.
@JostBrand I moved the font-style attribute from the names element to the child name element, and that worked with the original CSL.
from citeproc.
@TeresaM12 - the issue with the ordering is due to the fact that you use an author-in-text citation in your note: that forces the author out front. If you do
amet^[[@sternSternBecker2019b].]
with a normal citation in the note, you'll get what you expect. Better yet, since this is a note style, let pandoc insert the note automatically (and then you can easily switch to a non-note style if you like):
amet [@sternSternBecker2019b],
I'm still not clear why the font style isn't being applied, but we can cross off the order issue.
from citeproc.
In fact, the font issue has the same cause.
When you use an author-in-text form of citation (@foo
as opposed to [@foo]
), the author's name will be put first. Here we just extract the name, without formatting. I will look into whether we can preserve formatting, but in this case you probably just want to use the fix suggested above.
from citeproc.
Related Issues (20)
- Citations inside listing captions are not resolving HOT 1
- Citeproc html error for csl styles that do not print titles HOT 5
- How to output raw issued date? HOT 3
- disambiguation error (note style)
- Detection of English-language entries only permits ISO 639-1 codes HOT 2
- Reference stripped from the output in cites with position "ibid" and a suffix without a locator HOT 7
- How could citeproc support CSL-M layout? HOT 40
- `link-bibliography` option does not hyperlink references without URLs in notes HOT 6
- Localizing parts of citations HOT 5
- Error in latex generation of portuguese quotes in CSLReferences field HOT 15
- Installing the executable HOT 2
- [Help] Author only citations BibTex HOT 1
- Incorrect sorting of bibliography HOT 12
- Stopword capitalized after abbreviation HOT 6
- Use citeproc for style development HOT 11
- Support for link/color only the year in the citations HOT 1
- Can I replace the citation key with bibliography? HOT 3
- Author-in-text citations render as superscript HOT 3
- Add support for semantic markup in bibliographies HOT 3
- Disambiguation error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citeproc.