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
c80e4a0f
Commit
c80e4a0f
authored
Feb 04, 2016
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #134 from edgemaster/pr-134
Make bibtex converter use configured filters.
parents
867c1f71
5ef1c6a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
features/bibtex.feature
features/bibtex.feature
+18
-0
lib/jekyll/scholar/converters/bibtex.rb
lib/jekyll/scholar/converters/bibtex.rb
+2
-1
No files found.
features/bibtex.feature
View file @
c80e4a0f
...
...
@@ -63,6 +63,24 @@ Feature: BibTeX
And
the
"_site/references.html"
file should exist
And I should see "Look, an umlaut
:
ü!"
in
"_site/references.html"
@superscript
Scenario
:
Simple Bibliography with LaTeX superscript
Given I have a scholar configuration with
:
|
key
|
value
|
|
style
|
apa
|
And I have a page "references.bib"
:
"""
---
---
@misc{umlaut,
title = {Look, \textsuperscript{superscript}!},
}
"""
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/references.html"
file should exist
And
I should see
"Look, <sup>superscript</sup>!"
in
"_site/references.html"
@tags
@bibtex
Scenario
:
Embedded BibTeX
Given I have a scholar configuration with
:
...
...
lib/jekyll/scholar/converters/bibtex.rb
View file @
c80e4a0f
...
...
@@ -30,7 +30,8 @@ module Jekyll
end
def
convert
(
content
)
content
=
BibTeX
.
parse
(
content
,
:strict
=>
true
,
:include
=>
[
:meta_content
],
:filter
=>
[
:latex
]).
map
do
|
b
|
content
=
BibTeX
.
parse
(
content
,
:strict
=>
true
,
:include
=>
[
:meta_content
],
:filter
=>
@config
[
'scholar'
][
'bibtex_filters'
]).
map
do
|
b
|
if
b
.
respond_to?
(
:to_citeproc
)
render_bibliography
b
else
...
...
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