Open SHogenboom opened 2 years 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.
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 themeta-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 thetable
type should be suited for inclusion in a PDF - which is why I want to request it as a feature.