Skip to content

Commit f669ac1

Browse files
authored
Update documentation for 2.5 (#1928)
2 parents ece225c + b8a97b1 commit f669ac1

File tree

9 files changed

+186
-39
lines changed

9 files changed

+186
-39
lines changed
38.5 KB
Loading

docs/source/int_howto.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ Managing the Project
3939
Layout Tricks
4040
=============
4141

42+
.. dropdown:: Align Paragraphs with Line Breaks
43+
:animate: fade-in-slide-down
44+
45+
If you have line breaks in you paragraphs, and also want to apply additional text alignment or
46+
indentation, you must apply the alignment tags to the first line.
47+
48+
For example, this will centre the two lines.
49+
50+
.. code-block:: md
51+
52+
>> Line one is centred. <<
53+
Line two is also centred.
54+
55+
This text is not centred, because it is a new paragraph.
56+
57+
See :ref:`a_fmt_align` for more details.
58+
4259
.. dropdown:: Create a Simple Table
4360
:animate: fade-in-slide-down
4461

@@ -52,6 +69,15 @@ Layout Tricks
5269
This is most suitable for your notes, as the result in exported documents cannot be guaranteed
5370
to match. Especially if you don't use the same font in your manuscript as in the editor.
5471

72+
.. dropdown:: Turn Off First Line Indent for a Paragraph
73+
:animate: fade-in-slide-down
74+
75+
If you have first line indent enabled, but have a specific paragraph that you don't want
76+
indented, you can disable the indentation by explicitly add text alignment. Aligned paragraphs
77+
are not indented. For instance by adding ``<<`` to the end to left-align it,
78+
79+
See :ref:`a_fmt_align` for more details.
80+
5581

5682
Organising Your Text
5783
====================

docs/source/int_introduction.rst

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ text without having to deal with formatting until you generate a draft document
1212
Instead, you can focus on the writing right from the start.
1313

1414
Of course, you probably need *some* formatting for your text. At the very least you need emphasis.
15-
Most people are familiar with adding emphasis using underscores and asterisks. This formatting
16-
standard comes from Markdown_ and is supported by novelWriter. It also uses Markdown formatting for
17-
defining document headings. If you need more specialised formatting, additional formatting options
18-
are available using a shortcode format. See :ref:`a_fmt_shortcodes` for more details.
15+
Most people are familiar with adding emphasis using ``_underscores_`` and ``**asterisks**``. This
16+
formatting standard comes from Markdown_ and is supported by novelWriter. It also uses Markdown
17+
formatting for defining document headings. If you need more specialised formatting, additional
18+
formatting options are available using a shortcode format. See :ref:`a_fmt_shortcodes` for more
19+
details.
1920

2021
.. admonition:: Limitations
2122

2223
novelWriter is designed for writing fiction, so the formatting features available are limited to
23-
those relevant for this purpose. It is **not** suitable for technical writing, and it is **not**
24-
a full-featured Markdown editor.
24+
those relevant for this purpose. It is *not* suitable for technical writing, and it is *not* a
25+
full-featured Markdown editor.
2526

2627
It is also not intended as a tool for organising research for writing, and therefore lacks
2728
formatting features you may need for this purpose. The notes feature in novelWriter is mainly
@@ -32,7 +33,7 @@ instead of a single, large document. The idea is to make it easier to reorganise
3233
structure without having to cut and paste text between chapters and scenes.
3334

3435
There are two kinds of documents in your project: :term:`Novel Documents` are documents that are
35-
part of your story. The other kind of documents are :term:`Project Notes`. These are intended for
36+
part of your story. The other kind of documents are :term:`Project Notes`, which are intended for
3637
your notes about your characters, your world building, and so on.
3738

3839
You can at any point split the individual documents by their headings up into multiple documents,
@@ -51,9 +52,12 @@ Below are some key features of novelWriter.
5152
**Focus on writing**
5253
The aim of the user interface is to let you focus on writing instead of spending time formatting
5354
text. Formatting is therefore limited to a small set of formatting tags for simple things like
54-
text emphasis and paragraph alignment. When you really want to focus on just writing, you can
55-
switch the editor into **Focus Mode** where only the text editor panel itself is visible, and
56-
the project structure view is hidden away.
55+
text emphasis and paragraph alignment. Additional shortcodes are available for special
56+
formatting cases.
57+
58+
When you really want to focus on just writing, you can switch the editor into **Focus Mode**
59+
where only the text editor panel itself is visible, and the project structure view is hidden
60+
away.
5761

5862
**Keep an eye on your notes**
5963
The main window can optionally show a document viewer to the right of the editor. The viewer
@@ -72,19 +76,22 @@ Below are some key features of novelWriter.
7276
**Multi-novel project support**
7377
The main parts of your project is split up into top level special folders called "Root" folders.
7478
Your main story text lives in the "Novel" root folder. You can have multiple such folders in a
75-
project. This allows you to keep a series of individual novels with the same characters and
76-
world building in the same project, and create manuscripts for them individually.
79+
project, and rename them to whatever you want. This allows you to keep a series of individual
80+
novels with the same characters and world building in the same project, and create manuscripts
81+
for them individually.
7782

7883
**Keep track of your story elements**
7984
All notes in your project can be assigned a :term:`tag` that you can then :term:`reference` from
8085
any other document or note. In fact, you can add a new tag under each heading of a note if you
81-
need to be able to reference specific sections of it.
86+
need to be able to reference specific sections of it, or you want to keep several topics in the
87+
same note.
8288

8389
**Get an overview of your story**
8490
It is not the documents themselves that define the chapters and scenes of your story, but the
8591
headings that separate them. In the **Outline View** on the main window you can see an outline
86-
of all the chapter and scene headings of your project. If they have any references in them, like
87-
which character is in what chapter and scene, these are listed in additional columns.
92+
of all the chapter and scene headings of each novel root folder in your project. If they have
93+
any references in them, like which character is in what chapter and scene, these are listed in
94+
additional columns.
8895

8996
You can also add a synopsis to each chapter or scene, which can be listed here as well. You have
9097
the option to add or remove columns of information from this outline. A subset of the outline
@@ -100,9 +107,9 @@ Below are some key features of novelWriter.
100107
Whether you want to assemble a manuscript, or export all your notes, or generate an outline of
101108
your chapters and scenes with a synopsis included, you can use the **Build Manuscript** tool to
102109
do so. The tool lets you select what information you want to include in the generated document,
103-
and how it is formatted. You can send the result to a printer, a PDF, or to an Open Document
104-
file that can be opened by most office type word processors. You can also generate the result
105-
as HTML, or Markdown, both suitable for further conversion to other formats.
110+
and how it is formatted. You can send the result to a printer or PDF, or generate an Open
111+
Document file that can be opened by most office type word processors. You can also generate the
112+
result as HTML, or Markdown, both suitable for further conversion to other formats.
106113

107114

108115
.. _a_intro_screenshots:

docs/source/int_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ but you don't need all of them to get started.
1010
The chapters below labelled "Essential Information" are the ones you need to know to use the
1111
application correctly. By "correctly", it is meant: in a way so novelWriter understands the basic
1212
structure of your text. It collects a lot of information from your text and uses it to display the
13-
structure of it in various ways to help you get an overview of your project.
13+
structure of it in various ways to help you get an overview of your writing.
1414

1515
The chapters labelled "Recommended Reading" includes additional information on how the different
1616
parts if the application work and what the features do.

docs/source/project_overview.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ Status and Importance Tabs
306306
--------------------------
307307

308308
Each document or folder of type **Novel** can be given a "Status" label accompanied by a coloured
309-
icon, and each document or folder of the remaining types can be given an "Importance" label.
309+
icon with an optional shape selected from a list of pre-defined shapes. Each document or folder of
310+
the remaining types can be given an "Importance" label with the same customisation options.
310311

311312
These labels are there purely for your convenience, and you are not required to use them for any
312313
other features to work. No other part of novelWriter accesses this information. The intention is to

docs/source/usage_breakdown.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ project-related tools and quick access to settings at the bottom.
4343

4444
.. versionadded:: 2.2
4545
A number of new formatting options were added in 2.2 to allow for some special formatting cases.
46-
At the same time, a small formatting toolbar was added in the editor. It is hidden by default,
47-
but can be opened by pressing the icon button in the top right corner.
46+
At the same time, a small formatting toolbar was added to the editor. It is hidden by default,
47+
but can be opened by pressing the button in the top right corner of the editor header.
4848

4949

5050
Project Tree and Editor View
@@ -148,6 +148,20 @@ in the document editor that acts on the open document.
148148
.. versionadded:: 2.4
149149

150150

151+
Switching Focus
152+
---------------
153+
154+
If the project or novel view does not have focus, pressing :kbd:`Ctrl+T` switches focus to
155+
whichever of the two is visible. If one of them already has focus, the key press will switch
156+
between them instead.
157+
158+
Likewise, pressing :kbd:`Ctrl+E` with switch focus to the document editor or viewer, or if any of
159+
them already have focus, it will switch focus between them,
160+
161+
These two shortcuts makes it possible to jump between all these GUI elements without having to
162+
reach for the mouse or touchpad.
163+
164+
151165
.. _a_breakdown_project:
152166

153167
Project Layout

docs/source/usage_format.rst

Lines changed: 113 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ background, depending on the selected theme.
125125

126126
.. _a_fmt_emph:
127127

128-
Text Emphasis
129-
=============
128+
Text Emphasis with Markdown
129+
===========================
130130

131131
A minimal set of Markdown text emphasis styles are supported for text paragraphs.
132132

@@ -156,7 +156,7 @@ In addition, the following rules apply:
156156
outside, they violate rule 2.
157157
4. Text emphasis does not span past line breaks. If you need to add emphasis to multiple lines or
158158
paragraphs, you must apply it to each of them in turn.
159-
5. Text emphasis can only be used in plain paragraphs. Comments, titles, and meta data tags don't
159+
5. Text emphasis can only be used in comments and paragraphs. Headings and meta data tags don't
160160
allow for formatting, and any formatting markup will be rendered as-is.
161161

162162
.. tip::
@@ -168,8 +168,8 @@ In addition, the following rules apply:
168168

169169
.. _a_fmt_shortcodes:
170170

171-
Extended Formatting with Shortcodes
172-
===================================
171+
Formatting with Shortcodes
172+
==========================
173173

174174
For additional formatting options, you can use shortcodes. Shortcodes is a form of in-line codes
175175
that can be used to change the format of the text that follows and opening code, and last until
@@ -197,6 +197,13 @@ word if you need to. You can also freely combine them to form more complex forma
197197
The shortcodes are available from the **Format** menu and in the editor toolbar, which can be
198198
activated by clicking the left-most icon button in the editor header.
199199

200+
.. note::
201+
202+
Shortcodes are not processed until you generate a preview or generate a manuscript document. So
203+
there is no highlighting of the text between the formatting markers. There is also no check that
204+
your markers make sense. You must ensure that you have both the opening and closing formatting
205+
markers where you want them.
206+
200207
.. versionadded:: 2.2
201208

202209

@@ -217,44 +224,101 @@ correctly formatted, the syntax highlighter will indicate this by altering the c
217224

218225
The different styles of comments are as follows:
219226

220-
``% Comment text ...``
227+
``% Your comment text ...``
221228
This is a comment. The text is not rendered by default (this can be overridden), seen in the
222229
document viewer, or counted towards word counts. It is intended for you to make notes in your
223230
text for your own sake, whatever that may be, that isn't part of the story text. This is the
224231
general format of a comment.
225232

226-
``%Synopsis: Comment text ...``
233+
``%Synopsis: Your synopsis text ...``
227234
This is a synopsis comment. It is generally treated in the same way as a regular comment, except
228235
that it is also captured by the indexing algorithm and displayed in the :ref:`a_ui_outline`. It
229236
can also be filtered separately when building the project to for instance generate an outline
230237
document of the whole project.
231238

232-
``%Short: Comment text ...``
239+
``%Short: Your short description ...``
233240
This is a short description comment. It is identical to the synopsis comment (they are
234241
interchangeable), but is intended to be used for project notes. The text shows up in the
235242
Reference panel below the document viewer in the last column labelled **Short Description**.
236243

237-
``%~ Comment text ...``
238-
This can be used to exclude story text from your manuscript without having to delete it from
239-
your text. Comments with the ``~`` will *never* be included in the manuscript, even if you have
240-
chosen to include comments in it. That is the main difference between these two formats.
244+
``%Footnote.<key>: Your footnote text ...``
245+
This is a special comment assigned to a footnote marker. See :ref:`a_fmt_footnote` for how to
246+
use them in your text.
241247

242248
.. note::
243249
Only one comment can be flagged as a synopsis or short comment for each heading. If multiple
244250
comments are flagged as synopsis or short comments, the last one will be used and the rest
245251
ignored.
246252

247253

254+
.. _a_fmt_footnote:
255+
256+
Footnotes
257+
=========
258+
259+
Footnotes are added with a shortcode, paired with a matching comment for the actual footnote text.
260+
The matching is done with a key that links the two. If you insert a footnote from the **Insert**
261+
menu, a unique key is generated for you.
262+
263+
The insert feature will add the footnote shortcode marker at the position of your cursor in the
264+
text, and create the associated footnote comment right after the paragraph, and move the cursor
265+
there so you can immediately start typing the footnote text.
266+
267+
The footnote comment can be anywhere in the document, so if you wish to move them to, say, the
268+
bottom of the text, you are free to do so.
269+
270+
Footnote keys are only required to be unique within a document, so if you copy, move or merge text,
271+
you must make sure the keys are not duplicated. If you use the automatically generated keys from
272+
the **Insert** menu, they are unique among all indexed documents. They are not guaranteed to be
273+
unique against footnotes in the Archive or Trash folder though, but the chance of accidentally
274+
generating the same key twice in a project is relatively small in the first place (1 in 810 000).
275+
276+
This is what a footnote inserted into a paragraph may look like when completed:
277+
278+
.. code-block:: md
279+
280+
This is a text paragraph with a footnote[footnote:fn1] in the middle.
281+
282+
%Footnote.fn1: This is the text of the footnote.
283+
284+
.. versionadded:: 2.5
285+
286+
287+
.. _a_fmt_ignore:
288+
289+
Ignored Text
290+
============
291+
292+
If you want to completely ignore some of the text in your documents, but are not ready to delete
293+
it, you can add ``%~`` before the text paragraph or line. This will cause novelWriter to skip the
294+
text entirely when generating previews or building manuscripts.
295+
296+
This is a better way of removing text than converting them to regular comments, as you may want to
297+
include regular comments in your previews or draft manuscript.
298+
299+
You can toggle the ignored text feature on and off for a paragraph by pressing :kbd:`Ctrl+Shift+D`
300+
on your keyboard with your cursor somewhere in the paragraph.
301+
302+
Example:
303+
304+
.. code-block:: md
305+
306+
%~ This text is ignored.
307+
308+
This text is a regular paragraph.
309+
310+
248311
.. _a_fmt_tags:
249312

250313
Tags and References
251314
===================
252315

253316
The document editor supports a set of keywords used for setting tags, and making references between
254-
documents.
317+
documents based on those tags.
255318

256-
Tags use the keyword ``@tag:`` to define a tag. The tag can be set once per section defined by a
257-
heading. Setting it multiple times under the same heading will just override the previous setting.
319+
You must use the keyword ``@tag:`` to define a tag. The tag can be set once per section defined by
320+
a heading. Setting it multiple times under the same heading will just override the previous
321+
setting.
258322

259323
``@tag: value``
260324
A tag keyword followed by the tag value, like for instance the name of a character.
@@ -306,6 +370,40 @@ Examples:
306370
from the manuscript build tool as long as the format supports paragraph alignment.
307371

308372

373+
Alignment with Line Breaks
374+
--------------------------
375+
376+
If you have line breaks in the paragraph, like for instance when you are writing verses, the
377+
alignment markers must be applied to the first line. Markers on the other lines are ignored. The
378+
markers for the first line are used for all the other lines.
379+
380+
For the following text, all lines will be centred, not just the first:
381+
382+
.. code-block:: md
383+
384+
>> I am the very model of a modern Major-General <<
385+
I've information vegetable, animal, and mineral
386+
I know the kings of England, and I quote the fights historical
387+
From Marathon to Waterloo, in order categorical
388+
389+
390+
Alignment with First Line Indent
391+
--------------------------------
392+
393+
If you have first line indent enabled in your Manuscript build settings, you probably want to
394+
disable it for text in verses. Adding any alignment tags will cause the first line indent to be
395+
switched off for that paragraph.
396+
397+
The following text will always be aligned against the left margin:
398+
399+
.. code-block:: md
400+
401+
I am the very model of a modern Major-General <<
402+
I've information vegetable, animal, and mineral
403+
I know the kings of England, and I quote the fights historical
404+
From Marathon to Waterloo, in order categorical
405+
406+
309407
.. _a_fmt_break:
310408

311409
Vertical Space and Page Breaks

docs/source/usage_project.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ At the top of the project tree, you will find a set of buttons.
5454
* The next two buttons can be used to move items up and down in the project tree. This is the only
5555
way to move root folders.
5656
* The next button opens a dropdown menu for adding new items to the tree. This includes root
57-
folders. You can also activate this dropdown menu by pressing :kbd:`Ctrl+N`.
57+
folders and template documents. You can also activate this dropdown menu by pressing
58+
:kbd:`Ctrl+N`.
5859
* The last button is a menu of further actions you can apply to the project tree.
5960

6061
Below the project tree you will find a small details panel showing the full information of the

docs/source/usage_shortcuts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Main Window Shortcuts
2626
":kbd:`F9`", "Re-build the project's index"
2727
":kbd:`F11`", "Toggle full screen mode"
2828
":kbd:`Ctrl+,`", "Open the **Preferences** dialog"
29-
":kbd:`Ctrl+E`", "Switch focus to the document editor"
29+
":kbd:`Ctrl+E`", "Switch or toggle focus for the editor or viewer"
3030
":kbd:`Ctrl+T`", "Switch or toggle focus for the project tree or novel view"
3131
":kbd:`Ctrl+Q`", "Exit novelWriter"
3232
":kbd:`Ctrl+Shift+,`", "Open the **Project Settings** dialog"

0 commit comments

Comments
 (0)