Skip to content

Commit

Permalink
Update stringeditor.md
Browse files Browse the repository at this point in the history
refine path
  • Loading branch information
Siedlerchr authored Nov 11, 2024
1 parent cb512e4 commit 5d3382b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/setup/stringeditor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

In JabRef you write the contents of all fields the same way as you would in a text editor, with one exception: to reference a string, enclose the name of the string in a set of \# characters, e.g.: '\#jan\# 1997', which will be interpreted as the string named `jan` followed by `1997`.

[Strings](../advanced/strings.md) can be edited by **Library → Edit string constants** or pressing a button in the toolbar.
[Strings](../advanced/strings.md) can be edited in the library properties, reachable through **Library → Library Properties -> String constants**

_Strings_ are the _BibTeX_ equivalent to constants in a programming language. Each string is defined with a unique _name_ and a _content_. Elsewhere in the database, the name can be used to represent the content.

For instance, if many entries are from a journal with an abbreviation that may be hard to remember, such as 'J. Theor. Biol.' \(Journal of Theoretical Biology\), a string named JTB could be defined to represent the journal's name. Instead of repeating the exact journal name in each entry, the characters '\#JTB\#' \(without quotes\) are put into the _journal_ field of each, ensuring the journal name is written identically each time.

A string reference can appear anywhere in a field, always by enclosing the string's name in a pair of '\#' characters. This syntax is specific for JabRef, and differs slightly from the _BibTeX_ notation that is produced when you save your database. Strings can only be used for the fields defined under in **Options → Preferences → Entry**. You can add any other fields that may need to contain the '\#' character and that may be processed by BibTeX/LaTeX.
A string reference can appear anywhere in a field, always by enclosing the string's name in a pair of '\#' characters. This syntax is specific for JabRef, and differs slightly from the _BibTeX_ notation that is produced when you save your database. Strings can only be used for the fields defined under **File → Preferences → Entry**. You can add any other fields that may need to contain the '\#' character and that may be processed by BibTeX/LaTeX.

A string may in the same way be referred in the content of another string, provided the referred string is defined _before_ the referring one.

Expand Down

0 comments on commit 5d3382b

Please sign in to comment.