quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.77k stars 309 forks source link

Feature Request: (Table) Listings for PDF #1752

Open SHogenboom opened 2 years ago

SHogenboom commented 2 years ago

Background The listings feature allows one to automatically populate the contents of a page. I expect it was intended for use only in websites, for example an overview of blogposts.

My Modification I used the meta-data of chapters (title, meta-description) and a listing page to create an informative TOC. So rather than only showing chapter numbers and titles - readers now also see the meta-description as part of a table (without filter, sort etc).

Feature Request The educational book we are creating should have both a HTML and a PDF version. Unfortunately, the listing page remains empty in the PDF output. I believe the table type should be suited for inclusion in a PDF - which is why I want to request it as a feature.

gbruer15 commented 6 months ago

I am also interested in this. I think it could be implemented by defining new latex templates that essentially mimic the ejs templates.

I have an initial implementation that uses a Lua filter and works strictly with a YAML listings source.

For testing feasibility of this, I have the simple latex template below.

\begin{itemize}
$for(entries)$
\item $entries.title$
$endfor$
\end{itemize}

Here is the live site where you can download the pdf and see the lists: https://gbruer-dev.github.io/resume/

The source code is here:

When I have time, I'll keep working on this with the aim of getting a table format working.