Ardi <[EMAIL PROTECTED]> wrote:

> Hello Tom,
> 
> thanks for the answer.
> 
> 0.
> You write that there is a problem with <p> tag. So I tried to
> change
> the <h1>, <h2> tags in the preamble to get something colored.
> 
> \xmlattributes{h1}{color="#ffcc44",align="center"}
> \xmlattributes{h2}{color="#112233",align="right"}
> \xmlattributes{h3}{color="#555555",align="left"}
> 
> and 
> 
> ...
> \begin{ifhtml}
> \section{Intro}
> The basic idea of Hyperlatex is to make it possible to write.\\
> \textcolor{red}{The basic idea of Hyperlatex is to make it
> possible to write.}
> <h2>this is with h2.</h2>
> <h1>this is with h1.</h1>
> <h3>this is with h3.</h3>
> \end{ifhtml}
> ...

Don't do that.  

Do this:

\section{this is with h1}
\subsection{this is with h2}

and so on.  If you really need to use an XML tag directly, do this:

\xml{h1}  \xml{/h1}

or:

 \xml{h1 color="red"}


> 
> Are h1 and h2 attributes used automatically for section and
> subsection setting?

It depends on how many sections your document is divided into.

> 
> 2.
> >HTML 3.2 allows you to specify the background color of an HTML
> >node using an attribute that you can set as follows. (If you do
> >this in init.hlx or the preamble of your file, all nodes of your
> >document will be colored this way.)
> 
> But I do not have file init.hlx (only siteinit.hlx) in the
> Hyperlatex-2.8b.tar.

init.hlx is a file you can write, and hyperlatex will look for it.
Write it and put it in ~/.hyperlatex.  You'll probably find it simpler
to put things in the preamble of your document, though.

> 
> 3.
> What I would like to achieve is to have a background of either
> some commands or some verbatim outputs be with given color with
> full width.
> Is it possible to do it with <p> tag with color attribute or 
> tabular environment is needed?

Neither.  Try using \begin{verbatim} and set the attributes of the <PRE>
XML tag.

> 
> 4.
> 
> Is \htmlcss{this.css} better than
> \htmlcss{d:/assa/Hyperlatex-2.8/bin/this.css}?

Well, since one looks like a relative URL that a browser could interpret
and the other looks like a specific file reference that no browser could
interpret, I'd say to go with the first.


> If I use this.css then what is the point of using
> \xmlattributes*{h1}{align="center"}
> \xmlattributes*{p}{class="dotted"}... etc.?

None.  Use the CSS wherever possible and your life will be simpler, work
will be simpler, and you'll wonder what to do with your spare time.

 -tom

-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Hyperlatex-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hyperlatex-users

Reply via email to