Thank you! That works great! Do you mind to explain how to update the font if you have a chance?
Sure, you need to open custom.css (itâs in /your-graph/logseq folder or you can open it from Logseq settings) and add the following.
This one if you want to change the font only in Document Mode (the one you activate with t d
shortcut (press Esc, then t then d)) like me:
:root :is(.document-mode){
font-family: "Only Emoji", "NewComputerModernMath", "cmr10", "Noto Sans";
font-size: 20px;
}
Or use this one for the whole page content anyway:
{
font-family: "Only Emoji", "NewComputerModernMath", "cmr10", "Noto Sans";
font-size: 20px;
}
In case you also want to hide block&page Properties in Document Mode:
:root :is(.document-mode) .block-properties.block-properties.block-properties {
display: none !important;
}
Of course you need the font I linked installed in your system.
I wrote a filter that uses the Pandoc AST. It first reads the Logseq Markdown using Pandoc, processes it to smooth over some idiosyncrasies of logseq itself and of my workflow at the time, and writes out Pandoc again. Itâs not documented, and might not do what you want, but it might be an example to build on.
Thatâs great! Iâll check it out!
Hi! Could you please provide a brief explanation on how to implement it in logseq? Thanks for your kind contribution
Re-upping @alexfazioâs question about documentation. Would love to know how this works.
Hey @Ed_Nico , just curious if there are any updates on this, or if there might even be a timeline if the team did decide to develop this functionality.
Also just to cast my vote specifically for full pandoc integration and handling of logseq markdown idiosyncrasies.
Thank you!
Here is some documentation about the script: GitHub - Tamriel/logseq2pandoc: Export Logseq pages to PDF or epub
The logseq-pandoc-plugin converts your pages and blocks to different formats using Pandoc.
Supports:
- docx
- pptx
- html
- latex
- citations
https://github.com/benjypng/logseq-pandoc-plugin/blob/main/screenshots/demo.gif
Thank you for the plugin, it helps for initial .docx
conversion! (Although requires manual activities in Word after it.)
I shared some enhancement ideas (and an issue) in Github, maybe these can be discussed here if needed / appropriate, as I havenât found a Github discussion page for this repo.
Hey, thanks for pointing us at logseq-pandoc-plugin
.
Generally looks cool, but itâs not really working well for me:
- Doesnât finish for large docs. Crashes?
- Doesnât understand some Logseq-specific MD syntax and just prints it, which looks ugly.
- Doesnât actually export to PDF, just Word, PPT, HTML, LaTeX. (yes, you can covert again from there)
With logseq-pdf-export-plugin
I also still see a bunch of proprietary MD markup in the output (like list bullet format), and some LaTeX formulas are shown in the source code, not rendered.
What worked better for me was âPdf Printâ (logseq-plugin-pdf-print
).
It just exports/prints the whole page as-is. That includes some UI, and margins etc. So not.a perfect print layout, but it works fairly well when:
- Use Document View
- Toggle Wide Mode
- Expand all blocks
- Scroll all the way to the end to render the full page
Any other suggestions that I should try?
Kind of odd, that PDF export/print isnât built in.