Тёмный

Perfect Emacs Org Mode Exports to LaTeX - Straightforward Emacs 

Jake B
Подписаться 3,9 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@elspuddo
@elspuddo 9 месяцев назад
I just saw your presentation at EmacsConf2023. I really enjoyed it and found it inspiring! I'm a subscriber and big fan of your videos. This video specifically inspired me to get into making my Org documents gorgeous when exported PDF, and turned me into an admirer of the whole TeX ecosystem, thanks!
@JakeBox0
@JakeBox0 9 месяцев назад
Thanks so much for your comment! I really appreciate it, I've seen your video on exporting HTML and like it a lot!
@user-jy1dt6dk8o
@user-jy1dt6dk8o 3 года назад
The tutorial is amazing! This deserves much more attention.
@JakeBox0
@JakeBox0 3 года назад
Thank you very much for the kind words.
@tompurl2067
@tompurl2067 Год назад
This was a fantastic tutorial. I've been using org-mode for many years and still learned a ton watching this brief video.
@zwwang5395
@zwwang5395 2 года назад
Thank you. Your videos are so helpful and high-quality! Really looking forward to seeing more emacs videos on academic stuff.
@JakeBox0
@JakeBox0 2 года назад
You’re welcome, thanks for the kind compliment. Academic stuff is what comes naturally to me, being in school. Any requests/suggestions?
@zwwang5395
@zwwang5395 2 года назад
@@JakeBox0 That's great to know! And sorry I miss the last part of your comment. Yeah, I do have few things in mind. For example, I'll be very interested to see how emacs can be used to managing references (including inserting citations, cross-references, even downloading papers from scihub etc.). I am currently use org-ref, but I feel like my setup is not so elegant (In fact, my bib files are super messy). So I'll be definitely interested to see how those functionalities fit in your workflow.
@zionpsyfer
@zionpsyfer 2 года назад
Great intermediate/advanced tut. I agree on the setup file/custom export class being the best way in most cases and this is a good breakdown. Thanks for sharing with us!
@JakeBox0
@JakeBox0 2 года назад
You're welcome! Glad you agree. I'm a fan of this method.
@eddas5175
@eddas5175 3 года назад
You made everything really easy to understand, great tutorial. Thank you for the video!
@JakeBox0
@JakeBox0 3 года назад
Glad it was helpful!
@Achy1les
@Achy1les 3 года назад
Great tuto again. But, I have searched the internet, YT videos and others and have not seen anyone teaching, explaining how to write a Latex template or an Orgmode file that supports multiple languages for exportation. Even Overleaf has only one example of writing a Latex code for writing in Arabic in the multilanguage session. What I am looking for is a Latex template or Orgmode file with Latex options to write Classic Humanities texts: a mix of Hebrew (Classic and also Modern), Greek (Classic and also modern), English and Latin derivate Languages - like Portuguese, Italian and Spanish... I haven't found any Latex wizard doing this magic so far... Writing Latex using a single Language like English isn't that a challenge... The real challenge is mixing RTL with LTR languages in a single document... Thx for sharing again...
@JakeBox0
@JakeBox0 3 года назад
Have you heard of Polyglossia? Thanks for the comment. www.overleaf.com/learn/latex/Multilingual_typesetting_on_Overleaf_using_polyglossia_and_fontspec ctan.org/tex-archive/macros/unicodetex/latex/polyglossia?lang=en
@Achy1les
@Achy1les 3 года назад
@@JakeBox0 Yes, I do have heard of Polyglossia... But, what I mean is finding a good video showing the setup. And even in this example, it is not Classical Hebrew, but a modern one... But I will investigate more...
@meathead919
@meathead919 3 года назад
This was very, very helpful! Thank you so much, saved me HOURS.
@JakeBox0
@JakeBox0 3 года назад
Very glad it helped, thanks for the comment.
@sandeshthakuri2117
@sandeshthakuri2117 2 года назад
I'm know little about org and latex. The first time watched this video I didn't like it at all. Now this the video I've been looking for.
@JakeBox0
@JakeBox0 2 года назад
You're welcome!
@mbarton98
@mbarton98 3 года назад
Nice video. I was using a text expansion to quickly add those latex lines to my org files, but will give the setup file a try. Another topic idea would be how to have a gitlab process perform the export process. I have some documents that require regular updates and although this works on my system, it does require significant setup to give to someone else to maintain if they are not daily users of Emacs. I could probably show them how to use the web interface of gitlab to update the new fees/dues in a file that org babel would then process to export a document to pdf.
@JakeBox0
@JakeBox0 3 года назад
Thank you, glad it helped. That sounds very interesting and a bit complex, maybe I'm not fully understanding what you want/what your workflow is. Does this project: github.com/fniessen/orgmk put you on the right track? I'd make a video if I had a similar workflow myself, unfortunately I do not :( apologies. Thanks for the nice comment. Also, at a certain point if you're automating things I've heard of people using Python scripts to 'autofill' and export LaTeX, that could be interesting as well.
@mbarton98
@mbarton98 3 года назад
@@JakeBox0 Thanks. I found something to try here: ljvmiranda921.github.io/notebook/2018/04/23/postmortem-shift-to-docker/ So basically when you commit a change to the org file the pdf gets generated from a cloud service. For now, if I have to generate a docx file, I use pandoc to export from org using another docx file as a style template. Looking forward to your other videos.
@MrOlegrom
@MrOlegrom 3 года назад
Thank you for the tutorial! Please make more about emacs! github/gitlab would be great to store the files!
@JakeBox0
@JakeBox0 3 года назад
Thanks for your nice comment. I plan to make more videos but don't have too many ideas at the moment. Would love some suggestions/requests.
@MrOlegrom
@MrOlegrom 3 года назад
@@JakeBox0 I am thinking of practical use of Emacs for different tasks. I am not a programmer, but I write books. So I am thinking of how to use Emacs for that purpose. Also time management could be another topic.
@JakeBox0
@JakeBox0 3 года назад
@@MrOlegrom Ah, good ideas! I use Emacs in that way as well, I am a light programmer. Maybe I can do a video on logging time in Orgmode. Thanks for that idea.
@danv8718
@danv8718 3 года назад
Fantastic video. I'll definitely be using this system. Thanks a lot.
@JakeBox0
@JakeBox0 3 года назад
Thank you very much, pleased it could help!
@erikalmaraz1554
@erikalmaraz1554 2 года назад
Thank you for this succinct org latex setup video! I was trying to figure out how to setup a latex header file that would work with org, the documentation they have can be quite complicated to the point of obfuscation.
@JakeBox0
@JakeBox0 2 года назад
You are welcome! I agree, it takes a lot of experience.
Год назад
All your videos are amazing. Your code has helped me a lot to build my own setup
@haidermirza3674
@haidermirza3674 3 года назад
Thank you so much for this video.
@JakeBox0
@JakeBox0 3 года назад
You are so welcome!
@SuperLingx
@SuperLingx 2 года назад
Hi Jake. Thank you for the video; this is really helpful!
@JakeBox0
@JakeBox0 2 года назад
You're welcome. I see you've edited out your question, glad it was (hopefully) solved.
@SuperLingx
@SuperLingx 2 года назад
@@JakeBox0 Thank you! Yes, I realized it was caused by dots in the imagine’s names, which latex thought it was a type of file format.
@sB3rg
@sB3rg 2 года назад
For some reason when I use your setupfile it creates this extra page at the beginning of my pdf with the following text printed at the top. pdfauthor=My Name, pdftitle=The Title, pdfkeywords=, pdfsubject=, pdfcreator=Emacs 27.2 (Org mode 9.4.4), pdflang=English Any suggestions on how to remove this?
@sB3rg
@sB3rg 2 года назад
Nevermind, I needed to specify the hyperref depency in the headers. Silly me.
@abdel-dz
@abdel-dz 3 года назад
Very interesting, thanks for the video ❤️
@JakeBox0
@JakeBox0 3 года назад
You're welcome. Thanks for the nice comment.
@user-ln2mu2sc4t
@user-ln2mu2sc4t 2 года назад
Thanks, friend. Good and usefull explanation.
@JakeBox0
@JakeBox0 2 года назад
You're welcome, friend.
@dangcoolgalaxy
@dangcoolgalaxy Год назад
Great video, thank you for the tutorial!
@ptracton
@ptracton Год назад
This was a really good start. Is there a place to get the example ORG file you were working on? It would be nice to see how you put in the equations and tables in that file.
@JakeBox0
@JakeBox0 Год назад
Thank you. Unfortunately I don't have that. Equations are either #+BEGIN_EQUATION ... #+END_EQUATIOn or $5 + 5 = 10$ or whatever in dollar signs. Tables I do natively with orgmode, I think it's something like org-table-create, I forget the exact command.
@bobkoss280
@bobkoss280 2 года назад
The resources opens as raw text. How can I render it so it's readable?
@JakeBox0
@JakeBox0 2 года назад
Sorry for that. Try downloading the file and opening it in a browser. I’m going to probably change the format of that soon.
@XR5PL
@XR5PL 11 месяцев назад
How to add a nice-looking checkbox to the SETUPFILE?
@JakeBox0
@JakeBox0 11 месяцев назад
What do you mean?
@pvgelder1976
@pvgelder1976 3 года назад
Hello Jake, thanks for this video; my org-mode now looks much better than the default :-). Any chance you know how to tweak your configuration so that org-inlinetasks will export as per the default (ie, inside a bordered area) rather than as a list with two items: 1 the inline task itself and item 2 "END"?
@JakeBox0
@JakeBox0 3 года назад
You're very welcome, glad it helped! Unfortunately I have no experience with org-inlinetasks, I can look into it in a little while. Have you looked at the generated .tex file to see if it is wrapped in any useful \blocks{} that you could customize?
@ernestamoore4385
@ernestamoore4385 2 года назад
Thanks! One question: how do I know which LATEX I have installed in my system?
@JakeBox0
@JakeBox0 2 года назад
I'm not quite sure what you mean by which LaTeX. I'd suggest you take a look here: www.latex-project.org/get/
@artistaurbana9712
@artistaurbana9712 Год назад
Thanks. In which class will each heading and subheading be formatted into?
@JakeBox0
@JakeBox0 Год назад
I'm not sure I understand the question. What do you mean by class? Like documentclass, e.g. article? book? The way I show you to create the template it's article.
@BenjaminAlexander
@BenjaminAlexander 3 года назад
Curious if you could compare/contrast “export” system with “publish” system within org-mode.
@JakeBox0
@JakeBox0 3 года назад
That's a good question. By publish system you're referring to the system by which you can export/organize a number of files (say, HTML?) as a batch export? orgmode.org/manual/Publishing.html
@chiasung
@chiasung 2 года назад
This tutorial is great. One question regarding the reference. How to add citations from a bibtex file?
@JakeBox0
@JakeBox0 2 года назад
Hi, unfortunately I'm not sure on this as it's not something I've done. I'd bet that you can just use a normal LaTeX command in the org source to do that?
@rashie
@rashie Год назад
👍👍
@JakeBox0
@JakeBox0 Год назад
😁😁
@shree2009ful
@shree2009ful 3 года назад
Hi Jake, your video is amazing. I could understand a little bit. I would like to have a custom title which should be defined in the "latex class". How to go about it?
@JakeBox0
@JakeBox0 3 года назад
Thank you sir. By custom title, does doing #+TITLE: not work? You can see in the file in my video that is how I specify the title. I’m not sure what you mean by defining it in the latex class.
@shree2009ful
@shree2009ful 3 года назад
@@JakeBox0 Thank you, Jack. It means somewhat that. When I mention #+TITLE etc., in my org document, the rendering should be the way I want instead of the default "letter class". So, I need to define a class within in ".emacs" file, like we define "{section ....} as given in the latex export documentation given in the org-mode site. Please refer to orgmode.org/worg/org-tutorials/org-latex-export.html. By the way, I went through your SETUP file, I could understand a little more and gained some confidence. And I guess, many people in the commands require some kind of that.
@JakeBox0
@JakeBox0 3 года назад
@@shree2009ful I see. Are you saying you want to change the way the title looks in the exported PDF? Like change the font? You can do a Google search for customize LaTeX title and see if you like anything. Sorry I can't help more! Good luck.
@fzap2970
@fzap2970 3 года назад
Thank you for this very helpful video. Is there a possibility to change the exported font family (e.g. to sans serif) or sth. else? (Sorry, I'm kind of a beginner). ;) Thank's!
@JakeBox0
@JakeBox0 3 года назад
Yes, there is! Read into this to understand how to do it with plain LaTeX/XeTeX www.overleaf.com/learn/latex/Font_typefaces and then look into customizing org-latex-compiler. If you need more direction feel free to comment again and I'll give some code.
@fzap2970
@fzap2970 3 года назад
@@JakeBox0 Fantastic, thank you! Solved it.🙃
@tagged5life
@tagged5life 3 года назад
great! I saved the top part as a yasnippet. How do you do latex autocomplete and latex syntax highlighting in org-mode?
@JakeBox0
@JakeBox0 3 года назад
Thanks! Good move. As for autocomplete/syntax there isn't a way to have that in org (AFAIK, you could look into that) but for long LaTeX bits I just do a #+BEGIN_EXPORT latex #+END_EXPORT and open that with org-edit-special (C-c ')
@f24816
@f24816 2 года назад
Emacs is just too complicated to customize, I wish I could use it the way you describe but I just get more support with a tool like Obsidian Notes. I guess I just give up. Maybe when they release Emacs 2 ;)
@JakeBox0
@JakeBox0 2 года назад
Not the right mentality. You can do it! I did it, and so have many others. More "support" from Obsidian? I'd argue Emacs has the most support, because you yourself can customize and control each and every aspect of Emacs; in this way you need not depend on anyone else for "support." Obsidian seems like a nice tool. But it is no Emacs. If you're happy with Obsidian, use it. But I say give Emacs a go. You can do it!
@subhajitmishra007
@subhajitmishra007 Год назад
This is nice. But I fail to see the improvement in writing. Because one can do use a similar set up file structure in LaTeX as well.
@JakeBox0
@JakeBox0 Год назад
What's nice is that it saves you from a lot of boilerplate and makes certain things easier, like making tables. And of course you get the full power of Orgmode (which I suppose allows the aforementioned).
@subhajitmishra007
@subhajitmishra007 Год назад
I see. Thanks! Do you get autocompletion for latex in org-mode as well? I am sorry I have never used latex either inside emacs or in org-mode! Please let me know. I would love to try. Thanks again! 👍🏽
@JakeBox0
@JakeBox0 Год назад
@@subhajitmishra007 You're welcome. I believe yes.
@MrOlegrom
@MrOlegrom 3 года назад
Hi! Followed your tutorial, but the setup file doesn't change anything, as if there was no setup file at all. whatever I do in the setup file it doesn't make any difference - I've tried to change the page size, the margins but it didn't do anything. What am I missing?
@JakeBox0
@JakeBox0 3 года назад
Interesting. Did you make sure to include the SETUPFILE with the full, direct path? And is each line of the SETUPFILE prefixed with the #+LATEX_HEADER: ?
@MrOlegrom
@MrOlegrom 3 года назад
@@JakeBox0 Yes, I did. I just copied your setup file and tried to change margins and papersize.
@JakeBox0
@JakeBox0 3 года назад
@@MrOlegrom Hm, that's strange. Have you looked at the output .tex file and tried compiling that? Are you sure you're changing things properly? Look at the .tex file and see if the lines in your SETUPFILE are included.
@MrOlegrom
@MrOlegrom 3 года назад
@@JakeBox0 Thank you! I am very new to latex, so must have missed something. Ill look into it.
@yash1152
@yash1152 Год назад
any way to convert to conTeXt?
@JakeBox0
@JakeBox0 Год назад
Not familiar with it :( sorry. Good luck
@levo9198
@levo9198 9 месяцев назад
yo hago algo parecido con un include, quiza mas "tuneado"
@JakeBox0
@JakeBox0 9 месяцев назад
¿Haces algo más tuneado? ¿Como lo haces?
@levo9198
@levo9198 9 месяцев назад
@@JakeBox0 realmente no es nada especial como usar lisp. Ademas de alguna clase, uso plantillas que incluyo como tu con setup muy "cargadas" ademas de que he encontrado una forma sencilla de tener los encabezados y las notas al pie en sffamily y el cuerpo del texto en rmfamily usando inputenc que como sabras es muy limitado en este aspecto, de esta forma obtengo una apariencia mas moderna
@kevinklement2621
@kevinklement2621 2 года назад
"LaTeX" is pronounced la-tech, not la-tex. The X was originally a Greek chi.
@JakeBox0
@JakeBox0 2 года назад
True. I find myself saying latex more often. Hard to change old habits.
@itsrobelschwarz7248
@itsrobelschwarz7248 8 месяцев назад
Is there anyway to get an updated preview of the export once the org file is saved? like latex-preview-pane best
@JakeBox0
@JakeBox0 8 месяцев назад
Hi, do you mean right when the file is saved? If so, there isn't a way that I'm familiar with but it shouldn't be too hard to work out if you're interested. You'd want to automatically generate LaTeX on save (easy with a hook or something), and then use something like latexmk to automatically compile and preview the changed LaTeX file. Good luck, report back if you come up with something. I could also attempt a little guide/package if there is interest.
@itsrobelschwarz7248
@itsrobelschwarz7248 8 месяцев назад
@@JakeBox0 Thank you so much! I will report back findings if/when I get to it
Далее
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
11:28
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 14 млн
Bike Challenge
00:20
Просмотров 17 млн
Fast, Async LaTeX Previews in Org Mode
13:13
Просмотров 8 тыс.
Emacs for LaTeX from Scratch
25:23
Просмотров 11 тыс.
Never Write Plain LaTeX Again with Emacs' Org-Export!
18:52
Three HUGE Mistakes New Emacs Users Make
13:28
Просмотров 94 тыс.
~/.dotfiles in 100 Seconds
13:54
Просмотров 417 тыс.
Using Emacs 44 - An Org mode and PDF-tools workflow
14:41