-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to not specialcase @article
type in href positioning
#74
Conversation
91be776
to
c140232
Compare
After looking at the test failures, I noticed that this does not result in desired formatting for paper that are only available on the arXiv, when one follows the docs
If one however puts the arXiv id in the diff --git a/docs/src/refs.bib b/docs/src/refs.bib
index d7e5359..47c4c99 100644
--- a/docs/src/refs.bib
+++ b/docs/src/refs.bib
@@ -682,12 +682,12 @@
Archiveprefix = {arXiv},
}
-@article{Wilhelm2003.10132,
+@misc{Wilhelm2003.10132,
Author = {Wilhelm, Frank K. and Kirchhoff, Susanna and Machnes, Shai and Wittler, Nicolas and Sugny, Dominique},
Title = {An introduction into optimal control for quantum technologies},
- Journal = {arXiv:2003.10132},
+ eprint = {2003.10132},
+ archiveprefix = {arXiv},
Year = {2020},
- Doi = {10.48550/ARXIV.2003.10132},
}
@article{KochEPJQT2022,
-- |
I'm not open to changing the current behavior by default, but I'm definitely open to adding some options to make it easier to change in a custom style. See #73 (comment). Looking at this briefly, it seems like the functions That would make it pretty easy to define a custom style with this new behavior, defining a |
Thanks for your response! I totally understand that you don't want to change the default. |
c140232
to
3438fb0
Compare
@article
type in href positioning@article
type in href positioning
3438fb0
to
1276ca1
Compare
I now adapted this to something very similar to your comment #74 (comment). WIth a very minimal adaption of our doc building in oscar-system/Oscar.jl#4115, @fingolfin and I are very happy with the result. Please let me know if I should change anything here. For testing this new kwarg, I would need to add a custom style to the test code that uses this kwarg. Is this desireable or rather not? |
To simplify testing a little bit, you could follow the examples of the existing tests in It would definitely be nice to have that kind of test. |
Resolves #73 in a straight-up fashion.
Alternatively, one could add some preference for this, or add a dispatch on
style::Val{:stylesymbol}
for this to make users able to adapt the bibliography printing themselves.