ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Johannes Graumann <graumann@caltech.edu>
Subject: XML and title page rule
Date: Thu, 23 Mar 2006 20:36:42 -0800	[thread overview]
Message-ID: <200603232036.43104.graumann@caltech.edu> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1848 bytes --]

Hello,

I'm trying to make the following work:
1) XML:
<titlepage 
  authors="Autor Autor"
  title="Something &emdash; or <i>Something else</i>"
  subtitle="Much Fun"
  publisher="Somebody"
/>
2) ConTeXt translation rule:
\defineXMLargument[titlepage]{%
  \startstandardmakeup
    \vfil
    \bfd \setupinterlinespace Whatever \par
    \bfb \setupinterlinespace You Want \par
    \vfil
    \vfil
  \stopstandardmakeup
}

I was intending to feed the variables in through '\XMLvar', but can't get the 
start working (see 2).). I would be grateful if someone could nudge me into 
the right direction ...
Is it even possible to have XML nodes in the variables evaluated ("<i>")?
If the above isn't feasible: how would I write an import rule for something 
like:
<titlepage>
  <authors>Autor Autor</authors>
  <title>Something &emdash; or <i>Something else</i></title>
  <subtitle>Much Fun</subtitle>
  <publisher>Somebody</publisher>
</titlepage>

Thanks for any hints - need sleep now ...

Joh

-- 
+----------------------------------------------------------------------+
| Johannes Graumann, Dipl. Biol.                                       |
|                                                                      |
|      Graduate Student                Tel.: ++1 (626) 395 6602        |
|      Deshaies Lab                    Fax.: ++1 (626) 395 5739        |
|      Department of Biology                                           |
|      CALTECH, M/C 156-29                                             |
|      1200 E. California Blvd.                                        |
|      Pasadena, CA 91125                                              |
|      USA                                                             |
+----------------------------------------------------------------------+

[-- Attachment #1.2: Type: application/pgp-signature, Size: 829 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

             reply	other threads:[~2006-03-24  4:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24  4:36 Johannes Graumann [this message]
2006-03-24  9:12 ` Hans Hagen
2006-03-24 18:04   ` Johannes Graumann
2006-03-28 16:12   ` Jano Kula
2006-03-28 16:40     ` Hans Hagen
2006-03-28 17:38       ` Jano Kula
2006-03-29 14:15     ` documents to (print and) read Geert Stappers
2006-03-30  8:38       ` Taco Hoekwater
2006-04-03 17:43         ` Jano Kula

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=200603232036.43104.graumann@caltech.edu \
    --to=graumann@caltech.edu \
    --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).