
htmlsection - ֹ HTML ܼޤ

* ֹ HTML ϤؤΥ󥯤ޤ
* ܼޤ
* ɽޡץꥹȤֹ󥯤ޤ
* ɽޡץꥹȤܼޤ
* ʸѸ졤ֹ󥯤ޤ

htmlsection Copyright (C) 2001-2003 SAKAI Hiroaki.
All Rights Reserved.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

Υץϥե꡼եȥǤꡤGNU General Public License (GPL) 
Ǽͳ˲ѤۤǤޤ

¹Է

    htmlsection [-options] [files ...]



htmlsection Ͼֹʤɤ HTML ե뤿 perl ץȤǤ
htmlsection Ѥ뤳Ȥǡֹ桤ɽֹ桤ֹ桤ץꥹֹ桤
ʸֹ桤Ѹֹ桤ֹɬפ̵ʤޤ
ޤܼɽܼܼꥹܼưǺǤޤ

htmlsection μ¹Ի˥եꤹȡΥեɤ߹
ԤޤեꤷʤˤϡɸϤɤ߹ߤޤ

¹

* ֹȥ󥯤κ

<section></section>  <h1></h1> Ѵ졤ֹ椬ޤ
ˤ <section>, <subsection>, ..., <subsubsubsubsubsection> 
ǤޤϤˤ name ץѤ̾ꤹ뤳ȤǤޤ
ʸǤ<sectionref>ѤϤ̾ꤹ뤳ȤǡξϤؤ
Ȥ󥯤뤳ȤǤޤϤֹƤʤ
ˤϡnumber ץ<section number=no>Τ褦˻ꤷޤ

:

㤨аʲƤǡexample.html Ȥեޤ
--------  --------
<section name="intro" number=no>Ϥ</section>

    ϡ֤ϤˡפǤ

<section name="howto">htmlsection λȤ</section>

<subsection name="howtouse">htmlsection ȤäƤߤ褦</subsection>

    htmlsection ˤĤƤϡ
<sectionref name="howto"> 
<subsectionref name="howtouse" title=no> 򻲾ȤƤ

<section number=no></section>
-------- ޤ --------

ˡʲ¹Ԥޤ
> cat example.html | htmlsection -japanese -no-spacer
htmlsection ϰʲϤޤ
--------  --------
<h1><a name="section_intro">Ϥ</a></h1>

    ϡ֤ϤˡפǤ

<h1><a name="section_howto">1 htmlsection λȤ</a></h1>

<h2><a name="subsection_howtouse">1.1 htmlsection ȤäƤߤ褦</a></h2>

    htmlsection ˤĤƤϡ
<a href="#section_howto">1 htmlsection λȤ</a> 
<a href="#subsection_howtouse">1.1</a> 򻲾ȤƤ

<h1><a name="section_toc2"></a></h1>
-------- ޤ --------

* ܼκ

htmlsection ܼưޤ<tableofcontents></tableofcontents> 
ȡܼޤ

* ɽޡꥹֹȥ󥯤κ

<tablereference> ȡɽֹưޤ

:

ʲ htmlsection ˤѴǤ
--------  --------
<center>
<tablereference name="sample_table">ɽΥץ</tablereference>
<table border=1>
<tr><td align=center>ؿ̾</td><td align=center>ǽ</td></tr>
<tr><td>printf</td><td>եޥåȤ˽äơʸɽޤ</td></tr>
</table>
</center>

<p>
<center>
<img src="picture/sample.jpg">
<br>
<figurereference name="sample_figure">ޤΥץ</figurereference>
</center>

<p>
<pre>
<listreference name="sample_list">ץꥹ</listreference>

int main()
{
  int i;
  for (i = 0; i < 10; i++)
    printf("%d\n", i);
  exit (0);
}
</pre>

<p>
<tableref name="sample_table"> 򻲾ȤƤ
<figureref name="sample_figure"> 򻲾ȤƤ
<listref name="sample_list"> 򻲾ȤƤ
-------- ޤ --------

ʲ htmlsection ˤѴǤ
--------  --------
<center>
<a name="tbl_sample_table">ɽ1: ɽΥץ</a>
<table border=1>
<tr><td align=center>ؿ̾</td><td align=center>ǽ</td></tr>
<tr><td>printf</td><td>եޥåȤ˽äơʸɽޤ</td></tr>
</table>
</center>

<p>
<center>
<img src="picture/sample.jpg">
<br>
<a name="fig_sample_figure">1: ޤΥץ</a>
</center>

<p>
<pre>
<a name="lst_sample_list">ꥹ1: ץꥹ</a>

int main()
{
  int i;
  for (i = 0; i < 10; i++)
    printf("%d\n", i);
  exit (0);
}
</pre>

<p>
<a href="#tbl_sample_table">ɽ1</a> 򻲾ȤƤ
<a href="#fig_sample_figure">1</a> 򻲾ȤƤ
<a href="#lst_sample_list">ꥹ1</a> 򻲾ȤƤ
-------- ޤ --------

* ɽޡꥹܼκ

<tableindex></tableindex>, <figureindex></figureindex>, <listindex></listindex>
ȡ줾ɽܼܼꥹܼѴޤ

* ʸѸ졤ֹȥ󥯤κ

ʸѸ졤ֹޤ

:

ʲ htmlsection ˤѴǤ
--------  --------
<termref name="CLang">C</termref> ϥץߥ󥰸Ǥ
<ref name="KandR"><ref name="KandR2">
ʤ<termref name="CLang">C</termref>
ѤƤޤ<noteref name="AboutMe">
ޤ<termref name="htmlsection">htmlsection</termref>
<termref name="PerlLang">perl</termref><ref name="LamaBook">
񤫤Ƥޤ<noteref name="htmlsection">
<termref name="PerlLang">Perl</termref>ϥץȸΰǤ
<ref name="LamaBook">
<termref name="PerlLang">perl</termref>
褯ѤƤޤ<noteref name="AboutMe">

<notes>
<note name="AboutMe">͡ʥץƤޤ
<note name="htmlsection">htmlsection Ϥ٤ perl ǵҤƤޤ
<note>¾ˤʸ̵줿ˤϡ겼˵Ҥޤ
<note>¾ˤ Tcl/Tk, Java, C++, ... ʤɤʤɤѤƤޤ
</notes>

<terms>
<term name="CLang">ץߥ󥰸ΰ
<term name="htmlsection">ΥץǤ
<term name="PerlLang">ץߥ󥰸ΰ
<term>¾ˤʸ̵Ѹ줿ˤϡ겼˵Ҥޤ
<term word="Tcl/Tk">ץߥ󥰸ΰ
<term word="Java">ץߥ󥰸ΰ
</terms>

<references>
<reference name="KandR">"ץߥ󥰸C",
B.W.˥ϥ, D.M.å, , Ω.
<reference name="KandR2">"ץߥ󥰸C 裲 ANSIʽ",
B.W.˥ϥ, D.M.å, , Ω, 1989.
<reference name="LamaBook">"Ƥ Perl",
롦L., ȥࡦե˥å, ƣ,
饤꡼ѥ.
<reference>¾ˤʸ̵ʸ줿ˤϡ
겼˵Ҥޤ
<reference name="CamelBook">"ץߥ Perl",
꡼, ȥࡦꥹ󥻥, 󡦥, ƣ,
饤꡼ѥ.
<reference name="NumericalRecipe">"Cˤͷ׻Υ쥷",
William H. Press, Saul A. Teukolsky,
William T. Vetterling, Brian P.Flannery,
ðľ, ƣϺ, ¼ɧ, , ɾ, 1993.
</references>
-------- ޤ --------

ʲ htmlsection ˤѴǤ
--------  --------
<a href="#term_1_CLang">(1)C</a> ϥץߥ󥰸Ǥ
<a href="#ref_1_KandR">[1]</a><a href="#ref_1_KandR2">[2]</a>
ʤ<a href="#term_1_CLang">(1)C</a>
ѤƤޤ<a href="#note_1_AboutMe">(*1)</a>
ޤ<a href="#term_1_htmlsection">(2)htmlsection</a>
<a href="#term_1_PerlLang">(3)perl</a><a href="#ref_1_LamaBook">[3]</a>
񤫤Ƥޤ<a href="#note_1_htmlsection">(*2)</a>
<a href="#term_1_PerlLang">(3)Perl</a>ϥץȸΰǤ
<a href="#ref_1_LamaBook">[3]</a>
<a href="#term_1_PerlLang">(3)perl</a>
褯ѤƤޤ<a href="#note_1_AboutMe">(*1)</a>

<h2></h2>

<ul>
<li><a name="note_1_AboutMe">(*1)</a>&nbsp;͡ʥץƤޤ
<li><a name="note_1_htmlsection">(*2)</a>&nbsp;htmlsection Ϥ٤ perl ǵҤƤޤ
<li><a name="note_1_noname_1">(*3)</a>&nbsp;¾ˤʸ̵줿ˤϡ겼˵Ҥޤ
<li><a name="note_1_noname_2">(*4)</a>&nbsp;¾ˤ Tcl/Tk, Java, C++, ... ʤɤʤɤѤƤޤ
</ul>

<h2>Ѹ</h2>

<ul>
<li><a name="term_1_CLang">(1)C</a>&nbsp;ץߥ󥰸ΰ
<li><a name="term_1_htmlsection">(2)htmlsection</a>&nbsp;ΥץǤ
<li><a name="term_1_PerlLang">(3)perl</a>&nbsp;ץߥ󥰸ΰ
<li><a name="term_1_noname_1">(4)</a>&nbsp;¾ˤʸ̵Ѹ줿ˤϡ겼˵Ҥޤ
<li><a name="term_1_noname_2">(5)Tcl/Tk</a>&nbsp;ץߥ󥰸ΰ
<li><a name="term_1_noname_3">(6)Java</a>&nbsp;ץߥ󥰸ΰ
</ul>

<h2>ʸ</h2>

<ul>
<li><a name="ref_1_KandR">[1]</a>&nbsp;"ץߥ󥰸C",
B.W.˥ϥ, D.M.å, , Ω.
<li><a name="ref_1_KandR2">[2]</a>&nbsp;"ץߥ󥰸C 裲 ANSIʽ",
B.W.˥ϥ, D.M.å, , Ω, 1989.
<li><a name="ref_1_LamaBook">[3]</a>&nbsp;"Ƥ Perl",
롦L., ȥࡦե˥å, ƣ,
饤꡼ѥ.
<li><a name="ref_1_noname_1">[4]</a>&nbsp;¾ˤʸ̵ʸ줿ˤϡ
겼˵Ҥޤ
<li><a name="ref_1_CamelBook">[5]</a>&nbsp;"ץߥ Perl",
꡼, ȥࡦꥹ󥻥, 󡦥, ƣ,
饤꡼ѥ.
<li><a name="ref_1_NumericalRecipe">[6]</a>&nbsp;"Cˤͷ׻Υ쥷",
William H. Press, Saul A. Teukolsky,
William T. Vetterling, Brian P.Flannery,
ðľ, ƣϺ, ¼ɧ, , ɾ, 1993.
</ul>
-------- ޤ --------
ʸѸ졤ϡϤȤ˺뤳ȤǤޤξ硤
name ץˤ̾ˤϡƱ̾ʣѤ뤳ȤǤޤ

:

ʲ htmlsection ˤѴǤ
--------  --------
<section>ץߥ󥰸C</section>

<termref name="Lang">C</termref> ϥץߥ󥰸Ǥ
<ref name="Book"><noteref name="About">

<notes>
<note name="About">ץߥ󥰸Ǥ
</notes>

<terms>
<term name="Lang">ץߥ󥰸ΰ
</terms>

<references>
<reference name="Book">"ץߥ󥰸C",
B.W.˥ϥ, D.M.å, , Ω.
</references>

<section>ץߥ󥰸 Perl</section>

<termref name="Lang">Perl</termref> ϥץߥ󥰸Ǥ
<ref name="Book"><noteref name="About">

<notes>
<note name="About">ץߥ󥰸Ǥ
</notes>

<terms>
<term name="Lang">ץߥ󥰸ΰ
</terms>

<references>
<reference name="Book">"Ƥ Perl",
롦L., ȥࡦե˥å, ƣ,
饤꡼ѥ.
</references>
-------- ޤ --------

ʲ htmlsection ˤѴǤ
--------  --------
<h1><a name="section_1">1 ץߥ󥰸C</a></h1>

<a href="#term_1_Lang">(1)C</a> ϥץߥ󥰸Ǥ
<a href="#ref_1_Book">[1]</a><a href="#note_1_About">(*1)</a>

<h2></h2>

<ul>
<li><a name="note_1_About">(*1)</a>&nbsp;ץߥ󥰸Ǥ
</ul>

<h2>Ѹ</h2>

<ul>
<li><a name="term_1_Lang">(1)C</a>&nbsp;ץߥ󥰸ΰ
</ul>

<h2>ʸ</h2>

<ul>
<li><a name="ref_1_Book">[1]</a>&nbsp;"ץߥ󥰸C",
B.W.˥ϥ, D.M.å, , Ω.
</ul>

<h1><a name="section_2">2 ץߥ󥰸 Perl</a></h1>

<a href="#term_2_Lang">(1)Perl</a> ϥץߥ󥰸Ǥ
<a href="#ref_2_Book">[1]</a><a href="#note_2_About">(*1)</a>

<h2></h2>

<ul>
<li><a name="note_2_About">(*1)</a>&nbsp;ץߥ󥰸Ǥ
</ul>

<h2>Ѹ</h2>

<ul>
<li><a name="term_2_Lang">(1)Perl</a>&nbsp;ץߥ󥰸ΰ
</ul>

<h2>ʸ</h2>

<ul>
<li><a name="ref_2_Book">[1]</a>&nbsp;"Ƥ Perl",
롦L., ȥࡦե˥å, ƣ,
饤꡼ѥ.
</ul>
-------- ޤ --------

ץ

ʲΥץѤǤޤ

-h, -help
    إץåϤޤ

-max-depth [depth]
    ѤǤ subsection οκͤꤷޤ㤨
    -max-depth 10 ꤷʤС<subsubsubsubsubsubsubsubsubsection>
    ޤѤǤޤ

-spacer
    <section>, <subsection>, <subsubsection> ξ岼˥ڡޤ

-no-spacer
    -spacer ȿФǤڡޤ

-english, -japanese
    ꤷޤΥץ󤬻ꤵƤʤˤϡĶѿ LANG
    Ȥޤ

-start-section [section]
    ֹνͤꤷޤ㤨 -start-section 3.5.6 ꤷʤС
    3.5.6ϤͤȤƾֹƤޤ

-toc-section [section]
    ܼݤˡܼϤοꤷޤ
    㤨 -toc-section 2 ꤷʤСsection()  subsection()
    Τߤܼޤ-toc-section 0 ꤹȡ٤Ƥξ
    (section, subsection, subsubsection, ...)ܼȿǤޤ

-table-section [section]
    ɽֹݤֹοꤷޤ
    㤨 -table-section 2 ꤷˤϡɽֹΥեޥåȤ
    [ֹ].[ֹ].[ɽֹ] Τ褦ˤʤޤ
    -table-section 0 ꤷˤϡֹѤɽֹޤ

-figure-section [section], -list-section [section]
    -table-section ƱͤǤ줾ޡꥹȤΤΥץǤ

-start-table [number]
    ɽֹνͤꤷޤ

-start-figure [number], -start-list [number]
    -start-table ƱͤǤ줾ޡꥹȤΤΥץǤ

-start-ref [number], -start-term [number], -start-note [number]
    -start-table ƱͤǤ줾컲ʸѸ졤Τ
    ץǤ

-ref-number
    ʸ˥ǥեȤֹդޤ

-term-number, -note-number
    -ref-number ƱͤǤ줾Ѹ졤ΤΥץǤ

-no-ref-number, -no-term-number, -no-note-number
    -ref-number ʤɤεդǤǥեȤֹդޤ

-toc-file [filename]
    ܼꤷե̾ǽϤޤ

-table-file [filename]
    ɽܼꤷե̾ǽϤޤ

-figure-file [filename], -list-file [filename]
    -table-file ƱͤǤ줾ޡꥹȤΤΥץǤ

-ref-file [filename], -term-file [filename], -note-file [filename]
    -table-file ƱͤǤ줾컲ʸѸ졤Τ
    ץǤ

-o [filename]
    Υե̾ꤷޤ-o ꤵƤʤˤϡ
    ɸϤ˽Ϥޤ

Ķѿ

    LANG
    ꤷޤja_JP.EUC ⤷ japanese ξˤܸȤʤꡤ
    ʳϱѸˤʤޤ



    <section>Title</section>, <subsection>Title</subsection>, ...
        options:
        name="section_name"
        number=yes or no

    <sectionref>, <subsectionref>, ...
        options:
        name="section_name"
        title=yes or no

    <tablereference>Title</tablereference>
        options:
        name="table_name"
        number=yes or no

    <figurereference>Title</figurereference>
        options:
        name="figure_name"
        number=yes or no

    <listreference>Title</listreference>
        options:
        name="list_name"
        number=yes or no

    <tableref>
        options:
        name="table_name"
        title=yes or no

    <figureref>
        options:
        name="figure_name"
        title=yes or no

    <listref>
        options:
        name="list_name"
        title=yes or no

    <references></references>

    <reference>
        options:
        name="reference_name"
        title=yes or no
        number=yes or no

    <terms></terms>

    <term>
        options:
        name="term_name"
        word="term_word"
        title=yes or no
        number=yes or no

    <notes></notes>

    <note>
        options:
        name="note_name"
        title=yes or no
        number=yes or no

    <ref>
        options:
        name="reference_name"
        title=yes or no
        number=yes or no

    <termref>Word</termref>
        options:
        name="term_name"
        title=yes or no
        number=yes or no

    <noteref>
        options:
        name="note_name"
        title=yes or no
        number=yes or no
    
    <tableofcontents></tableofcontents>

    <tableindex></tableindex>

    <figureindex></figureindex>

    <listindex></listindex>

¾Υɥ

    perl(1)

    htmlsection ˤĤƤιʤϡʲ򻲾ȤƤ
        htmlsection ץΥ
        HTMLSECTION_PREFIX/share/doc/htmlsection - ɥ
        HTMLSECTION_PREFIX/share/doc/ja/htmlsection - ܸɥ
        HTMLSECTION_PREFIX/share/doc/htmlsection/README - Readme ե
        HTMLSECTION_PREFIX/share/doc/htmlsection/htmlsection.html
            - ץեȾܺ٤
        http://web.ffn.ne.jp/~hsakai/myfreesoft/htmlsection.html
        http://web.ffn.ne.jp/~hsakai/myfreesoft/htmlsection-j.html (ܸ)



    湰μ
    ᡼륢ɥ쥹: hsakai@m8.ffn.ne.jp
    ֥: http://web.ffn.ne.jp/~hsakai/myfreesoft/index.html
    ߥ顼: http://hp.vector.co.jp/authors/VA014157/myfreesoft/index.html
