Intro to LaTeX **Full Tutorial** Part II (Equations, Tables, Figures, Theorems, Macros and more)

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • Get started with LaTeX using Overleaf: ► www.overleaf.com/?.... My thanks to Overleaf for sponsoring today's video.
    ►Part I of my tutorial on LaTeX is here: • Intro to LaTeX : Learn...
    ►The rest of my LaTeX playlist is here: • LaTeX Tutorials
    0:00 Intro to LaTeX and Overleaf
    1:46 Formatting (bold, italics, underline)
    4:40 Equation References
    6:28 Align, Split & Multiline Equation
    12:32 Tables and Tabular
    17:39 Figures
    20:30 New Theorem Environments
    26:00 Custom Macros
    A partial list of the various commands used in this video (see the above documentation for more info):
    Boldface text: \textbf{blah}
    Italics: \textit{blah}
    Underline: \underline{blah}
    Equation Environment: \begin{equation}blah\end{equation}
    Label the equation: \label{blah}
    Reference the equation later
    ef{blah}
    Align multiple equations \begin{align}blah & blah\\ blah & blah\end{align}
    Split equations \begin{split}blah & blah\\ blah & blah\end{split }
    Put an equation on multiple lines: \begin{multline}blah\\blah\end{multline}
    Make a table \begin{tabular} (hit enter in Overleaf will autocomplete the rest)
    Put the above into a table environment with \begin{table}blah\end{table}
    Make a figure with \begin{figure} (hit enter in Overleaf to autocomplete the rest)
    Make a newline with
    ewline
    Make a theorem environment with
    ewtheorem{name}[numbering]{Name} (needs \usepackag{amsthm}
    Make a new command with
    ewcommand{}{}
    Check out MY MATH MERCH (Collab with Beautiful Equations)
    ►beautifulequations.net/pages/...
    COURSE PLAYLISTS:
    ►DISCRETE MATH: • Discrete Math (Full Co...
    ►LINEAR ALGEBRA: • Linear Algebra (Full C...
    ►CALCULUS I: • Calculus I (Limits, De...
    ► CALCULUS II: • Calculus II (Integrati...
    ►MULTIVARIABLE CALCULUS (Calc III): • Calculus III: Multivar...
    ►VECTOR CALCULUS (Calc IV) • Calculus IV: Vector Ca...
    ►DIFFERENTIAL EQUATIONS: • Ordinary Differential ...
    ►LAPLACE TRANSFORM: • How to solve ODEs with...
    OTHER PLAYLISTS:
    ► Learning Math Series
    • 5 Tips To Make Math Pr...
    ►Cool Math Series:
    • Cool Math Series
    BECOME A MEMBER:
    ►Join: / @drtrefor
    SOCIALS:
    ►Twitter (math based): / treforbazett
    ►Instagram (photography based): / treforphotography

Komentáře • 139

  • @DrTrefor
    @DrTrefor  Před 3 lety +21

    If you didn't catch Part I in the series that introduced the basics you might want to go back and check it out here: czcams.com/video/Jp0lPj2-DQA/video.html&ab_channel=Dr.TreforBazett. My huge thanks to @Overleaf for #sponsoring today's videos. Overleaf is truly an awesome platform that makes writing LaTeX so.much.easier. so check them out at overleaf.com. Two more videos in this series coming soon:)

    • @DrTrefor
      @DrTrefor  Před 3 lety +2

      Part III coming in sept:)

    • @DrTrefor
      @DrTrefor  Před 3 lety +1

      @Naman 🅥 Two weeks from today:)

    • @aashsyed1277
      @aashsyed1277 Před 3 lety

      @Naman 🅥 hi how did u highlight your v
      ?

    • @aashsyed1277
      @aashsyed1277 Před 3 lety

      @Naman 🅥 oh ok

    • @1potdish271
      @1potdish271 Před 2 lety

      Could you please provide link to latex playlist!!! I cannot find playlist on your channel playlist. Thank you :)

  • @No1ze3
    @No1ze3 Před 3 lety +76

    I remember I had to learn LaTeX at the beginning of the pandemic just to send my math homework. These kind of videos help A LOT. Thank you :3

  • @zharfantasy
    @zharfantasy Před 2 lety +16

    I love your energy Dr.! Thanks for this amazingly enjoyable video despite being 30 minutes long :)

  • @TSSPDarkStar
    @TSSPDarkStar Před 2 lety +22

    So many compliments to give I don't know if i can put it in one comment. Here I am trying to learn LaTeX for my physics courses this year, and i happen upon your first video in the series. Already INSANELY informative, lots of great tips and tricks, very beginner friendly, really got me excited about learning how to use LaTeX more. THEN i just so happen to see you somewhat recently post THIS and its 10X BETTER THAN THE FIRST ONE WHICH WAS ALREADY SO GOOD?! You really stepped up the video quality too from last year. Its definitely noticeable and appreciated and gives the video that extra smoothness and polish. The subtle camera movements to focus in on the important bits are *chefs kiss*. Not to mention you yourself are engaging and funny at the same time to match the utility of the content. Way to go, earned my sub, really hope you keep it up!

  • @chouthuysen
    @chouthuysen Před 2 lety +7

    This was so helpful! I’m currently using your tips in my JANNAF papers and dissertation write-up :) please keep making these videos if you have the time.

  • @JimSmithInChiapas
    @JimSmithInChiapas Před 2 lety +8

    These are good tutorials that teach how to do truly useful things, and will save new LaTex users a lot of time.

  • @muhammadnaqib461
    @muhammadnaqib461 Před rokem +3

    Thank you Dr. Trefor!! Your Tutorial is very interesting and easy to understand, you really help me understanding LaTeX!! You deserves the world Dr. Trefor!!

  • @arnavbhavsar8567
    @arnavbhavsar8567 Před 2 lety +4

    Thank you so much doc. I knew about LaTeX earlier but I've learned a lot from this video

  • @Akhan-xu2xr
    @Akhan-xu2xr Před rokem +7

    Always interesting and clear. Thank you Prof

  • @GoatzAreEpic
    @GoatzAreEpic Před 3 lety +4

    Looking forward for part 3!!!!

  • @xiangli2944
    @xiangli2944 Před 2 lety +1

    Thank you ! The two vedios are pretty good, presenting abundant things in short time. I'll recommend the two videos to my friends.

  • @BlijVrouw
    @BlijVrouw Před 2 lety +3

    This is awesome. Thank you.

  • @saidfarid6382
    @saidfarid6382 Před rokem +2

    Hi dear professor
    Thank you so much for your help and advice.
    I really appreciate your job. I wish you peace and happiness under the sky of prosperity.
    All the best.
    Have a good time.
    Your follower from Algeria

  • @serk-s
    @serk-s Před 2 lety

    Okay, you helped me a lot. And in the context of this and the first part of this tutorial, you said several times, that we shall subscribe. You got me. I subscribed haha

  • @ilpreterosso
    @ilpreterosso Před rokem +1

    Ur my savior when I was writing my report bro, thanks a bunch

  • @garthreid355
    @garthreid355 Před 2 lety +1

    Thanks Alot Dr. Bazett for creating these videos on LaTeX.

  • @hrkalita159
    @hrkalita159 Před 3 lety +9

    First of all,I shocked how many equations of e he knows😂, really really great video ❤️🙏,make some more.

    • @DrTrefor
      @DrTrefor  Před 3 lety +3

      Haha there are so many more:D

  • @ogunsadebenjaminadeiyin2729

    Always interesting and clear. Thank you Prof.

  • @ausaramun
    @ausaramun Před rokem +2

    I'm beginning my LaTeX journey all thanks to you! :)

  • @YourAashique
    @YourAashique Před rokem +1

    This is looks like magic!

  • @codingWorld709
    @codingWorld709 Před 2 lety

    Your video is very useful to learn

  • @sakurasadkj5839
    @sakurasadkj5839 Před 2 lety +1

    fine video!

  • @alexanderseaordaya4683

    Thank you mr. Fantastic

  • @larrytrahan8260
    @larrytrahan8260 Před 2 lety

    Bị nghiện bài này từ thời Bảo Thy, ko ngờ lại có ngày được nghe idol mới trong lòng mình Đức Phúc cover lại. Cảm ơn em ĐP vì đã cover lại lắng đọng cảm xúc như vậy

  • @zachpence8283
    @zachpence8283 Před 3 lety +5

    Fun fact: in overleaf you can do the keyboard shortcuts for formatting (e.g. Ctrl+B for bold) and it will automatically type the syntax to create a bolded statement

    • @DrTrefor
      @DrTrefor  Před 3 lety +3

      How did I not know this?!?!?!?!? Of course they did that lol

    • @aashsyed1277
      @aashsyed1277 Před 3 lety

      Ok.

    • @aashsyed1277
      @aashsyed1277 Před 3 lety

      @@DrTrefor mention these in your new videos about overleaf!

  • @user-ig2ej6gw8n
    @user-ig2ej6gw8n Před 9 měsíci

    Great job

  • @naveenminhas7524
    @naveenminhas7524 Před 2 lety

    nice tutorial

  • @deltax7159
    @deltax7159 Před 2 lety +1

    You look like the math gate keeper in this thumbnail lol. “ you must answer my riddle to pass small child!” 🧙‍♂️

  • @StaticBlaster
    @StaticBlaster Před 3 lety +8

    If you know topology, you should consider making a tutorial series on basic general topology and possibly work your way through more advanced concepts like algebraic topology and differential topology, manifolds, etc. That would be cool. Thanks for considering this.

    • @DrTrefor
      @DrTrefor  Před 3 lety +6

      I actually plan to do this! I have a video on the very basics of algebraic topology with @tomrocksmaths coming out maybe next month, then more to come after that:)

    • @StaticBlaster
      @StaticBlaster Před 3 lety +2

      @@DrTrefor Awesome bro! I love math and physics! I can't wait.

  • @zhyanmrdn2580
    @zhyanmrdn2580 Před 2 lety +1

    Thx👍👍👍👍

  • @sdl9258
    @sdl9258 Před 9 měsíci

    Excellent.

  • @muhammadadil3981
    @muhammadadil3981 Před 2 lety

    Thank you very much sir ..... sir can you make a video for setting exam papers that contains MCQs, true falls, and question?

  • @CKPSchoolOfPhysics
    @CKPSchoolOfPhysics Před 3 lety +1

    Omg!! Today I thought of the same and saw this notification. ❤️❤️❤️ Height of coincidence.

    • @DrTrefor
      @DrTrefor  Před 3 lety +2

      ha that's awesome timing:D

  • @myexcel2009
    @myexcel2009 Před 7 měsíci

    Thanks

  • @wjrasmussen666
    @wjrasmussen666 Před 3 lety +1

    I just looked at the first LaTeX video the other day and hoped you would do more. Now you are doing a series!!! Can we make requests?

    • @DrTrefor
      @DrTrefor  Před 3 lety +1

      haha sure!

    • @wjrasmussen666
      @wjrasmussen666 Před 2 lety

      @@DrTrefor Thanks. Requests: 1) natural deduction proof in predicate logic using the fitch-style system. 2) Freshman calculus based physics: Free body diagrams, vector diagrams, Newtonian motion diagrams: pendulums, ramps, etc.

  • @saadhassan9469
    @saadhassan9469 Před rokem

    Good Videos

  • @JJGhostHunters
    @JJGhostHunters Před rokem +2

    Hello Dr. Trefor...Is LaTeX recommended for writing entire papers, dissertations, etc over Word or is it better suited for just writing equations and then inserting them into Word or similar word processor? It would seem that Word would be more efficient in terms of formatting the text portions of papers. Perhaps I am wrong though.

  • @gedeardaunud1361
    @gedeardaunud1361 Před rokem

    hai... i am not sure, do you still monitor this video..but this is great video. it helps me a lot when I am starting write my book using latex..thank you so much for sharing this...could you help me how to make piecewise function?? I combine begin split, along etc..but it does not work... thanks...

  • @marcello4258
    @marcello4258 Před 2 lety

    would also be nice to see how you could change the spelling of those things like theorem so you could also take full advantage of this when writing in another language

  • @koustavmallik6583
    @koustavmallik6583 Před 2 lety +2

    Respected Dr. Bazett, Thank you for helping me use Overleaf beautifully and efficiently. Regards, Koustav Mallik B.Stat 1st year Student

    • @koustavmallik6583
      @koustavmallik6583 Před 2 lety

      Can you please help me cross referencing theorems? in Latex?

  • @kishoreseshadri5579
    @kishoreseshadri5579 Před 8 dny

    How would I go about getting the source LaTex document you create in the video? On Overleaf or elsewhere? Thanks for a wonderful series

  • @emmanuelceliz7819
    @emmanuelceliz7819 Před 2 lety

    I can't reference a label in split equation as described in 10:32. I get '??' for the equation number in the output. I'm using TeXworks.

  • @gedeardaunud1361
    @gedeardaunud1361 Před rokem

    and also, when i use begin{figure} and end{figure} the figure resulted goes to the beginning of the text...how does it happen??

  • @md.minhajuddinturjo4337

    How can I place the table and figure inside the section, "More Tricks"?

  • @jagwasenibanerjee1424
    @jagwasenibanerjee1424 Před 2 lety

    How about I want a lemma numbered 1 and theorem numbered 2 then again a lemma numbered 3, how to do that?

  • @StaticBlaster
    @StaticBlaster Před 3 lety +7

    and also maybe real analysis, complex analysis, tensors, etc. That's if you know all that. Some of those mathematical subjects has close ties to theoretical physics. That's essentially what I want to get into. I find concepts of GR. QM, QFT, quantum gravity, and string theory to be quite fascinating.

    • @DrTrefor
      @DrTrefor  Před 3 lety +5

      My background actually is in physics before I left to the darkside of math haha:D

    • @StaticBlaster
      @StaticBlaster Před 3 lety

      @@DrTrefor Awesome. It would be great if you made a lecture series on these advanced mathematical subjects. What in particular did you study when you were in the physics world?

    • @elltwo8393
      @elltwo8393 Před 3 lety +1

      As far as I know, the math with the closest ties to quantum stuff in physics is operator algebras/operator theory, which is a beautiful subject in its own right and contains one of my favourite theorems (the Gelfand-Naimark transform which gives a contravariant equivalence between the category of compact Hausdorff spaces and the category of commutative unital C*-algebras), but probably requires too much background knowledge to fully understand (i.e. measures and integration as well as basic functional analysis) for it to be accessible in a CZcams series right out of the gate.

    • @StaticBlaster
      @StaticBlaster Před 3 lety

      @@elltwo8393 Cool. And of course probability theory too. These sound extremely advanced but nonetheless very interesting. Update: Oh yeah and also lie algebras and lie groups which also has ties to fractal mathematics, I think.

    • @DrTrefor
      @DrTrefor  Před 3 lety

      @@StaticBlaster I just did my BSc in physics. But then in math I did a bunch of symplectic geometry which has a lot of overlap both for classical mechanics and string theory

  • @CKPSchoolOfPhysics
    @CKPSchoolOfPhysics Před 2 lety +1

    When is 3rd video coming? I am dying to watch asap. Already started writing and just loving it .

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      About two more weeks sorry!!!

    • @TSSPDarkStar
      @TSSPDarkStar Před 2 lety

      @@DrTrefor Hello Professor, I know doing things like this video can take a while to make so obviously no rush especially since you have other projects to work on presumably, but do you have an updated estimate on when there will be more videos in this series?

  • @codingWorld709
    @codingWorld709 Před 2 lety

    Is overleaf not available to install ??
    Sir,
    It's difficult to use in poor Internet connections

  • @chirineberri4581
    @chirineberri4581 Před 2 lety +1

    thank you so much it's too useful, but i have a question : in the section of theorem and proof how can i write it in french ? for exemple if i want to write "preuve" instead of "proof" and "corollaire" instead of "corollary".

    • @DrTrefor
      @DrTrefor  Před 2 lety +4

      I’m the preamble when I defined each theorem environment, one of the expressions in the {} is the name that appears, so put the French version there

  • @dasunpremathilaka8703
    @dasunpremathilaka8703 Před 2 lety +8

    Great work on the videos doctor. Really intuitive. As a beginner, I just have a couple of questions. How did the figure and the table get inserted before the 'More Tricks' section even though we have included the new section before writing the code for the table and figure? How can we insert the table and the figure after section title? And the last question is, why was 'I am so proud of figure...' indented?

  • @peeper2070
    @peeper2070 Před rokem +1

    15:30 My table does not have the left and right borders. I expect someone to reply months from now but I’m just commenting this in case someone in 2038 has a similar problem. Here is my code:
    \begin{center}
    \begin{tabular}{c|c}
    \hline
    1 & 2 \\\hline
    3 & 4 \\\hline
    \end{tabular}
    \end{center}

  • @TheRealLaoTuo
    @TheRealLaoTuo Před 2 lety +1

    How come that table is not _in_ that section? it is defined after the section..

  • @lazizieldjouher2934
    @lazizieldjouher2934 Před rokem

    sir i have a small problem with may table im new in latex and im realy struggling i've been looking for a solution for more than 2 months know but in vain and the deadline of my project in few days can you help me i will send you the small code in email but i dont have yours

  • @aitanapalomanespardos7089
    @aitanapalomanespardos7089 Před 7 měsíci

    could you explain how to make new environments?

  • @hannawalle-pu2ww
    @hannawalle-pu2ww Před 2 měsíci

    How to change the latex typesetting for thesis?

  • @bwambalepedson2528
    @bwambalepedson2528 Před 10 dny

    which offline software can i use for latex

  • @thomasgebert6119
    @thomasgebert6119 Před 2 lety +2

    Out of curiosity, what is your opinion on the other TeX overlays (e.g. ConTeXT, LuaTeX, XeLaTex)? I know LaTeX well enough, but occasionally it's gotten annoying if I ever want to do non-standard formatting.
    Someone told me that ConTeXT is better for that type of stuff but I haven't used it yet.

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      Honestly I haven't used either of them, but the general sense I have is each has some aspects that it does particularly well, and if that aspect is something you really care about then it might be worth it. But the default is to stick with vanilla.

    • @thomasgebert6119
      @thomasgebert6119 Před 2 lety

      @@DrTrefor Fair enough. For 99% of stuff, LaTeX is fine (well, Pandoc->LaTeX anyway), but occasionally I've had to do more elaborate stuff, and I've found CSL to be extremely annoying, and I've never really gotten the hang of it.

  • @dgm5208
    @dgm5208 Před 3 lety +3

    I like your theorem numbering by Section --how do you do the same with equation, figure and table numbering, please?

    • @DrTrefor
      @DrTrefor  Před 3 lety +4

      Ah great question, should have put that one in. There is a command (needs amsmath) and goes within the preable:
      umberwithin{equation}{section}. The first braces say the object you are want to number and the second what you use to do the numbering (could be chapter or subsection or whatever else).

    • @dgm5208
      @dgm5208 Před 3 lety +2

      @@DrTrefor impressive response time! Thank you!

  • @aashsyed1277
    @aashsyed1277 Před 3 lety +1

    Awesome explanation , are there more videos on latex ? If then tell me but if not take your time and make more!

  • @maspoetry
    @maspoetry Před rokem

    fantastic. you can also do
    onumber but less useful..

  • @akepilinggiehili5320
    @akepilinggiehili5320 Před rokem

    Can I get APA7 thesis template

  • @TALKmd
    @TALKmd Před 3 lety +1

    Wow .. great (:

  • @gardenmenuuu
    @gardenmenuuu Před 3 lety +1

    How do I take the individual equations for animating in powerpoint?Is there some short /standard way?

    • @DrTrefor
      @DrTrefor  Před 3 lety +2

      If you want to do a presentation then look up Beamer, it’s a package for using latex to make presentations. Powerpoint can use tex for simple equations, but that is it

    • @gardenmenuuu
      @gardenmenuuu Před 3 lety

      @@DrTreforI watche your video on how you make videos.As per I understood,you too make some equations using latex right?Do you follow the same method to present the equations?(use a beamer),or do u use some shortcuts to take the latex equations to powerpoint?Thanks :)

  • @ryanhuon4094
    @ryanhuon4094 Před 2 lety +1

    I have a warning of Overfull \hbox (6.18759pt too wide). How can I solve that ? Thank you

    • @DrTrefor
      @DrTrefor  Před 2 lety +1

      This just means you have a line that is too wide so it throws the warning. So why is your line too wide? Well that really depends on the code but often things like side by side images of fixed width that adds up too much or things like this cause the problem

  • @edoardoferretti5493
    @edoardoferretti5493 Před 2 lety +1

    Why is the figure put above the section it's in? How can I position it where I want it to be?

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      By default, it lets LaTeX decide the best way to visually display it on the page, but yes you can force it to an exact location if you want. But sometimes this has weird effects like an awkward pagebreak so it is usually the LAST thing I do when polishing a document.

    • @edoardoferretti5493
      @edoardoferretti5493 Před 2 lety

      @@DrTrefor ok, thank you now it's clearer

  • @tincho15neem
    @tincho15neem Před 2 lety

    Forget about all this. LyX is the future.

  • @DFivril
    @DFivril Před 3 měsíci

    Call me crazy, but i love LaTeX

  • @sinmar755
    @sinmar755 Před 2 lety +2

    Please Part III

    • @DrTrefor
      @DrTrefor  Před 2 lety +2

      Coming soon!

    • @sinmar755
      @sinmar755 Před 2 lety

      @@DrTrefor I activated the bell to watch Part 3 as soon as you drop it. I'm very thankful for the hard work you put in your videos

  • @deepthyjoseph2784
    @deepthyjoseph2784 Před rokem

    How to add (%) ,( _ ) on overleaf for python source code

  • @TomLeg
    @TomLeg Před 7 měsíci

    Here's to Canadian Spelling!

  • @calcubite9298
    @calcubite9298 Před 10 měsíci

    Question: Why is it pronounced "Lay-Tek" rather than "lay-tecks", like what gloves are made of when they're not nitrile?

    • @Wutheheooooo
      @Wutheheooooo Před měsícem +1

      X is not a X but the greek's letter "chi"

    • @calcubite9298
      @calcubite9298 Před měsícem

      @@Wutheheooooo thank you! that's been bugging me for a while :)

  • @AVLZOfficial
    @AVLZOfficial Před 2 lety +1

    oh nice video... cheers!!!! ............. #avlzofficial

  • @AlgoJerViA
    @AlgoJerViA Před 2 lety +2

    Next video... A brief introduction to error messages in LaTeX in just 15 hours.

  • @MathAdam
    @MathAdam Před 3 lety +1

    I have an allergy to LaTeX

    • @DrTrefor
      @DrTrefor  Před 3 lety +1

      Not that kind of latex🤣

  • @user-yq9te1ri7d
    @user-yq9te1ri7d Před 8 měsíci

    One more positive comment 👍👍

  • @arifulislamleeton
    @arifulislamleeton Před rokem +1

    Introduce myself my name is Ariful Islam Leeton I'm software engineer and members of the international organization WHO And members of the international telecommiesion And investors privets and public sector

  • @ccuuttww
    @ccuuttww Před 2 lety

    If u tried to draw a graph or table this is not a choice I'm sorry

  • @jonetyson
    @jonetyson Před 9 měsíci

    Scientific Word is free now. There is no reason to write your own LaTeX code instead of having the program make LaTeX for you.

  • @saidfarid6382
    @saidfarid6382 Před rokem

    Hi dear professor
    Thank you so much for your help and advice.
    I really appreciate your job. I wish you peace and happiness under the sky of prosperity.
    All the best.
    Have a good time.
    Your follower from Algeria

  • @saidfarid6382
    @saidfarid6382 Před rokem

    Hi dear professor
    Thank you so much for your help and advice.
    I really appreciate your job. I wish you peace and happiness under the sky of prosperity.
    All the best.
    Have a good time.
    Your follower from Algeria