Closed gituser789 closed 2 years ago
The second update implements #31
Thanks!
As written in the issue, I would remove your changes to the page counting and instead use the implementation https://github.com/hoelzer/dfg/pull/33 If you also agree, can you remove that part from the running PR so it's easier to merge?
Also, why using "E" as the default for own publications? Is there any reason behind that (although of course the user can easily change that).
Also, I would suggest adding the function to both subsubsections:
%a maximum of ten publications
\subsubsection{Articles published by outlets with scientific quality assurance, book publications, and works accepted for publication but not yet published}
\newrefcontext[labelprefix=E]
\printbibliography[category=reviewed, heading=none, env=bibliographyNUM, resetnumbers]
\subsubsection{Other publications, both peer-reviewed and non-peer-reviewed}
% Own literature can be designated with a prefix. If the function is not desired, delete the "labelprefix" and "resetnumbers = false".
\newrefcontext[labelprefix=E]
\printbibliography[category=nonreviewed, heading=none, env=bibliographyNUM, resetnumbers=false]
Because then all own project-relevant publications, regardless of preprint or peer-reviewed would get the prefix.
Hi,
i updated the pull request according your comments.
The \newrefcontext[labelprefix=E]
is only needed for changes in the prefix, so it just appears twice: adding prefix for all own literatures, and in the last bibliograpy it is removed. In the english template, it was in the second bibliography instead of the first, by mistake. I also fixed this.
The "E" is for the german "Eigen", so i replaced the "E" in the english template to "O" for "Own".
By the way, the english and the german template differ in \printbibliography
at env=bibliographyNUM
. The result is in both templates the same. Is there any reason for this?
Hi,
ah I see (I only checked the engl template so far), thanks for the explanation and fixes.
By the way, the english and the german template differ in \printbibliography at env=bibliographyNUM. The result is in both templates the same. Is there any reason for this?
Hm, good question. I will have a look but can't tell right now.
@gituser789 I think we should add the env=biliographyNUM
to the dfg-german.tex
as well, otherwise I get something like this:
If I change the part in the dfg-german.tex
according to the code in the engl template dfg.tex
:
\newrefcontext[labelprefix=E]
\printbibliography[category=reviewed, heading=none, env=bibliographyNUM, resetnumbers]
\subsubsection{Andere Veröffentlichungen mit und ohne
wissenschaftliche Qualitätssicherung}
\printbibliography[category=nonreviewed, heading=none, env=bibliographyNUM, resetnumbers=false]
I get:
as expected. If you agree, can you change that as well please?
Finally, how could I deactivate this feature? In the comment you wrote that one can just remove the \newrefcontext[labelprefix=E]
and the resetnumbers
parameter, but when I do it like that (in the engl template now):
% Own literature can be designated with a prefix. If the function is not desired, delete the "labelprefix" and "resetnumbers = false".
%\newrefcontext[labelprefix=O]
\printbibliography[category=reviewed, heading=none, env=bibliographyNUM]%, resetnumbers]
\subsubsection{Other publications, both peer-reviewed and non-peer-reviewed}
\printbibliography[category=nonreviewed, heading=none, env=bibliographyNUM]%, resetnumbers=false]
I get:
And not counting from 1-4 as I would expect?
Can you try all steps again deleting temporary files before? In case of no direct literature change, there might be some issues when modifying the display style, but not the literature. So force a full rebuild by deleting all temporary files (.aux, .bcf, ....).
The unset env=...
variable was working for me as expected using the german template. This bibenvironment is set in proposal.sty
, can not say exactly what it is for. Just redefining margins and labelwiths? Seems to has no direct interaction to mark own literature. Do you have more information? Then i will add this.
Can you try all steps again deleting temporary files before? In case of no direct literature change, there might be some issues when modifying the display style, but not the literature. So force a full rebuild by deleting all temporary files (.aux, .bcf, ....).
I'm using the make
file in the repository which also cleans up intermediate files. So this should be fine. Sorry, I can't manage to deactivate the feature, maybe I'm doing something wrong? Currently I try:
\newrefcontext[labelprefix=]
\printbibliography[category=reviewed, heading=none]%, resetnumbers]
\subsubsection{Other publications, both peer-reviewed and non-peer-reviewed}
\printbibliography[category=nonreviewed, heading=none]%, resetnumbers=false]
in the engl template. but I get
The unset env=... variable was working for me as expected using the german template. This bibenvironment is set in proposal.sty, can not say exactly what it is for. Just redefining margins and labelwiths? Seems to has no direct interaction to mark own literature. Do you have more information? Then i will add this.
Ah yeah you are right it's also defined in the proposal.sty
. I also don't see any effect when removing it from the engl template. Unfortunately, I can't tell anymore what that is about. Maybe we can also just remove it from the engl template instead of adding unnecessary code to the german template.
Ahhh I think I found it. I also need to comment out this part:
And then I get again:
like it was before.
The resetnumbers=false
can stay apparently...
\printbibliography[category=nonreviewed, heading=none, env=bibliographyNUM, resetnumbers=false]
and does, in my test, not impact the output. So It seems removing both
\newrefcontext[labelprefix=]
commands will restore the original behaviour of the template. Can you confirm that?
If so, I would merge your PR and just change the description a bit to inform users how to deactivate this feature if they want to. Basically by just commenting out the two \newrefcontext[labelprefix=]
commands.
Yes, i can confirm this.
Should i do any changes inside this PR?
adding the env=...
variable?
Here is a comparison without and with the env
variable:
without env
variable
\subsubsection{Veröffentlichte Arbeiten aus Publikationsorganen mit
wissenschaftlicher Qualitätssicherung, Buchveröffentlichungen sowie
bereits zur Veröffentlichung angenommene, aber noch nicht
veröffentlichte Arbeiten}
\newrefcontext[labelprefix=E]
\printbibliography[category=reviewed, heading=none]
\subsubsection{Andere Veröffentlichungen mit und ohne
wissenschaftliche Qualitätssicherung}
\printbibliography[category=nonreviewed, heading=none]
with env
variable
\subsubsection{Veröffentlichte Arbeiten aus Publikationsorganen mit
wissenschaftlicher Qualitätssicherung, Buchveröffentlichungen sowie
bereits zur Veröffentlichung angenommene, aber noch nicht
veröffentlichte Arbeiten}
\newrefcontext[labelprefix=E]
\printbibliography[category=reviewed, heading=none, env=bibliographyNUM]
\subsubsection{Andere Veröffentlichungen mit und ohne
wissenschaftliche Qualitätssicherung}
\printbibliography[category=nonreviewed, heading=none, env=bibliographyNUM]
The output seems to be identical. Can not see any differences. What do you guess?
Yeah, for me it also seems identical. Can you please just remove the env=
parameter from the engl template? If its not needed apparently why having it in at this position...
And then I would merge this PR finally :) thx!
The env
variable was introduced about 6 month ago, can you have a look at this commit?
Please double check. Then i will remove the varialbe if necessary.
https://github.com/hoelzer/dfg/commit/cb66523fb1c3e3844ea06ed0dd588aa5a4362722
Yes, let me double check first, thx
On Thu, 18 Aug 2022, 08:40 gituser789, @.***> wrote:
The env variable was introduced about 6 month ago, can you have a look at this commit? Please double check. Then i will remove the varialbe if necessary.
— Reply to this email directly, view it on GitHub https://github.com/hoelzer/dfg/pull/32#issuecomment-1219095456, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADN2CZ3L3XB6SRBO6SWXOZ3VZXLHHANCNFSM554SJCZQ . You are receiving this because you commented.Message ID: @.***>
Hey @gituser789 , I looked at the commit but can't exactly reconstruct why I added that env=
parameter -.-
Anyway, I would merge your changes now and then do another PR to
env=
and also add it to the german template (I decided now to better keep it)Thanks again for the PR and the help!
Cheers, Martin
This update will close #30