Replies: 2 comments
-
|
my current dirty workaround: -- Replace \\pagebreak to \pagebreak for markdown files
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("markdown_replace", { clear = true }),
pattern = { "markdown" },
callback = function()
vim.api.nvim_command("silent! %s/\\\\\\\\pagebreak/\\\\pagebreak/")
vim.api.nvim_command("silent w")
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Use this and through pandoc you should be able to generate pdf with You might want to try out the norganic section as well if it doesn't work as expected. https://github.com/pysan3/Norg-Tutorial/blob/main/norg_tutorial.md#export-norg-pandoc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
First, I should probably mention that I dont know much about markdown nor LaTeX, and I am just getting into neorg. Hence the following is just the result of a few google searches:
I tried to understand how to convert my .norg notes to pdf and the common given method seems to be through markdown.
So I added core.export/core.export.markdown to my config, installed md-pdf.nvim plugin, and it works fine.
I just wanted to set some page breaks here and there in the final pdf, and so discovered the LaTeX command "\pagebreak", which you can write inside markdown files. That works fine too.
My only issue now is how to write those "\pagebreak" directly into my norg notes:
So I currently write "\\pagebreak" in my note.norg, do a search/replace in the exported note.md, and then export that to pdf.
So:
Thanks for your suggestions
Beta Was this translation helpful? Give feedback.
All reactions