-
Notifications
You must be signed in to change notification settings - Fork 128
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
List of Figures/Tables not working in pagedown::html_paged (loft.lua / pandoc issue?) #280
Comments
I guess this is a pandoc version problem. Our example page https://pagedown.rbind.io is built with Pandoc 2.14.2. I just tried Pandoc 2.17.1.1, and the LOT/LOF couldn't be generated. @cderv @RLesur Could you take a look? Thanks! |
This come indeed from Pandoc version. Last one working is 2.16.2 so change happens on 2.17. |
Ok I think I have found the culprit in 2.17 release note.
It seems we were using an undocumented feature in our Lua filter. I'll rewrite this. |
@adamvi Open PR should fix this is you are in a hurry remotes::install_github("rstudio/pagedown") It should be merged soon though. |
@adamvi If the current dev version works for you, we can make a new CRAN release soon. Thanks for presenting this package at the conference! |
Hello and, like many others, I am so grateful for and indebted to your efforts on the development of this package!
I am no longer able to produce a list of figures/tables in reports that had
render
ed/chrome_print
ed well previously (Dec 2021). I am scheduled to present this work with a demonstration on how to createpagedown
reports at a large conference for education researchers next month (!) so I'm hoping to get this worked out ASAP so that I can (re)present it thoroughly and with confidence...I munged around for over a day in code and compared HTML, knit.md, etc results with previous versions, and eventually came to the conclusion that the issue is in the
pagedown
package somewhere (or perhaps due to recent changes inpandoc
?) and not with anything I've done.I was able to replicate this issue using the skeleton.Rmd file in the latest dev version of the package:
I ran this code with the skeleton.Rmd "out-of-the-box" and with several different changes in the YAML trying to get the
lof
and/orlot
options to work based on what had worked for me as well as in your documentation. For example:The only additional feature to be produced was the
toc-title
- no List of Figures and/or Tables.I examined the HTML output in these examples and my reports, and the issue seems to be that the LOF
<div>
is not being created in the pandoc rendering process with theloft.lua
filter. In a version of a test report that previously rendered with the LOF, I had something like this:Some things I've tried with the example and my report:
lof
,lot
,lof-title
inclusion, exclusion and placement within the YAMLloft.lua
and some of the relevant JavaScript files.pagedown
- e.g.,remotes::install_version("pagedown", version = "0.16", type="source")
remotes::install_github('rstudio/pagedown')
I have NO experience with LUA and no idea how to debug any potential issues, which is why I'm referring this issue to you 😃
Thank you in advance for advice/package changes!
Pandoc version (used in
rmarkdown
):Session Info:
The text was updated successfully, but these errors were encountered: