Am 16.11.2008 um 14:36 schrieb Mildred Ki'Lya:
Le Sun 16/11/2008 à 13:01 Wolfgang Schuster à écrit:
You should use ConTeXt markup and try to avoid the plain TeX commands.
Thank you for your hists. I'll have to go through them.
In fact, I wanted as much as possible to be independent from ConTeXt itself. In the file I typeset, I only use customized control sequences I have defined before. It looks like:
Ah! You try to define your own markup for TeX.
\def\title{Title} \def\author{Author}
\Header{ \ifodd\pagenumber \hfil{\sc\title}\hfil\hfil\pagenumber\hfil \else \hfil\pagenumber\hfil\hfil{\sc\author}\hfil \fi \break \vbox{\hfil\hrulefill\hfil} }
Better: \Header{\sc\title\\\pagenumber}{\pagenumber\\sc\author} and the mapping to the ConTeXt commands happens in your style file.
\PaperSize{C5}
\StartFrontPage \Title{\title} \vfil \SubTitle{\author} \StopFrontPage
Why do you use a environmen but post low level code in your other mail, if you use such code use it in your questions, it's easier to help you.
\Chapter \Title{Introduction}
\Chapter[1] \Title{Chapter name}
What is \Chapter supposed to do.
All those control sequences are defined in another file I \input at the beginning. This way, I can be independent from the TeX's flavour I use.
In fact, I started hating TeX (it was more LaTeX I think) because I couldn't customize it as i wanted. I could write styles, but it was over complicated and there was no documentation I could find.
Recently, I realized that TeX wasn't so bad. Before that, I had tried to write TeX replacements, but I have realized then that TeX has everything I wanted (except perhaps unicode support that luatex is supposed to have now). It just lacked proper documentation. I decided it was not a sufficient reason to start an alternative to TeX so I started using TeX.
At first, I wanted to use LuaTeX (because I like Lua a lot and I need unicode). The main problem I had was it was impossible for me to get unicode characters right. So I switched to ConTeXt (which still used LuaTeX but was able to display unicode as well). I still plan to eventually move to LuaTeX when it will recognize unicode characters.
That's why I don't want to use too many ConTeXt advanced features. The other reasons being that I want to learn low-level TeX, so perhaps one day, I'll be able to write documentation for all those like me who like to understand every single bit of the language they use. I don't like having recipes I just have to apply, I want to be able to understand what's behind.
You could also use xml for your document, it's independant of the backend and you could use whatever you want to produce a pdf file. Or you write a complete new markup style, here is something from my archive, I never used it but it was interesting to test a new method to write text. [ :document [ :title {Document title} [ :section "Section title" [ :example [ :sign {Name} My name is :sign {Name}. I live in :sign {town}. ] ] [ :description {xxx} [We all know xxx is known for ...] ] ] ]] Regards, Wolfgang