Skip to content

Question: I modified citeproc.js to prevent line-breaks between number & text in citations. Wondering if there are any unintended consequences #20

Open
@indranilsinharoy

Description

@indranilsinharoy

Hi,
Thank you so much for creating cite2c. It is really great. The following figure shows an example rendering in the default (chicago-author-date) citation style.

chicago

I wanted to change the citation style from chicago-author-date to another style (specifically to frontiers-in-optics). So, after downloading the appropriate CSL files from Zotero reference, I changed chicago-author-date.csl to frontiers-in-optics.csl in rendering.js. However, I got the following output:

frontiers-in-optics

As you can see, a line break was inserted after every number in the numbered list.

In order to prevent this from happening I changed the <div>...</div> to <span>...</span> for rendering csl-left-margin and csl-right-inline in the file citeproc.js which produced the following (expected) output:

frontiers-in-optics_afterchangetospan

The problem is that I'm not sure if this change could have any adverse effect on the code. If you think that it will, it would be get if you could suggest an alternative.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions