-
Notifications
You must be signed in to change notification settings - Fork 6
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
Set up more consistent delimiter contexts in citations, abbreviations, and bibliography #108
Comments
I haven't had a proper look at the code, but I've always been wondering if it wouldn't be easier to make all those |
@moewew to be honest I don't know! I just copied the behaviour of Actually, don't you have to? The driver takes care of printing the right output based on entry type. For |
Yes, As I said, I haven't tested this, but if instead of
you can define all your In principle bibdrivers and bibmacros aren't that different, so in theory this should work. |
@moewew , oooo. I see what you mean. However, before I go down this track, what about the \newbibmacro*{related:default}{%
\ifbibliography
{\usedriver{%
% redefine macros for related output
}{\thefield{entrytype}}}
{\begingroup
% redefine macros for related output
\usebibmacro{cite:\thefield{entrytype}}%
\endgroup}} This doesn't really seem better than using the driver everywhere. Also, why would you get rid of of |
Mhhh, yes I haven't thought through all the implications for your code. And maybe going over to bibmacros instead of drivers is just a bad workaround for the real issue (namely that It would of course be possible to make the code a bit prettier by introducing a helper macro like \newcommand*{\bibcitedriver}[2]{%
\ifbibliography
{\usedriver{#1}{#2}}
{\begingroup
#1%
\usebibmacro{cite:#2}%
\endgroup}} and then saying \newbibmacro*{related:default}{%
\bibcitedriver
{%
% redefine macros for related output
}
{\thefield{entrytype}}} I was wrong about \AtUsedriver{%
\let\finentry\blx@finentry@usedrv
\let\newblock\relax
\let\abx@macro@bibindex\@empty
\let\abx@macro@pageref\@empty} and thus disables or redefines certain macros. |
Delimiter contexts end up nearly always being
bib
. Recent changes inbiblatex
make it easier to do this.The text was updated successfully, but these errors were encountered: