Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
Articles
Commits
dd122460
Commit
dd122460
authored
Sep 21, 2021
by
Guilhem Saurel
Browse files
fix citation
parent
7a301c61
Pipeline
#16133
failed with stage
in 8 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
dd122460
...
...
@@ -4,4 +4,8 @@ RUN --mount=type=cache,sharing=locked,target=/var/cache/apt --mount=type=cache,s
apt-get update
-qqy
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
pandoc
\
pandoc-citeproc
\
make
python-is-python3
\
python3-pip
\
make
\
&&
python
-m
pip
install
--user
--no-cache-dir
\
'panflute<2'
Makefile
View file @
dd122460
...
...
@@ -4,8 +4,8 @@ DEST="/net/cubitus/projects/Partage_GEPETTO/Public/articles"
all
:
${OUTPUTS}
public/%.html
:
%.md template.html
bibliography
.bib
pandoc
-s
-F
pandoc-citeproc
--template
template.html
-o
$@
$<
public/%.html
:
%.md template.html
*
.bib
pandoc
-s
-F
./cite.py
--template
template.html
-o
$@
$<
clean
:
rm
-f
${OUTPUTS}
...
...
bibliography.bib
deleted
100644 → 0
View file @
7a301c61
// TODO: update this with HAL entry
@InProceedings
{
CosySLAM
,
author
=
{César Debeunne and Médéric Fourmy and Yann Labbé and Pierre-Alexandre Léziart and Guilhem Saurel and Joan
Solà and Nicolas Mansard}
,
title
=
{CosySLAM: tracking contact features using visual-inertial object-level SLAM for locomotion}
,
booktitle
=
{ICRA (submitted)}
,
year
=
{2022}
}
cite.py
0 → 100755
View file @
dd122460
#!/usr/bin/env python
"""
Pandoc filter to include a raw bib citation
"""
from
panflute
import
run_filter
,
CodeBlock
from
panflute.elements
import
builtin2meta
def
action
(
elem
,
doc
):
pass
def
prepare
(
doc
):
filename
=
doc
.
get_metadata
(
'cite'
)
if
filename
is
not
None
:
with
open
(
filename
)
as
f
:
code
=
CodeBlock
(
f
.
read
(),
classes
=
[
'bibtex'
])
doc
.
metadata
.
content
[
"citefile"
]
=
builtin2meta
(
code
)
def
main
(
doc
=
None
):
return
run_filter
(
action
,
prepare
=
prepare
,
doc
=
doc
)
if
__name__
==
'__main__'
:
main
()
cosyslam.bib
0 → 100644
View file @
dd122460
// TODO: get the real from HAL
@InProceedings
{
CosySLAM
,
author
=
{César Debeunne
and Médéric Fourmy
and Yann Labbé
and Pierre-Alexandre Léziart
and Guilhem Saurel
and Joan Solà
and Nicolas Mansard}
,
title
=
{CosySLAM: tracking contact features
using visual-inertial object-level SLAM for locomotion}
,
booktitle
=
{ICRA (submitted)}
,
year
=
{2022}
}
cosyslam.md
View file @
dd122460
...
...
@@ -14,10 +14,10 @@ org:
-
^2^ Artificial and Natural Intelligence Toulouse Institute, Toulouse
-
^3^ Intitut de Robòtica i Informàtica Industrial, Barcelona
-
^4^ Inria, École normale supérieure, CNRS, PSL Research University, Paris
cite:
C
osy
SLAM
cite:
c
osy
slam.bib
paper: https://hal.laas.fr/hal-TODO/document
code: https://github.com/gepetto/TODO
peertube: https://peertube.laas.fr/videos/embed/
a78430ea-09b0-4e31-8ca6-7436c7af9165
peertube: https://peertube.laas.fr/videos/embed/
0a3efab5-c388-413f-801b-275741a0ee63
...
## Abstract
...
...
template.html
View file @
dd122460
...
...
@@ -2,101 +2,128 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"generator"
content=
"pandoc"
/>
$for(author-meta)$
<meta
name=
"author"
content=
"$author-meta$"
/>
$endfor$
$if(date-meta)$
<meta
name=
"dcterms.date"
content=
"$date-meta$"
/>
$endif$
$if(keywords)$
<meta
name=
"keywords"
content=
"$for(keywords)$$keywords$$sep$, $endfor$"
/>
$endif$
$if(description-meta)$
<meta
name=
"description"
content=
"$description-meta$"
/>
$endif$
<title>
$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$
</title>
$for(css)$
<link
rel=
"stylesheet"
href=
"$css$"
/>
$endfor$
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
>
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
$for(author-meta)$
<meta
name=
"author"
content=
"$author-meta$"
/>
$endfor$
$if(date-meta)$
<meta
name=
"dcterms.date"
content=
"$date-meta$"
/>
$endif$
$if(keywords)$
<meta
name=
"keywords"
content=
"$for(keywords)$$keywords$$sep$, $endfor$"
/>
$endif$
$if(description-meta)$
<meta
name=
"description"
content=
"$description-meta$"
/>
$endif$
<title>
$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$
</title>
<style>
$
styles
.html
()
$
</style>
$for(css)$
<link
rel=
"stylesheet"
href=
"$css$"
/>
$endfor$
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
>
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
<div
class=
"container"
>
$for(include-before)$
$include-before$
$endfor$
$for(include-before)$
$include-before$
$endfor$
<header
id=
"title-block-header"
>
$if(title)$
<h1
class=
"title text-center"
>
$title$
</h1>
$if(subtitle)$
<h4
class=
"subtitle text-center text-muted"
>
$subtitle$
</h4>
$endif$
$endif$
<header
id=
"title-block-header"
>
$if(title)$
<h1
class=
"title text-center"
>
$title$
</h1>
$if(subtitle)$
<h4
class=
"subtitle text-center text-muted"
>
$subtitle$
</h4>
$endif$
$endif$
$if(author)$
<ul
class=
"list-inline text-center"
>
$for(author)$
<li
class=
"author list-inline-item"
>
$author$
</li>
$endfor$
</ul>
$endif$
$if(author)$
<ul
class=
"list-inline text-center"
>
$for(author)$
<li
class=
"author list-inline-item"
>
$author$
</li>
$endfor$
</ul>
$endif$
<div
class=
"row align-items-center"
>
<div
class=
"row align-items-center"
>
<div
class=
"col"
>
$if(paper)$
<a
role=
"button"
class=
"btn btn-outline-primary"
href=
"$paper$"
>
Paper
<i
class=
"bi-file-pdf"
></i></a>
$endif$
$if(code)$
<a
role=
"button"
class=
"btn btn-outline-primary"
href=
"$code$"
>
Code
<i
class=
"bi-github"
></i></a>
$endif$
$if(cite)$
<a
rol
e=
"button"
class=
"btn btn-outline-primary"
href=
"$cite$"
>
Cite
<i
class=
"bi-book"
></i></a
>
$endif$
</div
>
<div
class=
"col"
>
$if(paper)$
<a
role=
"button"
class=
"btn btn-outline-primary"
href=
"$paper$"
>
Paper
<i
class=
"bi-file-pdf"
></i></a>
$endif$
$if(code)$
<a
role=
"button"
class=
"btn btn-outline-primary"
href=
"$code$"
>
Code
<i
class=
"bi-github"
></i></a>
$endif$
$if(cite)$
<button
typ
e=
"button"
class=
"btn btn-outline-primary"
data-bs-toggle=
"modal"
data-bs-target=
"#exampleModal"
>
Cite
<i
class=
"bi-book"
></i>
</button
>
$if(org)$
<ul
class=
"col text-end list-unstyled"
>
$for(org)$
<li
class=
"org"
>
$org$
</li>
$endfor$
</ul>
$endif$
</div>
<!-- Modal -->
<div
class=
"modal fade"
id=
"exampleModal"
tabindex=
"-1"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"exampleModalLabel"
>
Bibtex
</h5>
<button
type=
"button"
class=
"btn-close"
data-bs-dismiss=
"modal"
aria-label=
"Close"
></button>
</div>
<div
class=
"modal-body bg-light"
>
$citefile$
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-bs-dismiss=
"modal"
>
Close
</button>
</div>
</div>
</div>
</div>
$endif$
</div>
</header>
$if(org)$
<ul
class=
"col text-end list-unstyled"
>
$for(org)$
<li
class=
"org"
>
$org$
</li>
$endfor$
</ul>
$endif$
</div>
$if(toc)$
<nav
id=
"$idprefix$TOC"
role=
"doc-toc"
>
$if(toc-title)$
<h2
id=
"$idprefix$toc-title"
>
$toc-title$
</h2>
$endif$
$table-of-contents$
</nav>
$endif$
</header>
$if(peertube)$
<div
class=
"text-center"
>
<iframe
width=
"560"
height=
"315"
sandbox=
"allow-same-origin allow-scripts allow-popups"
src=
"$peertube$"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
$endif$
$if(toc)$
<nav
id=
"$idprefix$TOC"
role=
"doc-toc"
>
$if(toc-title)$
<h2
id=
"$idprefix$toc-title"
>
$toc-title$
</h2>
$endif$
$table-of-contents$
</nav>
$endif$
$body$
$if(peertube)$
<div
class=
"text-center"
>
<iframe
width=
"560"
height=
"315"
sandbox=
"allow-same-origin allow-scripts allow-popups"
src=
"$peertube$"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
$endif$
$for(include-after)$
$include-after$
$endfor$
<div
class=
"row"
>
<div
class=
"mx-auto col-md-12 col-lg-9 col-xl-8 col-xxl-7 justify-content-center"
>
$body$
</div>
</div>
$for(include-after)$
$include-after$
$endfor$
</div>
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity=
"sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin=
"anonymous"
></script>
</body>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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