Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper: Codebraid Preview for VS Code: Pandoc Markdown Preview with Jupyter Kernels #716

Merged
merged 8 commits into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions papers/geoffrey_poore/build_rst_from_md.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc -f commonmark_x -t rst -o geoffrey_poore.rst -L filters.lua poore.md
1 change: 1 addition & 0 deletions papers/geoffrey_poore/build_rst_from_md.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc -f commonmark_x -t rst -o geoffrey_poore.rst -L filters.lua poore.md
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions papers/geoffrey_poore/filters.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function Str(elem)
local startIndex, endIndex, maybeMatch = string.find(elem.text, '%[(%w+)%]')
if maybeMatch then
local newInlines = pandoc.Inlines{}
if startIndex > 1 then
newInlines:insert(pandoc.Str(string.sub(elem.text, 1, startIndex-1)))
end
newInlines:insert(pandoc.RawInline('rst', ':cite:`' .. maybeMatch .. '`'))
if endIndex < elem.text:len() then
newInlines:insert(pandoc.Str(string.sub(elem.text, endIndex+1)))
end
return newInlines
end
end
447 changes: 447 additions & 0 deletions papers/geoffrey_poore/geoffrey_poore.rst

Large diffs are not rendered by default.

110 changes: 110 additions & 0 deletions papers/geoffrey_poore/poore.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
% Encoding: UTF-8

@Conference{Kluyver2016,
author = {Thomas Kluyver and Benjamin Ragan-Kelley and Fernando P{\'e}rez and Brian Granger and Matthias Bussonnier and Jonathan Frederic and Kyle Kelley and Jessica Hamrick and Jason Grout and Sylvain Corlay and Paul Ivanov and Dami{\'a}n Avila and Safia Abdalla and Carol Willing},
title = {{J}upyter {N}otebooks -- a publishing format for reproducible computational workflows},
booktitle = {Positioning and Power in Academic Publishing: Players, Agents and Agendas},
year = {2016},
editor = {F. Loizides and B. Schmidt},
pages = {87--90},
organization = {IOS Press},
doi = {10.3233/978-1-61499-649-1-87},
}

@Book{Xie2015,
title = {{D}ynamic {D}ocuments with {R} and knitr},
publisher = {{C}hapman {\&} {H}all/{CRC} {P}ress},
year = {2015},
author = {{Y}ihui {X}ie},
isbn = {1498716962},
}

@Misc{pandoc,
author = {{J}ohn {M}ac{F}arlane},
title = {Pandoc: a universal document converter},
year = {2006--2022},
url = {https://pandoc.org/},
}

@Article{jupyter,
author = {Granger, Brian E. and Pérez, Fernando},
journal = {Computing in Science \& Engineering},
title = {Jupyter: Thinking and Storytelling With Code and Data},
year = {2021},
number = {2},
pages = {7-14},
volume = {23},
doi = {10.1109/MCSE.2021.3059263},
}

@Misc{nbconvert,
author = {{Jupyter Development Team}},
title = {{nbconvert: Convert Notebooks to other formats}},
year = {2015--2022},
url = {https://nbconvert.readthedocs.io},
}

@Misc{jupytext,
author = {{M}arc {W}outs and the {J}upytext {T}eam},
title = {Jupyter notebooks as {Markdown} documents, {Julia}, {Python} or {R} scripts},
year = {2018--2020},
url = {https://jupytext.readthedocs.io/},
}

@Misc{rmarkdown,
author = {{RStudio Inc.}},
title = {{R Markdown}},
year = {2016--2020},
url = {https://rmarkdown.rstudio.com/},
}

@Misc{quarto,
author = {{RStudio Inc.}},
title = {{Welcome to Quarto}},
year = {2022},
url = {https://quarto.org/},
}

@InProceedings{codebraid,
author = {{G}eoffrey {M}. {P}oore},
booktitle = {{P}roceedings of the 18th {P}ython in {S}cience {C}onference},
title = {{C}odebraid: {L}ive {C}ode in {P}andoc {M}arkdown},
year = {2019},
editor = {{C}hris {C}alloway and {D}avid {L}ippa and {D}illon {N}iederhut and {D}avid {S}hupe},
pages = {54 -- 61},
doi = {10.25080/Majora-7ddc1dd1-008},
}

@Misc{katex,
author = {Eisenberg, Emily and Alpert, Sophie},
title = {{KaTeX: The fastest math typesetting library for the web}},
year = {2022},
url = {https://katex.org/},
}

@Misc{mathjax,
author = {MathJax},
title = {{MathJax: Beautiful and accessible math in all browsers}},
year = {2009--2022},
url = {https://www.mathjax.org/},
}

@article{synctex,
title={Direct and reverse synchronization with {SyncTEX}},
author={Laurens, Jer{\^o}me},
journal={{TUGBoat}},
volume={29},
number={3},
pages={365--371},
year={2008},
}


@Comment{jabref-meta: databaseType:bibtex;}

@Comment{jabref-meta: grouping:
0 AllEntriesGroup:;
1 StaticGroup:Markings\;2\;1\;\;\;\;;
2 StaticGroup:Tachyon:6\;2\;1\;\;\;\;;
2 StaticGroup:[Tachyon:]\;2\;1\;\;\;\;;
}