Skip to content

Add cnam-thesis template for Quarto#2044

Merged
cderv merged 1 commit into
quarto-dev:mainfrom
zinc75:main
May 27, 2026
Merged

Add cnam-thesis template for Quarto#2044
cderv merged 1 commit into
quarto-dev:mainfrom
zinc75:main

Conversation

@zinc75
Copy link
Copy Markdown
Contributor

@zinc75 zinc75 commented May 26, 2026

Added cnam-thesis template for Cnam doctoral theses with PDF/A-1b and HTML support.

Added cnam-thesis template for Cnam doctoral theses with PDF/A-1b and HTML support.
Copy link
Copy Markdown
Member

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool !

Is this using PDF with LaTeX because CNAM has a template ?

I wonder if you have made this possibly using Typst document, or Typst book project. 🤔

@cderv cderv merged commit 96a7ba6 into quarto-dev:main May 27, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Successfully created backport PR for prerelease:

@zinc75
Copy link
Copy Markdown
Contributor Author

zinc75 commented May 27, 2026

Really cool !

Thx a lot, I really appreciate !

Is this using PDF with LaTeX because CNAM has a template ?

Yes, this was my starting point : a (bad) LaTeX template I had the habit of fixing for my PhD students. Now this is over thanks to Quarto ;-)

I wonder if you have made this possibly using Typst document, or Typst book project. 🤔

Nope, this is full LaTeX / Lua / Quarto based. I have a collegue which is very active as a user and contributor with Typst, but he never convinced me to switch using it ;-)

@cderv
Copy link
Copy Markdown
Member

cderv commented May 27, 2026

Nope, this is full LaTeX / Lua / Quarto based. I have a collegue which is very active as a user and contributor with Typst, but he never convinced me to switch using it ;-)

Really interesting ! A happy LaTeX user ! Cool !

Do not hesitate to open issues if some stuff required workaround for make your template work.

@zinc75
Copy link
Copy Markdown
Contributor Author

zinc75 commented May 27, 2026

Do not hesitate to open issues if some stuff required workaround for make your template work.

Speaking of that : Quarto's PDF callouts use tcolorbox transparency (opacityback = 0 and opacitybacktitle = 0.6), which generates native PDF transparency operators that are forbidden by the PDF/A-1b standard (ISO 19005-1).

Since my template zinc75/quarto-cnam-thesis targets PDF/A-1b compliant thesis output (which is required for a deposit on theses.fr), I had to think of workarounds for this, either with a custom Lua filter that flattens the colors: opacityback = 0 becomes colback=white, and opacitybacktitle = 0.6 is replaced by a pre-computed solid color like quarto-callout--color!10!white — visually almost identical, no transparency needed, or by flattening using ghostscript as a postfilter, which is far from ideal as it make the rendered PDF file much bigger.

Either ways, this is not ideal since it duplicates logic that should belong to Quarto itself. If you think a native fix makes sense (e.g. a configuration to disable transparency in callouts and a fallback to flattened equivalent colors), I'm happy to open an issue on https://github.com/quarto-dev/quarto-cli if required.

@cderv
Copy link
Copy Markdown
Member

cderv commented May 27, 2026

Quarto's PDF callouts use tcolorbox transparency (opacityback = 0 and opacitybacktitle = 0.6), which generates native PDF transparency operators that are forbidden by the PDF/A-1b standard (ISO 19005-1).

This is worth an issue in quarto-cli repo if none already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants