Skip to content

Commit f3e18fb

Browse files
committed
Add Word conversion via Pandoc
1 parent 1ac8c33 commit f3e18fb

File tree

4 files changed

+131
-3
lines changed

4 files changed

+131
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
*.out
99
*.blg
1010
paper.pdf
11+
paper.docx

scipy-1.0/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ covlett: $(TEX)
1212
clean:
1313
@rm -f *~
1414
latexmk -CA
15+
16+
.PHONY: word
17+
word:
18+
pandoc -s paper.tex --bibliography=references.bib --csl static/nature.csl -o paper.docx

scipy-1.0/paper.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass[fleqn,10pt]{wlscirep}
1+
\documentclass[fleqn,10pt]{article}
22

33
% Packages
44
\usepackage[super]{nth}
@@ -517,7 +517,7 @@ \subsection*{SciPy Today}
517517

518518
\begin{figure}[H]
519519
\centering
520-
\includegraphics[width=0.95\textwidth]{static/scipy_timeline}
520+
\includegraphics[width=0.95\textwidth]{static/scipy_timeline.pdf}
521521
\caption{Major milestones from SciPy's initial release in 2001 to
522522
the release of SciPy 1.0 in 2017. Note that SciKits and GitHub
523523
have been introduced in the ``Background'' section; more
@@ -880,7 +880,7 @@ \subsubsection*{Benchmark suite}
880880

881881
\begin{figure}[H]
882882
\centering
883-
\includegraphics[width=\textwidth]{static/asv}
883+
\includegraphics[width=\textwidth]{static/asv.pdf}
884884
\caption{Results of the \texttt{scipy.spatial.cKDTree.query} benchmark from the introduction of \texttt{cKDTree} to the release of SciPy~1.0. The benchmark generates a $k$-d tree from \num{10000} uniformly distributed points in an $m$-dimensional unit hypercube, then finds the nearest (Euclidean) neighbor in the tree for each of \num{1000}~query points. Each marker in the figure indicates the execution time of the benchmark for a commit in the master branch of SciPy. Substantial performance improvements were realized when \texttt{cKDTree} was fully Cythonized and again when it was rewritten in C++. The tree was generated without application of toroidal topology (\texttt{boxsize=None}), and tests were performed by Airspeed Velocity 0.4 using Python~2.7, NumPy~1.8.2, and Cython versions 0.27.3, 0.21.1, and 0.18 (for improved backward compatibility).}
885885
\label{fig:asvbench}
886886
\end{figure}

scipy-1.0/static/nature.csl

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
3+
<info>
4+
<title>Nature</title>
5+
<id>http://www.zotero.org/styles/nature</id>
6+
<link href="http://www.zotero.org/styles/nature" rel="self"/>
7+
<link href="http://www.nature.com/nature/authors/gta/index.html#a5.4" rel="documentation"/>
8+
<link href="http://www.nature.com/srep/publish/guidelines#references" rel="documentation"/>
9+
<author>
10+
<name>Michael Berkowitz</name>
11+
<email>[email protected]</email>
12+
</author>
13+
<category citation-format="numeric"/>
14+
<category field="science"/>
15+
<category field="generic-base"/>
16+
<issn>0028-0836</issn>
17+
<eissn>1476-4687</eissn>
18+
<updated>2018-10-24T14:53:43+00:00</updated>
19+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
20+
</info>
21+
<macro name="title">
22+
<choose>
23+
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
24+
<text variable="title" font-style="italic"/>
25+
</if>
26+
<else>
27+
<text variable="title"/>
28+
</else>
29+
</choose>
30+
</macro>
31+
<macro name="author">
32+
<names variable="author">
33+
<name sort-separator=", " delimiter=", " and="symbol" initialize-with=". " delimiter-precedes-last="never" name-as-sort-order="all"/>
34+
<label form="short" prefix=", "/>
35+
<et-al font-style="italic"/>
36+
</names>
37+
</macro>
38+
<macro name="access">
39+
<choose>
40+
<if variable="volume"/>
41+
<else-if variable="DOI">
42+
<text variable="DOI" prefix="doi:"/>
43+
</else-if>
44+
<else-if type="webpage" variable="URL" match="all">
45+
<text term="available at" text-case="capitalize-first" suffix=": "/>
46+
<text variable="URL" suffix=". "/>
47+
<group prefix="(" suffix=")" delimiter=": ">
48+
<text term="accessed" text-case="capitalize-first"/>
49+
<date variable="accessed">
50+
<date-part name="day" suffix=" " form="ordinal"/>
51+
<date-part name="month" suffix=" "/>
52+
<date-part name="year"/>
53+
</date>
54+
</group>
55+
</else-if>
56+
</choose>
57+
</macro>
58+
<macro name="issuance">
59+
<choose>
60+
<if type="bill book graphic legal_case legislation motion_picture report song thesis chapter paper-conference" match="any">
61+
<group delimiter=", " prefix="(" suffix=").">
62+
<text variable="publisher" form="long"/>
63+
<date variable="issued">
64+
<date-part name="year"/>
65+
</date>
66+
</group>
67+
</if>
68+
<else>
69+
<date prefix="(" suffix=")." variable="issued">
70+
<date-part name="year"/>
71+
</date>
72+
</else>
73+
</choose>
74+
</macro>
75+
<macro name="container-title">
76+
<choose>
77+
<if type="article-journal">
78+
<text variable="container-title" font-style="italic" form="short"/>
79+
</if>
80+
<else>
81+
<text variable="container-title" font-style="italic"/>
82+
</else>
83+
</choose>
84+
</macro>
85+
<macro name="editor">
86+
<choose>
87+
<if type="chapter paper-conference" match="any">
88+
<names variable="editor" prefix="(" suffix=")">
89+
<label form="short" suffix=" "/>
90+
<name and="symbol" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/>
91+
</names>
92+
</if>
93+
</choose>
94+
</macro>
95+
<citation collapse="citation-number">
96+
<sort>
97+
<key variable="citation-number"/>
98+
</sort>
99+
<layout vertical-align="sup" delimiter=",">
100+
<text variable="citation-number"/>
101+
</layout>
102+
</citation>
103+
<bibliography et-al-min="6" et-al-use-first="1" second-field-align="flush" entry-spacing="0" line-spacing="2">
104+
<layout>
105+
<text variable="citation-number" suffix="."/>
106+
<group delimiter=" ">
107+
<text macro="author" suffix="."/>
108+
<text macro="title" suffix="."/>
109+
<choose>
110+
<if type="chapter paper-conference" match="any">
111+
<text term="in"/>
112+
</if>
113+
</choose>
114+
<text macro="container-title"/>
115+
<text macro="editor"/>
116+
<text variable="volume" font-weight="bold" suffix=","/>
117+
<text variable="page"/>
118+
<text macro="issuance"/>
119+
<text macro="access"/>
120+
</group>
121+
</layout>
122+
</bibliography>
123+
</style>

0 commit comments

Comments
 (0)