Install LaTeX Workshop and compile PDF in VSCode LaTeX (Mac)

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

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

  • @VaibhavrajRoham12
    @VaibhavrajRoham12 2 года назад +2

    Man this was really helpful! Wasted a day with other methods to compile the pdf. This was really straight forward! Thanks much .

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

      I am glad you found it useful. I made the video, since I could not find a good tutorial online. Thank you for letting me know. Please share the video with friends or colleagues who may find it useful.

  • @encore4086
    @encore4086 6 месяцев назад

    very clear and good tutorial. Im searching everywhere how to install the tex distribution without root and found this. 👍thank you very much!

    • @FedericoTartarini
      @FedericoTartarini  6 месяцев назад

      I am very happy to hear that my video was helpful. Thank you for leaving a comment

  • @dhwajjoshi2446
    @dhwajjoshi2446 3 месяца назад +1

    Thanks for making this video, I am facing a issue with running, whenever I try to run the the .sty code it says "you don't have extension for debugging TeX" how Do I fix it...

  • @budslab9738
    @budslab9738 2 года назад +7

    Great video, very clear and you explained everything that needs to be done.

  • @Unknown_9982
    @Unknown_9982 3 месяца назад

    Thank you bro!! It's very useful.

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

    This really comes handy! I was just searching for that now! Great video, thanks!

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

      Thank you so much. I am glad you found it useful. Thank you for leaving a comment.

    • @Rubatissimo
      @Rubatissimo 2 года назад

      @@FedericoTartarini I got a path problem when building though. I'm trying to fix it right now 😥

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Just use the command as shown in the video, it should fit it straight away. Please let me know if it works.

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

      @@FedericoTartarini Ok, I put the command on my computer's terminal and it didn't work but now I put it in VSCode's terminal, the building went well. Thank you!!!

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Great I am glad it worked.

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

    wish you went more into setting up the path variable but i figured it out on my own. thanks!

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

      Thank you for the feedback

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

      Ehy man, i know it's been quite a while, but could you explain me how you managed to resolve it? Thank you

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

      @@anto8722 i dont remember the exact steps but i remember just digging into the vscode settings and i found what i wanted iirc

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

    Thank you for the tutorial Federico.

  • @PepeCoc
    @PepeCoc 2 года назад +3

    Hi, I get an error saying:Recipe terminated with fatal error: spawn latexmk ENOENT; when trying to compile. What do you think it may be?

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

      Hi, have you followed all the steps as shown in the video to install it on Mac?

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

      I got the same error, I found that the /Library/TeX/texbin path environment variable was missing, which is weird. Because when i run the command echo $path from the terminal I find it there. So I ran the main.tex file from the terminal of VS code and the pdf got generated.

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

      also give vs code some time, or try closing it and reopening it. That eventually made it work for me

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

      Thank you for sharing this with us.

  • @ВикторПичугов-г1в

    Thank you very much it`s really helpful guide!

  • @jac.34
    @jac.34 2 года назад +3

    Thanks for the video! When trying to compile the pdf, I get "Recipe terminated with fatal error: spawn latexmk ENOENT." on VSC. Do you know what could be going on?
    Cheers from Chile

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

      Hi, have you followed all the steps as shown in the video? Did you install Perl?

    • @jac.34
      @jac.34 2 года назад +5

      @@FedericoTartarini I already fixed it, thanks! for others who might have the same problem, what worked for me was restarting vscode

    • @heretoinfinity9300
      @heretoinfinity9300 19 дней назад +1

      @@jac.34 Thanks for mentioning this. It saved me a lot of time.

  • @hughliu7427
    @hughliu7427 6 месяцев назад

    It works! Thank you.

  • @luisruelas5037
    @luisruelas5037 3 месяца назад

    you're doing gods work hehe

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

    Great video. Thank you.

  • @iagoh.moreira5253
    @iagoh.moreira5253 Год назад

    Amazing and helpful!

  • @shadow.skeleton_studio
    @shadow.skeleton_studio Год назад +1

    I got a error, Recipe terminated with fatal error: spawn latexmk ENOENT. Thanks

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

      I got the same error yesterday it most likely because miktex cannot install the missing packages on the fly. Try using another distribution of LaTeX

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

    Is Latex what companies use to generate customized automated pdf files for their clients via the web? E.g. COVID tests results etc etc ?

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

      Yes, I believe that some companies use it for that purpose. It is super convenient to automate those tasks.

    • @disrael2101
      @disrael2101 2 года назад

      @@FedericoTartarini cool so can u make a video / series how to create such an automated - customized template? I'm sure it will get super popular as it will be useful for tons of people...

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

      I'll look into it. Anything in particular you are interested in?

    • @disrael2101
      @disrael2101 2 года назад +2

      @@FedericoTartarini yes as I've mentioned at the first comment, creating an automated customized user based (user info taken from the db) in order to create an auto completed form, can be for blood test results or anything else u would like to, there are infinite options for db generated pdf.. can't wait for such video / series already.. would be unique on RUclips for sure

  • @chasec6811
    @chasec6811 2 года назад

    This is great, but how can I create a new latex file from scratch? I have downloaded the extensions, but you seem to alreday have a latex file that you imported. If we want to work the other way around do I just need to open a new file and save it as .tex? Can I split screen and see the PDF being gen'd in real time in the editor? Thanks!

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

      You just have to open a new project and the create a file in it with the .tex extension. You can then build it and split the screen, putting the PDF on the right and the .tex file on the left.

  • @medicineessentialssimplifi2034
    @medicineessentialssimplifi2034 3 года назад

    Thank you very much .

  • @hangchen
    @hangchen 11 месяцев назад

    Thanks! May I know how did you make the side bar of your finder transparent??

    • @hangchen
      @hangchen 11 месяцев назад

      5:12

    • @FedericoTartarini
      @FedericoTartarini  11 месяцев назад

      Hi, I did not change anything. I am using the default settings

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

    Hello, thanks for the video. I have one question/problem. Where do I get or generate a file with the important data (your.tex and sample.bib files)? I haven't found anything helpful on the web, so I'm asking here. thx

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

      This video explains how to get started with latex. LaTeX for Beginners: A Comprehensive Guide to Getting Started
      ruclips.net/video/g0YdIs4oJm8/видео.html

  • @lukejanssen479
    @lukejanssen479 2 года назад

    I was going to download MacTeX but this seems to do the same thing but more conveinent as its in VScode. Am I missing somirthing or should i just go right to VS of MacTeX

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

      Hi, please just follow the steps as shown in the video

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

    Thank you, very helpful but how did you create the "main tex" code?

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

      I have several other videos in which I explain how to write a full latex document. You can have a look at the video about getting started with latex in ten minutes. This is just a template

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

      This is the video LaTeX for Beginners: A Comprehensive Guide to Getting Started
      ruclips.net/video/g0YdIs4oJm8/видео.html

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

    Please could you post a video about how to properly install latex on mac. Cause I'm having trouble with running tex files on vscode and texshop as well.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      What do you mean? The process shown in the video works well. Which issues are you getting? You could always check the LaTeX workshop official documentation.

    • @timothyvasala
      @timothyvasala 2 года назад

      @@FedericoTartarini Thanks for the quick reply. I am getting an error in vscode regarding latex workshop extension.

    • @timothyvasala
      @timothyvasala 2 года назад

      @@FedericoTartarini I think the latex workshop is not installed properly on my device.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Try to uninstall it and then install it again

    • @timothyvasala
      @timothyvasala 2 года назад

      @@FedericoTartarini Latex Workshop? i tried it but no use. I even uninstalled vscode but still the same

  • @antoniojuarez4343
    @antoniojuarez4343 11 месяцев назад

    Hello! I hope you can help me. I did everything you did but keeps showing me this error: "Recipe terminated with fatal error: spawn latexmk ENOENT".
    And the program never compiles. I try changing the path by the terminal in VS Code but after pasting the path from the page the terminal requires me to type down my password. The thing is that I cannot type anything after that, is like the keyboard gets disabled or something.
    Please help me, I really need to get this working on VS Code for MAC.

    • @FedericoTartarini
      @FedericoTartarini  11 месяцев назад

      Try to type the password and then press enter even if you do not see anything appearing on the screen

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

    i do not understand and i did not see anything how to click to properly instal latex. i got errors in vs.

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

      I have a video in which I explain how to install latex

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

    it is not working properly in multiple file latex file. .do you have any solution for that?

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

      Which issue are you facing?

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

      @@FedericoTartarini thank you for your reply. . I am not able to compile the latex file that includes multiple files or that is called the root file. . Could you please share the solution for that.

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

    is this install guide up to date? because im reading many people is getting the same error but different solutions for it >.

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

      The issue is caused by miktex which is not installing the packages on the fly. Please try with another latex distribution

  • @qutadahrababah6644
    @qutadahrababah6644 2 года назад

    ERROR:
    MiKTeX could not find the script engine 'perl' which is required to execute 'latexmk'.
    what should i do?

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

      I have tried installing perl, made sure its on path and also installed latexmk package from mikTex console manager... What can i do to fix the problem? Thanks!

    • @qutadahrababah6644
      @qutadahrababah6644 2 года назад

      I have compiled it using command line latexmk afer installing missing packages, but I still cannot compile it using VSCode

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Have you followed all the instructions step by step as shown in the video?

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Which error are you getting?

  • @vivaldomendes6194
    @vivaldomendes6194 2 года назад

    I do have lualatex installed on my system but it does not compile? What do I need to do? Thanks.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Which error are you getting? Have you followed all the instructions?

    • @vivaldomendes6194
      @vivaldomendes6194 2 года назад

      @@FedericoTartarini the error is clear: I have to change the typesetting engine to "lualatex". I have tried it, but VScode is like a labyrinth, and the information in web forums is quite messy. The printed error is the following:
      The fontspec package requires either XeTeX or
      (fontspec) LuaTeX.
      (fontspec)
      (fontspec) You must change your typesetting engine to,
      (fontspec) e.g., "xelatex" or "lualatex" instead of
      (fontspec) "latex" or "pdflatex".

    • @vivaldomendes6194
      @vivaldomendes6194 2 года назад

      Sorry, I raised this issue on the wrong site. I am on a Windows machine ... and this is for Mac's installation.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      I have another video for Windows. Please have a look on my channel

  • @unlink1649
    @unlink1649 2 года назад

    I'm getting an error when building
    LaTeX fatal error: spawn pdflatex ENOENT, . PID: undefined.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Hi, have you followed all the steps in the video. Another user had your same issue and he solved it by restarting VSCode

    • @unlink1649
      @unlink1649 2 года назад

      @@FedericoTartarini turns out i had to fix PATH and source bash_profile in my case. I had stuff installed, but i had to include the directory for miktex in path.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Thank you for letting me know

    • @benheet6730
      @benheet6730 2 года назад

      @@unlink1649 could you explain a bit more in detail, I get the same error, restarting won‘t work for me ü

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

      @@benheet6730 put this into your bash_profile:
      export PATH=~/bin:$PATH
      export PATH=/Users//Library/Application\ Support/MiKTeX/texmfs/install:$PATH
      then source bash_profile
      that's it

  • @_XY_
    @_XY_ 2 года назад

    Nice

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

    Can I know this mac spec?

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

      I was using a old Mac book pro. I do. Or remember the specs. May I know why you are interested?

  • @NikhilWilson-c9e
    @NikhilWilson-c9e 8 месяцев назад

    😄

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

    it does not work

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

      What did not work? Please check my other video on how to install another distribution of latex on Mac. That should work without any problems. You can fine the video on my channel

  • @winstonmisha
    @winstonmisha 2 года назад

    /Users/borisgrunwald/Library/Application Support/MiKTeX/texmfs/install/tex/late
    x/fontspec/fontspec.sty:45: Fatal Package fontspec Error: The fontspec package
    requires either XeTeX or
    (fontspec) LuaTeX.
    (fontspec)
    (fontspec) You must change your typesetting engine to,
    (fontspec) e.g., "xelatex" or "lualatex" instead of
    (fontspec) "latex" or "pdflatex".
    Know what this error means?

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Hi did you follow all the steps as shown in the video. The error generally occurs since you missed one step.

  • @wereyare9143
    @wereyare9143 2 года назад

    Great contribution and thank you for all you time and skills you share. I have installed MacTeX in my Mc and then installed TeXMaker. I get an error message on TeXMaker and TexShop when I compile: “LOG FILE :
    This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex 2022.1.28) 28 JAN 2022 15:56
    entering extended mode
    restricted \write18 enabled.
    %&-line parsing enabled.”
    I have tried to find a solution online, but no luck so far. I would be grateful if you can let me how to solve it. I have re-installed three times, but still get the same message with and empty page that looks like as a PDF.
    Thank you in advance

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Have you followed all the instructions as shown in the video? Which Tex file are you trying to compile?

  • @nandy1002
    @nandy1002 2 года назад +2

    Recipe terminated with fatal error: spawn latexmk ENOENT.
    i get this error in vscode.

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      Hi, have you followed all the steps as shown in the video?

    • @nandy1002
      @nandy1002 2 года назад

      @@FedericoTartarini yes all, i am using m1 macbook air

    • @FedericoTartarini
      @FedericoTartarini  2 года назад

      That may be the issue. I never tested it on a new Mac processor. What else the error says?