-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render citations links as arbitrary markdown AST
Change `format_citation` so that is returns markdown code that replaces the entire original link. * Enable multiple citation in a single cite link, which can be collapsed in the default `:numeric` style * Support citation keys with underscores * Handle in-line formatting in "citation notes" * Handle missing references in non-strict mode by printing question marks (just like LaTeX) Substantial restructuring of internals
- Loading branch information
Showing
48 changed files
with
1,984 additions
and
1,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
coverage: | ||
precision: 1 | ||
range: | ||
- 70.0 | ||
- 90.0 | ||
round: up | ||
status: | ||
patch: | ||
default: | ||
informational: true | ||
target: 90.0 | ||
project: | ||
default: | ||
informational: true | ||
target: auto | ||
threshold: 3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,29 @@ | ||
import DocumenterCitations, MarkdownAST | ||
import DocumenterCitations | ||
|
||
# we use some (undocumented) internal helper functions for formatting... | ||
using DocumenterCitations: format_names, tex2unicode | ||
|
||
DocumenterCitations.format_bibliography_reference(::Val{:keylabels}, entry) = | ||
DocumenterCitations.format_bibliography_reference(:numeric, entry) | ||
DocumenterCitations.format_bibliography_reference(style::Val{:keylabels}, entry) = | ||
DocumenterCitations.format_labeled_bibliography_reference(style, entry) | ||
|
||
function DocumenterCitations.format_bibliography_label(::Val{:keylabels}, entry, citations) | ||
return "[$(entry.id)]" | ||
end | ||
|
||
function DocumenterCitations.format_citation( | ||
style::Val{:keylabels}, | ||
entry, | ||
citations; | ||
note, | ||
cite_cmd, | ||
capitalize, | ||
starred | ||
cit, | ||
entries, | ||
citations | ||
) | ||
link_text = isnothing(note) ? "[$(entry.id)]" : "[$(entry.id), $note]" | ||
if cite_cmd == :citet | ||
et_al = starred ? 0 : 1 # 0: no "et al."; 1: "et al." after 1st author | ||
names = | ||
format_names(entry; names=:lastonly, and=true, et_al, et_al_text="*et al.*") |> | ||
tex2unicode | ||
capitalize && (names = uppercase(names[1]) * names[2:end]) | ||
link_text = "$names $link_text" | ||
end | ||
return link_text::String | ||
return DocumenterCitations.format_labeled_citation(style, cit, entries, citations) | ||
# The only difference compared to `:alpha` is the citation label, which is | ||
# picked up automatically by redefining `citation_label` below. | ||
end | ||
|
||
|
||
function DocumenterCitations.citation_label(style::Val{:keylabels}, entry, citations; _...) | ||
return entry.id | ||
end | ||
|
||
|
||
DocumenterCitations.bib_sorting(::Val{:keylabels}) = :nyt # name, year, title | ||
|
||
DocumenterCitations.bib_html_list_style(::Val{:keylabels}) = :dl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
@string{ip = "Inverse Problems"} | ||
@string{quant = "Quantum"} | ||
@string{njp = "New J. Phys."} | ||
@string{rms = "Russ. Math. Surv."} | ||
@string{epjqt = "EPJ Quantum Technol."} | ||
@string{epjd = "Eur. Phys. J. D"} | ||
|
||
|
||
@article{GoerzQ2022, | ||
Author = {Goerz, Michael H. and Carrasco, Sebastián C. and Malinovsky, Vladimir S.}, | ||
Title = {Quantum Optimal Control via Semi-Automatic Differentiation}, | ||
Journal = quant, | ||
Year = {2022}, | ||
Doi = {10.22331/q-2022-12-07-871}, | ||
Pages = {871}, | ||
Volume = {6}, | ||
} | ||
|
||
@article{WinckelIP2008, | ||
Author = {von Winckel, G and Borzì, A}, | ||
Title = {Computational techniques for a quantum control problem with H$^1$-cost}, | ||
Journal = ip, | ||
Year = {2008}, | ||
Doi = {10.1088/0266-5611/24/3/034007}, | ||
Pages = {034007}, | ||
Volume = {24}, | ||
} | ||
|
||
@book{BrumerShapiro2003, | ||
author = {Brumer, P and Shapiro, M.}, | ||
publisher = {Wiley Interscience}, | ||
title = {Principles and Applications of the Quantum Control of Molecular Processes}, | ||
year = {2003} | ||
} | ||
|
||
@article{BrifNJP2010, | ||
Author = {Brif, Constantin and Chakrabarti, Raj and Rabitz, Herschel}, | ||
Title = {Control of quantum phenomena: past, present and future}, | ||
Journal = njp, | ||
Year = {2010}, | ||
Doi = {10.1088/1367-2630/12/7/075008}, | ||
Pages = {075008}, | ||
Volume = {12}, | ||
} | ||
|
||
@book{Shapiro2012, | ||
author = {Shapiro, Moshe and Brumer, Paul}, | ||
edition = {Second}, | ||
publisher = {Wiley and Sons}, | ||
series = { }, | ||
title = {Quantum Control of Molecular Processes}, | ||
year = {2012}, | ||
Doi = {10.1002/9783527639700}, | ||
} | ||
|
||
@article{KochJPCM2016, | ||
author={Christiane P. Koch}, | ||
title={Controlling open quantum systems: tools, achievements, and limitations}, | ||
journal={J. Phys.: Condens. Matter}, | ||
volume={28}, | ||
pages={213001}, | ||
doi={10.1088/0953-8984/28/21/213001}, | ||
year={2016}, | ||
} | ||
|
||
@incollection{SolaAAMOP2018, | ||
author = {Sola, Ignacio R. and Chang, Bo Y. and Malinovskaya, Svetlana A. and Malinovsky, Vladimir S.}, | ||
booktitle = {Advances In Atomic, Molecular, and Optical Physics}, | ||
chapter = {3}, | ||
doi = {10.1016/bs.aamop.2018.02.003}, | ||
editor = {Arimondo, Ennio and DiMauro, Louis F. and Yelin, Susanne F.}, | ||
pages = {151-256}, | ||
publisher = {Academic Press}, | ||
title = {Quantum Control in Multilevel Systems}, | ||
volume = {67}, | ||
year = {2018}, | ||
} | ||
|
||
@article{MorzhinRMS2019, | ||
Author = {Morzhin, Oleg V. and Pechen, Alexander N.}, | ||
Title = {Krotov method for optimal control of closed quantum systems}, | ||
Journal = rms, | ||
Year = {2019}, | ||
Doi = {10.1070/rm9835}, | ||
Pages = {851}, | ||
Volume = {74}, | ||
} | ||
|
||
@article{KochEPJQT2022, | ||
Author = {Koch, Christiane P. and Boscain, Ugo and Calarco, Tommaso and Dirr, Gunther and Filipp, Stefan and Glaser, Steffen J. and Kosloff, Ronnie and Montangero, Simone and Schulte-Herbrüggen, Thomas and Sugny, Dominique and Wilhelm, Frank K.}, | ||
Title = {Quantum optimal control in quantum technologies. Strategic report on current status, visions and goals for research in {Europe}}, | ||
Journal = epjqt, | ||
Year = {2022}, | ||
Doi = {10.1140/epjqt/s40507-022-00138-x}, | ||
Pages = {19}, | ||
Volume = {9}, | ||
} | ||
|
||
@article{Luc-KoenigEPJD2004, | ||
Author = {Luc-Koenig, E. and Vatasescu, M. and Masnou-Seeuws, F.}, | ||
Title = {Optimizing the photoassociation of cold atoms by use of chirped laser pulses}, | ||
Journal = epjd, | ||
Year = {2004}, | ||
Doi = {10.1140/epjd/e2004-00161-8}, | ||
Pages = {239}, | ||
Volume = {31}, | ||
Number = {2}, | ||
eprint = {physics/0407112}, | ||
primaryClass = {physics.atm-clus}, | ||
Archiveprefix = {arXiv}, | ||
} | ||
|
||
@phdthesis{GoerzPhd2015, | ||
Author = {Goerz, Michael}, | ||
Title = {Optimizing Robust Quantum Gates in Open Quantum Systems}, | ||
School = {Universität Kassel}, | ||
url = {https://kobra.uni-kassel.de/handle/123456789/2015052748381}, | ||
Year = {2015}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.