Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
ebdbacc1
Commit
ebdbacc1
authored
Dec 03, 2012
by
Georgios Gousios
Browse files
Documentation for the reference tag
parent
89f7a993
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ebdbacc1
...
...
@@ -177,6 +177,34 @@ For example, this could be rendered as:
</cite>
</blockquote>
#### Displaying formatted references
If you want to display the full formatted reference entry, you can use the
`reference`
tag. For example, given the following Bibtex entry,
@book{ruby,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
using
`{% reference ruby %}`
anywhere in your page, it will print
Flanagan, D & Yukihiro, M. (2008).
*The Ruby Programming Language.*
. O'Reilly Media
(provided that you use the default formatting style)
The
`reference`
tag accepts a second optional argument that specifies the
absolute path of the Bibtex file to use as input. Using it, you can override
the file from which the bib entries are read. This can be handy if you
want to use a special Bibtex file as input for a specific page. As an example,
the tag
`{% reference ruby,/home/foo/bar.bib %}`
will attempt to read the key
`ruby`
from file
`/home/foo/bar.bib`
. It will not
fallback to the default Bibtex file.
### Detail Pages
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment