Difference between revisions of "Talk:TEI xml"

From Wiki
Jump to navigation Jump to search
(update of tyro question)
Line 21: Line 21:
 
Thomas,
 
Thomas,
  
 +
Thanks so much for this careful step-by-step introduction.
 
I hope I violate no protocol by asking a tyro question here.
 
I hope I violate no protocol by asking a tyro question here.
  
Your tutorial looks like just what I need, but I'm trying to typeset our tei.xml file on a Mac using TeXshop, and in that environment, it's not immediately clear to me how I can inform ConTeXt that it is to use the file tei-style.tex when typesetting a tei.xml input file.
+
In running context against your example xml with your context 'stylesheet' tei-style.tex, I'm getting <code>! You can't use `\dimexpr' in restricted horizontal mode.</code> errors for each of the section, subsection, and pb <code>\defineinmargin</code> commands
  
I'm unable, as yet, to run context at the command line using this new TeXlive-2010 distro, but TeXshop seems to be able to do it. However, when I input your example xml in the editor (minus the <xmlcode><rdg wit="#c2">arrgl</rdg></xmlcode> elements which seem to make it choke) and run context over it, it typesets the plain text with the xml tags included, because it doesn't know about the tei-style.tex file you so carefully composed. I've saved tei-style.tex to ~/Library/texmf/tei-style.tex, but TeXshop and context remain unaware of it.
+
The contents of these marginal bits appear in the pdf output, but the distance argument (++0.3em etc.) appears there as well.
  
Thanks for any clues you might have to offer,
+
Rank beginner here, apologies if I've missed something obvious.
  
 
Jon
 
Jon
  
 
--[[User:Jjon|Jjon]] 23:16, 17 November 2010 (UTC)
 
--[[User:Jjon|Jjon]] 23:16, 17 November 2010 (UTC)

Revision as of 20:43, 18 November 2010

Hi Thomas,

Something is amiss in your large xml block. You have:

      <div xml:id="VS1" n="I" type="book">
         <div xml:id="VS1" n="1" type="chapter">

but that is two identical xml:id fields, which can't be right .... Taco

Taco,

thanks, you are right of course! I was missing one level of the structure. Am working on it, but on the train, so not logged in.

Thomas



Thomas,

Thanks so much for this careful step-by-step introduction. I hope I violate no protocol by asking a tyro question here.

In running context against your example xml with your context 'stylesheet' tei-style.tex, I'm getting ! You can't use `\dimexpr' in restricted horizontal mode. errors for each of the section, subsection, and pb \defineinmargin commands

The contents of these marginal bits appear in the pdf output, but the distance argument (++0.3em etc.) appears there as well.

Rank beginner here, apologies if I've missed something obvious.

Jon

--Jjon 23:16, 17 November 2010 (UTC)