You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the feature is currently undocumented, since there is no (or at least no straightforward way) to render it with Documenter 0.27: right now, the format_citation function only modifies the link text of the citation link, but it doesn't break out of the structure of the single markdown link.
With the master version of Documenter, it should be possible to extend this: The format_citation for the above CitationLink should return an entire markdown snippet with multiple links, and that markdown snippet should then be parsed internally and inserted into the output tree.
How collapsed rendering would look with author-year styles is still to be determined. I'd mimic whatever RevTeX does as closely as possible.
The text was updated successfully, but these errors were encountered:
I'd prefer to write
Quantum optimal control [BrumerShapiro2003](@cite)[BrifNJP2010](@cite)[Shapiro2012](@cite)[KochJPCM2016](@cite)[SolaAAMOP2018](@cite)[MorzhinRMS2019](@cite)[Wilhelm2003.10132](@cite)[KochEPJQT2022](@cite)
, which currently renders as "Quantum optimal control [1][2][3][4][5][6][7][8]", as the shorterQuantum optimal control [BrumerShapiro2003, BrifNJP2010, Shapiro2012, KochJPCM2016, SolaAAMOP2018, MorzhinRMS2019, Wilhelm2003.10132, KochEPJQT2022](@cite)
and have it render as the collapsed "Quantum optimal control [1-8]". Note that the rendered text has two separate links.Parsing the citation syntax with multiple keys is already supported in the current
master
of DocumenterCitations:However, the feature is currently undocumented, since there is no (or at least no straightforward way) to render it with Documenter
0.27
: right now, theformat_citation
function only modifies the link text of the citation link, but it doesn't break out of the structure of the single markdown link.With the
master
version of Documenter, it should be possible to extend this: Theformat_citation
for the aboveCitationLink
should return an entire markdown snippet with multiple links, and that markdown snippet should then be parsed internally and inserted into the output tree.How collapsed rendering would look with author-year styles is still to be determined. I'd mimic whatever RevTeX does as closely as possible.
The text was updated successfully, but these errors were encountered: