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
Move punctuation for cite commands other than autocite #733
Comments
First attempt at a interface to allow other citation commands to move the punctuation after them. The implementation was a bit tricky, so \DeclareCitePunctuationPosition has to be called after \DeclareCiteCommand.
A first attempt with a few drawbacks is at dev...moewew:citepunctmove. The nature of the many nested commands that make up one citation commands made it hard to implement a more direct approach. |
First attempt at a interface to allow other citation commands to move the punctuation after them. The implementation was a bit tricky, so \DeclareCitePunctuationPosition has to be called after \DeclareCiteCommand.
Similar to \DeclareAutoCiteCommand's optional position argument.
A more sophisticated attempt is at dev...moewew:cpm2. Comments are appreciated. I will prepare a pull request tomorrow. Usage example
|
Similar to \DeclareAutoCiteCommand's optional position argument.
Implement \DeclareCitePunctuationPosition (#733)
This came up over at moewew/biblatex-ext#1 and made me wonder.
I always thought, only
\autocite
had the ability to move around punctuation marks. The feature can be enabled if the optionautopunct
is set to true by using the optionalposition
argument for\DeclareAutoCiteCommand
.As it turns out, however,
\textcite
as defined by theverbose
styles also moves punctuation around. I could not find any official word about this in the documentation. Unlike\autocite
the feature can not be disabled easily with just one or two lines of code here, it is necessary to redefine\textcite
in its entirety (about 20 lines of code). While I can definitely see that moving the punctuation mark is a nice feature, it strikes me as a bit unfortunate that the modifications necessary to disable that behaviour are so awkward and not particularly user friendly.On the other hand it has always struck me as odd that there was no simple way to let other citation commands (in particular
\footcite
,\footfullcite
, ...) move around punctuation marks.So I was wondering whether or not it would be a good idea to enable moving of punctuation marks for all citation commands and offer a simpler interface to enable or disable that feature.
The code changes necessary to allow for the moving don't seem particularly challenging, although a few things should be sorted out and thorough testing would be needed. At the moment I believe the exact implementation of a useful interface would be more challenging.
I'd be interested in everybody's thoughts about the merit of this proposal as well as any input about issues that could arise with this and ideas for implementations.
The text was updated successfully, but these errors were encountered: