Format: Difference between revisions

From Stefan Zweig Bibliography
Jump to navigation Jump to search
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 4: Line 4:


__TOC__
__TOC__
=Diacritical characters=
[[Diacritics]]


=Indenting=
=Indenting=
Line 15: Line 19:
</div>
</div>
</nowiki>
</nowiki>
'''Sample'''
'''Sample'''
<lst type=bracket start=5>
<lst type=bracket start=5>
Line 76: Line 79:
</lst>
</lst>


 
====Parameters for the <nowiki><lst></nowiki> tag====
====Parameters for the <nowiki><lst></nowiki> command====


:<nowiki><lst start=7></nowiki> - specify numbering to begin at 7
:<nowiki><lst start=7></nowiki> - specify numbering to begin at 7
Line 84: Line 86:
::*ol (ordered [roman / alpha])
::*ol (ordered [roman / alpha])
::*ul (unordered [bullet])
::*ul (unordered [bullet])
::*bracket (special or Zweig Wiki, e.g.:  '''[1].''')
::*bracket (special type for Zweig Wiki, e.g.:  '''[1].''')
 
 
====SubList within the <nowiki><lst></nowiki> code block====
A second style of numbering withn the <nowiki><lst></nowiki> code block is achieved using the <nowiki><sublist></nowiki> code. Note the difference in numbering style compared to the embedded list in the sample above.
 
<nowiki>
'''Contents'''
<lst>
First line of ordered list
Second line of ordered list
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
Fourth line of ordered list
<sublist>
first line of the numbered sublist
second line of numbered sublist
</sublist>
Fifth line of ordered list
</lst>
</nowiki>
 
The above code produces the following results:
 
'''Contents'''
<lst>
First line of ordered list
Second line of ordered list
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
Fourth line of ordered list
<sublist>
first line of the numbered sublist
second line of numbered sublist
</sublist>
Fifth line of ordered list
</lst>
 
 
It is possible to specify the starting number of a sublist by modifying the opening tag:
<nowiki><sublist start=23></nowiki>
This will cause the sublist to begin numbering at 23.
 
 
====SubHeadings within the <nowiki><lst></nowiki> code block====
There is a need to have subheadings within a numbered list and not disturb the ordering of the list. This is accomplished by using some web-page codes which affect the presentation, but not the logic of a list.
 
<nowiki>
'''Contents'''
<div class=”zweigSubHeading1”>’’’Text of SubHeading 1’’’</div>
<lst>
First line of numbered list
Second line of numbered list<br/><div class=”zweigSubHeading2”>Text of SubHeading 2</div>
Third line of numbered list
Fourth line of numbered list<br/><div class=”zweigSubHeading0”>’’’Text of SubHeading 0’’’</div>
Fifth line of numbered list
</lst>
</nowiki>


The above code will result in the following presentation:


====SubList within the <nowiki><lst></nowiki> command====
'''Contents'''
<div class="zweigSubHeading1">'''Text of SubHeading 1'''</div>
<lst>
First line of numbered list
Second line of numbered list<br/><div class="zweigSubHeading2">Text of SubHeading 2</div>
Third line of numbered list
Fourth line of numbered list<br/><div class="zweigSubHeading0">'''Text of SubHeading 0'''</div>
Fifth line of numbered list
</lst>
 
 
'''Notes:'''
<lst type=bracket>
Notice that the second subheading is not '''bold'''.  The subheadings are normal text and can be bold or not individually.
The SubHeading is created by using the standard browser <nowiki><div></nowiki> tag. The <nowiki><div></nowiki> tag defines a division or a section in an HTML document. This tag has both an opening and closing tag. Using a DIV allow us to target the text within that division and apply a particular style to it. The style can have a presentation that is completely different from any of the surrounding text. It is applied to a <nowiki><div></nowiki> by specifying a ''class'' in the code.
The "class(es)" that are defined as ''zweigSubHeading(0, 1, or 2)'' have a 1.75em line height. That is what gives the additional space between the preceding numbered entry and the SubHeading text. They also have various changes in the left margin that is necessary to give the SubHeading the outdent from the number list.
The reason there are three different SubHeadings defined is that we need different left margins depending on where we want to the heading to align:
<sublist>
The first type of subheading is not within a numbered list (it is before the beginning of the list) and would normally align at the left margin along with Contents. Therefore, it needs to be pushed to the right with a modification of the left-margin.
The second type of subheading is within a number list. First, to get it to drop down to the next line, a <nowiki><br /></nowiki> (linebreak) code is used. This is not the same as putting a carriage return there because the line-break does not interfere with the list numbering whereas the carriage return would cause the next line to be included in the number sequence. Next, the ''zweigSubHeading2'' class is applied to a DIV. This contains the same 1.75em line-height as zweigSubHeading1 and so gives the extra space of separation. It also has a negative left-margin adjustment to push the SubHeading to the left, giving the outdent.
''zweigSubHeading0'' is also used within a list. It is applied in the same way that a ''zweigSubHeading2'' class is applied. It differs from the ''zweigSubHeading2'' only in the left margin setting. It has a negative left-margin setting such that it aligns with the page’s left margin, essentially removing all indenting.
</sublist>
</lst>

Latest revision as of 17:22, 6 August 2021

See also: Mediwiki Formatting


Diacritical characters

Diacritics


Indenting

Indenting blocks of text

A block of text can be indented to line up with key positions of the Zweig Wiki text. The text needs to be enclosed in <div> tags as follows:

<div class="indent1">
This is a block of text that will be indented 3.4em from the left margin. It will line up with the text of an entry in a ordered list.
In the Sample below the CONTENTS section is indented using this code.
</div>

Sample

[5].
First line of ordered list
[6].
Second line of ordered list

Contents

1.
First line of sub-list
2.
Second line of sub-list
3.
Third line of sub-list
[7].
Third line of ordered list
[8].
Fourth line of ordered list


Pre-defined indents are:

  • indent1 - 3.4em
  • indent2 - 6.4em
  • indent3 - 9.4em
  • indent4 - 12.4em
  • indent5 - 15.4em


Lists

Creating ordered or unordered lists

Each new line is given the next sequential number (or letter), or in the case of an unordered list, a new bullet. All lines that are enclosed by the opening and closing tags ( <lst> and </lst> ) will be members of the list.

'''Contents'''
<lst>
First line of ordered list
Second line of ordered list
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
Fourth line of ordered list
#first line of embedded numbered list
#second line of embedded numbered list
Fifth line of ordered list
</lst>

The above code produces the following results:

Contents

1.
First line of ordered list
2.
Second line of ordered list
3.
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
4.
Fourth line of ordered list
4.1.
first line of embedded numbered list
4.2.
second line of embedded numbered list
5.
Fifth line of ordered list

Parameters for the <lst> tag

<lst start=7> - specify numbering to begin at 7
<lst type= > - specify the type of list to create
  • numeric (ordered [decimal roman]) - default
  • ol (ordered [roman / alpha])
  • ul (unordered [bullet])
  • bracket (special type for Zweig Wiki, e.g.: [1].)


SubList within the <lst> code block

A second style of numbering withn the <lst> code block is achieved using the <sublist> code. Note the difference in numbering style compared to the embedded list in the sample above.

'''Contents'''
<lst>
First line of ordered list
Second line of ordered list
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
Fourth line of ordered list
<sublist>
first line of the numbered sublist
second line of numbered sublist
</sublist>
Fifth line of ordered list
</lst>

The above code produces the following results:

Contents

1.
First line of ordered list
2.
Second line of ordered list
3.
Third line of text that is long enough that it will wrap down to a second line but it will not have any effect on the numbering of the list. This is because a new list item requires it to begin on a new line, not wrap to a new line.
4.
Fourth line of ordered list
  1. first line of the numbered sublist
  2. second line of numbered sublist
5.
Fifth line of ordered list


It is possible to specify the starting number of a sublist by modifying the opening tag: <sublist start=23> This will cause the sublist to begin numbering at 23.


SubHeadings within the <lst> code block

There is a need to have subheadings within a numbered list and not disturb the ordering of the list. This is accomplished by using some web-page codes which affect the presentation, but not the logic of a list.

'''Contents'''
<div class=”zweigSubHeading1”>’’’Text of SubHeading 1’’’</div>
<lst>
First line of numbered list
Second line of numbered list<br/><div class=”zweigSubHeading2”>Text of SubHeading 2</div>
Third line of numbered list
Fourth line of numbered list<br/><div class=”zweigSubHeading0”>’’’Text of SubHeading 0’’’</div>
Fifth line of numbered list
</lst>

The above code will result in the following presentation:

Contents

Text of SubHeading 1
1.
First line of numbered list
2.
Second line of numbered list
Text of SubHeading 2
3.
Third line of numbered list
4.
Fourth line of numbered list
Text of SubHeading 0
5.
Fifth line of numbered list


Notes:

[1].
Notice that the second subheading is not bold. The subheadings are normal text and can be bold or not individually.
[2].
The SubHeading is created by using the standard browser <div> tag. The <div> tag defines a division or a section in an HTML document. This tag has both an opening and closing tag. Using a DIV allow us to target the text within that division and apply a particular style to it. The style can have a presentation that is completely different from any of the surrounding text. It is applied to a <div> by specifying a class in the code.
[3].
The "class(es)" that are defined as zweigSubHeading(0, 1, or 2) have a 1.75em line height. That is what gives the additional space between the preceding numbered entry and the SubHeading text. They also have various changes in the left margin that is necessary to give the SubHeading the outdent from the number list.
[4].
The reason there are three different SubHeadings defined is that we need different left margins depending on where we want to the heading to align:
  1. The first type of subheading is not within a numbered list (it is before the beginning of the list) and would normally align at the left margin along with Contents. Therefore, it needs to be pushed to the right with a modification of the left-margin.
  2. The second type of subheading is within a number list. First, to get it to drop down to the next line, a <br /> (linebreak) code is used. This is not the same as putting a carriage return there because the line-break does not interfere with the list numbering whereas the carriage return would cause the next line to be included in the number sequence. Next, the zweigSubHeading2 class is applied to a DIV. This contains the same 1.75em line-height as zweigSubHeading1 and so gives the extra space of separation. It also has a negative left-margin adjustment to push the SubHeading to the left, giving the outdent.
  3. zweigSubHeading0 is also used within a list. It is applied in the same way that a zweigSubHeading2 class is applied. It differs from the zweigSubHeading2 only in the left margin setting. It has a negative left-margin setting such that it aligns with the page’s left margin, essentially removing all indenting.