diff --git a/assets/mods/basegame/books/btex.xml b/assets/mods/basegame/books/btex.xml index 997d0dc1c..668519b1f 100644 --- a/assets/mods/basegame/books/btex.xml +++ b/assets/mods/basegame/books/btex.xml @@ -61,13 +61,10 @@
The btexdoc tag takes three attributes:
- cover, inner and papersize.
The btexdoc tag takes following attributes:
cover — changes the style of the cover. Possible values: hardcover, noneinner — changes the style of the body. Possible values: standard, typewriterOnly the title 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.
The optional title attribute allows a custom name can be given to this page.
If unspecified, the default name is “Table of Contents”.
part — inserts part separation page to your bookchapter, section — inserts a new chapter/section. If an alternative name is required on the Table of Contents, the alt attribute can be used. If the chapter/section needs to be hidden on the Table of Contents, add the hide="1" attribute. If the chapter must start on a new page, simply add newpage in front of the chapter tagp — inserts a new paragraph. The body texts must be written inside this tag. All paragraphs will have a 16-pixel indentation, with the following exceptions: first p of the part/chapter/section; first p after br, newpage, pbox, ul, ol or anonbreakp — inserts a new paragraph. The body texts must be written inside this tag. All paragraphs will have a 16-pixel indentation, with the following exceptions: first p of the part/chapter/section; first p after br, newpage, callout, ul, ol or anonbreakspan — allows changing the colour of the texts. The colour must be specified in the colour attribute. Six-digit hex code, three-digit hex code and CSS Colors Level 4 named colours are supported. Note that all the colours will be rounded to the nearest three-digit hex codeemph — is a special case of the span tag. The resulting text will be itemname — is a special case of the span tag used to highlight the name of the ingame item. The resulting text will be br — self-closing tag; inserts an anonymous line breaknewpage — self-closing tag; inserts an anonymous page breakanonbreak — self-closing tag; inserts a paragraph break in the text. The break will be in a form of a long straight line on the centre of the text. Useful for typesetting novelspbox — is a paragraph box that holds a text in a grey box, a style similar to the code tagcallout — is a paragraph box that holds a text in a grey box, a style similar to the code tagul — starts an unordered list. List elements are defined using the li tagol — starts an ordered list. List elements are defined using the li tagfullpagebox — is used to typeset its child tags into a box that fills an entire page, with its contents centred on the page. Must be used after the newpageSelf-closing tags have no child tags. To use a self-closing tag, simply do <tagname/>.
The part, chapter and section takes optional type attributes which changes how the chapter should be numbered. Available options are:
a — use alphabet for the number (a, b, c, …)A — use majuscule alphabet for the number (A, B, C, …)i — use Roman numeral for the number (i, ii, iii, …)I — use majuscule Roman numeral for the number (I, II, III, …)1 — use numbers (1, 2, 3)By default, parts use majuscule Roman numerals and others use just numbers.
+ + +The p and callout tag take align attribute, which controls how the text should be aligned. Available options are:
left — aligns the text to the left without breaking words, also known as ragged-rightjustify — aligns the text as evenly as possible, like real books. This is the default value.The p, span and callout tags also take class="code" attribute, which results in the text printed using the code font.
index and a tags.
a — will make its child texts to be clickable. The link target (index identifier) must be defined in the href attributeindex tags will be shown here. Its syntax is as follows:
The optional title attribute allows a custom name can be given to this page. If unspecified,
the default name is “Index”.
The btexdoc tag takes two attributes: cover and inner.
The btexdoc tag takes three attributes: cover, inner and papersize.
Test with excessive white spaces !!
-Another paragraph, another Lorem Ipsum. Eget duis at tellus at urna. Eget sit amet tellus cras adipiscing enim eu. Sit amet tellus cras adipiscing enim eu turpis egestas. Aliquam faucibus purus in massa tempor. Eget nullam non nisi est sit amet. Eu ultrices vitae auctor eu augue ut lectus. Tortor at auctor urna nunc.Quam lacus suspendisse faucibus interdum posuere lorem ipsum.
-Yet another paragraph, another Lorem Ipsum. Eget duis at tellus at urna. Eget sit amet tellus cras adipiscing enim eu. Sit amet tellus cras adipiscing enim eu turpis egestas. Aliquam faucibus purus in massa tempor. Eget nullam non nisi est sit amet. Eu ultrices vitae auctor eu augue ut lectus. Tortor at auctor urna nunc.Quam lacus suspendisse faucibus interdum posuere lorem ipsum.
+ +Another paragraph, another Lorem Ipsum. Eget duis at tellus at urna. Eget sit amet tellus cras adipiscing enim eu. Sit amet tellus cras adipiscing enim eu turpis egestas. Aliquam faucibus purus in massa tempor. Eget nullam non nisi est sit amet. Eu ultrices vitae auctor eu augue ut lectus. Tortor at auctor urna nunc. Quam lacus suspendisse faucibus interdum posuere lorem ipsum.
+Yet another paragraph, another Lorem Ipsum. Eget duis at tellus at urna. Eget sit amet tellus cras adipiscing enim eu. Sit amet tellus cras adipiscing enim eu turpis egestas. Aliquam faucibus purus in massa tempor. Eget nullam non nisi est sit amet. Eu ultrices vitae auctor eu augue ut lectus. Tortor at auctor urna nunc. Quam lacus suspendisse faucibus interdum posuere lorem ipsum.
diff --git a/btexdoc.dtd b/btexdoc.dtd index ac6429705..2451551fa 100644 --- a/btexdoc.dtd +++ b/btexdoc.dtd @@ -49,7 +49,7 @@ - + @@ -77,8 +77,8 @@ - - + + ) = invoke(file.file(), varMap) @@ -720,6 +720,10 @@ object BTeXParser { @OpenTag // reflective access is impossible with 'private' fun processElemSPAN(handler: BTeXHandler, doc: BTeXDocument, uri: String, attribs: HashMap