org-roam-ui icon indicating copy to clipboard operation
org-roam-ui copied to clipboard

[ENH] A few enhancements and minor bugs

Open deb75 opened this issue 4 years ago • 2 comments

Hello,

A few enhancements and minor bugs (if not errors from I) :

  • add a scroll bar to the browser side bar. Otherwise, it can take time to get down to the end of the file
  • when I click on a graph node which is a heading in a file, the side bar opens the right file but does not position itself at the given heading. Instead, the side bar always displays the file beginning. But, it works well when I choose to open in emacs.
  • equations within \begin{equation} ... \end{equation} are rendered well, except when there is "\label{myeq}" within the environment. In that case, the "\label{myeq}" is displayed as raw text.
  • in the sidebar, the cite:myref links are not clickable, a forbidden icon appears. But in the video demonstration, it looks like on can follow the reference links.
  • the reference links do appear in the graph itself, if I click on them, the side bar opens, but displays :
<!DOCTYPE html> <html><head> <title>500 Internal Error</title> </head><body> <h1>500 Internal Error</h1> <p>Internal error when handling this request.</p> <pre>error: (file-missing Opening input file No such file or directory d:/xxx/yyy/org-roam/myref) </pre> </body></html>

whereas I can open the pdf file (myref.pdf) with C-c C-o in the org file.

Regards

deb75 avatar Oct 18 '21 14:10 deb75

  1. Scrollbar is somewhat OS dependent, you are using Windows 10 right? There should be a scrollbar but I will double check it.
  2. Will be added soon
  3. I can't do much about that unfortunately, not supported in KaTeX atm. I'm looking for a way to just hide them, ill keep you posted https://github.com/KaTeX/KaTeX/issues/2003 4/5 That depends on whether those references are picked up by ORUI at all. They need to either a) refer to a node with the :ROAM_REFS: property set to cite:myref, or b) need to refer to a citation which is picked up by org-roam-bibtex. I'm not exactly sure what you with "being able to open the pdf with C-c C-o".

tefkah avatar Oct 18 '21 17:10 tefkah

Thanks for your reply.

Yes, I am using windows 10 and google chrome.

Regarding citation links, currently I was only used to use org-ref and it seems org-roam-bibtex was not enabled by default when I open org-roam files. Then, C-c C-o calls an org-ref function. It is not clear yet to me how org-roam-bibtex works.

deb75 avatar Oct 19 '21 10:10 deb75