Docbook: marking variables

L

Lasse Kliemann

Greetings,

what is the correct way to mark a variable using Docbook? I do not mean
the name of a variable from some program code. There is <varname> for
this. I mean something like:

Let n be the number of files. ...

I'd like to mark the 'n' somehow. In LaTeX one would do $n$.

Thanks!

Lasse
 
P

Peter Flynn

Lasse said:
Greetings,

what is the correct way to mark a variable using Docbook? I do not mean
the name of a variable from some program code. There is <varname> for
this. I mean something like:

Let n be the number of files. ...

I'd like to mark the 'n' somehow. In LaTeX one would do $n$.

If your document is going to be converted to LaTeX for typesetting,
then <varname lang="TeX">n</varname> should be enough for a stylesheet
to pick it up and turn it into \(n\) or $n$, and the description of
it as a variable seems adequate. But you could also turn on MathML
in DocBook and then I believe use <inlineequation>, although it is
probably too cumbersom for a simple reference to a single variable.

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,002
Messages
2,570,261
Members
46,858
Latest member
FlorrieTuf

Latest Threads

Top