| |
446 |
446 |
<para> |
| |
447 |
447 |
<indexterm><primary>lists</primary></indexterm> |
| |
448 |
448 |
Here's how you make the DocBook equivalent of the three usual HTML-lists: |
| |
449 |
449 |
</para> |
| |
450 |
450 |
|
| |
451 |
451 |
<variablelist> |
| |
452 |
452 |
|
| |
453 |
453 |
<varlistentry> |
| |
454 |
454 |
<term><emphasis role="strong">1. How to make an <ul></emphasis></term> |
| |
455 |
455 |
<listitem><para> |
| |
456 |
456 |
Making an unordered list is pretty much like doing the same thing in HTML - if you close your <computeroutput><li></computeroutput>, that is. The only differences are that each list item has to be wrapped in something more, such as |
| |
457 |
457 |
<computeroutput><para></computeroutput>, and that the tags are called |
| |
458 |
458 |
<ulink url="http://docbook.org/tdg/html/itemizedlist.html"><computeroutput><itemizedlist></computeroutput></ulink> |
| |
459 |
459 |
and |
| |
460 |
460 |
<ulink url="http://docbook.org/tdg/html/listitem.html"><computeroutput><listitem></computeroutput></ulink>: |
| |
461 |
461 |
</para> |
| |
462 |
462 |
|
| |
463 |
463 |
<programlisting> |
| |
464 |
464 |
<itemizedlist> |
| |
465 |
465 |
|
| |
466 |
|
<listitem><para>Stuff goes here</para><listitem> |
| |
467 |
|
<listitem><para>More stuff goes here</para><listitem> |
| |
|
466 |
<listitem><para>Stuff goes here</para></listitem> |
| |
|
467 |
<listitem><para>More stuff goes here</para></listitem> |
| |
468 |
468 |
|
| |
469 |
469 |
</itemizedlist> |
| |
470 |
470 |
</programlisting> |
| |
471 |
471 |
|
| |
472 |
472 |
</listitem> |
| |
473 |
473 |
</varlistentry> |
| |
474 |
474 |
|
| |
475 |
475 |
|
| |
476 |
476 |
<varlistentry> |
| |
477 |
477 |
<term><emphasis role="strong">2. How to make an <ol></emphasis></term> |
| |
478 |
478 |
<listitem><para> |
| |
479 |
479 |
The ordered list is like the preceding, except that you use |
| |
480 |
480 |
<ulink url="http://docbook.org/tdg/html/orderedlist.html"><computeroutput><orderedlist></computeroutput></ulink> instead:</para> |
| |
481 |
481 |
|
| |
482 |
482 |
<programlisting> |
| |
483 |
483 |
<orderedlist> |
| |
484 |
484 |
|
| |
485 |
|
<listitem><para>Stuff goes here</para><listitem> |
| |
486 |
|
<listitem><para>More stuff goes here</para><listitem> |
| |
|
485 |
<listitem><para>Stuff goes here</para></listitem> |
| |
|
486 |
<listitem><para>More stuff goes here</para></listitem> |
| |
487 |
487 |
|
| |
488 |
488 |
</orderedlist> |
| |
489 |
489 |
</programlisting> |
| |
490 |
490 |
|
| |
491 |
491 |
</listitem> |
| |
492 |
492 |
</varlistentry> |
| |
493 |
493 |
|
| |
494 |
494 |
|
| |
495 |
495 |
<varlistentry> |
| |
496 |
496 |
<term><emphasis role="strong">3. How to make a <dl></emphasis></term> |
| |
497 |
497 |
<listitem><para> |
| |
498 |
498 |
This kind of list is called a <computeroutput>variablelist</computeroutput> and these are the tags you'll need to |
| |
499 |
499 |
make it happen: |
| |
500 |
500 |
<ulink url="http://docbook.org/tdg/html/variablelist.html"><computeroutput><variablelist></computeroutput></ulink>, |
| |
501 |
501 |
<ulink url="http://docbook.org/tdg/html/varlistentry.html"><computeroutput><varlistentry></computeroutput></ulink>, |
| |
502 |
502 |
<ulink url="http://docbook.org/tdg/html/term.html"><computeroutput><term></computeroutput></ulink> and |
| |
503 |
503 |
<ulink url="http://docbook.org/tdg/html/listitem.html"><computeroutput><listitem></computeroutput></ulink>:</para> |
| |
504 |
504 |
|
| |
505 |
505 |
<programlisting> |
| |
506 |
506 |
<variablelist> |
| |
507 |
507 |
|
| |
508 |
508 |
<varlistentry> |
| |
509 |
509 |
<term>Heading (<dt>) goes here</term> |
| |
510 |
|
<listitem><para>And stuff (<dd>)goes here</para><listitem> |
| |
|
510 |
<listitem><para>And stuff (<dd>)goes here</para></listitem> |
| |
511 |
511 |
</varlistentry> |
| |
512 |
512 |
|
| |
513 |
513 |
<varlistentry> |
| |
514 |
514 |
<term>Another heading goes here</term> |
| |
515 |
|
<listitem><para>And more stuff goes here</para><listitem> |
| |
|
515 |
<listitem><para>And more stuff goes here</para></listitem> |
| |
516 |
516 |
</varlistentry> |
| |
517 |
517 |
|
| |
518 |
518 |
</variablelist> |
| |
519 |
519 |
</programlisting> |
| |
520 |
520 |
|
| |
521 |
521 |
</listitem> |
| |
522 |
522 |
</varlistentry> |
| |
523 |
523 |
|
| |
524 |
524 |
</variablelist> |
| |
525 |
525 |
|
| |
526 |
526 |
</sect2> |
| |
527 |
527 |
|
| |
528 |
528 |
|
| |
529 |
529 |
<sect2 id="dbprimer-tables"> |
| |
530 |
530 |
<title>Tables</title> |
| |
531 |
531 |
|
| |
532 |
532 |
<para> |
| |
533 |
533 |
<indexterm><primary>informaltable</primary><secondary>table</secondary></indexterm> |
| |
534 |
534 |
DocBook supports several types of tables, but in most cases, the |
| |
535 |
535 |
<ulink url="http://docbook.org/tdg/html/informaltable.html"><computeroutput><informaltable></computeroutput></ulink> |