Giter Site home page Giter Site logo

quarto-inrae-extension's Issues

Picture file can't be found during pdf compilation

I added your extension to my project directory, and rendered via command line: quarto render --to inrae-pdf

I got the following error:

compilation failed- error
Unable to load picture or PDF file '_extensions/inrae/ressources/photo.png'.

Should the file path be relative to the .tex file in the /ressources directory rather than to the quarto project directory? Sorry, I'm a latex beginner. I'm using Linux.

output file index.log attached below.

Full quarto output:

pandoc 
  to: latex
  output-file: index.tex
  standalone: true
  toc: true
  number-sections: true
  top-level-division: chapter
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  
metadata
  crossref:
    chapters: true
  documentclass: scrreprt
  papersize: letter
  classoption:
    - DIV=11
    - numbers=noendperiod
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  sansfont: Raleway
  mainfont: Avenir Next LT Pro
  toc-title: Sommaire
  geometry:
    - top=25mm
    - left=25mm
    - right=25mm
    - bottom=25mm
  bibliography:
    - Mybook.bib
  title: 'My Book'
  date: 4/21/2023
  author: Me
  description: 'My Book description'
  
running xelatex - 1
  This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
updating tlmgr

updating existing packages

compilation failed- error
Unable to load picture or PDF file '_extensions/inrae/ressources/photo.png'.
<to be read again> 
                   }
l.204 ..._extensions/inrae/ressources/photo.png}}}
                                                  % 

index.log

Error rendering template.qmd

I downloaded a zip of the latest git commit, and in the extracted directory, I did the following on the command line:

quarto render template.qmd --to inrae-pdf

And got the following error:

compilation failed- error
Misplaced \crcr.

Output file template.log attached below.

Full quarto output:

processing file: template.qmd                                                                                                                                                  
  |..............                                                        |  20%
  ordinary text without R code

  |............................                                          |  40%
label: unnamed-chunk-2
  |..........................................                            |  60%
  ordinary text without R code

  |........................................................              |  80%
label: unnamed-chunk-4 (with options) 
List of 1
 $ echo: logi FALSE

  |......................................................................| 100%
  ordinary text without R code


output file: template.knit.md

pandoc 
  to: latex
  output-file: template.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  
metadata
  documentclass: scrreprt
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  sansfont: Raleway
  mainfont: Avenir Next LT Pro
  toc-title: Sommaire
  geometry:
    - top=25mm
    - left=25mm
    - right=25mm
    - bottom=25mm
  title: Titre de la présentation
  subtitle: Sous-titre de la présentation
  author:
    - name: '**Premier auteur**'
      orcid: 0000-xxxx-xxxx-xxxx
      email: [email protected]
      url: 'https://lien-site.fr'
    - name: Second auteur
      email: [email protected]
      orcid: 0000-xxxx-xxxx-xxxx
  date: today
  date-format: long
  
running xelatex - 1
  This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
updating tlmgr

updating existing packages

compilation failed- error
Misplaced \crcr.
\endarray ->\crcr 
                  \egroup \egroup \@arrayright \gdef \@preamble {}
l.272 ...olor{inraefonce}{\sffamily \insertauthor}
                                                  \par

template.log

ERROR with self-contained output

Hello David,
Thank you very much for your template. It is very useful for our slides.

I observed some errors that seem to be linked but I did not find the origin (perhaps self_contained) :

  • chalkboard doesn't work (ERROR: Reveal plugin 'RevealChalkboard is not compatible with self-contained output)
  • youtube social embeds fail
  • {.fragment .highlight-red}

I finally fixed that by adding self-contained: false in my header.
Do you have an opinion on these problems?

Thanks again for your work!

2 suggestions for the doc

Hi!

First of all, awesome work. Having everyone at Inrae using the same style for their report would be awesome.

I would like to make 2 suggestions for the GitHub repo:

  • Add a link to an online html report made using the extension
  • Add a code chunk showing how the YAML header should look like

Thanks for your work!

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.