zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

Question: Is there an equivalent to the cites command? #10

Closed ThiloteE closed 2 years ago

ThiloteE commented 2 years ago

^ desired outcome:

something relative to: https://tex.stackexchange.com/questions/18910/multiple-citations-with-pages-using-biblatex?noredirect=1&lq=1

I have read In other packages, several commands are provided for producing citations in different styles such as \citet, \citep, \parencite, and \footnotecite. In citation-style-language package, however, the format of citations is fixed as formatted in CSL style and it is impossible to select another format without modifying the .csl style file in the documentation.

Does this mean, it is absolutely impossible to cite multiple citations with pages?

zepinglee commented 2 years ago

The citeproc is fully capable of processing multiple cites with pages in a single citation. I got stuck when trying to implement the LaTeX interface \cites with expl3. It is mainly because this command receives undetermined number of braced arguments and I'm not sure it is a good design for user interface. I'll post a question to tex.sx for help.

ThiloteE commented 2 years ago

Thank you :-)

To clarify, for all the people that are not familiar with the cites command and that might look at this at a later point in time, I am looking forward to have output that roughly resembles something like this:

image

or

image

Of course, it depends on the style.

ThiloteE commented 2 years ago

Nice! 👍