-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#+BEGIN_QUOTE and #+END_QUOTE is not working. #4
Comments
Hey @ffsammak You need to add the following to your init.el somewhere: (setq org-noter-max-short-selected-text-length 700000)
(define-advice org-noter--insert-heading (:after (level title &optional newlines-number location) add-full-body-quote)
"Advice for org-noter--insert-heading.
When inserting a precise note insert the text of the note in the body as an org mode QUOTE block.
=org-noter-max-short-length= should be set to a large value to short circuit the normal behavior:
=(setq org-noter-max-short-selected-text-length 80000)="
;; this tells us it's a precise note that's being invoked.
(if (consp location)
(insert (format "#+BEGIN_QUOTE\n%s\n#+END_QUOTE" title)))) |
unfortunately, I couldn't get it to work. I am now trying to debug. I am using vanilla emacs, straight for package installation and use-package for package configuration. The first problem is that I see two folders under straight repo, one is org-noter and the other is org-noter-plus. This is confusing. My setup code for org-noter package is mentioned above. How can I end up having one single directory under straight? |
Ok, I figured out that my straight setup was causing the two repos now I get one after straight-remove-unused-repos command. I now have this setup:
now I can do debugging on this one repo .. debugging in progress... |
when I forked this repo, I can no longer open PDFs C-c n n. Toggle-debug-on-error shows this backtrace report:
I can only get the org-noter buffer opened in a new frame without its accompanying PDF. I don't know how to proceed from here, any suggestion? |
@ffsammak I had the same problem and solved it as described here. |
@pobermei Thanks a million, that solved many issues, I can now use https://rapidshare.io/13fL/org-noter-plus-quotes.webm Summary:
All in all, I am happy with the current status of org-noter, although I believe this package can be further developed to unleash its full potential. For reference, I put here my current setup for org-noter-plus:
|
One more related question: hitting
This leaves me with a question, which quote text would be useful for org-transclusion, the header entry or the quote |
Sorry for coming up with many questions here: but it is related to the old org-noter setup may be, now I have two PDF references showing this old format inside property drawer of the notes:
While the one I see now is the following with org-noter-plus:
Do you know by chance a method to convert the old locations into the new format? If not, this means I am left with the manual option to do them one by one by hand. Thanks. |
That's the link format used by org-pdftools for org-noter integration. To convert back-and-forth between that format and the precise org-noter format (your second example), you can reuse its conversion functions org-noter-pdftools--location-cons-to-link and org-noter-pdftools--location-link-to-cons |
@pobermei Thanks these two functions are indeed handy. However, I could only get the conversion working with one of them: This gave me I also tried: also Even tried this but to no avail, I ran out of ways how to put the argument. Any help would be very much appreciated. |
👋 @pobermei thank you for the @ffsammak @petermao's fork has a really nice breakdown of how various note insertion methods work in this version vs the original org-noter. I'm glad you are finding our efforts useful. Peter has done a lot of work trying to bring order to the note insertion options. He's also been trying to contact the original author to see if he's ok with us taking over maintenance. This is why the installation is as cumbersome as it is right now. Our end goal is to have this package continue on under it's original name in MELPA. |
@dmitrym0 thanks a lot the breakdown by @pobermei makes a lot of sense. However, I don't know what is going on with my setup, I assigned the keybindings mentioned there and started to test one by one, the screencast below shows three note-taking functions: I used to press Also it would be nice if the quoted text will be formatted to fill the paragraph |
@ffsammak I previously didn't link the correct function for the full conversion which should be org-noter-pdftools--convert-to-location-cons Hence, this should work now as follows: (org-noter-pdftools--convert-to-location-cons "pdf:~/Zotero/storage/U8R3PPTC/airoldiInterleukin12Interleukin12Receptor2002.pdf::4++9.78")
=> (4 . 9.78)
That is @petermao's great work. I'm just another user. |
@ffsammak lets break this out, if you don't mind (otherwise it's hard to keep track of what's going on):
|
Hi, Thanks a lot for maintaining this gem package. I wonder how one can get this functionality of quoting text from a PDF by M-i (org-noter-insert-precise-note) to quote text automagically between the #+BEGIN_QUOTE and #+END_QUOTE property drawers. I saw this functionality in your video precisely at 2:40.
Below is my init.el setup:
Emacs: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
of 2023-02-27
The text was updated successfully, but these errors were encountered: