How I use AI in LaTeX -- my favorite workflow with Overleaf & Writefull

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

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

  • @DrTrefor
    @DrTrefor  Месяц назад +16

    How do you all use AI when using or learning LaTeX?
    Don't forget to check out the video sponsors Overleaf + Writefull ► www.overleaf.com/register?

    • @Elonimous
      @Elonimous Месяц назад +1

      I like using AI for debugging or when I want latex code from an image

    • @DrTrefor
      @DrTrefor  Месяц назад +1

      @@Elonimous Ya image -> code is amazing. I think my favourite thing is just screenshotting tables and getting the code, it's a superpower

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

      I've been using ChatGPT for generating LaTeX for quite a while. It's remarkably good at it. It can generate properly AMS formatted content, including algorithms.

    • @wjrasmussen666
      @wjrasmussen666 Месяц назад +1

      Also, cool another LaTeX video!

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

      How is writefulll better than just using the ChatGPT app on pc running o1/4o? (easy access using Alt+Space)

  • @homedone_math3.14
    @homedone_math3.14 Месяц назад +163

    5 days ago, I had an exam about LaTeX in my math college. I just want to let you know I passed because of your tutorial videos. Thank you 🙏

    • @DrTrefor
      @DrTrefor  Месяц назад +18

      That's amazing, thanks for sharing!

    • @homedone_math3.14
      @homedone_math3.14 Месяц назад +6

      @@DrTrefor Thank you for helping!

  • @gavintillman1884
    @gavintillman1884 Месяц назад +11

    Was at uni in the mid 80s and backed the wrong horse. Did a complex dissertation in Plain TeX and got to know the TeXBook really well, and had to use a custom version with different constants (affecting how memory is divided up) to get a complex figure to work.
    Penny dropped when I understood why HTML and CSS are kept separate - think about content and layout separately and don’t try and micromanage the latter.
    Left academia after my postgrad year but still dabble in maths and once in a while will try doing something in plain TeX. Still remember a lot of the detail. But it’s clear that other systems play nicely with LaTeX and I’d like to learn. So far I’ve a Udemy I dip into but am unlikely to finish, and Google. Some of the tools you present look really good, I’ve used Overleaf, and I’ll give them a try.

    • @DrTrefor
      @DrTrefor  Месяц назад +1

      I shudder to think back to plain TeX:D

  • @proof6930
    @proof6930 Месяц назад +27

    I've wanted to use Latex for years. I've used it some, but it is very frustrating. It requires packages to do basic layouts, and it seems that there are always several different ways to do the same thing. It isn't jars to do, but it seems like the easy way to do things is copy someone else's document that has a structure similar to how I want my document to look, but there always be something that I want to do slightly different. It takes hours to search out how to use the current packages, or to find and figure out additional packages.

    • @DrTrefor
      @DrTrefor  Месяц назад +5

      Ya managing the packages you like and work for you is definitely one of the most annoying parts of LaTeX. That said, I find that there is only a half dozen that I'm using regularly and as long as they work it doesn't matter TOOO much if someone else has made a cool package that is better in some way.

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

      "Jars"

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

      Copy and modify is a common method in all programming.

  • @zray2937
    @zray2937 Месяц назад +41

    I wrote my bachelor, master, and Ph.D thesis using Lyx, and I only go to latex code for some details Lyx doesn't handle that well. I don't understand why more people aren't using it. Life is too short and there is too much mathematics to learn, I don't have time to write code in Latex.

    • @chet3030
      @chet3030 Месяц назад +6

      I agree with you. I like Texmacs myself because I find it a bit easier to use than Lyx. But both Lyx and Texmacs are much easier than coding latex directly. They're also free and open source so they don't require an expensive $200 a year subscription like overleaf does.

    • @gokulgirish6471
      @gokulgirish6471 Месяц назад +1

      I completely agree. Two months ago, I started using LyX for the first time, and I absolutely loved it! It's such an awesome software. I really want to write my master's thesis using LyX. Since I'm still exploring the software, I'm looking for a proper workflow that would allow me to collaborate effectively with my lab mates. I came across the "Track Changes" option, but I'm still a bit confused about how to integrate it into a workflow (git or something like that?). Is there a way to track who made specific corrections or comments in the document? I couldn't find any tutorials explaining such workflows. If someone could help me out with this, I'd really appreciate it.

    • @kruksog
      @kruksog 29 дней назад +3

      Latex isn't that difficult? Like, some of the diagram packages are a bit more tough, but if you've ever written code, or a markup language, latex comes pretty easily.
      I don't have a problem with you or others using something else, but I do not think latex is difficult or particularly time-consuming.

    • @pretentious_a_ness
      @pretentious_a_ness 23 дня назад

      @@kruksog also as mentioned in the video its barely an inconvenience now that we have LLM to do the heavy lifting. You only ever need minor edits to the generated LaTex

  • @Anomaa
    @Anomaa Месяц назад +57

    Since I switched to Typst, I no longer need companies that offer AI-based tools or whatever else. I just write my math intuitively, without backslashes or curly braces or unreadable compilation errors. And writing maths on a computer is no longer a chore

    • @dashl5069
      @dashl5069 Месяц назад +4

      Typst!

    • @IsomerSoma
      @IsomerSoma Месяц назад +3

      Typst is nice but this AI feature is a bit too powerful. It's an insane short cut.

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

      ​@@IsomerSoma I could have told you that with vscode + copilot(free for students and teachers) you can have a bit of the same thing (except for reading images). But since the AI probably hasn't read much Typst compared to LaTeX I don't think it's as powerful

    • @sahasananth987
      @sahasananth987 Месяц назад +1

      Just use latex offline lmao. You don’t need overleaf

    • @lucasbublitz
      @lucasbublitz 22 дня назад

      Typst rules!

  • @Utesfan100
    @Utesfan100 29 дней назад +2

    LaTeX was easy to pick up, as I had learned to love Word Perfects reveal codes in the 80s.

  • @hrperformance
    @hrperformance Месяц назад +2

    Many thanks Trefor!

  • @sdsa007
    @sdsa007 20 дней назад

    Thanks! I love LaTeX!

  • @philosophyoftrucking
    @philosophyoftrucking Месяц назад +7

    I’ll be using LaTex immediately! Thank you, Professor!

  • @Davidamp
    @Davidamp 20 дней назад +1

    My friends, just switch to Typst.

  • @le0nz
    @le0nz Месяц назад +6

    What are your opinion about typst? I. First learn latex with your videos and would be cool if you do some videos about typst. To teach the new gen, i probably do some videos myself but in Spanish 😅

    • @DrTrefor
      @DrTrefor  Месяц назад +6

      I've got nothing against typst. LaTeX has a bit of a "moat" in the sense that if I and all the people I am likely to collaborate with in math are bought into LaTeX, then switching to another typsetting language is going to be a lot of work. If you're a student just starting out and can use either, then I think they have done a good job at making a somewhat easier to learn system because learning curve is still a huge problem with LaTeX and has been for decades. Actually I think it is only recently with AI helping to bend down that learning curve that sees a big improvement. Ultimately use whichever you like and works for you, I care far more about what you make then how you make it!

  • @theoriginyt4869
    @theoriginyt4869 Месяц назад +9

    I already know how to write LaTeX code. Learning LaTeX in theory is simple, as any change you make is directly reflected in the document you write, which is how I learned it (plus a combination of Detexify for the commands!). It is crazy too see LLMs being used to assist writing LaTeX code, something that I never knew I needed but now have 😂. Although I'm afraid that I cannot make use of that very feature, as I'm not using Overleaf (Emacs fanboy right here ;D).

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

      FYI emacs has AI that can be use. I like Overleaf as well for its great features but eMacs has already some AI to be integrated that one can use for latex doc.

  • @Reda-Ou
    @Reda-Ou Месяц назад +9

    I feel like it just makes way more sense to just load a csv or any other data file for a table. It is not exactly a step jump to send a picture, hope the AI reads the numbers right, and have to do that every single time you update the data/table instead of just auto loading whatever csv you dump that will update on compile.

    • @DrTrefor
      @DrTrefor  Месяц назад +4

      Absolutely you can build in excel or whatever the csv then copy and paste and it will format it into latex, no need to do images if you already have the data as you say

  • @MasonHeth
    @MasonHeth Месяц назад +5

    This video inspired me to try out LaTex, and I've been having a blast playing around with it, but I've run into some more advanced things that I'm not quite sure how to do yet. How were you able to toggle the ai solutions on?

    • @writefull_ai
      @writefull_ai Месяц назад +1

      Hi @MasonHeth, if it doesn't appear for you yet, you can activate it by going to your Account Settings and toggling the Writefull integration from there.

  • @ZaeemAhmad785
    @ZaeemAhmad785 28 дней назад +1

    Hello Prof! I'm wondering where I can grab that T-shirt. I really love that!

  • @kerbaman5125
    @kerbaman5125 Месяц назад +2

    Opinions on Typst?

  • @theproofessayist8441
    @theproofessayist8441 29 дней назад

    Dr. Bazzett I can't find the button where you can ask in natural languages LLM to give suggestions for code - do you have a widget (Writeful??) installed? is it free or do you need to make a subscription to Overleaf?

  • @fireballman31
    @fireballman31 Месяц назад +1

    perfect timing then

  • @duckslayr
    @duckslayr Месяц назад +1

    I'm using overleaf to create worksheets/homework/etc for my HS math classes (I'm a teacher). For equations, what are the pros/cons of having them inside a \begin{equation} ... \end{equation} versus just using $...$ ?

    • @DrTrefor
      @DrTrefor  Месяц назад +2

      The big difference is inline in the middle of a sentence vs its own environment myself. Normally little details like “for all x in R” or something go inline mid sentence but then your actual major equation goes in display mode. Display mode formats a bit bigger vertically, can keep track of equation numbers etc.

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

    I learned this in grad school. What I realize now is that formatting information for a static presentation of ink on bleached wood pulp of a standard dimension is as out modded as a fax machine. Rendering such a document on a computer is painful to consume. Rendering such a document on physical paper is outmoded and useful only if you have a printer.

  • @wehushi_sushi
    @wehushi_sushi Месяц назад +3

    Can you use your openai api key in overleaf?

    • @DrTrefor
      @DrTrefor  Месяц назад +3

      I don't believe so

  • @nickbennett5233
    @nickbennett5233 17 дней назад

    takes the fun out of learning code. However, with things that are complicated, it can be a big help

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

    I tried to learn latex 20 years ago with no results, but now if i ask gpt of something in mathematics i realized it responds sometimes with code \\mathbb{R} and the like which has increased my familiarity with the language greatly and I've learnt a lot

  • @maxwellhunt3732
    @maxwellhunt3732 Месяц назад +1

    Could alternatively use typst as well... It compiles to latex and is almost objectively easier to understand.

  • @marcbanfi4985
    @marcbanfi4985 Месяц назад +2

    Hi, I use Overleaf but I don't have access to the AI, how do you get it?

    • @DrTrefor
      @DrTrefor  Месяц назад +2

      I believe you SHOULD have access right away. On the main horizontal menu all the AI features are on the second line, so beneath bold and italics and so forth.

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

      I checked in with @writefull_ai and if it doesn't appear then you can toggle it on in the settings under integrations.

  • @jslh2059
    @jslh2059 Месяц назад +11

    Chatgpt + Latex make my documents immaculate

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

      It's great, isn't it? You can just give your already-made Word PDF document to ChatGPT, and it spits out a good LaTeX version.

  • @jackbidnik9642
    @jackbidnik9642 Месяц назад +1

    Please forgive me for expressing this caveat, but although this use of Latex, in whatever form, is indispensable in writing papers, I can see what might develop into a form of finickiness where people are no longer able to read and understand the content of a paper if it lacks the perfection that AI, or other proficiency methods, in the writing. In other words, increasingly, neatness will count and beauty, and its absence will be disqualifying.

  • @charlesspringer4709
    @charlesspringer4709 29 дней назад

    OK, where is the shirt from?

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

    Working in a mathematics laboratory, our secretaries were able to write plain LaTeX, they had no special math training, LaTeX is not difficult once you know how to read an equation.
    I even gave a couple of courses for secretaries.

    • @DrTrefor
      @DrTrefor  Месяц назад +1

      We long had a staff member in our department called a "technical typist" who was proficient at LaTeX despite not being a professional mathematician to do similar. I don't think anyone uses that services anymore though.

  • @le0nz
    @le0nz Месяц назад +8

    They need to compete against typst.

  • @d-hat-vr2002
    @d-hat-vr2002 Месяц назад +2

    Non-sarcastic question: Why use LaTeX, when you can just use the Microsoft Word equation editor where you can just draw your equation and Word turns it into a neatly formatted and editable equation?

    • @le0nz
      @le0nz Месяц назад +5

      I think because latex not only do equations but also more complex structures like algebra diagrams. Plus since latex is plain text against a zip file editors can automate the display of text in html. However try typst is like latex but easier and probably better.

    • @DrTrefor
      @DrTrefor  Месяц назад +8

      I quite prefer LaTeX to word. Yes, simple equations can be done in word - heck I use powerpoints with the microsoft equation editor for my videos. However, you have MUCH more control over the look and feel and automation of equations and everything else with LaTeX, and I think its for this reason that it becomes "standard" across math.

    • @MrProfizmus
      @MrProfizmus Месяц назад +1

      In my experience, because you're usually both not given the choice of using Word or any other typical document editor, and will be looked down upon for using one. The former is important for obvious reasons, but the latter is important too if you ever need to or want to collaborate with others. My experience might have been unusually toxic though.

  • @JesusIsMySaviorILoveJesus
    @JesusIsMySaviorILoveJesus 22 дня назад +1

    I need that shirt

  • @pmcate2
    @pmcate2 Месяц назад +3

    This integrated ai is an awesome feature

  • @SpektralJo
    @SpektralJo Месяц назад +1

    Asciimath is so much easier and faster for writing equations though. Since I discovered It I never touch latex equations unless absolutlely necessary

  • @the_lord_2610
    @the_lord_2610 25 дней назад +1

    i learnt all of LaTeX by osmosis on a math discord server lmao

  • @the_master_of_cramp
    @the_master_of_cramp Месяц назад +6

    I've been waiting for Overleaf LLM integration before beginning writing my thesis. Great, now I can start and be way more efficient.

    • @DrTrefor
      @DrTrefor  Месяц назад +1

      Right?? Past Trefor is so annoyed this wasn't here before:D

    • @the_master_of_cramp
      @the_master_of_cramp Месяц назад +1

      @@DrTrefor Yeah I imagine it must be so much more fun now being a math-based academic/content creator, just because of this tool basically doing most of the dirty formatting work for us now :)

    • @dennisestenson7820
      @dennisestenson7820 Месяц назад +1

      People waiting for LLMs to write their thesis is so dystopian.

    • @the_master_of_cramp
      @the_master_of_cramp Месяц назад +3

      @@dennisestenson7820 I mean just to write down the results neatly. I am not suggesting to ask it to write the full thesis from scratch. The thinking should still be done by the human. Just the presentation of the ideas can be nicely accelerated using LLMs.

  • @RandyKing314
    @RandyKing314 Месяц назад +2

    ok first, thanks for another excellent LaTex vid. but seriously, now it almost looks too easy…i almost feel sorry for all the people who came up over the decades cranking out documents the “hard way”

    • @DrTrefor
      @DrTrefor  Месяц назад +2

      I know right, what was all the blood sweat and tears even for?!?!

  • @Bruno_Haible
    @Bruno_Haible Месяц назад +1

    Why not use GNU TeXmacs or LyX instead?

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

      My point exactly. They're much easier to use, and because they're FOSS they don't require expensive subscriptions.

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

    Wouldn't using a tool like Texmacs make the job of producing nicely formatted equations a lot easier? It not only has a much easier learning curve than using Latex directly, but it's free and open source. No expensive subscriptions.

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

    Be prepared to download a hundred PDFs, one for each package you end up needing to display a glyph!

  • @gvi341984
    @gvi341984 15 дней назад

    Chatgpt can do latex all day with fancy colors

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

    no early access for viewers? 🙄

  • @Opinionated_Stranger
    @Opinionated_Stranger 28 дней назад

    It's not that LaTeX is hard, it's just that it's tedious and annoying to write at times such as writing proofs. So I don't really write the LaTeX anymore and rely on the AI so I can spend more time thinking about the process rather than being lost in the code.

  • @rauldurand
    @rauldurand Месяц назад +1

    LaTeX is good but I prefer Typst

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

    To make a table, first make a table.

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

    I learned Lay-tex back in my uni days 20 years ago. Since Microsoft Word caught up about 15 years ago, I haven't had the need to use it again professionally. I'm actually surprised anyone still uses it. It's like finding a lost tribe in the Amazon..

  • @RealEverythingComputers
    @RealEverythingComputers 23 дня назад

    Easy way to do \latex is to copy/paste text written into Desmos

  • @michatroschka
    @michatroschka 29 дней назад

    this type of AI will be in every serious software

  • @Czeckie
    @Czeckie 21 день назад

    I genuinely hate latex. 1) The output is not reliable, I was using some package for two special letters. Then I decided not to use the package and used default letters. Sure, tex needs to recompute the layout. But how come it changes paragraphs that don't even include the special character?!. Or arxiv compilation of the same source is different than overleaf and that's different than my local texlive installation. 2) Error messages are cryptic and unhelpful. Sometimes even a whitespace can mess everything up and all you get is that \end{document} came too early. I could go on and on. I feel like math community is suffering from a Stockholm syndrome. LaTeX is powerful, but is objectively badly made software. But I agree that beautiful math equations are a huge selling point. But even those are not always perfect. Right now I have many indexes with my variables and it just doesn't look good. That is probably a skill issue. But it shows that if you are not happy with the default solution, it's really hard to force it to do something else.

  • @wehappyfew1814
    @wehappyfew1814 Месяц назад +1

    Texmaker is excellent.

  • @sinisterwolf89
    @sinisterwolf89 24 дня назад

    I accomplished all of this for my college classes using open office, it has an equation builder that does all of this but even easier than this. This is way to silly

  • @TooManyPartsToCount
    @TooManyPartsToCount 29 дней назад

    Self studying machine learning and I have been using LLMs for generating LaTeX for over a year, it occasionally needs a few corrections. LLMs love code.

  • @supercompooper
    @supercompooper Месяц назад +1

    Or just use LyX

  • @Heisenberg2097
    @Heisenberg2097 Месяц назад +4

    If LaTeX got easy... it's not LaTeX anymore. How to separate the boys from the men now? Please use the next available Delorean and correct your failure. THX³

    • @DrTrefor
      @DrTrefor  Месяц назад +3

      lol I didn't think about that:D

  • @Cookstein2
    @Cookstein2 Месяц назад +2

    ... typst

  • @quantumsoul3495
    @quantumsoul3495 19 дней назад

    LaTeX is easy

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

    I prefer \int_a^bf(x)\,\marhrm dx

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

      oh ya I do like that

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

    But it's still as pointless right?

  • @EddEdmondson
    @EddEdmondson Месяц назад +2

    I've been absolutely fighting to get correct information in a sphere polluted by LLMs. I'm amazed you'd recommend this in a sphere as rigorous as mathematics. Good grief.

    • @DrTrefor
      @DrTrefor  Месяц назад +4

      Whether the math is correct or not is on you, but I think the LLMs make the somewhat tedious task of TYPESETTING the math quite a bit easier.

    • @EddEdmondson
      @EddEdmondson Месяц назад +2

      @@DrTrefor One day it'll get something wrong. And someone won't check it, and the wrong thing will be published.
      Just don't use probabilistic models to write your maths. It's fundamentally batshit.

    • @fullaccess2645
      @fullaccess2645 Месяц назад +4

      @@EddEdmondson If that happens thats on you, ai is just a tool and you can either use it correctly or incorrectly.

    • @EddEdmondson
      @EddEdmondson Месяц назад +1

      You're a mathematician and you're recommending a tool that is not absolutely accurate. I honestly don't know what is wrong with you.

    • @andrewkarsten5268
      @andrewkarsten5268 Месяц назад +1

      @@EddEdmondsonit seems you don’t understand, he isn’t using the ai to write the math, he is using the ai to help write the code to typeset the math he’s already figured out. This is a totally separate task to the math itself.

  • @borstenpinsel
    @borstenpinsel Месяц назад +1

    LaTeX is outdated. I wrote my papers in Word and the PDF was indistinguishable. But it took me 5 hours to format not 50.

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

      I've recently switched back from Word, and I achieve the same (but usually a little better) outputs in so much shorter time with Overleaf.

  • @the_master_of_cramp
    @the_master_of_cramp Месяц назад +2

    first

  • @pmmeurcatpics
    @pmmeurcatpics Месяц назад +3

    boo, AI

  • @the_master_of_cramp
    @the_master_of_cramp Месяц назад +1

    and third

  • @the_master_of_cramp
    @the_master_of_cramp Месяц назад +1

    and second