## TEI-L@LISTSERV.BROWN.EDU

#### View:

 Message: [ First | Previous | Next | Last ] By Topic: [ First | Previous | Next | Last ] By Author: [ First | Previous | Next | Last ] Font: Proportional Font

Subject:

Re: tei tables -> fo -> pdf using fop

From:

Date:

Tue, 15 Feb 2005 23:11:03 -0500

Content-Type:

text/plain

Parts/Attachments:

 text/plain (102 lines)
 On Wed, Feb 16, 2005 at 12:13:44AM +0000, Sebastian Rahtz wrote: > > > using XSLT, in text output mode. its trivial, really, > to map into \emph{...} > Trvial? Surely you jest! For example, say you want to use unjustified text (as I do), you have to use code like I've included below. I had to experiment a lot with this about 2 years ago before I got it right. (If you don't set up a definition, when you use \rightskip, you lose the raggedtext quality.) I came across this nice utility: http://getfo.sourceforge.net/texml/ This python script provides an XML vocabulary for LaTeXL. First you convert your XML document (such as TEI) to the specialized vocabulary:   12pt   letter Then you run this XML document through the python utility to get: \documentclass[12pt]{letter} This way, you don't have to worry about controlling your text in XML and escaping characters such as \ and {. You still have to know LaTeX, but you don't have to worry about getting white space right. Do you use TeX or LaTeX? The problem I've had with LaTeX is that I often have to undo the built-in defaults. For example, if I use \tableofcontents, I am stuck with "Contents" as the title. I would have to learn how to change the title. (I know I could just use \label and \pageref; this is just an example.) I was advised to use TeX when converting from XML, since XSLT provides you with most of the power you need. For example, you don't need to use the bibtex package to format your bibliographic entries, since xslt can look up refernces, sort, and format. One only needs TeX/LaTeX for the typesetting. Then again, I imagine that trying to lay out a table in raw TeX would be murder. Thanks Paul PS Here is the pernicious code: \documentclass[english]{article} \newenvironment{normal}[3]% {   \begin{list}{}{%     \addtolength{\leftmargin}{#1}     \addtolength{\rightmargin}{#2}   }   \item[]   \parindent=22pt   \vspace{22pt} } {\end{list}} \begin{document} \raggedright Chapter 1 (a lot of text...) \begin{normal}{12pt}{1in} (text which will be indented according to the definition above) \hspace{22pt}Trout and Hoover were citizens of the United States of America, a country which was called *America* for short.This was the national anthem, which was pure balderdash, like so much they were expected to take seriously: \end{normal} \end{document} -- ************************ *Paul Tremblay * *[log in to unmask]* ************************