Text fragments have several more options.
In this article we explain the most used ones and give short examples.
Deleting a text fragment
Sometimes you need to remove a text fragment after it is made.
In that case, you can create the text fragment again, and select the ‘delete paragraph’ check box.
This will remove the text fragment and the paragraph in your template it is in.
Because it also removes the paragraph, you can also use this to remove small sections - for example unwanted titles.
The other option, <deleterow> can be used in tables.
It will then remove a single row of the table.
Deleting a paragraph
Sometimes you need to remove a text fragment after it is made.
In that case, you can create the text fragment again, and choose Delete paragraph as the type, instead of the default Text type.
This will remove the text fragment and the paragraph in your template it is in.
Because it also removes the paragraph, you can also use this to remove small sections - for example unwanted titles.
The other two options, Delete column (table) and Delete row (table) can be used in tables.
Those will remove a single column or row of the table.
The various options for a ‘text fragment’
Text styles in text fragments
We highly recommend doing all you layout in Word.
However, sometimes you need a (small) part of your text styled, for example in bold or italics.
You can use the following codes to style your texts:
In text fragments used in an Audit Trail, use MarkDown instead.
Editing variable formatting within a text fragment
If you need to edit a variable before you put it in a text fragment (for example, changing a number’s formatting) you can do so with a formula.
However, you can also double click the first word of your variable - the one with an underlined first letter. This will open up the following screen with options:
Example variable formatting within a text fragment
However, you can also tell the system to format the variable on replacing its value within the text fragment. This is done with the following codes:
^{var}=u} uppercases the entire value.
^{var}=u1}uppercases the first character.
^{var}=a} titlecases the text.
^{var}=datades uses the value shown to the user for a radiogroup option (as opposed to its key).
^{var}=dtformat} formats the value as a date with the month’s name spelled out.
Number formats. N indicates a number format.
${var}=N,} uses comma as thousands separator. Truncs decimal values.
${var}=N.} uses period as a thousands separator. Truncs decimal values.
${var}=N_.} does not group thousands. Use period as decimal separator.
${var}=N_,} does not group thousands. Uses comma as decimal separator.
${var}=N.,} use period as a thousands, and comma as decimal separator.
${var}=N,.} use comma as a thousands, and period as decimal separator.
${var}=N.,-} use period as a thousands, and comma as decimal separator, append a dash.
${var}=N.,3} use period as a thousands, comma as decimal separator, use three decimal places.
… and other variations of these characters. See also the function numtostring().
Multiple types of formatting may be combined, separated with a colon (:).
Links in text fragments
In order to include an (internet) link to a text fragment, use the simple form of the Markdown link syntax:
[text](link).
For example, to link the text ‘the news’ to the BBC website, you can use:
[the news](https://www.bbc.co.uk).
Exporting your text fragments
export text in menu
In the menu RESOURCES there is the button Export text. If you click this button, the studio will ask you where to save the file textfragments.csv.
You can change the filename.
The resulting file can be opened in Excel. There you will find all the text fragments, their content and the optional condition.
This file can be communicated with people who are not skilled in the publisher, but need to see all the possible outcomes of the text fragments to check.
Exporting text fragments is not yet available in the web version of xxllnc Expertsystemen. It is advised to create read-only or proofreader accounts (who have all normal permissions save for the saasclientlogicwritable permission) for colleagues who are able to check and maybe edit the texts, but who are not skilled to deal with logic.