Taco Hoekwater wrote:
> I believe that should be:
> 
>      \defineXMLenvironment
>        [content]
>        {}{}
> 
Thanks for your answer ... this didn't solve my problem see attachment ...
the relevant mapping code is:
\defineXMLenvironment
  [chapter]
  {
    \defineXMLargument
      [title]
      {\chapter}
    \defineXMLenvironment
      [content]
      {}{}
  }
  {\section{References}\placepublications}
\defineXMLenvironment
  [section]
  {
  \defineXMLargument
    [title]
    {\section}
  \defineXMLenvironment
    [content]
    {}{}
  }
  {}
\defineXMLargument
  [cite]
  {\cite[\XMLpar{cite}{key}{}][\XMLpar{cite}{id}{}]}

XML for this bit looks as follows:
<chapter>
  <title>Introduction</title>
  <content>
    <section>
      <title>The problem of the complex protein mixture</title>
      <content>
        <p>
          <cite id="gott:00" key="authoryear"/><cite id="storz:02" 
          key="authoryears"/>
        </p>
      </content>
    </section>
    <section>
      <title>
        Multidimensional Protein Identification Technology
      </title>
      <content>
      </content>
    </section>
    <section>
      <title>The Ubiquitin&endash;Proteasome System</title>
      <content>
      </content>
    </section>
    <section>
      <title>Cdc48p</title>
      <content>
      </content>
    </section>
  </content>
</chapter>

>> 2) I'm a biologist and author/year citation is usus where I work. The
>> options 'authoryear' ('Hoekwater (2006)') and 'authoryears' ('(Hoekwater,
>> 2006)') are great, but I would also want to have the option to prepend
>> the latter with something like 'e.g.' ('(see e.g. Hoekwater, 2006)'). I
>> understand this is possible to the right of the actual citation
>> with 'extras', but how difficult would it be to do that on the left?
> 
> You can use the 'left' parameter, just don't forget to include a '('
> at the start of it.
I see .. thanks for pointing that out!

Joh

Attachment: PhD-Thesis.pdf
Description: Adobe PDF document

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

Reply via email to