Skip to content

Commit

Permalink
Added notes about cross-referencing and citation syntactic sugars
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSignPainter98 committed Aug 18, 2021
1 parent 03e26ec commit 0f8dfda
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,26 @@ If this is not desired, there are starred versions of the functions available.

These expand to calls to `.h1*` to `.h6*` respectively.

Syntactic sugar is also available for the cross-referencing and bibliography systems.

```emblem
An anchor can be set down with @name, and makes not of the current label value at this location
This can then be referenced with #name.
```

Headers and other items may set the current label, allowing the user to mark the location of a cross-reference they want, safe in the knowledge that their cross-references handled for them.
The call `@name` expands to `.anchor{name}` and `#name` responds to `.ref{name}`.

Citations can be marked down in a similar manner, as text inside square brackets without any spaces.

```emblem
This is a sentence I’d like to atrribute to someone else by citing [that_someone]
So their name will also appear later in the
.bib
```

### Emblem Script

Sometimes to can be convenient to affect the structure of the document in a small way without needing to write extension code.
Expand Down

0 comments on commit 0f8dfda

Please sign in to comment.