ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: What do you miss in ConTeXt?
Date: Tue, 9 Feb 2010 15:05:56 +0100	[thread overview]
Message-ID: <F9179C5A-400B-49BB-96B4-AEDC2B7D2B1A@uni-bonn.de> (raw)
In-Reply-To: <20100208234009.GC6692@aides.aides.com>

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


On Feb 9, 2010, at 12:40 AM, Philipp Gesang wrote:

> That was it, sorry, I reinstalled minimals and LuaTeX recently and
> forgot to update ConTeXt.  Now the file is processed and I get a pdf
> file containing the words
>  --------
> sortkeys:
> n   id  entry
>  --------
> and an hrule beneath that.  As I'm not (yet) familiar with the control
> sequences used in the file as well as parts of its syntax, I can only
> guess that there's a table missing from "\startxmlsetups bibtex:one
> \starttabulate etc.".
> Good night,
> 
> 
> Philipp

In order to see what this example does, you will have to use your own bib file and examples from it. I attach a modified test file with a small bib so you can test. However, I don't yet understand how to use this either. Let's hope this goes trough to the list.

All best

Thomas


[-- Attachment #2: bibtest.tex --]
[-- Type: application/octet-stream, Size: 1965 bytes --]

\dontcomplain

\def\MF {MF} \def\MP {MP} \def\TUB{TUGboat} \def\Mc {Mac}
\def\sltt{\tt} \def\acro#1{#1}

\usemodule[abr-01]

\startxmlsetups bibtex
   % todo: messy
   \xmlregistereddocumentsetups{#1}{}
   \xmlsetsetup{#1}{bibtex|c|e|v}{bibtex:*}
   \xmlmain{#1}
\stopxmlsetups

% \xmlregisterdocumentsetup{bibtex:somebibtex}{bibtex:main}

\startxmlsetups bibtex:bibtex
   \xmlfilter{#1}{e/v[@n=='author' and find(text(),'Arafat') or find(text(),'Joyner')]/../command(bibtex:one)}
\stopxmlsetups

\startxmlsetups bibtex:c
\stopxmlsetups

\startxmlsetups bibtex:e
\stopxmlsetups

% \startxmlsetups bibtex:v
%    \xmlflushcontext{#1}
% \stopxmlsetups

\startxmlsetups xml:bibtex:sorter
   \xmlresetsorter{bibtex}
   \xmlfilter{#1}{e/command(bibtex:entry:getkeys)}
   \blank sortkeys: \blank\xmlshowsorter{bibtex}\blank
   \xmlsortentries{bibtex}
   \xmlflushsorter{bibtex}{bibtex:entry:flush}
\stopxmlsetups

\startxmlsetups bibtex:entry:getkeys
   \xmladdsortentry{bibtex}{#1}{\xmlfilter{#1}{/v[@n=='author']/text()}}
   \xmladdsortentry{bibtex}{#1}{\xmlfilter{#1}{/v[@n=='year']/text()}}
   \xmladdsortentry{bibtex}{#1}{\xmlatt{#1}{n}}
\stopxmlsetups

\startxmlsetups bibtex:one
   \starttabulate
   \NC id     \NC \xmlatt{#1}{n} \NC \NR
   \NC author \NC \xmlfilter{#1}{/v[@n=='author']/context()} \NC \NR
   \NC title  \NC \xmlfilter{#1}{/v[@n=='title']/context()} \NC \NR
   \stoptabulate
\stopxmlsetups

\startxmlsetups bibtex:entry:flush
   \xmlfilter{#1}{/v[@n=='author']/context()} / %
   \xmlfilter{#1}{/v[@n=='year']/context()}   / %
   \xmlatt{#1}{n}\par
\stopxmlsetups


\starttext

\definebibtexsession [somebibtex]
% \registerbibtexentry [somebibtex][Hagen:TB26-2-152]
%\registerbibtexfile  [somebibtex][tugboat.bib]
\registerbibtexfile  [somebibtex][test.bib]
% \registerbibtexentry [somebibtex][Hagen:TB26-2-152]
\preparebibtexsession[somebibtex]
\applytobibtexsession[somebibtex][bibtex]

\xmlsetup{bibtex:somebibtex}{xml:bibtex:sorter}

\stoptext


[-- Attachment #3: test.bib --]
[-- Type: application/octet-stream, Size: 6922 bytes --]


@Book{arafatpausanias,
  author	= {Arafat, Karim W.},
  title		= {Pausanias' Greece: Ancient Artists and Roman Rulers},
  address	= {Cambridge (Engl.)},
  publisher	= {Cambridge  UP},
  year		= {1996},
  annote	= {BMCRev 1997 8 (1): 11-14 Kenneth D. S. Lapatin ; BMCRev 1997 8 (3): 191-194 Kenneth D. S. Lapatin ; EMC 1996 40 (3): 458-462 Christopher P. Jones ; Phoenix 1997 51 (2): 229-233 Nigel Martin Kennell ; TLS 1996 N 4883: 30 Peter Levi ; AJA 1998 102 (4): 843-844 Michael C. Hoff ; NECN 1997-1998 25 (1): 23-24 Hugh Elton ; JRS 2000 90: 232-233 Harry Sidebottom ; Klio 2000 82 (1): 277-278 J{\"o}rn Kobes ; Gnomon 2001 73 (2): 109-111 Christian Habicht ; OAth 2000-2001 25-26: 124-128 Helene Whittaker},
}

@Book{pausaniashardt,
  title		= {Pausanias historien: huit expos{\'e}s suivis de discussions},
  editor        = {Jean Bingen},
  address	= {Vand{\oe}uvres},
  publisher	= {Fondation Hardt},
  year		= {1996},
  series	= {Entretiens sur l'Antiquit{\'e} classique},
  volume	= {41},
  annote	= {AAHG 1999 52 (1-2): 95-98 Karl Christ ; Phoenix 1997 51 (2): 229-233 Nigel Martin Kennell},
}

@Book{pritchettpausanias,
  author	= {Pritchett, W. Kendrick},
  title		= {Pausanias Periegetes},
  address	= {Amsterdam},
  publisher	= {Gieben},
  year		= {1998--1999},
  month         = {2},
  series	= {Archaia Hellas: monographs on ancient Greek history and archaeology},
  volume	= {6--7},
  annote	= {LEC 2000 68 (4): 396-397 Olivier Gengler ; Antiquit{\'e} Classique 2000 69: 327-329 Dominique Mulliez},
}

@Book{editer,
  title		= {{\'E}diter, traduire, commenter Pausanias en l'an 2000: actes du colloque de Neuch{\^a}tel et de Fribourg (18-22 septembre 1998): autour des deux {\'e}ditions en cours de la \quote{P{\'e}ri{\'e}g{\`e}se} (Coll. des universit{\'e}s de France -- Fondazione Lorenzo Valla)},
  editor        = {Denis Knoepfler and Marcel Pi{\'e}rart},
  address	= {Gen{\`e}ve},
  publisher	= {Droz},
  year		= {2001},
  series	= {Recueil de travaux publi{\'e}s par la Facult{\'e} des lettres et sciences humaines, Universit{\'e} de Neuch{\^a}tel},
  volume	= {49},
  annote	= {Antiquit{\'e} Classique 2003 72: 369-371 Francis Prost ; JRA 2003 16 (2): 673-676 Christopher P. Jones ; MH 2003 60 (4): 231-232 Jan Felix Gaertner ; RA 2003 N. S. (2): 418-419 Gunnel Ekroth ; REA 2003 105 (2): 654-656 {\'E}ric Foulon ; Klio 2003 85 (2): 538-540 Johannes Engels ; RBPh 2006 84 (1): 144-146 Alain Duplouy ; Topoi (Lyon) 2005 12-13 (2): 587-604 Madeleine Jost},
}

@Article{arafatpausaniastraveller,
  author	= {Arafat, Karim W.},
  title		= {Pausanias the Traveller: Digressions on the Wonders of Nature and of Foreign Lands},
  journal	= {Euphrosyne},
  year		= {1999},
  volume	= {27},
  pages		= {237--248},
  annote	= {R{\'e}flexions sur l'attitude de Pausanias vis-{\`a}-vis des non-Grecs et son empressement {\`a} faire conna{\^i}tre les choses curieuses {\`a} ses lecteurs grecs},
}

@Article{joynerpausanias1,
  author	= {Joyner, Graham},
  title		= {Pausanias and His Guide Book. 1, the Man and His Work},
  journal	= {AH},
  year		= {1998},
  volume	= {28},
  pages		= {113--135},
  annote	= {On the scope, form, genre, and publication of Pausanias' work, as well as what we know about Pausanias the man (his background, date, and range of travels).},
}

@Article{joynerpausanias23,
  author	= {Joyner, Graham},
  title		= {Pausanias and His Guide Book. 2, Pausanias at Work; 3, the Value of Pausanias},
  journal	= {AH},
  year		= {1999},
  volume	= {29},
  pages		= {46--67},
  annote	= {On the extent to which Pausanias may be considered a historian ; how he worked and used his sources ; and his models. The conclusion is that Pausanias was writing a guide-book rather than primarily writing history. Though Pausanias is selective, he is useful to us as the interpreter of the past, and the scope of his work is enormous. For part 1 => 73-00000.},
}

@Article{sidebottompausanias,
  author	= {Sidebottom, Harry},
  title		= {Pausanias: Past, Present, and Closure},
  journal	= {Classical Quarterly},
  year		= {2002},
  volume	= {52},
  pages		= {494--499},
  annote	= {The only vaguely fixed frame of periodization of political history that Pausanias has is a tripartite one of pre-heroic, heroic, and post-heroic. When looking backwards or forwards, however, Pausanias often juxtaposes things from widely different times, bringing the past into close relation to the present and creating the impression that they belong together. This strategy reaches its culmination in Book 10, which can be seen not as an unfinished piece of work but as a sophisticated tour de force.},
}

@Article{pretzlerturning,
  author	= {Pretzler, Maria},
  title		= {Turning Travel Into Text: Pausanias at Work},
  journal	= {Greece \& Rome},
  year		= {2004},
  volume	= {51},
  pages		= {199--216},
  annote	= {Only a close scrutiny of the \quote{Periegesis} together with other sources for the activities of ancient travellers allow insight into the process that led to Pausanias' published work. Internal references show that Pausanias wrote between the 150s and ca. A.D. 180. The \quote{Periegesis} represents a meandering route through Greece that does not reproduce an actual itinerary. Pausanias developed a geographical ordering that avoided repetition and was easy to remember. The work reflects a traveller's view of geography: although links among regions reveal Pausanias' grasp of the Greek landscape, adjacent geographical features are often not connected if they are not along the same route. Pausanias focused on sacred buildings, statues, and memorials that he considered \quote{wort
 h seeing} even if they were damaged, and regardless of their aesthetic appeal. His insistence on autopsy makes his work valuable.},
}

@Book{pretzlertravel,
  author =	 {Maria Pretzler},
  title =	 {Pausanias. Travel Writing in Ancient Greece},
  publisher =	 {Duckworth},
  year =	 2007,
  address =	 {London}}

@InCollection{goldhillreligion,
  author	= {Goldhill, Simon},
  title		= {Religion, Wissenschaftlichkeit und griechische Identit{\"a}t im r{\"o}mischen Kaiserreich},
  crossref	= {ostenrupkewaldner},
  pages		= {125--140},
  annote	= {Einige bislang unterbewertete Passagen von Autoren der \quote{Zweiten Sophistik} (Pausanias, Plutarch, Aelius Aristides) werden daraufhin untersucht, was sie {\"u}ber den Umgang der Intellektuellen des 2. Jh. mit Tradition und polytheistischer Religion aussagen.},
}

@Book{ostenrupkewaldner,
  title		= {Texte als Medium und Reflexion von Religion im r{\"o}mischen Reich},
  editor        = {Dorothee Elm von der Osten and J{\"o}rg R{\"u}pke and Katharina Waldner},
  address	= {Stuttgart},
  publisher	= {Steiner},
  year		= {2006},
  series	= {Potsdamer altertumswissenschaftliche Beitr{\"a}ge},
  volume	= {14},
  annote	= {Antiquit{\'e} Classique 2007 76: 426-427 Fran{\ccedilla}oise Van Haeperen ; BMCRev 2007 (4): non pagin{\'e} Peter Van Nuffelen},
}

[-- Attachment #4: Type: text/plain, Size: 486 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
___________________________________________________________________________________

  parent reply	other threads:[~2010-02-09 14:05 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 11:25 Wolfgang Schuster
2010-02-08 11:43 ` Sebastien Mengin
2010-02-08 11:55   ` Peter Münster
2010-02-09 17:31     ` Hans Hagen
     [not found]     ` <20100209110640.GE3508@localhost.localdomain>
2010-02-09 22:30       ` Peter Münster
2010-02-09 22:48         ` Hans Hagen
2010-02-10  8:22           ` Peter Münster
2010-02-10  8:33             ` Hans Hagen
2010-02-10  9:45               ` Sebastien Mengin
2010-02-10  9:52                 ` Hans Hagen
2010-02-10 10:12                   ` Alan BRASLAU
2010-02-10 10:34                     ` Hans Hagen
2010-02-10 11:46                       ` Alan BRASLAU
2010-02-10  9:11           ` Sebastien Mengin
2010-02-10  7:55         ` Alan BRASLAU
2010-02-10  8:36           ` Hans Hagen
2010-02-10  9:54             ` Alan BRASLAU
2010-02-10  9:07         ` Sebastien Mengin
2010-02-10 10:05           ` Alan BRASLAU
2010-02-10 14:04           ` Wolfgang Schuster
2010-02-11 10:10             ` Sebastien Mengin
2010-02-11 10:13               ` Alan BRASLAU
2010-02-08 11:56   ` Bernhard Rosensteiner
2010-02-08 12:14   ` Wolfgang Schuster
2010-02-08 13:22     ` Sebastien Mengin
2010-02-08 12:06 ` Peter Münster
2010-02-08 13:41 ` Alan BRASLAU
2010-02-08 16:54   ` Wolfgang Schuster
2010-02-08 17:08     ` John Haltiwanger
2010-02-08 13:49 ` Philipp Gesang
2010-02-08 14:21   ` Bernhard Rosensteiner
2010-02-08 15:05   ` Taco Hoekwater
2010-02-08 15:12   ` Hans Hagen
2010-02-08 21:14     ` Philipp Gesang
2010-02-08 21:26       ` Wolfgang Schuster
2010-02-08 22:08         ` Philipp Gesang
2010-02-08 22:13           ` Wolfgang Schuster
2010-02-08 22:20           ` Hans Hagen
2010-02-08 23:40             ` Philipp Gesang
2010-02-09  2:50               ` Curiouslearn
2010-02-09  8:32                 ` Alan BRASLAU
2010-02-09  9:15                   ` John Haltiwanger
2010-02-09  9:27                 ` Wolfgang Schuster
2010-02-09 14:04               ` Hans Hagen
2010-02-09 14:27                 ` Philipp Gesang
2010-02-09 14:56                   ` Hans Hagen
2010-02-09 14:05               ` Thomas A. Schmitz [this message]
2010-02-08 22:25       ` John Haltiwanger
2010-02-08 16:51   ` Oliver Heins
2010-02-08 17:29 ` David Rogers
2010-02-08 17:37   ` Hans Hagen
2010-02-09  5:53 ` Otared Kavian
2010-02-09  9:29   ` Hans Hagen
2010-02-09 12:09 ` Vedran Miletić
2010-02-09 12:21   ` Wolfgang Schuster
2010-02-09 16:31 ` Oliver Buerschaper
2010-02-09 16:49   ` Wolfgang Schuster
2010-02-09 17:50 ` Khaled Hosny
2010-02-09 17:56   ` Hans Hagen
2010-02-09 18:44     ` Khaled Hosny
2010-02-09 19:12       ` Idris Samawi Hamid ادريس  سماوي حامد
2010-02-09 19:25         ` Khaled Hosny
2010-02-09 18:07 ` Martin Schröder
2010-02-09 22:29   ` Hans Hagen
2010-02-09 22:49     ` Martin Schröder
2010-02-09 18:21 ` Kevin D. Robbins
2010-02-09 18:40   ` Hans Hagen
2010-02-13 12:19     ` John Devereux
2010-02-13 12:50       ` tracking changes (was: Re: What do you miss in ConTeXt?) Peter Münster
2010-02-13 15:24         ` Kevin D. Robbins
2010-02-13 16:14         ` John Devereux
2010-02-13 20:08           ` tracking changes Peter Münster
2010-02-09 18:45 ` What do you miss in ConTeXt? Alan BRASLAU
2010-02-09 18:50   ` Wolfgang Schuster
2010-02-09 19:54     ` Hans Hagen
2010-02-09 22:05       ` luigi scarso
2010-02-09 22:07     ` luigi scarso
2010-02-09 18:51   ` Hans Hagen
2010-02-10  8:00 ` Mikael Persson
2010-02-10 14:24   ` Wolfgang Schuster
2010-02-11  8:43 ` Steffen Wolfrum
2010-02-11  9:05   ` Taco Hoekwater
2010-02-11  9:37   ` Hans Hagen
2010-02-11  9:47     ` Vedran Miletić
2010-02-11 10:07       ` Peter Münster
2010-02-11 13:08         ` Taco Hoekwater
2010-02-11 10:08       ` Taco Hoekwater
2010-02-11 10:15         ` Steffen Wolfrum
2010-02-11 10:12     ` Steffen Wolfrum
2010-02-11 10:24       ` Sebastien Mengin
2010-02-14 14:17   ` Hans Hagen
2010-02-11  9:55 ` Peter Münster
2010-02-11 13:24   ` Hans Hagen
2010-02-11 13:48     ` Peter Münster
2010-02-11 15:17       ` Hans Hagen
2010-02-11 10:01 ` Peter Münster
2010-02-13 12:24 ` John Devereux
2010-02-13 12:30   ` Wolfgang Schuster
2010-02-13 13:21     ` checking keys (was: Re: What do you miss in ConTeXt?) Peter Münster
2010-02-13 13:34       ` checking keys Wolfgang Schuster
2010-02-13 13:45         ` Peter Münster
2010-02-13 13:49           ` Wolfgang Schuster
2010-02-13 16:24     ` What do you miss in ConTeXt? John Devereux
2010-02-13 12:30   ` Eric DÉTREZ
2010-02-19 16:24 ` Kevin D. Robbins
2010-03-05  9:13 ` Vedran Miletić
     [not found]   ` <6faad9f01003051213n3fe17c24u9cac1a536bde33b7@mail.gmail.com>
     [not found]     ` <4B94CAB6.8070908@wxs.nl>
     [not found]       ` <6faad9f01003080636x539d48f0ic94100baabb3925c@mail.gmail.com>
2010-03-14 21:06         ` Vedran Miletić
2010-03-14 22:47           ` Hans Hagen
2010-03-15 13:53             ` Mojca Miklavec
2010-03-15 14:12               ` Hans Hagen
2010-03-19 20:36                 ` Vedran Miletić
2010-03-15  1:41 ` Joshua Lee
2010-02-09  8:53 What do you miss in ConTeXt?: Robert Blackstone
2010-02-10  8:50 What do you miss in ConTeXt? Robert Blackstone
2010-02-10  8:56 ` Matija Šuklje
2010-02-14 12:42   ` Matija Šuklje
     [not found] <mailman.237.1265794125.26807.ntg-context@ntg.nl>
2010-02-10 14:01 ` Vyatcheslav Yatskovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F9179C5A-400B-49BB-96B4-AEDC2B7D2B1A@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).