jekyll-latex-pdf 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 528b0923672e030fff38180111c258f1b0a9aa4d2663657c238a7a3716bd7d04
4
- data.tar.gz: 800092a839aac68c8fc436c1ca0895c0d63615f6d71afe1dfab8e6e81f345ee7
3
+ metadata.gz: 49b8f48c28e76f6e424c3a8cbae637bcf793d55453e3f5190cd05a999861a1c5
4
+ data.tar.gz: 5b79734c1e2f4ad4625586e21766609ad65bbab4b4c43598e6168264360be287
5
5
  SHA512:
6
- metadata.gz: b3c7417d69952ee5f49b09d925951ac3c1029d955ebd9f4d169a33af1836d3e135f996077406e6f691c9785682f9d52d3c137e863d7b48aa5e7ea0026a1b934f
7
- data.tar.gz: bb0faef3661b909126e6c8467a66cf418772bbe6998a7fdf0f6a54bf545f13f9e8e7aeabe17973892e46fb959772e63f81f59fcf8403944b2ff0ca9d088c6584
6
+ metadata.gz: fe44a610b7bcf75c44c89b7b8c507202625174d0dfca02a9e439a09e9d9b5db6a0e172e1a15b2166d4d79a06f4505a9d8d4330c90f881c98f43c193d8b61a7b0
7
+ data.tar.gz: 7bf0d460e55e51ab77ccea46eb98270f5651f9614610c73119b016781d7f3d062fc1a22b84c668f0aafae8e23103e157743a898f21776d85278b0411b4ce0ab2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-latex-pdf (0.6.1)
4
+ jekyll-latex-pdf (0.6.2)
5
5
  jekyll (~> 4.2)
6
6
  kramdown (~> 2.3)
7
7
 
data/README.md CHANGED
@@ -127,23 +127,28 @@ or the _config.yml file. There will also be used `lang` for babel and isodate
127
127
  to support different languages. (Only sv, de and en is supported at the moment,
128
128
  just issue your language if this isn't enaugh.)
129
129
 
130
- ### apa6
130
+ ### apa7
131
131
 
132
- I use the `apa6` template mostly. This requires the `jekyll-scholar` gem to be
132
+ Note: The apa6 is not removed for backwards compatibility. Read the
133
+ old docs if you need to work with that instead.
134
+
135
+ I use the `apa7` template mostly. This requires the `jekyll-scholar` gem to be
133
136
  added to your procject and enabled in the `_config.yml`. A few more variables
134
137
  can be set in the post (or globally in _config.yml). The content of the extra
135
138
  variables will not be parsed with kramdown. You may use latex notation here, or
136
139
  just use plain text. Not documented headers will be directly passed as is like
137
- documented in the (apa6
138
- class)[http://mirrors.ctan.org/macros/latex/contrib/apa6/apa6.pdf].
140
+ documented in the (apa7
141
+ class)[http://mirrors.ctan.org/macros/latex/contrib/apa7/apa7.pdf].
139
142
 
140
143
  - *abstract*: Add your abstract to the post in the yaml header. Abstract is
141
144
  required for apa, so if it is not present the excerpt will be used. This does
142
145
  not work fine in some cases. If so, put it into the yaml header may help.
143
- - *shortitle*
146
+ - *shortitle*: Is now required to make it fine.
144
147
  - *affiliation*: The authors affiliation is required with the apa6 class.
145
- - *note*: apa6 does not support the \date, so you can set the date here if you
146
- want to. Use `\printdate{yyyy-mm-dd}`, so its converted to your language.
148
+ - *note*: was supporeted in apa6 and does not work in apa7. However I
149
+ use this to set the date of the document. I use
150
+ `\printdate{yyyy-mm-dd}`, so its converted to your language. It is
151
+ appended to the affiliation.
147
152
  - *date_as_note*: When set to `true` this will add the posts date as note
148
153
  instead of the date.
149
154
  - *authornote*
@@ -154,7 +159,7 @@ class)[http://mirrors.ctan.org/macros/latex/contrib/apa6/apa6.pdf].
154
159
  - *ccoppy*
155
160
  - *copnum*
156
161
 
157
- apa6 does not render the date by default. You can render the date in the note
162
+ apa7 does not render the date by default. You can render the date in the note
158
163
  field. Let jekyll-latex-pdf do that for you by setting `date_as_note` to `true`
159
164
  in the yaml header of your post or the `_config.yml`s pdf section for all.
160
165
 
@@ -0,0 +1,91 @@
1
+ <% data = @converter.options[:data] %>
2
+ <%
3
+ encmap = {
4
+ 'UTF-8' => 'utf8x',
5
+ 'US-ASCII' => 'ascii',
6
+ 'ISO-8859-1' => 'latin1',
7
+ 'ISO-8859-2' => 'latin2',
8
+ 'ISO-8859-3' => 'latin3',
9
+ 'ISO-8859-4' => 'latin4',
10
+ 'ISO-8859-5' => 'latin5',
11
+ 'ISO-8859-9' => 'latin9',
12
+ 'ISO-8859-10' => 'latin10',
13
+ 'CP850' => 'cp850',
14
+ 'CP852' => 'cp852',
15
+ 'CP858' => 'cp858',
16
+ 'CP437' => 'cp437',
17
+ 'CP865' => 'cp865',
18
+ 'CP1250' => 'cp120',
19
+ 'CP1252' => 'cp1252',
20
+ 'CP1257' => 'cp1257'
21
+ }
22
+ %><%
23
+ enclang = {
24
+ 'en' => 'english',
25
+ 'de' => 'ngerman',
26
+ 'sv' => 'swedish'
27
+ }
28
+ %>
29
+ \documentclass[a4paper,jou,biblatex]{apa7}
30
+ \usepackage[utf8]{luainputenc}
31
+ %\usepackage{fontspec}
32
+
33
+ \usepackage{amsmath}
34
+ \usepackage{graphicx}
35
+ %\usepackage[colorinlistoftodos]{todonotes}
36
+
37
+ \usepackage{tikz}
38
+ <%= data[:tikzlibraries] %>
39
+
40
+ \usepackage{hyperref}
41
+ \hypersetup{
42
+ colorlinks,
43
+ citecolor=black,
44
+ filecolor=black,
45
+ linkcolor=black,
46
+ urlcolor=darkgray
47
+ }
48
+
49
+ <% if data[:lang] %>
50
+ \usepackage[<%= enclang[data[:lang]] %>]{babel}
51
+ \usepackage[<%= enclang[data[:lang]] %>]{isodate}
52
+ <% else %>
53
+ \usepackage[english]{babel}
54
+ \usepackage[english]{isodate}
55
+ <% end %>
56
+
57
+ <% if data[:bibtex_files] %>
58
+ \usepackage{biblatex}
59
+ <% data[:bibtex_files].each { |bibfile| %>\addbibresource{<%= bibfile %>}
60
+ <% } %>
61
+ <% end %>
62
+
63
+ <% if data[:title] %>\title{<%= data[:title] %>}<% end %>
64
+ <% if data[:shorttitle] %>\shorttitle{<%= data[:shorttitle] %>}<% end %>
65
+ <% if data[:author] %>\author{<%= data[:author] %>}<% end %>
66
+ <% if data[:date_str] %>
67
+ <% if data[:lang] %>\date{\printdate{<%= data[:date_str] %>}}
68
+ <% else %>\date{<%= data[:date_str] %>}
69
+ <% end %>
70
+ <% end %>
71
+
72
+ <% if data[:shorttitle] %>\shorttitle{<%= data[:shorttitle] %>}<% end %>
73
+ <% if data[:affiliation] %>\affiliation{<%= data[:affiliation] %><% if data[:note] %>
74
+ \bigskip
75
+ {<%= data[:note] %>}<% end %>}<% end %>
76
+ <% if data[:abstract] %>\abstract{<%= data[:abstract] %>}<% end %>
77
+
78
+ <% if data[:authornote] %>\authornote{<%= data[:authornote] %>}<% end %>
79
+ <% if data[:keywords] %>\keywords{<%= data[:keywords] %>}<% end %>
80
+ <% if data[:journal] %>\journal{<%= data[:journal] %>}<% end %>
81
+ <% if data[:volume] %>\volume{<%= data[:volume] %>}<% end %>
82
+ <% if data[:ccoppy] %>\ccoppy{<%= data[:ccoppy] %>}<% end %>
83
+ <% if data[:copnum] %>\copnum{<%= data[:copnum] %>}<% end %>
84
+
85
+ \begin{document}
86
+ <% if data[:title] %>
87
+ \maketitle
88
+ <% end %>
89
+
90
+ <%= @body %>
91
+ \end{document}
@@ -3,7 +3,7 @@
3
3
  module Jekyll
4
4
  module Latex
5
5
  module Pdf
6
- VERSION = "0.6.1"
6
+ VERSION = "0.6.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-latex-pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Kaffanke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -155,6 +155,7 @@ files:
155
155
  - bin/console
156
156
  - bin/setup
157
157
  - data/kramdown/apa6.latex
158
+ - data/kramdown/apa7.latex
158
159
  - data/kramdown/jekyll-latex-pdf.latex
159
160
  - jekyll-latex-pdf.gemspec
160
161
  - lib/jekyll-latex-pdf.rb