Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
J
jekyll-scholar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar
Commits
431dcd49
Commit
431dcd49
authored
Apr 13, 2014
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
describe multiple citations and locators
parent
ab9e4ad5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
README.md
README.md
+17
-0
features/step_definitions/jekyll_steps.rb
features/step_definitions/jekyll_steps.rb
+0
-1
No files found.
README.md
View file @
431dcd49
...
...
@@ -254,6 +254,23 @@ For example, this could be rendered as:
</cite>
</blockquote>
#### Multiple citation
You can cite multiple items in a single citation by referencing all ids
of the items you wish to quote separated by spaces. For example,
`{% cite ruby microscope %}`
would produce a cite tag like:
<a href="#ruby">(Flanagan, D. & Matsumoto, Y. 2008; Shaughnessy, P. 2013)</a>
#### Page numbers and locators
If you would like to add page numbers to your citation, you can use the
`-l`
or
`--locator`
option. For example,
`{% cite ruby -l 23-5 %}`
would
produce a citation like
`(Matsumoto, Y., 2008, pp. 23-5)`
.
When quoting multiple items (see above) you can add multiple locators after
the list of ids. For example,
`{% cite ruby microscope -l 2 -l 24 & 32 %}`
.
#### Displaying formatted references
If you want to display the full formatted reference entry, you can use the
...
...
features/step_definitions/jekyll_steps.rb
View file @
431dcd49
...
...
@@ -44,7 +44,6 @@ Then(/^the (.*) directory should exist$/) do |dir|
end
Then
(
/^I should see "(.*)" in "(.*)"$/
)
do
|
text
,
file
|
puts
File
.
open
(
file
).
readlines
.
join
assert_match
Regexp
.
new
(
text
),
File
.
open
(
file
).
readlines
.
join
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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