Placeholder Tag List

gm
gmar234
Posts: 9
Joined: Wed Sep 28, 2011 8:50 am
Platform: Windows

Thu Sep 29, 2011 8:35 pm Post

As there is no Help > Placeholder Tags List in the windows version, I don't own a Mac and I also couldn’t find a list in the manual: Could you please provide a list of placeholders and their meaning here in the forum?

Many thanks.

User avatar
MimeticMouton
Posts: 8877
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Thu Sep 29, 2011 9:29 pm Post

These are the variables that work in Windows, descriptions just swiped from the Mac placeholder tags list:

Statistics

<$wc>
Gets replaced during the Compile process with the total word count of the text currently being compiled.

<$wc50>
Gets replaced during the Compile process with the total word count of the text currently being compiled, rounded to the nearest 50 words.

<$wc100>
Gets replaced during the Compile process with the total word count of the text currently being compiled, rounded to the nearest 100 words.

<$wc500>
Gets replaced during the Compile process with the total word count of the text currently being compiled, rounded to the nearest 500 words.

<$wc1000>
Gets replaced during the Compile process with the total word count of the text currently being compiled, rounded to the nearest 1000 words.

<$cc>
Gets replaced during the Compile process with the total character count of the text currently being compiled.

<$cc50>
Gets replaced during the Compile process with the total character count of the text currently being compiled, rounded to the nearest 50 characters.

<$cc100>
Gets replaced during the Compile process with the total character count of the text currently being compiled, rounded to the nearest 100 characters.

<$cc500>
Gets replaced during the Compile process with the total character count of the text currently being compiled, rounded to the nearest 500 characters.

<$cc1000>
Gets replaced during the Compile process with the total character count of the text currently being compiled, rounded to the nearest 1000 characters.




Auto-Numbering

<$n>
Gets replaced with Arabic numerals during the Compile process. The number is incremented each time a <$n> tag is encountered in the text, so “<$n>, <$n>, <$n>” would become “1, 2, 3” in the compiled text.

<$sn>
The same as <$n> but intended to be used for sub-numbering. The count restarts each time an <$n> tag is encountered. Thus, “<$n> (<$sn>, <$sn>), <$n> (<$sn>, <$sn>)” would become “1 (1, 2), 2 (1, 2)” in the compiled text.

<$r>
Gets replaced with lowercase Roman numerals during the Compile process. The number is incremented each time a <$r> tag is encountered in the text, so “<$r>, <$r>, <$r>” would become “i, ii, iii” in the compiled text.

<$R>
Gets replaced with uppercase Roman numerals during the Compile process. The number is incremented each time a <$R> tag is encountered in the text, so “<$R>, <$R>, <$R>” would become “I, II, III” in the compiled text.

<$w>
Gets replaced with numbers as lowercase words (using the current language settings) during the Compile process. The number is incremented each time a <$w> tag is encountered in the text, so “<$w>, <$w>, <$w>” would become “one, two, three” in the compiled text.

<$t>
Gets replaced with numbers as title-case words (using the current language settings) during the Compile process. The number is incremented each time a <$t> tag is encountered in the text, so “<$t>, <$t>, <$t>” would become “One, Two, Three” in the compiled text.

<$W>
Gets replaced with numbers as uppercase words (using the current language settings) during the Compile process. The number is incremented each time a <$W> tag is encountered in the text, so “<$W>, <$W>, <$W>” would become “ONE, TWO, THREE” in the compiled text.

<$hn>
Gets replaced during the Compile process with hierarchical numbering based on the level of the document in which the tag occurs relative to the Draft folder or compile group (depending on the current compile settings). So occurrences of the <$hn> tag in the second document in the Draft folder may get replaced with the number “2”; occurrences of the tag in the third subdocument of the eight document in the Draft folder may be replaced with “8.3”.

Restarting auto-numbering streams:
<$rst>
Place <$rst> immediately before any of the auto-numbering tags to restart the numbering. So, for instance, “<$w>, <$w>, <$w>, <$rst><$w>, <$w>” would become “one, two, three, one, two” in the compiled text.

Page Numbers

<$p>
When used in the header or footer, gets replaced with the current page number.
---

You can insert most variables via the menu Edit>Insert. The <$p> tag only works in the header and footer and the Page Settings pane of the compile sheet lists this there.
Jennifer Hughes
(MM for short)

gm
gmar234
Posts: 9
Joined: Wed Sep 28, 2011 8:50 am
Platform: Windows

Fri Sep 30, 2011 12:35 pm Post

Thanks for the list - that helped.

Does that mean the
<$custom:fieldname>
feature will be missing at 1.0?

That would allow to set a value later for compiling and no need to think about it during development.

ma
makfai
Posts: 40
Joined: Tue Oct 01, 2013 11:28 am
Platform: Win + iOS

Thu Oct 03, 2013 11:44 am Post

Thanks for that. Don't know why it is exclude from Windows Version. Have copied the text into my research folder for the projects
Using iPADOS and sometimes Windows.