ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML and title page rule
@ 2006-03-24  4:36 Johannes Graumann
  2006-03-24  9:12 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Graumann @ 2006-03-24  4:36 UTC (permalink / 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

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

end of thread, other threads:[~2006-04-03 17:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24  4:36 XML and title page rule Johannes Graumann
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

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).