docbook question

View: New views
2 Messages — Rating Filter:   Alert me  

docbook question

by Dominik Haumann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'd like to format a textpart as follows:

void func(int line, int column);               // this in fixed font
void func(Cursor cursor);                      // also fixed font
    Explanation paragraphs.                    // INDENTED, normal font


What I tried:
<programlisting>
void func(int line, int column);               // this in fixed font
void func(Cursor cursor);                      // also fixed font
</programlisting>
<variablelist>
<varlistentry>
<listitem>
<para>
Explnanation paragraphs.
</para>
</listitem>
</varlistentry>
</variablelist>

However, this doesn't work as varlistentry as first item want's a
<term>...</term>.

So I tried:
<variablelist>
<varlistentry>
<term>
void func(int line, int column);               // this in fixed font
</term>
<term>
void func(Cursor cursor);                      // also fixed font
</term>
<listitem>
<para>
Explnanation paragraphs.
</para>
</listitem>
</varlistentry>
</variablelist>

This produces:
void func(int line, int column);, void func(Cursor cursor);
    Explanation...

Almost correct, but instead of a newline I get a ',' as separator, which
again is wrong.

I also cannot use a simple list because I want to avoid the leading dot.


Can anyone please enlighten me? I just want to indent a paragraph, that's
all. Like <ul>... in html...

Please CC me as I'm not subscribed to the list.

Thanks.

Dominik
_______________________________________________
kde-docbook mailing list
kde-docbook@...
https://mail.kde.org/mailman/listinfo/kde-docbook

Re: docbook question

by Bugzilla from lueck@hube-lueck.de :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Dienstag 27 Oktober 2009 22:57:20 schrieb Dominik Haumann:
>
> Can anyone please enlighten me? I just want to indent a paragraph, that's
> all. Like <ul>... in html...
>
What about this?

<variablelist>
<varlistentry>
<term>
<synopsis>
void func(<replaceable>int line</replaceable>, <replaceable>int
column</replaceable>);
void func(<replaceable>Cursor cursor</replaceable>);
</synopsis>
</term>
<listitem>
<para>
Explnanation paragraphs.
</para>
</listitem>
</varlistentry>
</variablelist>

--
Burkhard Lück
_______________________________________________
kde-docbook mailing list
kde-docbook@...
https://mail.kde.org/mailman/listinfo/kde-docbook