Different authorconversion for citation alternatives and bibliographic entries
Hi there, My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. I have two problems: 1. I created the publ-imp-deu.lua and publ-imp-deu.mkvi files. If I put them into the ~/bin/context/tex/texmf-context/tex/context/base/mkiv/ directory, I get the following two lines in the log: ``` publications > unknown library 'deu' publications > no data definition file 'publ-imp-deu.lua' for 'deu' ``` If I put them into the directory where my thesis is, they seem to get recognized, but I would very much like to reuse them and not have to copy them to each project directory. What am I doing wrong? 2. Entries in the bibliography and fist time citations must have 'normal' authorconversion, while consequent citations must have 'normalshort'. For consequent citations I defined the 'authortitle' alternative. In the thesis I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal] \definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle] \startsetups btx:deu:list:book {\sc \btxflush{author}}\btxcolon \btxflush{title} \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod \stopsetups ``` In the setup and definition, the fields I defined do get into the citation correctly, but the authorconversion remains 'normal'. If I comment out the lines which set up 'normal' authorconversion for the list, everything, including the bibliography and 'entry' type citations get 'normalshort'. Is that a bug or am I missing something? Thank you, Agoston
On Wed, 30 Jun 2021, Ágoston Volcz wrote:
Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. I have two problems:
1. I created the publ-imp-deu.lua and publ-imp-deu.mkvi files. If I put them into the ~/bin/context/tex/texmf-context/tex/context/base/mkiv/ directory, I get the following two lines in the log: ``` publications > unknown library 'deu' publications > no data definition file 'publ-imp-deu.lua' for 'deu' ``` If I put them into the directory where my thesis is, they seem to get recognized, but I would very much like to reuse them and not have to copy them to each project directory. What am I doing wrong?
Try running mtxrun --generate to update the database. However, I think that texmf-context/... is a bad place to put local files because they can be overwritten by system update. It may be better to put them in $TEXMFHOME/tex/context/personal/... Aditya
Thank you! I've moved the files into $TEXMFHOME/tex/context/personal/... and updated the database. This solved the first part of the problem perfectly Hopefully there is also a solution to the second issue. Agoston
On 6/30/2021 1:28 PM, Ágoston Volcz wrote:
Thank you! I've moved the files into $TEXMFHOME/tex/context/personal/... and updated the database. This solved the first part of the problem perfectly Hopefully there is also a solution to the second issue. or just tex/texmf-project/....
because home gets scanned every run ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Sorry for hijacking this thread. Am 30.06.21 um 18:06 schrieb Hans Hagen:
or just tex/texmf-project/....
What is the difference between tex/texmf-local tex/texmf-project if $TEXMFHOME/tex/context/personal/ gets scanned every run? Any recommandations what to store where? juh
On 6/30/2021 7:00 PM, Jan U. Hasecke wrote:
Sorry for hijacking this thread.
Am 30.06.21 um 18:06 schrieb Hans Hagen:
or just tex/texmf-project/....
What is the difference between
tex/texmf-local tex/texmf-project
if $TEXMFHOME/tex/context/personal/ gets scanned every run?
Any recommandations what to store where?
texmf-local : maybe configurations texmf-project : stuff you're working on (styles) texmf-fonts : fonts you downloaded or bought ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 30/06/21 02:20, Ágoston Volcz wrote:
2. Entries in the bibliography and fist time citations must have 'normal' authorconversion, while consequent citations must have 'normalshort'. For consequent citations I defined the 'authortitle' alternative. In the thesis I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal]
\definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle]
\startsetups btx:deu:list:book {\sc \btxflush{author}}\btxcolon \btxflush{title} \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod \stopsetups
``` In the setup and definition, the fields I defined do get into the citation correctly, but the authorconversion remains 'normal'. If I comment out the lines which set up 'normal' authorconversion for the list, everything, including the bibliography and 'entry' type citations get 'normalshort'. Is that a bug or am I missing something?
I am not sure that I understand your snippet (a mwe would be useful). However, it appears that your setup is for the "list" rendering of a book, and you do specify authorconversion=normal for lists. Keep in mind that the bibliography system uses inheritance so it is important to set options in the right places. Once everything gets initialized, changing a higher-level parameter might not propagate to lower-level instances if they have already been defined, the inheritance taking place at definition time. -- Alan
example.tex
```
\startbuffer[example]
@book{book,
author = {First Last},
title = {Title},
subtitle = {Subtitle},
publisher = {Publisher},
address = {City},
year = {2021} }
\stopbuffer
\usebtxdataset[example.buffer]
\usebtxdefinitions[deu]
\starttext
\cite[entry][book]
\cite[authortitle][book]
\placelistofpublications
\stoptext
```
publ-imp-deu.mkvi
```
\startbtxrenderingdefinitions[deu]
\definebtx
[deu]
[default=default, specification=deu]
\definebtxrendering
[deu]
[specification=deu, sorttype={author,title}, numbering=num]
\definebtx
[deu:list]
[deu]
\definebtx
[deu:list:author]
[deu:list]
[authorconversion=normal]
\definebtx
[deu:list:book]
[deu]
\definebtx
[deu:cite]
[deu]
\definebtx
[deu:cite:authortitle]
[deu]
[authorconversion=normalshort]
\startsetups btx:deu:list:book
\btxflush{author}\btxcolon\btxflush{title}\btxperiod
\btxdoif{subtitle}{\btxflush{subtitle}\btxperiod}
\btxflush{address}\btxcolon\btxflush{publisher}
\btxflush{year}\btxperiod
\stopsetups
\startsetups btx:deu:cite:authortitle
\btxflush{author}\btxcolon\btxflush{title}\btxperiod
\btxdoif{subtitle}{\btxflush{subtitle}\btxperiod}
\stopsetups
\stopbtxrenderingdefinitions
```
This is the shortest example I could get, some lines got very long but
I did not want it be too many lines. If I compile this, I get:
(First Last: Title. Subtitle. City: Publisher 2021.)
First Last: Title. Subtitle.
1 First Last: Title. Subtitle. City: Publisher 2021.
Agoston
Am Mi., 30. Juni 2021 um 19:26 Uhr schrieb Alan Braslau
On 30/06/21 02:20, Ágoston Volcz wrote:
2. Entries in the bibliography and fist time citations must have 'normal' authorconversion, while consequent citations must have 'normalshort'. For consequent citations I defined the 'authortitle' alternative. In the thesis I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal]
\definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle]
\startsetups btx:deu:list:book {\sc \btxflush{author}}\btxcolon \btxflush{title} \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod \stopsetups
``` In the setup and definition, the fields I defined do get into the citation correctly, but the authorconversion remains 'normal'. If I comment out the lines which set up 'normal' authorconversion for the list, everything, including the bibliography and 'entry' type citations get 'normalshort'. Is that a bug or am I missing something?
I am not sure that I understand your snippet (a mwe would be useful). However, it appears that your setup is for the "list" rendering of a book, and you do specify authorconversion=normal for lists.
Keep in mind that the bibliography system uses inheritance so it is important to set options in the right places. Once everything gets initialized, changing a higher-level parameter might not propagate to lower-level instances if they have already been defined, the inheritance taking place at definition time.
-- Alan
Hi,
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An: ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes.
Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here? Denis
On 30/06/21 12:59, denis.maier@unibe.ch wrote:
Hi,
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here?
Denis
Indeed (one can always use \footnote{} but that might not be a good substitute for a proper footnote citation style. I do not use footnote citations as a general style (and personally dislike it, finding them somewhat distracting and sloppy). Yet these are popular in many fields and there is no reason not to support it. -- Alan
-----Ursprüngliche Nachricht----- Von: Alan Braslau
Gesendet: Mittwoch, 30. Juni 2021 21:11 An: mailing list for ConTeXt users ; Maier, Denis Christian (UB) Betreff: Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries On 30/06/21 12:59, denis.maier@unibe.ch wrote:
Hi,
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here?
Denis
Indeed (one can always use \footnote{} but that might not be a good substitute for a proper footnote citation style.
I do not use footnote citations as a general style (and personally dislike it, finding them somewhat distracting and sloppy). Yet these are popular in many fields and there is no reason not to support it.
So what would be needed to make add real support for it?
On Wed, 30 Jun 2021 19:40:06 +0000
-----Ursprüngliche Nachricht----- Von: Alan Braslau
Gesendet: Mittwoch, 30. Juni 2021 21:11 An: mailing list for ConTeXt users ; Maier, Denis Christian (UB) Betreff: Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi,
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the
On 30/06/21 12:59, denis.maier@unibe.ch wrote: phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here?
Denis
Indeed (one can always use \footnote{} but that might not be a good substitute for a proper footnote citation style.
I do not use footnote citations as a general style (and personally dislike it, finding them somewhat distracting and sloppy). Yet these are popular in many fields and there is no reason not to support it.
So what would be needed to make add real support for it?
First of all, come to a consensus on a clear style guide to base this on, so as not to run after ambiguous and perhaps contradictory specifications. This would be distinct from the APA (author-year) model as well as from the minimalist APS (numbered) style. Could this perhaps be the Chicago style? (does that have a footnote specification?) Secondly, identify users who would be willing to spend time testing and giving feedback. Thirdly, motivate Hans and myself to spend time on this (implementing or helping implement), for neither of us use the footnote style. So it can be done, and such a model is presently missing. Alan
Chicago-style footnote user here,
I would be interested in helping with testing.
Jelle
On Wed, Jun 30, 2021 at 11:50 PM Alan Braslau
On Wed, 30 Jun 2021 19:40:06 +0000
wrote: -----Ursprüngliche Nachricht----- Von: Alan Braslau
Gesendet: Mittwoch, 30. Juni 2021 21:11 An: mailing list for ConTeXt users ; Maier, Denis Christian (UB) Betreff: Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi,
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there,
My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the
On 30/06/21 12:59, denis.maier@unibe.ch wrote: phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here?
Denis
Indeed (one can always use \footnote{} but that might not be a good substitute for a proper footnote citation style.
I do not use footnote citations as a general style (and personally dislike it, finding them somewhat distracting and sloppy). Yet these are popular in many fields and there is no reason not to support it.
So what would be needed to make add real support for it?
First of all, come to a consensus on a clear style guide to base this on, so as not to run after ambiguous and perhaps contradictory specifications. This would be distinct from the APA (author-year) model as well as from the minimalist APS (numbered) style. Could this perhaps be the Chicago style? (does that have a footnote specification?)
Secondly, identify users who would be willing to spend time testing and giving feedback.
Thirdly, motivate Hans and myself to spend time on this (implementing or helping implement), for neither of us use the footnote style.
So it can be done, and such a model is presently missing.
Alan
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
-----Ursprüngliche Nachricht----- Von: Alan Braslau
Gesendet: Mittwoch, 30. Juni 2021 23:50 An: Maier, Denis Christian (UB) Cc: ntg-context@ntg.nl Betreff: Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries
[...]
So what would be needed to make add real support for it?
First of all, come to a consensus on a clear style guide to base this on, so as not to run after ambiguous and perhaps contradictory specifications. This would be distinct from the APA (author-year) model as well as from the minimalist APS (numbered) style. Could this perhaps be the Chicago style? (does that have a footnote specification?)
Chicago is certainly not a bad choice for this. It's probably one of the most complete footnote specifications out there. (I knows multiple variants though, so you need to settle for one or support both.) One thing to be aware of is that Chicago is utterly complex. Other styles like MHRA are a bit simpler. This complexity might be an advantage and a disadvantage at the same time. It may be hard to get this completely right. The already mentioned biblatex-chicago package shows how much is involved. OTOH, if you get this right that should cover almost everything that might come up in note based styles. Denis
Oh, and needless to say, I'd be happy to help with this.
-----Ursprüngliche Nachricht----- Von: Maier, Denis Christian (UB) Gesendet: Freitag, 2. Juli 2021 10:01 An: 'Alan Braslau'
Cc: ntg-context@ntg.nl Betreff: AW: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries -----Ursprüngliche Nachricht----- Von: Alan Braslau
Gesendet: Mittwoch, 30. Juni 2021 23:50 An: Maier, Denis Christian (UB) Cc: ntg-context@ntg.nl Betreff: Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries [...]
So what would be needed to make add real support for it?
First of all, come to a consensus on a clear style guide to base this on, so as not to run after ambiguous and perhaps contradictory specifications. This would be distinct from the APA (author-year) model as well as from the minimalist APS (numbered) style. Could this perhaps be the Chicago style? (does that have a footnote specification?)
Chicago is certainly not a bad choice for this. It's probably one of the most complete footnote specifications out there. (I knows multiple variants though, so you need to settle for one or support both.) One thing to be aware of is that Chicago is utterly complex. Other styles like MHRA are a bit simpler. This complexity might be an advantage and a disadvantage at the same time. It may be hard to get this completely right. The already mentioned biblatex-chicago package shows how much is involved. OTOH, if you get this right that should cover almost everything that might come up in note based styles.
Denis
participants (7)
-
Aditya Mahajan
-
Alan Braslau
-
denis.maier@unibe.ch
-
Hans Hagen
-
J Huisman
-
Jan U. Hasecke
-
Ágoston Volcz