You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/sile-and-djot.dj
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1409,6 +1409,64 @@ They only apply to user-defined symbols (defined as pseudo-footnotes) and contex
1409
1409
We can't say if future versions of the Djot specification will make use of `?` and `!` in attributes or bracketed content.
1410
1410
Therefore, we recommend that you call template files containing conditional content with the `.djt` extension, as a way to remember.
1411
1411
1412
+
1413
+
### Index entries
1414
+
1415
+
Djot does not yet provide a built-in syntax for marking index entries within the text.
1416
+
This converter supports two alternatives for that purpose: one following the standard attribute syntax, and another using a more compact shortcut syntax (offered as an experimental Djot extension).
1417
+
1418
+
Generating the actual indexes lies outside the scope of this converter.
1419
+
It is the responsibility of the document class or supporting packages to provide the necessary commands and environments, as in the case of the *resilient* book class.
1420
+
1421
+
{#djot-index-entries-attributes}
1422
+
#### Attributes for indexing entries
1423
+
1424
+
With the standard key–value attribute syntax, a term can be marked as belonging to a named index by means of explicit attributes, with the option to specify replacement text.
1425
+
1426
+
{custom-style=CodeBlock}
1427
+
:::
1428
+
```
1429
+
[Peter Smith]{index=main indexed-main="Smith, Peter"} and Plato{index=main}
1430
+
A deer{index=animals} and a hare{index=animals indexed-animals=rabbit}
1431
+
```
1432
+
:::
1433
+
1434
+
The `index` attribute specifies the indexes to which the term is added; multiple indexes can be listed by separating them with spaces.
1435
+
Optionally, an `indexed-⟨index⟩` attribute may be provided to define the text that should appear in a given index, instead of the term itself.
Copy file name to clipboardExpand all lines: examples/sile-and-markdown.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1311,6 +1311,10 @@ This is one of the ways to use SILE commands in Djot.
1311
1311
While you could invoke _any_ SILE command with this feature, we recommend, though, to restrict it to styling.
1312
1312
Another more powerful way to leverage Djot with SILE’s full processing capabilities, and benefit from the best of both worlds, is to use the "raw" annotations, described in §[](#markdown-raw-inlines) and §[](#markdown-raw-blocks).
1313
1313
1314
+
### Index entries
1315
+
1316
+
Markdown does not provide a built-in syntax for marking index entries within the text.
1317
+
This converter supports index entries through the standard attribute syntax, in the same way as Djot (see §[](#djot-index-entries-attributes)).
0 commit comments