This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] LaTeX-like Definition markup


Semantically, this looks exactly like a <glosslist/>:

<glosslist>
<glossentry>
<glossterm>Regular Expressions</glossterm>
<glossdef><para>A regular expression is a </para></glossdef>
</glossentry>
<glossentry>...</glossentry>
</glosslist>

With the default stylesheets, that won't look at all like what you're looking for, so you'll need to do some XSLT customizations (or DSSSl if that's what you're using.)

Jeff


Nikolai Weibull wrote:


I would like to write a LaTeX-like definition of a certain term (regular
expressions in fact), but I have failed to find a good way to do it in
DocBook.  What I want is output similar to this:

Definition 2.1 <em>Regular Expressions</em>: A regular expression
is a ...

on block level.  The 2.1 would reflect that it is the first definition
in the second chapter.  Is there anything like this, or would I have to
add it myself?  If so, would this require a lot of DTD hacking, or does
someone perhaps have an example of something similar already?
	nikolai

P.S.
Forgot some pseudo-DocBook to explain myself with.  Something like the
markup is something I have in mind:

<definition>
	<title>Regular Expressions</title>
	<para>A regular expression is a ...</para>
</definition>
D.S.

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.





-- Jeff Beal ----------------------------------------------------- Contemporary Technologies, Inc. (http://www.contemptech.com) 444 Liberty Ave., Suite 1800 Pittsburgh, PA 15222-1223 phone: 412-642-2222 x246 fax: 412-642-2223



To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]