I’m glad to know I’m not going crazy / am dumb.
I can confirm vancouver-superscript is not working for in-text citations. It is just showing the standard (author, year) in text citation format.
-
This reply was modified 7 years, 4 months ago by
dixter20.
Hi Immo,
OK I think I have realized that Zotpress just won’t do the superscript in-text citation even if the citation style (e.g. vancouver-superscript) calls for it.
However, one easy workaround to that is to just use the brackets argument in the short code [format=”%num%” brackets=”yes].
An example is pasted below:
[zotpressInText item=”{L5WVZAR5}” format=”%num%” brackets=”yes”]
This won’t make it a superscript, but it will do in-text citations as a square bracket with a number which is pretty darn close to what I’m looking for at least.
Hi dixter20
Thanks, but I’m really up for the superscript for this project.
Interestingly the InTextBib does not work with the brackets argument at the InText item.
[zotpressInTextBib style=”vancouver-superscript” sort=”ASC”]
Fair enough.
Brackets are not an available argument for the Bibliography in Zogtpress. You can see a list of available arguments by going to Help in the Zotpress plugin on the main WordPress menu.
Plugin Author
Katie
(@kseaborn)
The bibliography will be styled by Zotero based on the reference style you’re using. Anything else will need to be customized with CSS or perhaps JavaScript.
In-text, however, is styled by Zotpress, because Zotero API doesn’t provide in-text styling (yet). I’ve provided some common options but not everything. I don’t think Vancouver superscript was ever supported, so I’m a bit puzzled.
format=”%num%” brackets=”yes” –> that’s the way to go
Then you’ll have to add custom CSS for superscript. In your theme stylesheets or using a custom CSS plugin. Something like:
.zp-ZotpressInText {
vertical-align: super !important;
font-size: 0.8em !important;
}
This is just a guess at the styles for me, so feel free to customize as you see fit.
Mh, then it might be the case that we already tried it that way last year.
It actually works for me with the number and its css. But the brackets are not shown superscript.
For both number and brackets to be shown superscript, the right Class to use with CSS is zp-InText-Citation.
Thanks again!
Plugin Author
Katie
(@kseaborn)
Ah! Glad you figured it out. Sorry about the wrong CSS class there.
Yes, thanks to you!
One last thing on this.
As we already used the standard shortcode [zotpressInText item="{H78RKSKI}"] and now want to switch to vancouer with [zotpressInText item="{H78RKSKI}" format="%num%" brackets="yes"]:
Any chance to batch update all entries on multiple pages?
(we’re talking about 120 pages with three entries each…)
Plugin Author
Katie
(@kseaborn)
There isn’t a batch update, I’m afraid …
Is it possible to change the default format of the In-Text options?
From (%a%, %d%, %p%) to %num%" brackets="yes would ease the shortcode generation!