Skip to content

Commit

Permalink
Add examples from javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed May 8, 2020
1 parent 15a9635 commit 390d7e3
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions en/fields/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

_BibTeX_ supports storing constant strings using `@String {key = value}`. JabRef supports managing them using **BibTeX → Edit strings**, which opens the [String Editor](../setup/stringeditor.md). These values can be used in fields. For example, you can have:

```text
```bibtex
@String { kopp = "Kopp, Oliver" }
@String { kubovy = "Kubovy, Jan" }
@String { et = " and " }
```

and then in some entry for example

```text
```bibtex
@Misc{m1,
author = kopp # et # kubovy,
}
```

or

```text
```bibtex
@Misc{m2,
author = kopp # " and " # kubovy,
}
Expand Down Expand Up @@ -65,6 +65,29 @@ It can also happen that you will have the same institution for more types:

Even if the last example may appear contradicting the intention was to remove duplicity and unify the names of persons and institutions.

## More examples

* `\@String{aKahle = "Kahle, Brewster "}` -> author
* `\@String{aStallman = "Stallman, Richard"}` -> author
* `\@String{iMIT = "{Massachusetts Institute of Technology ({MIT})}" }` -> institution
* `\@String{pMIT = "{Massachusetts Institute of Technology ({MIT}) press}" }` -> publisher
* `\@String{anct = "Anecdote" }` -> other
* `\@String{eg = "for example" }` -> other
* `\@String{et = " and " }` -> other
* `\@String{lBigMac = "Big Mac" }` -> other

Usage:

```bibtex
\@Misc {
title = "The GNU Project"
author = aStallman # et # aKahle
institution = iMIT
publisher = pMIT
note = "Just " # eg
}
```

## Further reading

See [https://tex.stackexchange.com/questions/303467/bibliography-contents-journal-names-not-abbreviated-even-with-ieeeabrv/303489\#303489](https://tex.stackexchange.com/questions/303467/bibliography-contents-journal-names-not-abbreviated-even-with-ieeeabrv/303489#303489) for a MWE for string constants.
Expand Down

0 comments on commit 390d7e3

Please sign in to comment.