Giter Club home page Giter Club logo

abstract-section's People

Contributors

jdutant avatar jgm avatar tarleb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

abstract-section's Issues

Error running filter abstract-section: Could not find executable abstract-section

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?

Abstract causes font size to shrink in paragraphs with margins and without footnotes

Font size changes unexpectedly because this extensions causes paragraphs to not be wrapped in the right div.

Faulty behaviour

---
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]

image

Desired behaviour

---
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]

image

Abstract at level > 1

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?

Error (failed to unzip extension) when trying to install on Windows

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  

Mutiple section not woring for docx

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

The output is:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.