Skip to content
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

citereset option does not reset for higher section levels than the specified #773

Closed
svenper opened this issue Jul 21, 2018 · 5 comments
Closed
Milestone

Comments

@svenper
Copy link

svenper commented Jul 21, 2018

The citereset options should trigger a reset on all \blx@refpatch@... commands at that section level and higher.

MWE that shows the issue:

\documentclass{article}
\usepackage[style=authoryear-icomp,citereset=subsection]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\section{section 1}
\subsection{subsection 1.1}
\parencite{knuth:ct:a}
\subsection{subsection 1.2}
\parencite{knuth:ct:a}
\section{section 2}
\parencite{knuth:ct:a} (should be reset)
\end{document}

output

@moewew
Copy link
Collaborator

moewew commented Jul 21, 2018

Thank you for the report. I can see where you are coming from.

I'll see whether something like citereset=subsection+ which would reset at \part, \chapter (if available), \section and \subsection is possible. I would not want to change the current behaviour of citereset because the behaviour is documented and established.

moewew added a commit to moewew/biblatex that referenced this issue Jul 21, 2018
@moewew
Copy link
Collaborator

moewew commented Jul 21, 2018

A first implementation idea is at dev...moewew:persectplus. Testing and comments would be appreciated. You will need Biber 2.12 dev (https://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/development/binaries/) to test this.

edit If you don't want to get a new biblatex and Biber set-up just for testing, you can use the drop-in replacement for biblatex.sty v3.11 from https://gist.github.com/moewew/d12e0fe557fadd165c3132b501252fb4. Please use it only for testing in a separate folder, it is not for production use.

@moewew moewew added this to In Progress in biblatex 3.12 Jul 21, 2018
@svenper
Copy link
Author

svenper commented Jul 21, 2018

I appreciate the drop-in, thanks. It tests nicely on my end!

My comment would be that subsubsection, paragraph and subparagraph could be included in this function as well, for completeness.

Also somewhat related: some writing styles reset ibid.'s at every paragraph, but since \par is not a sectioning command i assume that would be a different problem?

@moewew
Copy link
Collaborator

moewew commented Jul 21, 2018

Thanks for testing.

Mhhh, theoretically it should be easy to include \subsubsection, \paragraph and \subparagraph (at least for article.cls etc.). But I'm wondering whether people really need that. Maybe PL had a reason not to include those sectional headings. Lastly, and that ties in nicely with your last point, paragraph may lead people to think that the reset would happen per paragraph (\par/empty line paragraph that is), which it won't.

I'd love to have something like citereset=par, but I'm not aware of a safe method to execute code at the beginning of each paragraph. See also #715

@moewew
Copy link
Collaborator

moewew commented Nov 6, 2018

In biblatex 3.12 you can use citereset=subsection+ to reset the trackers at all sectioning levels of subsection or higher.

\documentclass{article}
\usepackage[style=authoryear-icomp,citereset=subsection+]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\section{section 1}
\subsection{subsection 1.1}
\parencite{knuth:ct:a}
\subsection{subsection 1.2}
\parencite{knuth:ct:a}
\section{section 2}
\parencite{knuth:ct:a} (should be reset)
\end{document}

biblatex 3.12 has been released and is available in TeX live 2018 and MikTeX as of this morning (UTC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
biblatex 3.12
  
Done
Development

No branches or pull requests

2 participants