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 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.
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!
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...
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
@@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...
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.
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.
@@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.
@@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.
@@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.
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.
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?
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.
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.
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"?
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?
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.
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
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?
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?
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.
@@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.
@@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.
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!
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.
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 ')
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 ;)
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!
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).
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! 👍🏽
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?
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 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.
@@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
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.