ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Formatting bibliographic inline references and publications list
@ 2015-01-16  5:08 Jörg Weger
  2015-01-16 13:18 ` Alan BRASLAU
  2015-01-19 17:39 ` Jörg Weger
  0 siblings, 2 replies; 12+ messages in thread
From: Jörg Weger @ 2015-01-16  5:08 UTC (permalink / raw)
  To: ntg-context

Hello everybody,


I am rather new to ConTeXt and I am momentarily stuck with the following:

How can I further format the way an inline reference and a bibliographic 
reference in the publications list are displayed? For example I would 
like to display the author(s) in spaced-out small caps (I am using the 
“letterspace” module). The year should be in oldstyle numbers both in 
the inline reference and in the publications list. An inline-reference 
should like this (simulated without BibTeX, letterspacing slightly 
exaggerated):


% ====== MWE ===============================

\usemodule[t][letterspace]				
\defineletterspace [LSsmcp]			
\setupletterspace [LSsmcp][factor=.08, spaceskip=.4em, suppresskern=no,]

\starttext

\input knuth ({\LSsmcp {\sc Knuth}} {\os 1991})

\input zapf

\stoptext

% ==========================================

I have defaulted oldstyle numbers my environment but I would like to get 
the the small caps working for the author(s) name(s).

I messed around with \setuppublications and \setupcite without success. 
Is there a way to invoke such formatting in those setups?


Greetings

Joerg
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-16  5:08 Formatting bibliographic inline references and publications list Jörg Weger
@ 2015-01-16 13:18 ` Alan BRASLAU
  2015-01-17  6:23   ` Jörg Weger
  2015-01-19 17:39 ` Jörg Weger
  1 sibling, 1 reply; 12+ messages in thread
From: Alan BRASLAU @ 2015-01-16 13:18 UTC (permalink / raw)
  To: Jörg Weger; +Cc: ntg-context

We have completely rewritten the bibliography subsystem of ConTeXt
which is not quite production-ready. It should become easier to create
custom renderings of bibliography references and publication lists.

Do you wish to mix old style numbers for the years with normal style
numbers for volume, number, chapter, page, etc.? If so, would such a mix
look strange?

Do you want only the author names in small capitals, or also the
editor? What about the title, journal, publisher, ... ?
I suppose all names, but not other text.

I do not have any suggestion with the use of the "old" bibliography
module, and the new system is, as I said, not quite ready. But please
clarify what you are looking for so that we can make this somehow
possible.

Alan

On Fri, 16 Jan 2015 06:08:36 +0100
Jörg Weger <joerg73.muc@googlemail.com> wrote:

> Hello everybody,
> 
> 
> I am rather new to ConTeXt and I am momentarily stuck with the
> following:
> 
> How can I further format the way an inline reference and a
> bibliographic reference in the publications list are displayed? For
> example I would like to display the author(s) in spaced-out small
> caps (I am using the “letterspace” module). The year should be in
> oldstyle numbers both in the inline reference and in the publications
> list. An inline-reference should like this (simulated without BibTeX,
> letterspacing slightly exaggerated):
> 
> 
> % ====== MWE ===============================
> 
> \usemodule[t][letterspace]				
> \defineletterspace [LSsmcp]			
> \setupletterspace [LSsmcp][factor=.08, spaceskip=.4em,
> suppresskern=no,]
> 
> \starttext
> 
> \input knuth ({\LSsmcp {\sc Knuth}} {\os 1991})
> 
> \input zapf
> 
> \stoptext
> 
> % ==========================================
> 
> I have defaulted oldstyle numbers my environment but I would like to
> get the the small caps working for the author(s) name(s).
> 
> I messed around with \setuppublications and \setupcite without
> success. Is there a way to invoke such formatting in those setups?
> 
> 
> Greetings
> 
> Joerg

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-16 13:18 ` Alan BRASLAU
@ 2015-01-17  6:23   ` Jörg Weger
  2015-01-19 18:44     ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Jörg Weger @ 2015-01-17  6:23 UTC (permalink / raw)
  To: ntg-context

Hi Alan


What I am trying to achieve is the following (of which typesetting the 
author’s name is only a detail): setting up an environment that I can 
use for all papers and works that I have to write during my academic 
studies. With the basic layout I am almost done. The main remaining 
problem is to get the bibliographic information details in the 
publications list into the right order for every possible type of 
publication according to the standards demanded by my university 
department which differ from APA style.

You ask what I am looking for:

It would be great to be able at the same time to format every detail of 
information while defining said order.

Defining that order could be done by giving a kind of “maximum case” 
with the exact order of the desired variables and the punctuation and 
blanks between them for every particular type of publication cited. Out 
of that “maximum case” the underlying mechanism would ignore everything 
not needed in the particular case of a certain publication.

In the case of publication type “book” it could be something like:

\setpublicationstyleforlist [type:book] 
[{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{ 
(}{year}{): }{title}{. }{address}{: }{publisher}{.}]

The underlying mechanism would ignore author 2 and 3 if there was only 
one single author. In case of more than 3 authors given the “et al.” 
would be used after naming the first 3 authors.

That system would be perfect, if you could do do the desired typographic 
formatting directly inside that definition:

\setpublicationstyleforlist [type:book] [{\letterspace{\sc 
{invertedauthor}{/}{invertedauthor}{/}{invertedauthor}}{et al.}}{ 
(}{\oldstyle{year}}{): }{\it{title}}{. }{adress}{: }{publisher}{.}]

Accordingly for the inline references:

\setupcitestyle[{\letterspace{\sc{authorlastname}{ et al.}}}{ 
}{\oldstyle{year}}]

There should be a possibility to invoke a certain citation style you 
have defined from a text file so you would not have to type 
(respectively copy/paste) everything again every time.

The advantage of such a system would be that everybody could define 
exactly what he/she needs.

Would that be very difficult to implement?

Then there are the cases where the definition work has already be done 
in the form of special XML files: Over 7,000 CSL (= citation style 
language) files are listed for download at the citationstyles.org 
website. Pandoc seems to have a way to use CSL files to filter, order 
and format the information from BibTeX files. It would be great if you 
could do that directly inside ConTeXt as well.


\ConTeXtualGreetings :)

Jörg


PS: I have (as I wrote) defaulted oldstyle numbers for my whole 
environment, so I am not mixing old and normal style.

On 16.01.2015 14:18, Alan BRASLAU wrote:
> We have completely rewritten the bibliography subsystem of ConTeXt
> which is not quite production-ready. It should become easier to create
> custom renderings of bibliography references and publication lists.
>
> Do you wish to mix old style numbers for the years with normal style
> numbers for volume, number, chapter, page, etc.? If so, would such a mix
> look strange?
>
> Do you want only the author names in small capitals, or also the
> editor? What about the title, journal, publisher, ... ?
> I suppose all names, but not other text.
>
> I do not have any suggestion with the use of the "old" bibliography
> module, and the new system is, as I said, not quite ready. But please
> clarify what you are looking for so that we can make this somehow
> possible.
>
> Alan
>
> On Fri, 16 Jan 2015 06:08:36 +0100
> Jörg Weger <joerg73.muc@googlemail.com> wrote:
>
>> Hello everybody,
>>
>>
>> I am rather new to ConTeXt and I am momentarily stuck with the
>> following:
>>
>> How can I further format the way an inline reference and a
>> bibliographic reference in the publications list are displayed? For
>> example I would like to display the author(s) in spaced-out small
>> caps (I am using the “letterspace” module). The year should be in
>> oldstyle numbers both in the inline reference and in the publications
>> list. An inline-reference should like this (simulated without BibTeX,
>> letterspacing slightly exaggerated):
>>
>>
>> % ====== MWE ===============================
>>
>> \usemodule[t][letterspace]				
>> \defineletterspace [LSsmcp]			
>> \setupletterspace [LSsmcp][factor=.08, spaceskip=.4em,
>> suppresskern=no,]
>>
>> \starttext
>>
>> \input knuth ({\LSsmcp {\sc Knuth}} {\os 1991})
>>
>> \input zapf
>>
>> \stoptext
>>
>> % ==========================================
>>
>> I have defaulted oldstyle numbers my environment but I would like to
>> get the the small caps working for the author(s) name(s).
>>
>> I messed around with \setuppublications and \setupcite without
>> success. Is there a way to invoke such formatting in those setups?
>>
>>
>> Greetings
>>
>> Joerg
>
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-16  5:08 Formatting bibliographic inline references and publications list Jörg Weger
  2015-01-16 13:18 ` Alan BRASLAU
@ 2015-01-19 17:39 ` Jörg Weger
  2015-01-19 18:45   ` Hans Hagen
  1 sibling, 1 reply; 12+ messages in thread
From: Jörg Weger @ 2015-01-19 17:39 UTC (permalink / raw)
  To: ntg-context

Hello again,


After looking once more for all files within ConTeXt with “apa” in their 
name, I found out that I can start to write my own citation style by 
changing things in the file 
“~/context/tex/texmf-context/tex/context/bib/bibl-apa.tex”. It’s not as 
convenient as I had described in my previous post, but not to far from 
that and I think I will manage to get everything working. Anyway it is 
much easier for me than learning to edit XML in CSL files which I looked 
at today.

What I still do not understand: How can I make the edited file work as 
an alternative style to APA in \setuppublications in my environment? I 
tried to rename the file to “bibl-abc.tex“ and change \setuppublications 
in my ConTeXt environment to \setuppublications[alternative=abc] but 
that did not work. Do I have to rename something else? And supposed I 
have succeeded to create my own style, will those selfmade style files 
survive an update?

And what are that localized files for like “bibl-apa-de.tex”, 
“bibl-apa-fr.tex” etc.? They seem to be older than “bibl-apa.tex”.


\Greetings

Jörg
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-17  6:23   ` Jörg Weger
@ 2015-01-19 18:44     ` Hans Hagen
  2015-01-23  6:26       ` Alan BRASLAU
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2015-01-19 18:44 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 3274 bytes --]

On 1/17/2015 7:23 AM, Jörg Weger wrote:
> Hi Alan
>
>
> What I am trying to achieve is the following (of which typesetting the
> author’s name is only a detail): setting up an environment that I can
> use for all papers and works that I have to write during my academic
> studies. With the basic layout I am almost done. The main remaining
> problem is to get the bibliographic information details in the
> publications list into the right order for every possible type of
> publication according to the standards demanded by my university
> department which differ from APA style.
>
> You ask what I am looking for:
>
> It would be great to be able at the same time to format every detail of
> information while defining said order.
>
> Defining that order could be done by giving a kind of “maximum case”
> with the exact order of the desired variables and the punctuation and
> blanks between them for every particular type of publication cited. Out
> of that “maximum case” the underlying mechanism would ignore everything
> not needed in the particular case of a certain publication.
>
> In the case of publication type “book” it could be something like:
>
> \setpublicationstyleforlist [type:book]
> [{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
> (}{year}{): }{title}{. }{address}{: }{publisher}{.}]

... that not good enough: fields can be absent, there is no way to 
distinguish authors from titles and so ...

the new mechanism we're making tries to cover a lot of aspects and it's 
not that trivial to also keep the interface simple then

anyway, what we're talking of (currently) is:

- datasets, where data comes from bib files, lua tables xml files or 
whatever gets interfaced

- optional typing, which means that one can tell what fields represents 
what kind of data

- fallback sets i.e a sequence that will be checked when a field is 
requested

- virtual fields (think of numbers and author year combinations)

- control via settings (the et-al thing as well as fences and punctuation)

- rendering driven by setups so that users have full control (if they 
want) over what comes out

- a bunch of helper macros (checking, spacing etc)

- a collection of methods that can be applied to fields when they are 
called up

- calling up citations by tag but also by a query

- control over lists

- automatic generation of registers

- passing along extra data entered in the source

- and more

we don't know how many users will define renderings themselves but in 
principle it should not be too hard to copy existing setups and mess 
with them

there is quite some tracing available because it can go wrong in many 
places (depending on the quality of the data)

attached are two simple examples of how users can define things

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: examples.7z --]
[-- Type: application/x-7z-compressed, Size: 1318 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-19 17:39 ` Jörg Weger
@ 2015-01-19 18:45   ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2015-01-19 18:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/19/2015 6:39 PM, Jörg Weger wrote:
> Hello again,
>
>
> After looking once more for all files within ConTeXt with “apa” in their
> name, I found out that I can start to write my own citation style by
> changing things in the file
> “~/context/tex/texmf-context/tex/context/bib/bibl-apa.tex”. It’s not as
> convenient as I had described in my previous post, but not to far from
> that and I think I will manage to get everything working. Anyway it is
> much easier for me than learning to edit XML in CSL files which I looked
> at today.
>
> What I still do not understand: How can I make the edited file work as
> an alternative style to APA in \setuppublications in my environment? I
> tried to rename the file to “bibl-abc.tex“ and change \setuppublications
> in my ConTeXt environment to \setuppublications[alternative=abc] but
> that did not work. Do I have to rename something else? And supposed I
> have succeeded to create my own style, will those selfmade style files
> survive an update?
>
> And what are that localized files for like “bibl-apa-de.tex”,
> “bibl-apa-fr.tex” etc.? They seem to be older than “bibl-apa.tex”.

don't spend too much time on the old mechanism ... better play with the 
mkiv way and provide feedback on that

>
> \Greetings
>
> Jörg
> ___________________________________________________________________________________
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-19 18:44     ` Hans Hagen
@ 2015-01-23  6:26       ` Alan BRASLAU
  2015-01-25 19:10         ` Jörg Weger
  0 siblings, 1 reply; 12+ messages in thread
From: Alan BRASLAU @ 2015-01-23  6:26 UTC (permalink / raw)
  Cc: ntg-context, Hans Hagen

From what I can see, the only *significant* style difference that you
seek is the use of \letterspace and \sc for names (authors or editors).
The use of old numbers is trivial as they will be used if specified for
the rest of the document.

How else does your university's standard differ from the APA?

All of the details of the layout are programmable using setups.

By the way, the APA sort order is: authors(or editors), year,
title (and possibly journal, volume, number, page).


Alan



On Mon, 19 Jan 2015 19:44:56 +0100
Hans Hagen <pragma@wxs.nl> wrote:

> On 1/17/2015 7:23 AM, Jörg Weger wrote:
> > Hi Alan
> >
> >
> > What I am trying to achieve is the following (of which typesetting
> > the author’s name is only a detail): setting up an environment that
> > I can use for all papers and works that I have to write during my
> > academic studies. With the basic layout I am almost done. The main
> > remaining problem is to get the bibliographic information details
> > in the publications list into the right order for every possible
> > type of publication according to the standards demanded by my
> > university department which differ from APA style.
> >
> > You ask what I am looking for:
> >
> > It would be great to be able at the same time to format every
> > detail of information while defining said order.
> >
> > Defining that order could be done by giving a kind of “maximum case”
> > with the exact order of the desired variables and the punctuation
> > and blanks between them for every particular type of publication
> > cited. Out of that “maximum case” the underlying mechanism would
> > ignore everything not needed in the particular case of a certain
> > publication.
> >
> > In the case of publication type “book” it could be something like:
> >
> > \setpublicationstyleforlist [type:book]
> > [{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
> > (}{year}{): }{title}{. }{address}{: }{publisher}{.}]
> 
> ... that not good enough: fields can be absent, there is no way to 
> distinguish authors from titles and so ...
> 
> the new mechanism we're making tries to cover a lot of aspects and
> it's not that trivial to also keep the interface simple then
> 
> anyway, what we're talking of (currently) is:
> 
> - datasets, where data comes from bib files, lua tables xml files or 
> whatever gets interfaced
> 
> - optional typing, which means that one can tell what fields
> represents what kind of data
> 
> - fallback sets i.e a sequence that will be checked when a field is 
> requested
> 
> - virtual fields (think of numbers and author year combinations)
> 
> - control via settings (the et-al thing as well as fences and
> punctuation)
> 
> - rendering driven by setups so that users have full control (if they 
> want) over what comes out
> 
> - a bunch of helper macros (checking, spacing etc)
> 
> - a collection of methods that can be applied to fields when they are 
> called up
> 
> - calling up citations by tag but also by a query
> 
> - control over lists
> 
> - automatic generation of registers
> 
> - passing along extra data entered in the source
> 
> - and more
> 
> we don't know how many users will define renderings themselves but in 
> principle it should not be too hard to copy existing setups and mess 
> with them
> 
> there is quite some tracing available because it can go wrong in many 
> places (depending on the quality of the data)
> 
> attached are two simple examples of how users can define things
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                               | www.pragma-pod.nl
> -----------------------------------------------------------------



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-23  6:26       ` Alan BRASLAU
@ 2015-01-25 19:10         ` Jörg Weger
  2015-01-25 19:13           ` Jörg Weger
  2015-01-26 10:56           ` Hans Hagen
  0 siblings, 2 replies; 12+ messages in thread
From: Jörg Weger @ 2015-01-25 19:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank You Alan and Hans for your efforts regarding my questions so far.

After I had played a while with the examples Hans had attached, I have 
had a little success bei renaming copies of 
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua and 
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.mkiv to 
publ-imp-daf.lua and publ-imp-daf.mkiv (DaF stands for “Deutsch als 
Fremdsprache” = “German as a foreign language”, my subject of study) and 
putting those renamed copies into the same folder as a test file that 
should contain only in-text references and a publications list.

I have started to set up a “real world” BibTeXt example from the 
examples in the style sheet we were given by the university. So far I 
have different examples for “book” and “incollection”.

  Inside the two new configuration files I replaced every occurrence of 
“apa” by “daf”. Then I edited publ-imp-daf.mkiv by trial and error. I 
managed to change punctuation/delimiters in the publications list, but 
did not fully succeed with the in-text reference. I understand now that 
it is not trivial to set up a style as there are many decisions to be 
taken. The problem I have regarding the publications list is that the 
order I need differs in some ways from apa which means I have to split 
some of the macros defined for apa. E.g. for “book” my order is

author(s), year, title, (optional: edition), adress, publisher, 
(optional: series, volume)

and for incollection

author(s), year, title, editor(s), booktitle, publisher’s city adress, 
publisher, (optional: series, volume), page(s)

I think I have yet to translate the other real world examples (mainly 
electronic media) into BibTeX before I start to ask further questions 
regarding the order in the publications list.

For now I have an important question regarding in-text references:

Is there a way to switch between the following citation modes?

I have to manage:

* normal reference in brackets: author <space> year, no comma: e.g. 
“(Einstein 1904)”

* author is named in the text, only year in brackets: e.g. “As it has 
been proven by Einstein (1904) …”

* if page numbers are to be given in the citation: colon after year, 
followed directly (without space) by page number(s)/range: e.g. 
“(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein 1904:251 
ff.)” or “(Einstein 1904:226–231)”.

(“f.” and “ff.” are the German abreviations for “et seq.” respectively 
“et seqq.”)

Is it possible to switch between those three modes? If not it would be 
great to implement that.

“\cite[extras={<page_numbers>}][<key>]” doesn’t seem to work anymore, so 
I cannot put page numbers manually.


Greetings from Munich

Jörg


PS: Regarding the small caps from my original question: Those would be 
nice, but they are not obligatory—it is just my idea to let the 
references stick out more from the surrounding text and giving the whole 
thing more the impression of sophisticated typesetting :)

For me it is much more important to get the information in the 
publications list into the right order first.






On 23.01.2015 07:26, Alan BRASLAU wrote:
>  From what I can see, the only *significant* style difference that you
> seek is the use of \letterspace and \sc for names (authors or editors).
> The use of old numbers is trivial as they will be used if specified for
> the rest of the document.
>
> How else does your university's standard differ from the APA?
>
> All of the details of the layout are programmable using setups.
>
> By the way, the APA sort order is: authors(or editors), year,
> title (and possibly journal, volume, number, page).
>
>
> Alan
>
>
>
> On Mon, 19 Jan 2015 19:44:56 +0100
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> On 1/17/2015 7:23 AM, Jörg Weger wrote:
>>> Hi Alan
>>>
>>>
>>> What I am trying to achieve is the following (of which typesetting
>>> the author’s name is only a detail): setting up an environment that
>>> I can use for all papers and works that I have to write during my
>>> academic studies. With the basic layout I am almost done. The main
>>> remaining problem is to get the bibliographic information details
>>> in the publications list into the right order for every possible
>>> type of publication according to the standards demanded by my
>>> university department which differ from APA style.
>>>
>>> You ask what I am looking for:
>>>
>>> It would be great to be able at the same time to format every
>>> detail of information while defining said order.
>>>
>>> Defining that order could be done by giving a kind of “maximum case”
>>> with the exact order of the desired variables and the punctuation
>>> and blanks between them for every particular type of publication
>>> cited. Out of that “maximum case” the underlying mechanism would
>>> ignore everything not needed in the particular case of a certain
>>> publication.
>>>
>>> In the case of publication type “book” it could be something like:
>>>
>>> \setpublicationstyleforlist [type:book]
>>> [{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
>>> (}{year}{): }{title}{. }{address}{: }{publisher}{.}]
>>
>> ... that not good enough: fields can be absent, there is no way to
>> distinguish authors from titles and so ...
>>
>> the new mechanism we're making tries to cover a lot of aspects and
>> it's not that trivial to also keep the interface simple then
>>
>> anyway, what we're talking of (currently) is:
>>
>> - datasets, where data comes from bib files, lua tables xml files or
>> whatever gets interfaced
>>
>> - optional typing, which means that one can tell what fields
>> represents what kind of data
>>
>> - fallback sets i.e a sequence that will be checked when a field is
>> requested
>>
>> - virtual fields (think of numbers and author year combinations)
>>
>> - control via settings (the et-al thing as well as fences and
>> punctuation)
>>
>> - rendering driven by setups so that users have full control (if they
>> want) over what comes out
>>
>> - a bunch of helper macros (checking, spacing etc)
>>
>> - a collection of methods that can be applied to fields when they are
>> called up
>>
>> - calling up citations by tag but also by a query
>>
>> - control over lists
>>
>> - automatic generation of registers
>>
>> - passing along extra data entered in the source
>>
>> - and more
>>
>> we don't know how many users will define renderings themselves but in
>> principle it should not be too hard to copy existing setups and mess
>> with them
>>
>> there is quite some tracing available because it can go wrong in many
>> places (depending on the quality of the data)
>>
>> attached are two simple examples of how users can define things
>>
>> Hans
>>
>> -----------------------------------------------------------------
>>                                             Hans Hagen | PRAGMA ADE
>>                 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>       tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>                                                | www.pragma-pod.nl
>> -----------------------------------------------------------------
>
>
>
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-25 19:10         ` Jörg Weger
@ 2015-01-25 19:13           ` Jörg Weger
  2015-01-27  3:59             ` Alan BRASLAU
  2015-01-26 10:56           ` Hans Hagen
  1 sibling, 1 reply; 12+ messages in thread
From: Jörg Weger @ 2015-01-25 19:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users




Thank You Alan and Hans for your efforts regarding my questions so far.

After I had played a while with the examples Hans had attached, I have
had a little success bei renaming copies of
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua and
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.mkiv to
publ-imp-daf.lua and publ-imp-daf.mkiv (DaF stands for “Deutsch als
Fremdsprache” = “German as a foreign language”, my subject of study) and
putting those renamed copies into the same folder as a test file that
should contain only in-text references and a publications list.

I have started to set up a “real world” BibTeXt example from the
examples in the style sheet we were given by the university. So far I
have different examples for “book” and “incollection”.

  Inside the two new configuration files I replaced every occurrence of
“apa” by “daf”. Then I edited publ-imp-daf.mkiv by trial and error. I
managed to change punctuation/delimiters in the publications list, but
did not fully succeed with the in-text reference. I understand now that
it is not trivial to set up a style as there are many decisions to be
taken. The problem I have regarding the publications list is that the
order I need differs in some ways from apa which means I have to split
some of the macros defined for apa. E.g. for “book” my order is

author(s), year, title, (optional: edition), adress, publisher,
(optional: series, volume)

and for incollection

author(s), year, title, editor(s), booktitle, publisher’s city adress,
publisher, (optional: series, volume), page(s)

I think I have yet to translate the other real world examples (mainly
electronic media) into BibTeX before I start to ask further questions
regarding the order in the publications list.

For now I have an important question regarding in-text references:

Is there a way to switch between the following citation modes?

I have to manage:

* normal reference in brackets: author <space> year, no comma: e.g.
“(Einstein 1904)”

* author is named in the text, only year in brackets: e.g. “As it has
been proven by Einstein (1904) …”

* if page numbers are to be given in the citation: colon after year,
followed directly (without space) by page number(s)/range: e.g.
“(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein 1904:251
ff.)” or “(Einstein 1904:226–231)”.

(“f.” and “ff.” are the German abreviations for “et seq.” respectively
“et seqq.”)

Is it possible to switch between those three modes? If not it would be
great to implement that.

“\cite[extras={<page_numbers>}][<key>]” doesn’t seem to work anymore, so
I cannot put page numbers manually.


Greetings from Munich

Jörg


PS: Regarding the small caps from my original question: Those would be
nice, but they are not obligatory—it is just my idea to let the
references stick out more from the surrounding text and giving the whole
thing more the impression of sophisticated typesetting :)

For me it is much more important to get the information in the
publications list into the right order first.






On 23.01.2015 07:26, Alan BRASLAU wrote:
>  From what I can see, the only *significant* style difference that you
> seek is the use of \letterspace and \sc for names (authors or editors).
> The use of old numbers is trivial as they will be used if specified for
> the rest of the document.
>
> How else does your university's standard differ from the APA?
>
> All of the details of the layout are programmable using setups.
>
> By the way, the APA sort order is: authors(or editors), year,
> title (and possibly journal, volume, number, page).
>
>
> Alan
>
>
>
> On Mon, 19 Jan 2015 19:44:56 +0100
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> On 1/17/2015 7:23 AM, Jörg Weger wrote:
>>> Hi Alan
>>>
>>>
>>> What I am trying to achieve is the following (of which typesetting
>>> the author’s name is only a detail): setting up an environment that
>>> I can use for all papers and works that I have to write during my
>>> academic studies. With the basic layout I am almost done. The main
>>> remaining problem is to get the bibliographic information details
>>> in the publications list into the right order for every possible
>>> type of publication according to the standards demanded by my
>>> university department which differ from APA style.
>>>
>>> You ask what I am looking for:
>>>
>>> It would be great to be able at the same time to format every
>>> detail of information while defining said order.
>>>
>>> Defining that order could be done by giving a kind of “maximum case”
>>> with the exact order of the desired variables and the punctuation
>>> and blanks between them for every particular type of publication
>>> cited. Out of that “maximum case” the underlying mechanism would
>>> ignore everything not needed in the particular case of a certain
>>> publication.
>>>
>>> In the case of publication type “book” it could be something like:
>>>
>>> \setpublicationstyleforlist [type:book]
>>> [{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
>>> (}{year}{): }{title}{. }{address}{: }{publisher}{.}]
>>
>> ... that not good enough: fields can be absent, there is no way to
>> distinguish authors from titles and so ...
>>
>> the new mechanism we're making tries to cover a lot of aspects and
>> it's not that trivial to also keep the interface simple then
>>
>> anyway, what we're talking of (currently) is:
>>
>> - datasets, where data comes from bib files, lua tables xml files or
>> whatever gets interfaced
>>
>> - optional typing, which means that one can tell what fields
>> represents what kind of data
>>
>> - fallback sets i.e a sequence that will be checked when a field is
>> requested
>>
>> - virtual fields (think of numbers and author year combinations)
>>
>> - control via settings (the et-al thing as well as fences and
>> punctuation)
>>
>> - rendering driven by setups so that users have full control (if they
>> want) over what comes out
>>
>> - a bunch of helper macros (checking, spacing etc)
>>
>> - a collection of methods that can be applied to fields when they are
>> called up
>>
>> - calling up citations by tag but also by a query
>>
>> - control over lists
>>
>> - automatic generation of registers
>>
>> - passing along extra data entered in the source
>>
>> - and more
>>
>> we don't know how many users will define renderings themselves but in
>> principle it should not be too hard to copy existing setups and mess
>> with them
>>
>> there is quite some tracing available because it can go wrong in many
>> places (depending on the quality of the data)
>>
>> attached are two simple examples of how users can define things
>>
>> Hans
>>
>> -----------------------------------------------------------------
>>                                             Hans Hagen | PRAGMA ADE
>>                 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>       tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>                                                | www.pragma-pod.nl
>> -----------------------------------------------------------------
>
>
>


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-25 19:10         ` Jörg Weger
  2015-01-25 19:13           ` Jörg Weger
@ 2015-01-26 10:56           ` Hans Hagen
  1 sibling, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2015-01-26 10:56 UTC (permalink / raw)
  To: ntg-context

On 1/25/2015 8:10 PM, Jörg Weger wrote:
> Thank You Alan and Hans for your efforts regarding my questions so far.
>
> After I had played a while with the examples Hans had attached, I have
> had a little success bei renaming copies of
> ~/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua and
> ~/context/tex/texmf-context/tex/context/base/publ-imp-apa.mkiv to
> publ-imp-daf.lua and publ-imp-daf.mkiv (DaF stands for “Deutsch als
> Fremdsprache” = “German as a foreign language”, my subject of study) and
> putting those renamed copies into the same folder as a test file that
> should contain only in-text references and a publications list.
>
> I have started to set up a “real world” BibTeXt example from the
> examples in the style sheet we were given by the university. So far I
> have different examples for “book” and “incollection”.
>
>   Inside the two new configuration files I replaced every occurrence of
> “apa” by “daf”. Then I edited publ-imp-daf.mkiv by trial and error. I
> managed to change punctuation/delimiters in the publications list, but
> did not fully succeed with the in-text reference. I understand now that
> it is not trivial to set up a style as there are many decisions to be
> taken. The problem I have regarding the publications list is that the
> order I need differs in some ways from apa which means I have to split
> some of the macros defined for apa. E.g. for “book” my order is

you can just overload the apa definitions (you can do that in a an 
environment for instance) ... save a bit of time and probably easier to 
update

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-25 19:13           ` Jörg Weger
@ 2015-01-27  3:59             ` Alan BRASLAU
  2015-01-27 17:57               ` Jörg Weger
  0 siblings, 1 reply; 12+ messages in thread
From: Alan BRASLAU @ 2015-01-27  3:59 UTC (permalink / raw)
  To: Jörg Weger; +Cc: mailing list for ConTeXt users

On Sun, 25 Jan 2015 20:13:09 +0100
Jörg Weger <joerg73.muc@googlemail.com> wrote:

> * normal reference in brackets: author <space> year, no comma: e.g.
> “(Einstein 1904)”

\cite[authoryears][Einstein1904]

> * author is named in the text, only year in brackets: e.g. “As it has
> been proven by Einstein (1904) …”

\cite[authoryear][Einstein1904]

> * if page numbers are to be given in the citation: colon after year,
> followed directly (without space) by page number(s)/range: e.g.
> “(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein
> 1904:251 ff.)” or “(Einstein 1904:226–231)”.

This feature is currently *broken* (and we need to fix it).

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Formatting bibliographic inline references and publications list
  2015-01-27  3:59             ` Alan BRASLAU
@ 2015-01-27 17:57               ` Jörg Weger
  0 siblings, 0 replies; 12+ messages in thread
From: Jörg Weger @ 2015-01-27 17:57 UTC (permalink / raw)
  To: Alan BRASLAU, mailing list for ConTeXt users

Now I got it and I got it working :)

Thanks a lot!

By the way, is there a difference between \cite and \citation?

On 27.01.2015 04:59, Alan BRASLAU wrote:
> On Sun, 25 Jan 2015 20:13:09 +0100
> Jörg Weger <joerg73.muc@googlemail.com> wrote:
>
>> * normal reference in brackets: author <space> year, no comma: e.g.
>> “(Einstein 1904)”
>
> \cite[authoryears][Einstein1904]
>
>> * author is named in the text, only year in brackets: e.g. “As it has
>> been proven by Einstein (1904) …”
>
> \cite[authoryear][Einstein1904]
>
>> * if page numbers are to be given in the citation: colon after year,
>> followed directly (without space) by page number(s)/range: e.g.
>> “(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein
>> 1904:251 ff.)” or “(Einstein 1904:226–231)”.
>
> This feature is currently *broken* (and we need to fix it).
>
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-01-27 17:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-16  5:08 Formatting bibliographic inline references and publications list Jörg Weger
2015-01-16 13:18 ` Alan BRASLAU
2015-01-17  6:23   ` Jörg Weger
2015-01-19 18:44     ` Hans Hagen
2015-01-23  6:26       ` Alan BRASLAU
2015-01-25 19:10         ` Jörg Weger
2015-01-25 19:13           ` Jörg Weger
2015-01-27  3:59             ` Alan BRASLAU
2015-01-27 17:57               ` Jörg Weger
2015-01-26 10:56           ` Hans Hagen
2015-01-19 17:39 ` Jörg Weger
2015-01-19 18:45   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).