How I Format My Homeworks in LaTex

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ค. 2024
  • I've been doing all my homework in LaTex, and figured I'd show you how I format the homework. Pretty straight forward, as I said I'm sure there's better ways to go about it so be sure to check the comment section for peoples input.
    This link isn't a video, but really is all you need to learn how to install LaTex.
    Installing texstudio on Windows:
    www.wellesley.edu/lts/techsup...
  • บันเทิง

ความคิดเห็น • 276

  • @tylerweitzel7768
    @tylerweitzel7768 5 ปีที่แล้ว +440

    Hey Andrew, here's some of the LaTeX tips I've picked up from my math department.
    First, if you use \begin{align}, it acts just like \begin{equation} but you can align things without having to call the {split} environment.
    If you want the equation to not be numbered, you can just put a star in the environment declaration. E.g. \begin{equation*} or \begin{align*}

    • @TRex266
      @TRex266 5 ปีที่แล้ว +6

      Don't use align for single line equations though out of habit

    • @tylerweitzel7768
      @tylerweitzel7768 5 ปีที่แล้ว

      @@TRex266 Just curious, why not?

    • @TRex266
      @TRex266 5 ปีที่แล้ว +8

      @@tylerweitzel7768 when you have a short equation. e.g. E=mc^2, the equation environment will reduce the space between the line above and your equation if possible, align doesn't do that. Try it out :)

    • @zonico5826
      @zonico5826 4 ปีที่แล้ว

      Do you now what's the difference between begin{equation*}... and /{... ?

    • @ozkroca9003
      @ozkroca9003 3 ปีที่แล้ว

      I always use the IEEEeqnarray from the IEEEtrantools package to format multiple equations. It is the best, trust me. Give it a try. You can have no number by just adding
      onumber at the end of the row, or have subequations, and align all the equations' equals.

  • @MonsterManStan
    @MonsterManStan 3 ปีที่แล้ว +336

    You don't like wide margins? But then where are you going to write the proof?

    • @aidenochoa5857
      @aidenochoa5857 3 ปีที่แล้ว +22

      Okay fermat. Stinky boomer

    • @santiagoarce5672
      @santiagoarce5672 3 ปีที่แล้ว +12

      Where are you supposed to not have enough space for your truly marvelous proof, without the narrow margins?

  • @davidjohnston4240
    @davidjohnston4240 3 ปีที่แล้ว +475

    Why am I here when I no longer do homework and I've already written a 432 page book in latex?

    • @almates3662
      @almates3662 3 ปีที่แล้ว +52

      Idk David, why are you here?

    • @gtrigwell4058
      @gtrigwell4058 3 ปีที่แล้ว +12

      did i ask

    • @IStMl
      @IStMl 3 ปีที่แล้ว +4

      @@gtrigwell4058 no but who cares

    • @Kage1128
      @Kage1128 3 ปีที่แล้ว +28

      Because you want attention

    • @victorserras
      @victorserras 3 ปีที่แล้ว +1

      Answer: because you're bored.

  • @brettbrandom4524
    @brettbrandom4524 5 ปีที่แล้ว +299

    You should follow David Mermin's advice and number EVERY equation. Just because you think an equation isn't important enough to be numbered doesn't mean someone else thinks the same thing. And if for some reason you find yourself needing to reference an 'unimportant' equation when showing this to someone, it's really awkward to say "the one equation below the second paragraph under equation 26."

    • @Goku17yen
      @Goku17yen 5 ปีที่แล้ว +28

      this, i accidently submitted a paper before without numbering each equation and was embarrased as all hell when i got it back, cuz prof said he aint gonna be searching for my shit if it aint labeled right. ref commands on latex are a must

    • @adamfattal468
      @adamfattal468 3 ปีที่แล้ว +8

      Goku17yen I mean he has a point, but nonetheless, that’s a pretty stuck up thing to say

    • @bloodtalon1
      @bloodtalon1 3 ปีที่แล้ว +1

      You can just add the number to that equation later when you need it...

    • @Moreoverover
      @Moreoverover 3 ปีที่แล้ว +3

      My TA said that you should only number an equation if you're going to reference it in the text. That's it.

    • @brettbrandom4524
      @brettbrandom4524 3 ปีที่แล้ว +7

      @@Moreoverover I disagree with the opinion of your TA, and this is advice I've gotten from professors. Look up "What's Wrong With These Equations?" by David Mermin, in which the author provides some advice on how to incorporate equations into scientific writing, offering a few rules on the matter and including the rule I mentioned in my comment (he calls it "Fisher's Rule"). It's full of good advice, but here's a relevant segment:
      For although you, dear author, may
      have no need to refer in your text to the equations you therefore left unnumbered, it is presumptuous to assume the same disposition in your readers. And though you may well have acquired the solipsistic habit of writing under the assumption that you will have no readers at all, you are wrong. There is always the referee. The referee may desire to make reference to equations that you did not. Beyond that, should fortune smile upon you and others actually have occasion to mention your analysis in papers of their own, they will not think the better of you for forcing them into such locutions as "the second equation after (3.21)" or "the third unnumbered equation from the top in the left-hand column on p. 2485." Even should you solipsistically choose to publish in a journal both unrefereed and unread, you might subsequently desire (just for the record) to publish an erratum, the graceful flow of which could only be ensured if you had adhered to Fisher's rule in your original manuscript.

  • @thebigoeuph
    @thebigoeuph 5 ปีที่แล้ว +501

    Use the Physics Package, trust me, it super good.

    • @__donez__
      @__donez__ 5 ปีที่แล้ว +16

      I second this

    • @TRex266
      @TRex266 5 ปีที่แล้ว +3

      Yesss

    • @vianeyavilaperez1063
      @vianeyavilaperez1063 3 ปีที่แล้ว +17

      I'm sad I just hear about this

    • @adamfattal468
      @adamfattal468 3 ปีที่แล้ว +12

      Been using latex for a while, but never heard that. What is it?

    • @thebigoeuph
      @thebigoeuph 3 ปีที่แล้ว +7

      Adam Fattal A blessing. Look it up and you’ll find a wonderful world.

  • @ratonespotnes
    @ratonespotnes 5 ปีที่แล้ว +225

    What I think the comment on not using newcommand is that you are defining one command per bases vector effectively making three commands for what it should be just one with an option to tell it wich vector it is. So for example if you use:
    ewcommand{\bvec}[1]{\hat{e}_#1} and then called with \bvec{x} you can replace x with anything, making it much more flexible and useful.

    • @uchihamadara6024
      @uchihamadara6024 5 ปีที่แล้ว +7

      Thanks for this, didn't know you could do this.

    • @klassjostedt
      @klassjostedt 5 ปีที่แล้ว +11

      Actually, the way LaTeX parses things, you could write \bvec x (i.e. space instead of curly brackets) and get the same result! Saves some key strokes

    • @realwermos
      @realwermos 3 ปีที่แล้ว +11

      @@klassjostedt ... At the cost of readability. Sure, you can also write \frac ab and save even more keystrokes, but it takes a lot more thought to decipher that than the simple yet easy-to-understand \frac{a}{b}.
      Readability vs. conciseness is a constant debate in programming, but I think LaTeX is concise enough as is.

    • @Koospa
      @Koospa 3 ปีที่แล้ว +2

      @@realwermos who's gonna read latex markdown after you've rendered it successfully? unless you want readability for the unfortunate case when you forgot to add a curly brace somewhere, and can't find where

    • @realwermos
      @realwermos 3 ปีที่แล้ว

      @@Koospa In this case, you're probably right. It doesn't really matter.
      But in general, I would say that it's best not to skimp on the curly brackets because they not only help the reader understand what's going on where, it helps you find the portion of code where you messed up on faster.
      Also, the mismatched curly brace thing isn't really a problem because in TeXMaker, the matching curly braces are highlighted. In the video, you can see that TeXStudio does the same thing. The only time that would matter is if you decide to go with a bare bones editor like Notepad or something.

  • @nestycb6702
    @nestycb6702 3 ปีที่แล้ว +26

    Your teacher must be really good for you to care about having such a wonderful homework format.

    • @AndrewDotsonvideos
      @AndrewDotsonvideos  3 ปีที่แล้ว +28

      Oh I do it for my benefit, not theirs.I’d much rather read a latex document when I’m reviewing for an exam than whatever I scratch on a piece of paper

    • @nestycb6702
      @nestycb6702 3 ปีที่แล้ว +5

      @@AndrewDotsonvideos oh okay that makes more sense HAHA

    • @bishrutthapa5175
      @bishrutthapa5175 3 ปีที่แล้ว +14

      @@nestycb6702 he replied a comment on a video that was uploaded 2 years ago

  • @thekandyman300
    @thekandyman300 4 ปีที่แล้ว +19

    Just starting my physics major, definitely going to start using LaTex in the future! Appreciate the vid!

  • @caldersheagren
    @caldersheagren 5 ปีที่แล้ว +130

    For problem numbers, I use \begin{enumerate}
    \end{enumerate},
    and to shrink the margins, I use \usepackage{fullpage}.
    Also, you can make a .sty file with all your packages and commands and input it on every new document via \input{/filelocation/foo.sty}.
    Hope this helps!

    • @AndrewDotsonvideos
      @AndrewDotsonvideos  5 ปีที่แล้ว +41

      Why did I not think of just creating a sty file...

    • @hellmrf
      @hellmrf 3 ปีที่แล้ว

      You can also \ProvidesPackage in your *.sty, put it under LaTeX packages directory, run texhash and just \usepackage.

  • @anushreea6074
    @anushreea6074 3 ปีที่แล้ว +1

    Today was like the first day i used latex and I'm super satisfied with what I did. This video was of so much help.

  • @abid5330
    @abid5330 5 ปีที่แล้ว

    Thanks for showing us how you do it! Honestly your format looks nice and I can't wait to use some of the tips!!!

  • @justafriend5361
    @justafriend5361 5 ปีที่แล้ว +2

    I once made a beamer template in the CI layout of our university. A heck of a work, but worth it. Especially if you use LaTeX to write your reports which you have to present afterwards.
    The reason why I did this?
    They messed up with the slide master in their template. And I like the toc at the side of the slides, so I made my own style sheet for the beamer slides.

  • @chaussebenjamin
    @chaussebenjamin 3 ปีที่แล้ว +5

    If there are packages and patterns you end up using a lot, I sugest you make yourself a style file (.sty). The syntax is a bit different so you'll have to look it up but it's quite the time saver.
    Also, I don't know either why someone bothered you with newcommand but I do have a tip for your usecase: You can incorporate arguments in newcommand by adding a set of square brackets. Here's an example:
    ewcommand{\eh}[1]{\hat{e}_#1} You can now use \eh{x} as an alternative to \ehx and \eh{y} as an alternative to \ehy. I just think it feels more elegant.

  • @MrEmpoleon1000
    @MrEmpoleon1000 3 ปีที่แล้ว +20

    I feel like if I were to hand in my homework like this, my prof would think I just downloaded the document off the internet and renamed it lol

    • @dxrbkn5145
      @dxrbkn5145 3 ปีที่แล้ว

      I mean
      If its a good teacher, he would take his time to read the document and verify its yours
      If its some half-assed one, good luck

    • @MrEmpoleon1000
      @MrEmpoleon1000 3 ปีที่แล้ว

      @@dxrbkn5145 Wait, your saying good teachers do exist?

    • @Pablo-wg1lw
      @Pablo-wg1lw 3 ปีที่แล้ว +1

      For your homework, you may wish to try TeXmacs.

  • @AndrewDotsonvideos
    @AndrewDotsonvideos  5 ปีที่แล้ว +347

    Andrew doesn’t know how to take dot products confirmed 😂😅

    • @LeonardoSanchez-qi5yd
      @LeonardoSanchez-qi5yd 4 ปีที่แล้ว +27

      As always just one person manage to score on the left of the curve, I won't say his name, but everyone knows it's Andrew.

    • @jumefoc
      @jumefoc 3 ปีที่แล้ว +2

      whew im teaching the basics to myself rn and you got me really confused 😅

  • @shauneisner7730
    @shauneisner7730 3 ปีที่แล้ว +5

    Hey Andrew, kinda small but if you write in bold, italics, or underline a lot (I do for labeling solutions) ctrl+b, ctrl+u or ctrl+I will auto insert the \textbf, \textit, etc commands in most latex environments. Also custom environments changed my life.

  • @youcann
    @youcann 3 ปีที่แล้ว +32

    Put $...$ around every 'x' in the normal text to format it correctly as a physical quantity/variable.

    • @Alche_mist
      @Alche_mist 3 ปีที่แล้ว +2

      For single characters, this is probably enough, but it's more robust (and less error-prone) to do inline math with \(...\) instead of $...$.

  • @megafireguy6
    @megafireguy6 3 ปีที่แล้ว

    My discrete mathematics professor just told us we would get a bonus point on our homework (out of 10 points) if we formatted it in LaTeX, and I immedataly remembered this video. Might fuck around and try it out, it might be even more useful in the future.

  • @ijcurtis
    @ijcurtis 3 ปีที่แล้ว +64

    \section{Problem 1} produces 1. Problem 1
    \section*{Problem 1} produces Problem 1

  • @Synthetica9
    @Synthetica9 3 ปีที่แล้ว +1

    I used to hate wide margins, until I discovered the tufte-latex package. It gives a 1.5 column layout where you can use the margins for figures and footnotes, which is really useful

  • @sergiohuaman6084
    @sergiohuaman6084 3 ปีที่แล้ว

    I am also a LaTeX learner, but I found VSCode + LaTeX Workshop + Github the interface for me. VS Code is modern, it shows the expected text in real time as tips, it has the feature of PDF in browser synced and update everytime you save, and you can commit every change and keep a record of changes or collaborate.

  • @Mystixor
    @Mystixor 3 ปีที่แล้ว +26

    I'm starting physics in like three weeks and I never heard of this before 😅 time to do some reading!

    • @vinvic1578
      @vinvic1578 3 ปีที่แล้ว

      Good luck !

    • @paulafernandez9663
      @paulafernandez9663 3 ปีที่แล้ว +2

      I learned this existed 2 months into studying physics. Don't worry, if you haven't already, you'll get there fast.

  • @shawnway9324
    @shawnway9324 3 ปีที่แล้ว +1

    One thing to note is that most symbolic packages output latex math code. mathematica and emacs calc will convert any statement to code for latex, making it easy to copy and paste results into a paper.

  • @pipertripp
    @pipertripp 5 ปีที่แล้ว

    This a great. Thx everyone for the really useful advice. I'm a total latex noon so all of this info is super useful.

  • @janmeyer6958
    @janmeyer6958 3 ปีที่แล้ว +3

    TeXmacs, the killer app for math homework

    • @Pablo-wg1lw
      @Pablo-wg1lw 3 ปีที่แล้ว +1

      Right, I would love a tutorial on TeXmacs!

  • @sfruizmiranda
    @sfruizmiranda 5 ปีที่แล้ว +4

    I recently started doing my calc 3 homework in latex too! Its really cool and fun

  • @ozkroca9003
    @ozkroca9003 3 ปีที่แล้ว

    To have multiple lines in the equation or multiple equations in the same place, consider using IEEEeqnarray from IEEEtrantools package. It is very versatile and more convenient to use.

  • @memesarelove8341
    @memesarelove8341 4 ปีที่แล้ว +9

    Man that date trick really saved me

    • @alexismisselyn3916
      @alexismisselyn3916 3 ปีที่แล้ว +3

      just make a fresh document the day you have to hand the homework in and copy paste all your questions in, then flex on everyone because you did all your homework in a few hours

    • @kivancthewalrus
      @kivancthewalrus 3 ปีที่แล้ว

      You can put any kind of date as an argument

  • @manasvishal25
    @manasvishal25 5 ปีที่แล้ว +4

    Hey Andrew, give a shot to LyX and make a video on that. You will surely love that. I use that for all my reports and papers.

  • @KingJellyfishII
    @KingJellyfishII 3 ปีที่แล้ว +1

    I've been doing all of my (admittedly simple) homework in plaintext, (drawing ascii graphs is fun :p) but this looks super cool, I've never seen anyone do something like that before for some reason.

    • @justgame5508
      @justgame5508 3 ปีที่แล้ว

      You draw your graphs using ascii symbols?😂😂

    • @KingJellyfishII
      @KingJellyfishII 3 ปีที่แล้ว

      @@justgame5508 I do indeed haha. Simple ones, just sketch graphs of course.

  • @Ender240sxS13
    @Ender240sxS13 3 ปีที่แล้ว +4

    I know this videos like a year old but it just got recommended to me which is weird because I'm in my 3rd year of an aerospace engineering undergrad and I just started investigating LaTeX for doing my aerodynamics homework and lab reports(damn google creeping on us). I haven't taken the plunge into the full on editors yet, mostly been using LaTeX to write equations in Word as it has an equation interpreter, but this showed how simple it can be so I might give it a try, just need to figure out how to insert pictures and diagrams...

    • @andrew_ray
      @andrew_ray 3 ปีที่แล้ว

      For pictures, use \includegraphics. For diagrams, you can \usepackage{tikz}, but tikz comes with the caveat that it's a bear to learn.

    • @Alche_mist
      @Alche_mist 3 ปีที่แล้ว

      @@andrew_ray On Windows, TikzEdt is an amazing editor of TikZ pictures with auto-recompile, so you see what you are drawing with your code.
      Also, you need like 5% of TikZ to start and do most of what you need.
      I'm no way near understanding advanced TikZ, but even the basic one is plenty useful. And you can slowly add to your repertoire.

  • @dxrbkn5145
    @dxrbkn5145 3 ปีที่แล้ว

    Took me like one month or two to get the basics but god damn my shit looks BEAUTIFUL
    It may be bothersome at first and more if you leave your assigments to the last possible hour... (I struggled a lot with bibtex) but holyyyyyy God damn man its the best.
    I wish I knew about this since highschool

  • @AngelMartinez-vg1nz
    @AngelMartinez-vg1nz 5 ปีที่แล้ว +10

    Yo Andrew in one of your previous video I saw in the background that you a have a binder. I was wondering if you can show us how you organize your stuff in it and the types of organization strategies you use.

  • @electrichanoi7244
    @electrichanoi7244 4 ปีที่แล้ว +13

    i litterally just started learning latex on overleaf

  • @markwarnecke931
    @markwarnecke931 3 ปีที่แล้ว +1

    You're my hero Andrew

  • @camiloatencio3662
    @camiloatencio3662 3 ปีที่แล้ว +1

    I always do my hw in Latex too. It looking so pretty must always give me extra points.

  • @debajyotisg
    @debajyotisg 5 ปีที่แล้ว +6

    Could you also do a video on how to do this for more involved subjects such as QFT or particle physics? One would require to draw diagrams and write a lot of integrals and Lagrangians. Will that still be economic over handwritten solutions? (You will have to solve it by hand anyway unless you cheat and use Mathematica or something :P)

  • @pipertripp
    @pipertripp 5 ปีที่แล้ว +5

    Doing a follow up vidya in a few months once you've incorporated some of the ideas that folks have shared here would be mint.

  • @andrewfischer-garbutt2867
    @andrewfischer-garbutt2867 3 ปีที่แล้ว +3

    When I do my homeworks' in LaTeX I like to use the exam environment. I feel like it makes things a lot easy

  • @not_ever
    @not_ever 3 ปีที่แล้ว +2

    If you use a text editor with snippet support, all those new command aliases you made won't be necessary. I use vim with ultisnips but you might prefer VSCode. You can also get a live update of your document so you don't have to recompile.

  • @jafetriosduran
    @jafetriosduran 3 ปีที่แล้ว

    For equations this could be more flexible than the align environment, and can be placed as a method
    \begingroup

    enewcommand{\arraystretch}{2}
    \begin{equation}
    \label{ecuacion_uno}
    \begin{array}{>{\displaystyle}r >{\displaystyle}l}
    F &= m a
    \end{array}
    \end{equation}
    \endgroup

  • @marcioamaral7511
    @marcioamaral7511 5 ปีที่แล้ว +1

    Looks like CodeBlocks or Dev-C++ environment
    I think I can get used to it and make my equations look beautiful.

  • @jruss2892
    @jruss2892 3 ปีที่แล้ว

    I didn't know the new command function... nice!

  • @brandonberisford
    @brandonberisford 5 ปีที่แล้ว +3

    I've also been doing my homework and even retyping up my handwritten notes in LaTeX! Here's an example of my quantum homework I just turned in! drive.google.com/open?id=1M1SbXnrlpCdGsXesYh9ynB_Us9F5P_L_ also, for doing equations, you can also use the double money sign, $$ whatever your equation is $$, thats what I typically do, doesn't include a number either.

  • @zokalyx
    @zokalyx 5 ปีที่แล้ว +10

    Andrew I don't remember the name of it, but there is software that lets you transcribe images and screenshots of latex into actual latex code.

    • @youcann
      @youcann 3 ปีที่แล้ว

      detexify.kirelabs.org/classify.html

  • @thephysicistcuber175
    @thephysicistcuber175 4 ปีที่แล้ว +3

    Nice pauli matrix you got there.

  • @saptarshisahoo5075
    @saptarshisahoo5075 4 ปีที่แล้ว +12

    Ya we get it Andrew, Equation 69.

  • @user-sj2op6sp5t
    @user-sj2op6sp5t 2 ปีที่แล้ว +1

    Thanks a lot for video! How do it... Create document with data as result of working my program and export variables to LaTeX document. And when I will change my program and get new data, variables automatically will change in document.

  • @Kurd05
    @Kurd05 2 ปีที่แล้ว

    I was wondering, do physicists or students use Microsoft word to write their homework’s or research papers, or other programs like Latex?

  • @ozkroca9003
    @ozkroca9003 3 ปีที่แล้ว

    The reason why it is showing your new command as an error is that TexStudio does not recognkze it as a valid command. You can change that by adding it in the custom highlights options, I think

  • @blerman13
    @blerman13 2 ปีที่แล้ว

    I'm brand new to LaTeX,
    I would like to know how to make an email, with blue color and with hyperlink as MS Word is making it?
    Thanks

  • @chicken_nugget5438
    @chicken_nugget5438 3 ปีที่แล้ว

    this dude knows what he's doing in life
    h

  • @iddra1868
    @iddra1868 3 ปีที่แล้ว +2

    That font gave me PTSD from calculus exams.

  • @nilavametya7297
    @nilavametya7297 3 ปีที่แล้ว

    Hi. You might just make a new environment, say, "Problem". So that when you reference it (using \cref), it appears as "Problem 69" instead of "Section 69".
    Also I recommend using the physics package.

  • @compphysgeek
    @compphysgeek 5 ปีที่แล้ว

    tried to find whether somebody had already mentioned it, however, didn't see anything .. a way to create equations with no number you can add a * to the word equation: \begin{equation*} content \end{equation*} .. not sure, tho, whether the end equation needs a * as well. the * also works when you want to suppress section numbering \section*{Section Title}

    • @compphysgeek
      @compphysgeek 5 ปีที่แล้ว

      use \begin{eqnarray} or \begin{eqnarray*} if you want multiple lines

    • @compphysgeek
      @compphysgeek 5 ปีที่แล้ว

      and are you still including twice?

  • @VladInc
    @VladInc 3 ปีที่แล้ว +2

    its definitely useful. but i wouldn't use it for homework, unless my goal is to learn it. otherwise the homworks will take waaaaaay too long and that's time I could make more use of

  • @knightblad5631
    @knightblad5631 3 ปีที่แล้ว

    Hey Andrew, I just installed Miktex from your link, but my toolbar doesn't have all your nice stuff. For example, I see that you got the Structure tab showing your working directory, which would be nice for quickly moving files.

    • @user-we5ht9jy4q
      @user-we5ht9jy4q 3 ปีที่แล้ว

      Use overleaf, everything works out of the box, if you dont want to spent hours configuring the software on your PC. I remember I spent half a day once till I made it work in vscode like I wanted.

  • @TheHickjc1222
    @TheHickjc1222 3 ปีที่แล้ว

    Great video, thanks alot!

  • @ramakrishnasen4386
    @ramakrishnasen4386 3 ปีที่แล้ว

    You could use

    ewtheorem{prob}[section]{Problem}
    For creating a new command called '\prob' which would print 'problem' before your problem

  • @sathyakumarn7619
    @sathyakumarn7619 3 ปีที่แล้ว +1

    hi! what software do you and general academic group use for pictures?

    • @youcann
      @youcann 3 ปีที่แล้ว

      TikZ

  • @Axileoni
    @Axileoni 3 ปีที่แล้ว +1

    You can use \section*{} to hide the number.

  • @vivdeeplearning2261
    @vivdeeplearning2261 3 ปีที่แล้ว +1

    do yourself a favor and use emacs org-mode which has great LaTex support. or use vim. it will boost your productivity.

  • @StickySli
    @StickySli 3 ปีที่แล้ว +2

    I must learn LaTeX for my Research Project for my university's last semester, but I can't let go of Macrohard Onfire (Microsoft Office). Ours first semester they told us to start learning about styling and equations, and simply can't see why I should use LaTeX over a WYSIWIG editor like Office 2019.

    • @johnconrad4439
      @johnconrad4439 3 ปีที่แล้ว +1

      The math typesetting in TeX is way way more slick than what you get in MS Office. Plus packages. Not to mention, when you get to the point where you will be submitting scientific papers to journals or for conferences they will mostly ask that you submit a manuscript in TeX.

    • @Alche_mist
      @Alche_mist 3 ปีที่แล้ว +1

      @@johnconrad4439 Admittedly, the current versions of MS Office does accept LaTeX equation syntax.
      That said, you can do so much more quality typesetting with less work in LaTeX, especially if you need math (equation numbering is a glaring point that's done oh-so-much-better in LaTeX) or longer texts (think Master's thesis).
      Also, as was mentioned - the packages and personal macros can easily be a gamechanger.
      And don't even let me started on the ever-deeper rabbit hole that is TikZ for beautiful, directly-inset diagrams and graphics.

    • @johnconrad4439
      @johnconrad4439 3 ปีที่แล้ว

      @@Alche_mist MS Office does accept latex syntax but would you say the quality of the output is the same?

    • @Alche_mist
      @Alche_mist 3 ปีที่แล้ว +1

      @@johnconrad4439 The quality of a single equation? Yes.
      The quality of the whole document? Nope. No way. Especially in case of larger documents that tend to break in MS Office too easily even if you use all the "anti-breakage" tools it offers.

  • @SuperSampling
    @SuperSampling 4 ปีที่แล้ว

    Instead of using _"\textbf{Solution} …"_ you can use _"\paragraph{Solution} …"_ instead, in case you want to have better semantics in your document. Or make it a subsection* for that matter.

  • @a.s.l711
    @a.s.l711 ปีที่แล้ว

    hi im new to this, what is the software shown here to write Latex?

  • @spaceowl5957
    @spaceowl5957 3 ปีที่แล้ว +6

    In Germany studying CS we're actually required to submit pretty much all our coursework as latex
    But I always do it in markdown and then compile it to latex and no one will ever know muahahahaahaha

    • @AndrewDotsonvideos
      @AndrewDotsonvideos  3 ปีที่แล้ว +2

      genius

    • @bzofcin12
      @bzofcin12 3 ปีที่แล้ว

      What a madman you are!
      I bet, you even wrote your programs to output data in LaTeX format didn't you!
      Damn tables and their '&' separation!

  • @bojohnson7137
    @bojohnson7137 5 ปีที่แล้ว +1

    I've used LaTex before but using Lyx is even easier. I've been using it for my homework for the past few weeks or so and it's amazing. Like using Word for LaTex.

  • @mrastronomer6924
    @mrastronomer6924 4 ปีที่แล้ว +7

    Starting now first month in uni🧐

    • @madalena4145
      @madalena4145 3 ปีที่แล้ว

      How is going? And what are you studying?

  • @Brassard1985
    @Brassard1985 3 ปีที่แล้ว

    How do you remove the number in front of the section and subsection headings?

    • @galois2559
      @galois2559 3 ปีที่แล้ว +1

      Use \section* and \subsection*

  • @Goku17yen
    @Goku17yen 5 ปีที่แล้ว +4

    are those tensor notes class notes? if so, how r u managing to do them on latex. or maybe u just copying your handwritten stuff onto latex? hmm
    also ive been just using stnadard physics packag, and its been going great so far, so i dont need multiple ones, cuz ima forget what i use lol

    • @AndrewDotsonvideos
      @AndrewDotsonvideos  5 ปีที่แล้ว +2

      No, they're for my videos on tensor calc. Which I haven't forgotten about! I just haven't had the time to iron everything out lately.

    • @Goku17yen
      @Goku17yen 5 ปีที่แล้ว +1

      ahh that makes much more sense

  • @peterlewerin4213
    @peterlewerin4213 3 ปีที่แล้ว +4

    I am super late to this party, but to whomever it may concern: _don't_ reduce the margins. The wide margins seem like a waste of space and look weird if you are accustomed to e.g. Word, but they are correct typographic margins, determined by centuries of trial and error. The "white/black" balance and the shorter line length makes the text much more readable. It takes some time to get used to, but after that it's just wonderful.

  • @TTFreezy
    @TTFreezy 3 ปีที่แล้ว

    Does anyone know exactly what TeX editor he uses? I downloaded the one he linked in the description but it looks nothing like his.

    • @youcann
      @youcann 3 ปีที่แล้ว +1

      Texstudio

  • @maciejziobro6334
    @maciejziobro6334 3 ปีที่แล้ว

    U could try using vs code instaed of tex studio it looks better and it has nice plugins for latex

  • @lucidmath5481
    @lucidmath5481 ปีที่แล้ว

    andrew pls vid on how to set this up

  • @Pablo-wg1lw
    @Pablo-wg1lw 3 ปีที่แล้ว

    Hi Andrew, did you try TeXmacs for your homework? Idea for a new video :-?

  • @AbhikalpUnakal
    @AbhikalpUnakal 3 ปีที่แล้ว +1

    Markdown FTW !!

  • @tommywang9842
    @tommywang9842 3 ปีที่แล้ว

    you should bold your e since it is a vector

  • @JosheyG34
    @JosheyG34 3 ปีที่แล้ว

    If you don't want an equation to have a number just use \begin{equation*}

  • @mickolesmana5899
    @mickolesmana5899 2 ปีที่แล้ว

    My friend: Why were you formating like that, are you stupid?
    Me : I am

  • @thebigoeuph
    @thebigoeuph 5 ปีที่แล้ว +1

    Also, why do you have the braket package twice?

  • @Ptr-NG
    @Ptr-NG 5 ปีที่แล้ว +2

    Lol... Juts elegant--- the mathematics!

  • @matlablatexsoftwares
    @matlablatexsoftwares 3 ปีที่แล้ว

    Good job

  • @omartaouil
    @omartaouil 3 ปีที่แล้ว

    What's your laptop model

  • @insertoyouroemail
    @insertoyouroemail 3 ปีที่แล้ว

    why import braket twice?

  • @user-rg5qr6zn9m
    @user-rg5qr6zn9m 5 ปีที่แล้ว

    Thanks for you

  • @oraviram
    @oraviram 5 ปีที่แล้ว

    I don't want to spam it, but I just want to mention my comment on your video about doing your homework in LaTex. I don't actually have any experience with LaTex, but I think what I said there may help your writing be a little prettier.

  • @nora-yu5qj
    @nora-yu5qj 3 ปีที่แล้ว

    Hello,how can I enter a vector symbol.

    • @peterlewerin4213
      @peterlewerin4213 3 ปีที่แล้ว

      The most common way is probably *\vec{x}* for the vector _x_ .

  • @HomoGeniusPDE
    @HomoGeniusPDE 5 ปีที่แล้ว +1

    The only things that I think could save you time is:
    if you just want to write a single line equation and you want it by itself dont use the \[ command just use $$(whatever you want here)$$ its like the command you used to write an equation inline $(whatever you want here)$ but just gives it its own centered separate line.
    if you want to write multiple lines where the equalitys are lined up i would reccomend not writing \begin{equation}\begin{split} just write \begin{align} (this will number the equations) or \begin{align*} (this will omit the numbers)
    also there should be an option where you can hit command/ctrl + enter/return to compile the document...not a big tip but all those clicks take up time especially since you are like me and compile after every line. hope this helps!

    • @realwermos
      @realwermos 3 ปีที่แล้ว +1

      \[…\] does the exact same thing as $$…$$ except that the former is more LaTeX-like. In fact, I believe it was said on tex.stackexchange.com that the latter syntax isn't even mentioned as a possible command for displaystyle math in Lamport's book.

  • @thexavier666
    @thexavier666 3 ปีที่แล้ว

    3:30 nice

  • @nathanbranson3765
    @nathanbranson3765 3 ปีที่แล้ว

    How do you do feynman diagrams in latex?

    • @GatesOlive
      @GatesOlive 3 ปีที่แล้ว +1

      you'd have to give a look to the TikZ package

    • @youcann
      @youcann 3 ปีที่แล้ว +1

      Nicely explained here:
      www.overleaf.com/learn/latex/feynman_diagrams

  • @stumbling
    @stumbling 3 ปีที่แล้ว

    My proudest achievement in LaTeX was drawing this coupled harmonic oscillator diagram:
    pastebin.com/5dfTyJYP
    You can even adjust the angle and spring tension to your liking.

  • @JonatanContrerasjononthemoon
    @JonatanContrerasjononthemoon 3 ปีที่แล้ว

    Why wasn't the author "ya boi" though? :/

  • @cicciobombo7496
    @cicciobombo7496 5 ปีที่แล้ว

    Did you mess up the inner product?🤔

    • @AndrewDotsonvideos
      @AndrewDotsonvideos  5 ปีที่แล้ว

      Ciccio&Bombo lol I sure did! I accidentally wrote the dot product of each basis vector with its self. I guess I knew what I meant to write because a would still be the answer

    • @DracoMhuuh
      @DracoMhuuh 5 ปีที่แล้ว

      @@AndrewDotsonvideos would you not get a+2? Each unit vector squared give you 1.

  • @magoninhogamer
    @magoninhogamer 3 ปีที่แล้ว

    I have the same laptop :D

  • @dhacker0921
    @dhacker0921 3 ปีที่แล้ว +3

    This guy funny af, he should start a TH-cam channel or something.

    • @adamfattal468
      @adamfattal468 3 ปีที่แล้ว

      Yeah maybe one day if he’s consistent enough, he can reach a point where he’s severely obnoxious and over-rated

  • @philandchill6201
    @philandchill6201 3 ปีที่แล้ว +1

    WhY dOnT u UsE MiCRoSoFT wOrD

  • @liselottenguyen3519
    @liselottenguyen3519 3 ปีที่แล้ว

    Does anyone know how to adjust headers font size?

    • @evancarpenter
      @evancarpenter 3 ปีที่แล้ว

      \setlength\headheight{15 pt} in the preamble should set it to 15 pt

    • @liselottenguyen3519
      @liselottenguyen3519 3 ปีที่แล้ว

      @@evancarpenter thank you but I mean the headers of the sections, eg: 1. Introduction. Do you know how to adjust its font size?

    • @evancarpenter
      @evancarpenter 3 ปีที่แล้ว

      Phương Ngân ah, the only way I know to change font size would be with \documentclass[FONT SIZE HERE]{article}
      Or
      The geometry package

    • @liselottenguyen3519
      @liselottenguyen3519 3 ปีที่แล้ว

      thank you very much

  • @exodia_right_leg
    @exodia_right_leg 3 ปีที่แล้ว

    Bro we got the same laptop

  • @sebastianguerrero1251
    @sebastianguerrero1251 4 ปีที่แล้ว

    How and where did you learn this? I'm trying to get started using Latex but dont know where to start.

    • @akanay108
      @akanay108 4 ปีที่แล้ว

      you could start with overleaf to get used to it's really easy to use
      www.overleaf.com/

  • @largewoollybugger
    @largewoollybugger 3 ปีที่แล้ว

    LaaaaTex. It's like La-la land -(la land) + Texas -as or equivalently, LaaaTex = La-la land -(la land) + Texas -as.
    While I'm at it, you might as well skip the installation steps to use LaTex and just go to www.overleaf.com

    • @ninesquared81
      @ninesquared81 3 ปีที่แล้ว +2

      The X is a chi, not a Latin x.