org-ref - Exporting nicely formatted cross-references to non-LaTeX from

  Рет қаралды 827

John Kitchin

John Kitchin

Күн бұрын

org-ref was originally designed for writing scientific papers that would be converted to a PDF via LaTeX, where LaTeX would do all the cross-reference processing. That is not helpful though if you want to export to HTML or ODT, or any other non-LaTeX format! This video introduces org-ref-refproc, which provides similar functionality as cleveref in LateX to non-LaTeX exports. For example, you can get clever prefixes that automatically add Figure/Table etc in HTML, with reasonable numbering, etc.
org-ref: github.com/jki...

Пікірлер: 21
@newdlf2567
@newdlf2567 3 жыл бұрын
Thank you Dr. Kitchin for this video. Eventhough it didn't go as you planned, but it shows that even experts might have technical difficulties.
@JohnKitchin
@JohnKitchin 3 жыл бұрын
So true!
@RobHickswm
@RobHickswm 3 жыл бұрын
Yes the :results silent was tripping me up. Have you tried libreoffice rather than openoffice? libre is more actively developed and probably less crash prone. Also, I am having success with exporting latex equations into native odt equations (with refs) to odt using 1) tex:t in #+OPTIONS, 2) installing latexmlmath, and 3) using this in my init.el: ;; embed word equations natively in exported odf (setq org-latex-to-mathml-convert-command "latexmlmath \"%i\" --presentationmathml=%o") You have to use \[ and \] rather than $, which is a bummer, also Word tends to open the odt and display the equations better than open office.
@JohnKitchin
@JohnKitchin 3 жыл бұрын
I switched to libre office yesterday, and it works better indeed! I don't know why a return of nil messes up the emacs-lisp blocks, one day i will fix that!
@JohnKitchin
@JohnKitchin 3 жыл бұрын
Thanks for the tip on the options. I can get some better results with those. These are documented at orgmode.org/manual/LaTeX-math-snippets.html.
@boonejan
@boonejan 3 жыл бұрын
Thanks for the great package and videos! I have the following question: will this referencing also work for latex environments like theorem, proposition, lemma etc. E.g. using special blocks like #+begin_theorem ... #+end_theorem Would I then label these blocks with "#+name:"?
@JohnKitchin
@JohnKitchin 3 жыл бұрын
in theory all those things could be made to work. They are not supported out of the box at the moment though, I would have to add them. Could you add an issue at github.com/jkitchin/org-ref/issues for this, and include some examples of what those look like in an org-file?
@boonejan
@boonejan 3 жыл бұрын
@@JohnKitchin thanks for considering this; I have added an issue.
@JohnKitchin
@JohnKitchin 3 жыл бұрын
This one was not that good. I will probably redo it tomorrow morning with natmove. Hopefully you get the idea!
@emmanuelgoldstein9710
@emmanuelgoldstein9710 Жыл бұрын
Excellent presentation, professor Kitchin. I am getting the error: "script/OpenDocument export failed: Symbol’s function definition is void: org-ref-refproc" when I try that code for exporting to open document. I have installed org-ref anew. it should be working...
@JohnKitchin
@JohnKitchin Жыл бұрын
Probably you need to add (require 'org-ref-refproc), like here github.com/jkitchin/org-ref/blob/master/examples/refproc.org#html
@emmanuelgoldstein9710
@emmanuelgoldstein9710 Жыл бұрын
​@@JohnKitchin Thanks, that fixed the export to ODT.But when I use the code to export to docx, i get "wrong type argument: consp, nil"
@JohnKitchin
@JohnKitchin Жыл бұрын
@@emmanuelgoldstein9710 you should post an issue with all the details at github.com/jkitchin/org-ref/issues.
@artistaurbana9712
@artistaurbana9712 Жыл бұрын
My variable org-export-before-parsing-hook is org-attach-expand-links. Should I change it to org-ref-refproc?
@artistaurbana9712
@artistaurbana9712 Жыл бұрын
Or do I understand that these functions you are trying are the ones in the exporter (org-ref export)?
@JohnKitchin
@JohnKitchin Жыл бұрын
@@artistaurbana9712 It depends on what you are trying to do. you only need org-ref-refproc if you are using ref links and exporting to something other than latex.
@artistaurbana9712
@artistaurbana9712 Жыл бұрын
@@JohnKitchin What I mean is that those lines of code achieve the same as exporting to org-ref export.
@artistaurbana9712
@artistaurbana9712 Жыл бұрын
I mean this: (require 'org-ref-refproc) ;; (let ((org-export-before-parsing-hook '(org-ref-refproc))) (org-open-file (org-html-export-to-html))) achieves the same as exporting to org-ref export HTML in the exporter menu.
@JohnKitchin
@JohnKitchin Жыл бұрын
@@artistaurbana9712 I don't think that is true. I think the org-ref exporters only handle citations, you have to do the refs separately. I think.
org-ref: natmove and refproc (take 2)
16:03
John Kitchin
Рет қаралды 246
org-ref version-3 overview
28:42
John Kitchin
Рет қаралды 4,6 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Rewriting My Website In Org Mode
13:36
DistroTube
Рет қаралды 37 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
Figures, subfigures and figures side-by-side in LaTeX all you need to know.
16:56
WordTeX - A WYSIPCTWOTCG Typesetting Tool
5:13
Tom Wildenhain
Рет қаралды 391 М.
What is a File Format?
12:58
LiveOverflow
Рет қаралды 182 М.
Obscure File Types & Compression (PicoCTF 2022 #10 'file-types')
17:06
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,4 МЛН