How to use LaTeX and why all textbooks look the same

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • Science textbooks and papers all look pretty similar. The reason for that is LaTeX. It's a brilliant tool for scientific writing and in this video I explain why we use it and give a beginners tutorial about how to write in LaTeX.
    NOTE: The Atom Editor has now been sunsetted and is no longer available. You can still edit LaTeX documents in Overleaf. I have since moved on to editing in the JetBrains IDEs - specifically using IntelliJ Idea Ultimate for LaTeX editing.
    ~~ If You're New~~
    I'm Thomas, a 3rd year Astrophysics student studying at the University of St Andrews. This is my channel where I talk about science (specifically physics and astronomy) and make videos on life at university. If you have any questions about uni life please do post them in the comments below!
    ~~ Timestamps ~~
    Introduction: 00:00
    What is LaTeX?: 03:14
    Start of Tutorial: 06:10
    Editors: 06:42
    Getting Started: 08:39
    Fonts: 21:00
    Protected Symbols: 22:35
    Sections: 25:30
    Equations: 27:20
    Referrring to Equations: 29:40
    Greek Letters: 32:50
    Figures: 34:20
    Conclusion: 39:25
    ~~ What You Need for LaTeX ~~
    ~ Online Only: www.overleaf.com
    ~ Offline (Run on your Computer): We're going to need a list.
    TeXLive (Lets you compile): tug.org/texlive/acquire-netin...
    An Editor - Many are available. I currently use IntelliJ Idea Ultimate as mentioned in the edit above (UPDATED DECEMBER 2023)
    ~~ Playlists ~~
    University Videos: • University Videos
    Short Science Series: • Short Science
    Astro Videos: • Astro Videos
    Physics Videos: • Physics Videos
    Vlogs: • Vlogs
    ~~Contact Me~~
    Twitter: @thomas_rintoul
    Email: inversionscience@gmail.com
    ~~My Gear~~
    Camera: Canon EOS 70D
    Lens: Canon EF-S 17-55mm f/2.8 USM
    Microphone: Rode SmartLav+
    Lighting: Raleno Softbox & On-Camera Soft Light
  • НаукаНаука

Комментарии • 60

  • @leohimself910
    @leohimself910 Год назад +25

    A note on version control: At some point I putting my latex docs into a git repo, and I haven't been looking back ever since. You're able to recover your document, easily work on multiple machines and always check your repo for some things you've had in the doc at some previeous point. Just put your temp files etc in a .gitinore or so

    • @liamoshea4299
      @liamoshea4299 Год назад

      One of the nicest features of overleaf, as far as i am concerned, is its tight integration to github. Get the best of all worlds.

    • @Ladas552
      @Ladas552 10 месяцев назад

      Damn, so scientist are just programers who try to disect the overly complicated code of nature because some dude really liked the if statements

  • @alexgodeye3031
    @alexgodeye3031 Год назад +5

    If this man keeps at it, he's gonna be huge as a RUclipsr.

  • @piacere_lore
    @piacere_lore Год назад +2

    Just found this video as I'm writing my undergrad thesis in astronomy, thanks a lot! Suuuper useful!

  • @kelvinmalunga2387
    @kelvinmalunga2387 2 года назад +6

    A really useful tool to exist on the internet indeed. Loved everything about the video. Thanks

  • @josephdevine7875
    @josephdevine7875 3 года назад +3

    Been looking for a video like this for a while, cheers 👍

  • @eshabaweja
    @eshabaweja Год назад +4

    Finally! Someone who explains each line of code from the creation of the .tex file to the end. Thank you :")

  • @zacharypalmertree
    @zacharypalmertree 2 года назад +5

    This was a very useful video! I have been trying to setup Latex with Vim in WSL 2 Ubuntu with no success. This approach seems much more straightforward. Thank you.

  • @aric2
    @aric2 Год назад

    Hey Thomas, just started to learn latex. Thanks for this awesome video!

  • @Marco-kd7jk
    @Marco-kd7jk Год назад

    Great breakdown. Subscribed.

  • @markanderson8066
    @markanderson8066 Год назад

    I had the Haliday and Resnick Physics text asxa student. And Resnick was our lecturer! Great demos!

    • @ThomasRintoul
      @ThomasRintoul  Год назад

      It's amazing how much more engaging lectures can be if you've got someone who can do good demos!

  • @PeterPrevos
    @PeterPrevos 3 года назад +4

    LyX is a great LaTeX editor that makes it much easier to use.

  • @ARMAN12456
    @ARMAN12456 2 года назад +1

    Hi, thank you for your video. I've started using Atom for latex documentation. As soon as I run something, the PDF is being opened in the system PDF reader as well as in the atom window. Can you please let me know how to refrain from the system PDF reader?

  • @FlaminTubbyToast
    @FlaminTubbyToast Год назад +11

    I would say that learning code makes learning latex Easier. Compiling/packages/and documentation, are fundamental concepts in code and they all play out here.

    • @haraldurkarlsson1147
      @haraldurkarlsson1147 Год назад

      I would tend agree although there are some differences of course. But the basic idea of writing short code and then compiling to spot errors. That habit serves one well in pretty much any language.

    • @ThomasRintoul
      @ThomasRintoul  Год назад

      Agreed. I had been exposed to quite a few coding languages (Python, R, Maple) before I first used LaTeX. I attended a workshop taught by one of the lecturers in the School of Physics in St Andrews and it was definitely taught with the knowledge we at least knew a little about coding. It helps!

  • @trevinbeattie4888
    @trevinbeattie4888 Год назад

    When I discovered these tools (way back in the 1990’s) I started learning TeX with the help of Donald Knuth’s “The TeXbook” and practiced writing documents with that before starting LaTeX. Raw TeX is much more low-level and doesn’t provide the uniform document styles LaTeX has, but I’m a software developer and doing it this way helped me understand how LaTeX works under the hood. The main thing I like about TeX is it’s a very stable language and well documented, unlike proprietary document formats like MS Word which seems to change every version or so and doesn’t always play nicely with 3rd-party editors.

    • @ThomasRintoul
      @ThomasRintoul  Год назад

      Oh I basically use LaTeX for just about everything these days. It's just so much better than fighting with Word

  • @mrphysics2625
    @mrphysics2625 2 года назад +1

    Hey dude Thank you for making this video. for whatever f****ing reason my physics program didnt teach us anything about LaTeX in undergrad.

  • @SimonTiger
    @SimonTiger 3 года назад +31

    Sublime is bad, it's not free while Atom and VSCode are. Btw I have also seen people use VIM which is popular on Linux and it's a text editor where you navigate around with the keyboard instead of the mouse. I don't use it but it's worth mentioning

    • @jgchicken2133
      @jgchicken2133 2 года назад +8

      Hi, I use Vim with vimtex plugin and they works great! Vim with the right plugin is no worse than VSCode imo.

    • @SpudMackenzie
      @SpudMackenzie Год назад +4

      Sublime is good. It was my favorite editor during my undergrad. It's nagware so I only actually bought the license after like 10 years of use. It hits a good balance of being lightweight where atom and vscode definitely aren't while being more full featured than say notepad++ and less arcane than vim or emacs.

    • @bogdanskout3326
      @bogdanskout3326 Год назад

      @@jgchicken2133 Have you ever tried emacs? 😂😂

    • @jgchicken2133
      @jgchicken2133 Год назад +2

      @@bogdanskout3326 My professor use eMacs but I prefer Vim, its more familiar to me

    • @your-mom-irl
      @your-mom-irl Год назад

      VSCode is not free (as in freedom)
      Although there's a libre version called codium or vscodium. I tried and it's pretty good if you are used to that kind of editor, it's pretty much the samr as vscode just eithout the MS branding and telemetry

  • @IznbranahlGoose
    @IznbranahlGoose Год назад

    A friend of mine swears by Mathematica when it comes to writing documents. While Mathermatica is known for equation solving and programming you can also create publishable documents with it.
    I've tried it and it has a 'decent' WISIWYG interface for writing that includes equations however I found it rather lacking in publication ready tools. If they're there at all they're poorly documented.

  • @FinancialEngineering-cp5ef
    @FinancialEngineering-cp5ef Год назад

    Latex is great, but I would always recommend one to use a linux OS with vim or nvim as it just allows for greater freedom than these online latex editors.

  • @AriHoresh
    @AriHoresh Год назад +3

    My team and I are working on some open-sourced biology and chemistry books, and this video made things SO much easier for us. You are awesome, keep it up!

    • @ThomasRintoul
      @ThomasRintoul  Год назад +1

      I'm so glad! This sort of thing is exactly why I made this video. So happy it was useful for you!

  • @kvelez
    @kvelez Месяц назад

    You should do an update but using VSCode.

  • @SimonTiger
    @SimonTiger 3 года назад +4

    Oh, is % for comments? Because you just plopped in "% some text" without explaining it not far into the video

  • @pra.
    @pra. Год назад

    Did you continue using Atom after it’s depreciation?

    • @ThomasRintoul
      @ThomasRintoul  Год назад +2

      I moved on from it to using JetBrains IDEs like Idea Ultimate and Pycharm with an educational license. Sad to see it getting archived though

  • @petebryan04
    @petebryan04 Год назад

    what is the switches on the keyboard?

  • @IanTeves-e2p
    @IanTeves-e2p 13 дней назад

    overleaf or vim tex is what I use.

  • @Andrumen01
    @Andrumen01 2 года назад +1

    Word has become quite good at equations, the looks. The numbering of equations in Word is always a problem, though.

    • @kenopyowo
      @kenopyowo Год назад +4

      also the best ide on the market by far

    • @TAP7a
      @TAP7a Год назад

      The handling of bibliographies is also incredibly tiresome in Word. Not as tiresome as formatting and numbering equations, because you only have to sort the bibliography once properly, but hardly frictionless. And images (with captions) are still... yeah.
      Word has come a long way, but it's still not LaTeX.

  • @prtygrl5077
    @prtygrl5077 Месяц назад

    Any reason that you don't use Lyx software? may be you're promoting that online tool? just curious

    • @ThomasRintoul
      @ThomasRintoul  Месяц назад

      To be honest I've never heard of LyX. I was using Atom at the time because it was a free editor that I liked the flexibility of using. Now Atom has been discontinued sadly. I now use the JetBrains IDEs - programs like PyCharm for python programming and IntelliJ Idea for everything else. I'll also sometimes use Overleaf for LaTeX now as well, as long as I don't need to write anything on the go because it depends on internet access.
      Ultimately, it doesn't matter what editor you use - so use whatever works for you!

    • @prtygrl5077
      @prtygrl5077 Месяц назад

      @@ThomasRintoul aha, now I know, you're promoting online tools 😅 ok ok, let's assume you don't know about lyx. Hope the online tools you promote pay you well for the unwavering support you provide for them.

    • @ThomasRintoul
      @ThomasRintoul  Месяц назад

      I'm not promoting them for money. They do not pay me. It's just the tools I use - mostly with university licences
      Additionally, the JetBrains IDEs are offline tools

  • @cheeseplated
    @cheeseplated 5 месяцев назад

    Didn't see it anywhere so for anyone wondering: utf-8 is a way if representing the text internally. If you dont specify it it may default to ASCII (i think?, don't quote me on this) Which doesn't have characters such as ü, ç, ß, etc. so they wont show up correctly. utf-8 has all those characters so it will work, nowadays comuters will usually default to more modern representations, but older languageslike LaTeX sometimes still need utf-8 manually specified.

  • @yolamontalvan9502
    @yolamontalvan9502 4 месяца назад

    Látex is a technology of the 80’s. But I would like to learn it if it is free. Thanks for the info. I tried PDF and PostScript to make graphics, but they were hard to learn. PostScript was OK but PDF was even harder because it is not a programming language like PostScript.

  • @matteopiccioni196
    @matteopiccioni196 Год назад +1

    Bro atom is deprecated it will disappear soon

    • @ThomasRintoul
      @ThomasRintoul  Год назад

      I know. This video is a couple years old now. It was nice while it lasted. The rest of the video is still accurate though.

  • @konsamtambradhwaja3870
    @konsamtambradhwaja3870 9 месяцев назад

    It's a very useful video! Thank you for making this video.💯❤

  • @ricseeds4835
    @ricseeds4835 Год назад

    I'm sorry but can anyone read what he's typing?

  • @prtygrl5077
    @prtygrl5077 Месяц назад

    As a ms word user (and it's good), the equations are worst with MS Word. TBH it's sh!!t

    • @ThomasRintoul
      @ThomasRintoul  Месяц назад

      Oh I totally agree. It's better than it used to be, but if you have to do anything with a lot of equations, figures or references, LaTeX is by far superior - particularly for long documents

  • @theultimatereductionist7592
    @theultimatereductionist7592 Год назад +1

    I did my 274-page doctoral dissertation for Rutgers University in 2000
    and published 8 peer reviewed math papers from 2001 to 2012 all in MS Word + Mathtype.
    I began with Mathtype in 1997. I've heard of tex/latex since I entered graduate school at Rutgers in math in 1988.
    I have never figured out how to use them. Tried over a dozen times.
    That is how worthless and user-unfriendly and horrible tex/latex are.

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 2 года назад +1

    As a Mac user I use TeXShop. TeXMaker which runs on both Mac and PC is also good but I prefer TeXShop.

  • @Coolblueocean2001
    @Coolblueocean2001 2 года назад +1

    Too long of an intro. Cut it short, and waste less time.