ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Outputting custom types in MKiv bibliography
@ 2016-03-30 14:17 Mike O'Connor
  2016-05-05  8:39 ` luigi scarso
  2018-08-15 10:27 ` XML to ConTeXt: converting date attribute from ISO date Mike O'Connor
  0 siblings, 2 replies; 9+ messages in thread
From: Mike O'Connor @ 2016-03-30 14:17 UTC (permalink / raw)
  To: ntg-context

Hello,

I’m trying to create my first publication using ConTeXt mkiv. All going well except for the bibliography formatting.

Previously I have used LaTeX, standard entry types in BibTeX, and custom output formats using Biblatex.

My publication cites lots of historical sources, viz.:
	(1) Newspaper articles — currently stored as ‘article’ types in BibTex.
	(2) Archival sources (historic letter, some leather-bound volume, a catalogued box of old photographs, etc.) — currently stored as ‘unpublished’ or ‘misc'.

I would prefer to store these (in BibTeX, buffer, lua, or xml) as custom types (eg. ‘newspaper’, ‘archivalItem’), create setups for how they are output and which fields I output.

I found a ’newspaper’ type (and other non-BibTeX types) defined in publ-imp-apa.mkiv as:

\startsetups btx:apa:list:newspaper
    \fastsetup{btx:apa:list:article}
\stopsetups

I hoped this would mean I could output something:
	Boxing. (1903, September 13). The Sunday Times, p.8  

However, if I create an item of type 'newspaper’ and \cite it I get an output of all stored fields:
	newspaper: [day: 13] [journal: {The Sunday Times}] [month: 09] [pages:8][title: {Boxing.}] [type: newspaper article] [year: 1903]
A similar thing happens if I try to cite the standard BibTeX type ‘misc’.

If I store the newspaper item as type ‘article’ I get:
		“Boxing.”, The Sunday Times, 8, 1903.   (missing day and month)

Is it relevant that there is a problem when I include \showbtxfields[rotation=30] in my document? The resulting table has ‘*’ for fields in ‘article’, ‘book’, ‘demo-a’, ‘demo-b’ but the columns for ‘newspaper’ and ‘misc’ are empty.

Any pointers gratefully received.

Cheers,

Mike O’Connor

P.S. I am working in TeXShop on OSX (10.11.3), and it reports:
	This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) 
	ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2016.3.19  int: english/english

___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2020-03-11 19:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 14:17 Outputting custom types in MKiv bibliography Mike O'Connor
2016-05-05  8:39 ` luigi scarso
2018-08-15 10:27 ` XML to ConTeXt: converting date attribute from ISO date Mike O'Connor
2018-08-15 12:04   ` Hans Hagen
2020-03-11 13:14     ` Axel Kielhorn
2020-03-11 14:01       ` Hans Hagen
     [not found]         ` <B77FE72A-BC5E-4E34-A859-8CD860E9B978@axelkielhorn.de>
     [not found]           ` <faf46a0b-2726-9dd8-d62b-8288e7fb1849@xs4all.nl>
2020-03-11 14:38             ` Axel Kielhorn
2020-03-11 15:54               ` Axel Kielhorn
2020-03-11 19:22                 ` 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).