mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
btex: macrodef
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
|
||||
<chapter>Introduction</chapter>
|
||||
|
||||
<p><index id="btex language"/><btex/> is a markup language based on XML, with a resemblance of the <latex/>.
|
||||
<p><index id="btex language"/><btex/> (pronounced as /biːtɛk/) is a markup language based on XML, with a resemblance of the <latex/>.
|
||||
<btex/> abstracts away the meticulous styling and typesetting configurations, so you can focus on
|
||||
actually writing your texts than debugging the <latex/> macros. This does come with a downside of
|
||||
not being able to change the given style.</p>
|
||||
@@ -74,23 +74,23 @@
|
||||
<chapter>The Cover</chapter>
|
||||
|
||||
<p><index id="cover"/>The Cover defines the text on the cover of the book. If your text has no cover, this part can be omitted. Its syntax is as follows:</p>
|
||||
<callout align="left" class="code"><index id="cover (tag)"/><index id="title (tag)"/><index id="subtitle (tag)"/><index id="author (tag)"/><index id="edition (tag)"/><cover><br/>
|
||||
<title>Title of your book</title><br/>
|
||||
<subtitle>Subtitle if necessary</subtitle><br/>
|
||||
<author>Who wrote this book</author><br/>
|
||||
<edition>Edition information if necessary</edition><br/>
|
||||
<callout align="left" class="code"><index id="cover (tag)"/><index id="title (tag)"/><index id="subtitle (tag)"/><index id="author (tag)"/><index id="edition (tag)"/><cover hue="358"><br/>
|
||||
<title>Title of your book&zwsp;</title><br/>
|
||||
<subtitle>Subtitle if necessary&zwsp;</subtitle><br/>
|
||||
<author>Who wrote this book&zwsp;</author><br/>
|
||||
<edition>Edition information if necessary&zwsp;</edition><br/>
|
||||
</cover>
|
||||
</callout>
|
||||
<p>Only the <code>title</code> tag is mandatory. Cover texts will be printed using a special font that has wider
|
||||
gaps between characters. The title text will be printed in a double-size.</p>
|
||||
|
||||
<p>The cover can have different colour with the <code>hue</code> attribute, which takes a number between 0 and 360.</p>
|
||||
|
||||
<chapter>The Table of Contents</chapter>
|
||||
|
||||
<p><index id="table of contents"/>The contents of the Table of Contents is filled in automatically by reading through your manuscript;
|
||||
parts, chapters and sections will be added. Its syntax is as follows:</p>
|
||||
|
||||
<callout align="left" class="code"><index id="tocpage (tag)"/><tocpage title="Custom page name if necessary"><tableofcontents/></tocpage>
|
||||
<callout align="left" class="code"><index id="tocpage (tag)"/><tocpage title="Custom page name if necessary">&zwsp;<tableofcontents/>&zwsp;</tocpage>
|
||||
</callout>
|
||||
|
||||
<p>The optional <code>title</code> attribute allows a custom name can be given to this page.
|
||||
@@ -132,7 +132,7 @@
|
||||
<li><code>I</code> — use majuscule Roman numeral for the number (I, II, III, …)</li>
|
||||
<li><code>1</code> — use numbers (1, 2, 3)</li>
|
||||
</ul>
|
||||
<p>By default, parts use majuscule Roman numerals and others use just numbers.</p>
|
||||
<p>By default, parts use majuscule Roman numerals and others use just numbers. Alternative styling for the <code>part</code> and the <code>chapter</code> can be defined using the <a href="macro definition">Macro Definition</a>.</p>
|
||||
|
||||
|
||||
<section>Paragraph Styling</section>
|
||||
@@ -159,7 +159,7 @@
|
||||
<p><index id="index page"/>The contents of the Index Page is filled in automatically by reading through your manuscript.
|
||||
All the usage of <code>index</code> tags will be shown here. Its syntax is as follows:</p>
|
||||
|
||||
<callout align="left" class="code"><index id="indexpage (tag)"/><indexpage title="Custom page name if necessary"><tableofindices/></indexpage>
|
||||
<callout align="left" class="code"><index id="indexpage (tag)"/><indexpage title="Custom page name if necessary">&zwsp;<tableofindices/>&zwsp;</indexpage>
|
||||
</callout>
|
||||
|
||||
<p>The optional <code>title</code> attribute allows a custom name can be given to this page. If unspecified,
|
||||
|
||||
Reference in New Issue
Block a user