User Tools

Site Tools


lostplot:manual:writer_formatting

This is an old revision of the document!


Adding Emphasis and Other Formatting

The LostPlot Writer dialog is based upon the MarkDown and Fountain mark up formats, along with one or two custom tags unique to LostPlot. This system ensures that a degree of emphasis can be added to the raw text of the Content and yet still be fully readable, while at the same time providing instructions for later formatting within the styles Document pane.

Formatting instructions come in three types:

  • Codes that appear by themselves on a line.
  • Codes that prefix a line and affect the whole of the remaining line.
  • Codes that 'wrap' a word or phrase, in-line

While you can start to add emphasis and other formatting using the Writer menu system, as these tags are conventional text you will probably find that you start to type them manually as a normal part of your authoring process, if you require them.


Headers

To mark a line as a section header, place your cursor somewhere within the required line or paragraph then select one of the menu options under the [Header] toolbar icon on the [Format] toolbar tab. Header lines are indicated by the number of 'hash' [#] symbols that appear to the left of the line, separated from the text by a single space. The tag needs only to appear on one side of the formatted text.

  • No hash indicates conventional body text.
  • A single hash describes the very top most header style.
  • Each additional hash moves the header further down the chain of sizes (# top level header, ## sub-header) etc.
  • By default, the sectional divider defined in the project placeholders utilises the level three header format (###), but this can be modified in the project configuration dialog.

Horizontal Rule

As an alternative to the section divider used between paragraph sections, you can add a full page width horizontal rule using the [Rule] toolbar icon in the [Format] toolbar tab.

The horizontal rule formatting tag is represented by the hyphen symbols (—) residing on a line of their own, and both prefixed and suffixed by a blank line.


Emphasis and Reference Tags

The [Emphasis] toolbar icon in the [Format] toolbar tab is used to wrap selected text with tags which in the case of Emphasis modifies the way that the text is styled in the final Document, and in the case or Reference tags makes no change to styling but provides internal linkage to alternate text and background information.

Emphasis

To emphasise text, select the text with the mouse or keyboard then click the required emphasis in the drop-down menu. Five typical emphasis types are currently supported by LostPlot:

  • Bold - text is wrapped in double-asterisk characters [ * * ]
  • Underline - text is wrapped in double-underscore characters [ _ _ ]
  • Italic - text is wrapped in double-tilde characters [ ~ ~ ]
  • Strikethrough - text is wrapped in double-hyphen characters [ - - ]
  • Monospaced Text - (also known as 'code') text is wrapped in reverse-ticks (gravs) [``]

Note: To show characters in this document, spaces are often added to prevent the MarkDown interpreter of the Wiki from processing them. In the case of using these tags manually in LostPlot, do not include any spaces within the tags.

Note: When selecting text with the keyboard, hold down SHIFT then use the cursors to move to another location. It is usually easier to simply use the mouse however, if you are going to then select a menu option.

Referencing Tags

Referencing tags are added to selected text in the same way as normal emphasis - select the text using the mouse, then click the required reference tag from the [Emphasis] toolbar icon.

There are two types of referencing tags available:

  • Placeholder Tags
  • Resource Tags

Placeholders

Placeholders wrap selected text in double-curled braces in the form { {name} } and represent direct replacements for text that has been defined within the project configuration. Adding the placeholder { {author} } into the Content of an Index Card for example, will result in the actual author's name being embedded into the final styled document in the Document pane.

Using the placeholder system in this manner is more convention than requirement for some types of placeholder (such as for { {author} }, { {title} } etc.), but becomes far more useful when a word or phrase may need to (or is even possibly likely to) change at some point during the development process. By using a placeholder (for example the section divider placeholder), the word or phrase need only be modified in the project configuration for it to be changed in practice across the entire document.

Resources

In nearly all respects, Resource tags act and produce final Document pane text in exactly the same manner as conventional Placeholder tags. Their main benefit comes from internal use within LostPlot in regards to referencing and giving access to background information and research.

Resource tags wrap selected text in a curled-brace and vertical-bar combination in the form { |name| }.

For the majority of resource tags, simply place the name of the resource within the tags as normal and enter the final text in the resource record (see Managing Resources). For projects with non-overlapping resources (e.g. only one character called 'John'), the use of the tag is conventional. There are however, also suffix forms that allow more control over what is replaced when the Document pane is styled:

  • { |name| } - the conventional use. The text { |john| } is replaced with the normal title of the 'john' resource (e.g. 'John').
  • { |name:version| } - used when there are multiple resources with the same name (e.g. { |john:1| } and { |john:2| }). In practice, this will probably be rare in conventional storytelling (and should probably be avoided).
  • { |name=keyword| } - used when an alternate text should be used in the Document styling other than the normal title of the resource. Within the resource manager, alternates are created in a keyword=text manner. Usually this is done as a result of a one-off requirement based upon the circumstances of the text being written (e.g. { |john=first| } may replace the text with 'Maj. Johnathon Rice' rather than the normal 'John'. Note that you can use the tag { |name:version=keyword| }.

Note: While the name=keyword usage of the tag could be a one-off necessity, the name:version usage can be greatly simplified by using unique tag names but then using the same title: { |JohnP| } and { |JohnR| } could therefore both simply have 'John' as their replacement text (if not exactly advisable from a storytelling perspective…)

It should also be noted that LostPlot is not advising that authors should utilise the Resource tagging system for every occasion that a resource (character, event, place etc.) is used in the text. The most conventional method of using the Resource tag system is to place the 1st occurrence of a resource in an Index Card into a tagged reference so that the author can bring up the details of the resource for reference when required.


Strip Emphasis

The [Strip Emphasis] menu option is used to remove all emphasis tags from selected text. This option is useful to reset a section of text to a known base level before reapplying emphasis a second time.



Pergamon Wiki Home
LostPlot Home

lostplot/manual/writer_formatting.1636890616.txt.gz · Last modified: 2021/11/14 11:50 by admin