• Resolved immowille

    (@immowille)


    Hey Katie

    I’m having trouble using the vancouver-superscript style.
    A few month ago when testing, it worked like a charm.

    The numbers are not shown at all and superscript is also not used.
    It just shows more or less the Standard (author, year, pages)
    E.g.: (SBFI, 2013, 55; McCaughan, 2015, 55)

    Shortcode in use:

    [zotpressInText item="{R3L8X2YQ,55},{DK6GIKRI,55}" separator="comma"]
    [zotpressInTextBib style="vancouver-superscript" sort="ASC"]

    I use WordPress 4.9.9 with Zotpress Version 7.0.3

    Thanx in advance!

    Best
    Immo

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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.

    Thread Starter immowille

    (@immowille)

    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.

    Thread Starter immowille

    (@immowille)

    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.

    Thread Starter immowille

    (@immowille)

    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 …

    Thread Starter immowille

    (@immowille)

    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!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘vancouver-superscript not working’ is closed to new replies.