GithubHelp home page GithubHelp logo

Comments (16)

blackhole89 avatar blackhole89 commented on June 8, 2024 1

How do you envision a (sub)tree (multiple notes) being represented in a single PDF file? Just concatenate all the notes together?

There's a stopgap solution to do something like what you want outside of the program right now which is to use pandoc, which generally does an okay job at converting markdown (including LaTeX math) into LaTeX-rendered PDFs. (I've encountered a handful of cases of it getting stuck though.) Eventually, adding an in-program export function is planned.

from notekit.

sp1ritCS avatar sp1ritCS commented on June 8, 2024 1

Is there any chance to implement this kind of workflow as a single button click?

we've talked about it in the notekit chat-room (mostly about a general "export" button, if we decide to add any other "non-standard" markdown features). Shouldn't be to hard, as the methods already exists.

from notekit.

LyesSaadi avatar LyesSaadi commented on June 8, 2024 1

I've updated the COPR repo, and I will soon update the Fedora NoteKit as well ;) !

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

How do you envision a (sub)tree (multiple notes) being represented in a single PDF file? Just concatenate all the notes

together?
I was thinking about something like that. When exporting as HTML this should not be too difficult, since HTML files are already tree structured. When exporting as a PDF, it could simply concatenate all the nodes following their hierarchy, starting from the first node, then inlcuding their childs, then adding the next sibling node. I'm taking CherryTree as an example, I suggest you to go have a look at it if you don't mind.
I really like the ability to take notes both with markdown and hand-written in the same place, so I really like your software. But at the moment lacks the exporting feature that other taking notes softwares already have.
Thank you for listening to my feature request, cheers!

from notekit.

gcoimbra avatar gcoimbra commented on June 8, 2024

There's an alternative that is grip. It's an pypi package that converts it to pdf.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

Hello @blackhole89 , sorry for writing under an old issue. I tried pandoc, but it seems it can't render drawings in PDF file.

original note:
immagine

command invoked with its output:

$ pandoc appunti.md -o appunti.pdf 
[WARNING] Could not fetch resource 'nk:3572,eNq11k9IVEEcB/Cxv1ILbbFEBw9mFh6sVtyDUNDuex487GEPQhsstcUepCzs1h+Kl0Es/YE9epTQkjSzErXo4Ck8REREeIqOHiIkIoQi+v5mvlOzr2VTW4UPv3He7Px/M+97nVKdSqmdKvwXHNm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z9UPn/sx+QuhVcq6" "InvalReplacing image with description.

output file:
appunti.pdf

Am I missing something?

from notekit.

sp1ritCS avatar sp1ritCS commented on June 8, 2024

Am I missing something?

NoteKit saves it's drawings as a zlib compressed serialization of a cairo surface (mostly for performance & size reasons). Pandoc can't deal with them.
If you wan't to render a note with pandoc, you'll have to remove your drawings. However, if you copy a drawing into your clipboard, then into some other application (vim, gedit, emacs, etc.) and from there copy it again and back into notekit (notekit will be unable to show you the svg version tho) you should be able to export the drawing too.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

Is there any chance to implement this kind of workflow as a single button click?
Anyway I don't want to use pandoc at all costs, any other simpler way would be good as well.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

Ty for your swift answers. I'll wait then for the export feature to be implemented.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

oops closed by mistake, I'm very sorry :(

from notekit.

blackhole89 avatar blackhole89 commented on June 8, 2024

Just committed something that adds an export button to the app menu. You can currently choose between the same rendered markdown format that you get if you copypaste into another program, and piping it into pandoc (which needs to be installed) to get a PDF.

Unfortunately, pandoc is a bit temperamental about certain things and can silently fail (check the console output in those situations). For example, it fails to detect LaTeX spans if the starting $ is followed by a space or the final one is preceded by one.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

Just committed something that adds an export button to the app menu.

Nice, ty very much. Since I'm using fedora, i'll wait for the copr repo to be updated as well to try out this update.

from notekit.

sp1ritCS avatar sp1ritCS commented on June 8, 2024

I'm using fedora, i'll wait for the copr repo

Thanks to @LyesSaadi, Fedora 34 now carries NoteKit (with cLaTeXMath chopped off) in it's repos.

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

Thanks to @LyesSaadi, Fedora 34 now carries NoteKit (with cLaTeXMath chopped off) in it's repos.

didn't know, ty.

from notekit.

LyesSaadi avatar LyesSaadi commented on June 8, 2024

If you're already using the COPR repos, until the cLaTeXMath situation is fixed, you'll be able to keep using the cLaTeXMath features through the COPR without doing anything :D !

from notekit.

Torkin1 avatar Torkin1 commented on June 8, 2024

thank you very much for your support! You can close the issue if you want.

from notekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.