pandoc-ext / abstract-section Goto Github PK
View Code? Open in Web Editor NEWWrite an article abstract in a normal section, not the YAML metadata.
License: MIT License
Write an article abstract in a normal section, not the YAML metadata.
License: MIT License
Hello and thanks for this cool extension that seems useful.
I am running Quarto in RStudio on an Ubuntu 22.04, with 2022.12.0, R 4.2.2 and quarto 1.2.269.
As per your README, I installed the extension using the terminal:
onyxia@rstudio-32255-0:~/work$ quarto install extension pandoc-ext/abstract-section
Quarto extensions may execute code when documents are rendered. If you do not
trust the authors of the extension, we recommend that you do not install or
use the extension.
? Do you trust the authors of this extension (Y/n) › Yes
[✓] Downloading
[✓] Unzipping
Found 1 extension.
The following changes will be made:
pandoc-ext/abstract-section [Install] 1.0.0 (filter)
? Would you like to continue (Y/n) › Yes
[✓] Extension installation complete.
Learn more about this extension at https://www.github.com/pandoc-ext/abstract-section
Then I create a test.qmd
file:
---
title: "test"
format: html
editor: visual
filters:
- abstract-section
---
# Abstract
This is my abstract
****
# Introduction
This is my introduction.
But when I try to render it, I get the following error:
onyxia@rstudio-32255-0:~/work/trends_pa_types$ quarto render test.qmd
pandoc
to: html
output-file: test.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
metadata
document-css: false
link-citations: true
date-format: long
lang: en
title: test
editor: visual
Error running filter abstract-section:
Could not find executable abstract-section
Any idea of how to solve this?
How can I avoid indentation on new paragraphs on the abstract?
Font size changes unexpectedly because this extensions causes paragraphs to not be wrapped in the right div
.
---
title: "Test"
format:
html:
reference-location: margin
self-contained: true
filters:
- abstract-section
---
# Abstract
This is an abstract
## A title
Here is some text without a footnote
Here is some text with a footnote^[Look, a footnote]
---
title: "Test"
format:
html:
reference-location: margin
self-contained: true
---
---
abstract: |
This is an abstract
---
## A title
Here is some text without a footnote
Here is some text with a footnote^[Look, a footnote]
A heading with a level of greater than 1 is ignored by the filter. This causes me a problem if I run Pandoc with --shift-heading-level-by=1
. Is there a good reason for the restriction to level 1 headings? If not, could it be removed entirely, or replaced with, e.g., block.level <= 2
?
The extension works smoothly on a remote linux environment, but I can't install it on my Windows machine:
Microsoft Windows [version 10.0.22621.1265]
(c) Microsoft Corporation. Tous droits réservés.
C:\Users\fbede\Documents\Statistiques\trends_pa_types>quarto install extension pandoc-ext/abstract-section
Quarto extensions may execute code when documents are rendered. If you do not
trust the authors of the extension, we recommend that you do not install or
use the extension.
? Do you trust the authors of this extension (Y/n) » Yes
[>] Downloading
abstract-section-main/abstract-section.lua: Can't create '\\\\?\\C:\\Users\\fbede\\AppData\\Local\\Temp\\quarto-sessione8e703cf\\5b007fd5\\0e76a8cd\\archive\\abstract-section-main\\abstract-section.lua'
tar: Error exit delayed from previous errors.
[>] Unzipping
ERROR: Failed to unzip extension.
abstract-section-main/abstract-section.lua: Can't create '\\\\?\\C:\\Users\\fbede\\AppData\\Local\\Temp\\quarto-sessione8e703cf\\5b007fd5\\0e76a8cd\\archive\\abstract-section-main\\abstract-section.lua'
tar: Error exit delayed from previous errors.
Here is my session info:
> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.utf8 LC_CTYPE=French_France.utf8 LC_MONETARY=French_France.utf8
[4] LC_NUMERIC=C LC_TIME=French_France.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 tools_4.2.2 rstudioapi_0.14 remotes_2.4.2
I'm using the test input file: input-two-sections.md
Then I run the pandoc cmd in window: (I don't know how to install extention for pandoc, so I have to download this filter locally or is there any other way to install?)
pandoc -L abstract-section.lua input-two-sections.md -f markdown -t docx -o test1.docx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.