Laboratoire indépendant de recherche conviviale sur l'auto-production, la gratuité et la culture libre | |
∏ - À propos / Fonctionnement \ Admin - ∃ - Collecter des données / Évaluer \ Publier / Discuter \ Décider / Les contributeurs - ∈ - La Fabrique / Recherches \ Textes / Blog \ En chantier / La gratuiterie - ∑ - Le Boomerang / CEDREA \ Entrez sans payer / nonmarchand.org |
Autoproduction / Culture libre / Économie non-marchande / Libertés / Recherche conviviale / Critique de la science économique / Critique de l'économie marchande alternative / De tout et de rien |
Vue - Éditer - Historique - Imprimer - Référencé par |
Inscription - Connexion |
PmWiki /
Table of contentsauthors (basic) A basic table of contents (TOC) and Numbered headings (NH) are included in PmWiki 2.2.119 and can be enabled with the following in $PmTOC['Enable'] = 1; UsageThe feature is based on the recipe Cookbook:AutoTOC but is somewhat simpler.
The following directives in the wiki page can control the above features:
The TOC will use anchors or identifiers of the headings from the page, if they exist, otherwise it will create a new identifier (hash) based on the structure of the page. The following markups will all create a link with the anchor
If there is no identifier or anchor with a heading, then the anchor will be in the form ConfigurationThe following local configuration (in
InternationalizationThe following strings can be translated in XLPage, for example in French: "Contents" => "Sommaire", "show" => "afficher", "hide" => "masquer", StylesIf you prefer to see the TOC on the right side, you may want to insert the following in your .PmTOCdiv { float: right; margin-left: 5px; } You can modify the table elements font size and maximum table height by defining in your .PmTOCdiv { font-size: 15px; max-height: 600px; } The default font size is 13px and the default maximum height is 500px, you can define own values. When the table height exceeds the max-height value, there is a scrollbar (overflow:auto). See also: Cookbook:AutoTOC. If you previously used AutoTOC you need to disable it when enabling $PmTOC. This page may have a more recent version on pmwiki.org: PmWiki:TableOfContents, and a talk page: PmWiki:TableOfContents-Talk.
|
||||||
Le contenu du site GratiLab, laboratoire de recherche conviviale sur la gratuité, le DIY et la culture libre, sauf mentions contraires, ainsi que toute nouvelle contribution à ce site, est sous licence culturelle non-marchande.
Site gratuit, sans publicité, à but non lucratif, ouvert à tous ceux qui souhaitent effectuer des recherches sur les échanges non-marchands et la culture libre ou simplement partager leurs savoirs et savoirs-faire. Construit avec PmWiki. |