From: "Schmitz Thomas A." <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Illegal parameter number in definition
Date: Mon, 20 Jul 2015 09:57:39 +0200 [thread overview]
Message-ID: <D7381527-ECDA-4DBF-B7A3-B1FE687E2494@uni-bonn.de> (raw)
In-Reply-To: <55A93AD0.5010303@mailbox.org>
> On 17 Jul 2015, at 19:26, juh <juh+ntg-context@mailbox.org> wrote:
>
> Hi all,
>
> I am totally new to ConTeXt. I am a long time LaTeX user and I got
> interested in ConTeXt by a posting from Pablo in the Pandoc mailing
> list. So he is to blame if you have to read silly questions from me in
> the future. ;-)
>
> To learn a bit more about ConTeXt I try to make an environment to
> typeset TEI-XML files from http://www.deutschestextarchiv.de (DTA)
>
> I ran into a problem with this XML from DTA:
>
> <head>
> <hi rendition="#g">Zehenter Brief.</hi>
> </head><lb/>
> <p><hi rendition="#in">S</hi>ie sind also mit mir darinn einig, und
> durch den Innhalt meiner
>
> I tried to map the rendition attribute to ConTeXt with this code:
>
> \startxmlsetups xml:teisetups
> \xmlsetsetup{#1}{*}{-}
> \xmlsetsetup{#1}{TEI|text|body|div|head|p|lb}{xml:*}
> \xmlsetsetup{#1}{hi[@rendition='#g']}{xml:hi}
> \stopxmlsetups
>
> The attribute of '#g' makes trouble. I get the following error message.
Hi, welcome to ConTeXt. We prefer to have complete minimal examples (http://www.tex.ac.uk/FAQ-minxampl.html) here so we can look into your questions, not just code snippets. As to your problem: indeed, you have to remove the hashtag. The same question was asked by Pablo just two months ago: http://thread.gmane.org/gmane.comp.tex.context/91354/ . Maybe it would be a good idea to add the solution provided by Hans to the wiki page on TEI xml typesetting http://wiki.contextgarden.net/TEI_xml since it’s a common problem.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-07-20 7:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 17:26 juh
2015-07-20 7:57 ` Schmitz Thomas A. [this message]
2015-07-20 9:42 ` juh
2015-07-20 14:42 ` Schmitz Thomas A.
2015-07-20 14:43 ` Aditya Mahajan
2015-07-23 18:44 ` Pablo Rodriguez
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=D7381527-ECDA-4DBF-B7A3-B1FE687E2494@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).