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

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone and welcome back to my channel in this video i just want to show you how you can install a latex workshop inside visual studio code on a windows machine i will show you all the steps that you will need to take what you need to install for instance how to install vs code how to store mic text and how to install perl on windows so i will take you through all the steps so you can just follow along and watch these tutorials and then you're going to be able to compile a little document inside vs code on your windows machine what you're going to get is what you can see here on the screen with the latex workshop extension inside vs code you're going to be able to edit your latex source file and are going to be able to see the changes reflected in real time here on your screen in the pdf let me change the title so from my paper i can say youtube example as i said my document we control save we can see this build icon appearing here at the bottom and we can see the changes reflected in real time here on the screen i think this is a fantastic feature that you're going to get enabled by default if you're using this extension and i put together this video because i know that many of you are using vs code to compile your python code or to um or to write code in general so i think you will greatly benefit from learning how to use this extension if you want also a video on how to install a latex compiler inside pycharm pycharm is my preferred ide so i generally use pytharm to edit my python code my javascript code and so forth and i think it is fantastic but equally good is this extension so i just wanted to put together this tutorial so you can also choose which one to use if you want to find out how to use dexify inside by charm you can click on the card that will appear on the top right of your screen so will appear here at the top right of this video so now that you know what you can do with the latex workshop extension i'm going to show you all the steps that you need to take in order to install it on your windows machine this tutorial is not going to be a detailed tutorial on how to use latex i really like more than 30 videos on that so check my youtube channel and check my youtube latex playlist and you're going to find a lot of useful video on automated figures tables paragraph footnotes bibliography and so forth this video is just about how to set up latex workshop on your windows machine before we start i would like to take a second to remind you that if you like this type of video please consider liking the video and subscribing to my channel it's free and it's just you just have to do a click down under the video and this is helps me a lot and also with youtube algorithm and also if you want you can support my channel by buying me a coffee supporting me on patreon or joining here my channel on youtube so let's get started with the installation on this window machine i don't have any software installer required to run latex workshop inside vs code i don't even have vs code installed on my computer so let's start by installing vs code so we can do a quick google search here inside our browser and then we can click on download and we're going to download it for windows i have windows 64 bit so i'm going to just download the 64-bit installer so just from here and then this is downloading a vs code on my computer 64-bit so i can just click on save and then i can double-click here and this is going to install vs code for me i'm going to have to go through the steps so i will just take you so to all the steps so i set the agreement so just next i'm going to have to define where vs code is going to be installed so i press next and then this is the link in the start menu so i don't i'm happy with this one so i can click on next and then here is going to ask me a couple of other things which is going to say add to path require share start we are not going to need to do that we are not going to need to restart the computer in this case and then we don't want to add a desktop desktop icon so i can click on next and then i'm going to click on install while it is installing we can go here in the browser again and we can also install mic text so i prefer to use mic text because it's a lighter installation package than text live so on latex workshop they suggested to use text live i think is very heavy and it takes a very long time to install so i prefer to use miktext and i didn't have any issues with it so that's my preferred option so that one downside to use miktext to compile your latex document inside vs code is that you will also have to install perl and i will show you in a second how to install perl so we can go here make text and then we can go in downloads and then we can select windows and then we can download this file as you can see is only 128 megabytes and then we're going to set it up so it's going to install the packages on the fly so as we need the latex packages make text is going to install them for us on our computer so let's go back to vs code and we're going to say launch vs code so your vs code is asking me to create the initial setup of the project i don't really care about these for this example so i'm just going to select the dark and let me actually go and start opening a project so here i can go file open folder and then i can navigate to the desktop of my computer so here a desktop and i have a youtube example latex project so let me open this folder here and you're going to see the files that we have and i have to say yes trust the author of this file so let me close this issue with git which is not important at the moment or uh yeah so we can close that and inside here we can see that we have our main.x file here then we have our sample bib which contains the references for our article and then we have the image frog.jpg and we also have an image inside figures which is my preferred option so i like to put figures inside a figure folder here because then it's going to be easier to maintain them organized so if i go to the main.txt file as you can see vs code is reading this file as a text file however we can click here on search marketplace to look for extension so we can either click here or we can look at ear ad extension so here on the side you have this symbol here and you can click here or there in the marketplace to search for extension so let's actually click here because i already showed you how to open the extension here from the side so let's click here and see what the vs code is actually suggesting us our preferred option in this case is to download the latex workshop so we click here little workshop and then we are going to install it on our machine as you can see later workshop has already been downloaded more than a million point five times and there is a very nice community behind this so there are a lot of tutorials and a lot of examples therefore you can trust these this extension so now that we go back to the main.txt file as you can see the look of the file has also changed because latex workshop has recognized this is a text file and in this case we can actually open it as a lytic document and technically we can compile it as you can see now here we also this icon here has appeared which is called text here so we can click here and we can try to build the latex project of course you're going to get an error at the moment we're going to get an error because we don't have neither per list or on our computer nor we have mk text so let's go back to our browser here getting mk text so we can go here into downloads and we can install mk text so this is the first step so i accept the mk text copyright condition then click on next and then you have to find the folder where you want to install mktext so you can click on next then you have to select a couple of settings so prefer paper size so a4 and install missing packages on the fly this is i think is very nice on mk text so we can say yes so this is going to install the packages where required then we click next and then we're going to click on start this is going to start the installation the final thing that we need to do is to install perl so we can learn perl and then strawberry perla here so we can look for strawberry perler and we can download the 64 bit um version so i'm going to download this one i'm going to download it here in the download folder so click on save and in the meantime we can check the installation of mktext then then when this is finished we're going to install a strawberry pearl on our computer and then we should be able to compile our latex document inside vs code using latex workshop extension so the installer is showing us the installation has almost finished so we can click on next we can click on check for updates now and then we can click on close and we are not going to donate this time to the project so we're just going to click on close and then here we can look for mig text console telling us that a setup issue has been detected and we haven't checked for updates so let's click on check for updates if you're going to get an error don't worry too much because sometimes with miktex can happen you may get this error but we should be able to compile our document anyway and i'm going to test this with you so don't worry about it if you're going to face any issues we're going to fix them as we go so now that we have checked for updates we can go here in updates and then we can click on update now this is going to update the packages which is a bit strange because we just installed them right now but don't worry we just have to update them and this is going to take a little bit of time we just have to wait that it updates and as you can see it's quite fast great this has installed all our packages so we can click here the mig text console can be closed so this is going to open this command line prompt we just have to wait that it goes away perfect that's done also so now we are done with the vs code installation we are done with the mic text installation we have already downloaded perl so we can again go here into downloads install perl on our computer so this is open this installer so we can go next i accept the terms of the license agreement next so we just have to define where we want to install a strawberry perler so we can keep the default c dot dash strawberry and then we can click on next and then we're going to install it on our computer and this is going to install the strawbelly perler it should be fairly quick and it shouldn't take much time and then we should be ready and then once this is done we can go and close bs code reopen it again and then we should be able to compile our lyric document inside the vs code using the latex workshop extension so while this is getting ready let me actually close the vs code we can close the web browser because we don't need it anymore perfect the installation was completed so now we can click here on windows and then we can search for vs code and then we open erbs code and this time we should be able to compile the document because we have pearl mig text and we also have a vs vs code latex workshop extension installed on our computer so let me update kit here and i'm just going to put this one down so we don't get that error message don't worry about that because git we are not going to need git in this video here so here we can click here build latex project and as you can see we are no longer getting errors this time because we have installed all the required files we didn't have to add any software or any programmer to the environmental part in window because we had to do that when we installed the mig text on mac on mac we didn't need to install perl because it was already installed inside the mac but era on the other end we had to install them but we don't have to add the text to the system part so the first time that we're building this project it might take a little bit of time the reason why is taking a little bit longer this time is because we are installing all the packages on the fly the second time you compile the same document is going to be much quicker because you have already installed all the packages with mig text okay so we just have to wait for a little while and that is compiling and it's installing so as you can see here at the bottom it's also telling us that it's building and we just have to wait for a little bit for a little bit of time that this is done and you can go back if you click here on build and this open this like page here which you can configure different recipes so you can configure how to compile your electric document but if you want to go back to the explorer you can always click here at the top now that you you can see that the build was completed so receipt succeeded so we have a tick here at the bottom but also the other thing that we can see that it does work is because we can see the pdf here so if i click here i can now see the pdf that this has compiled our document so here another thing that is asking us is we want to display the pdf inside vs code i'm going to click on keep latex workshop internal pdf viewer however you may want to you may change that if you if you prefer to use a different way of visualizing your pdf then you can drag this tab here on the right so we're going to have our pdf here on the right and we are going to have our source code here on the left as i showed you before here in the title you can change the title and you can see my paper and then you can press on control save this is going to save the project it's going to build automatically the project and it's going to update the pdf for you which is a fantastic functionality of this extension because we can just write our paper and while we write our paper then we can see the changes reflected directly into our pdf and as i change that you can of course change many other things for instance you can change this image here or you can change whatever you want and all the changes will be reflected in your paper so for instance let me actually show you how you can change the figure that is going to be the elastic so we can say prog.jpg and then we can press the ctrl save this is going to compile the document again as you can see the build here and then we should be able to see the image reflected here in our pdg in our pdf in our lyric document i really hope you find this video interesting if you did please consider liking my video and subscribing to my channel it really helps and this is a great way to let me know that you like the content of this video which gives me motivation to release more video like this one if you would like me to create similar videos or a more in detail video on how to use latex workshop please feel free to write a comment down in the comment section below all the relevant links are down in the video description if you want to support my channel you can also consider buying me a coffee or supporting me here on youtube by clicking the join button or alternatively you can support me on patreon i have a lot of other lyric video that you might find useful i will put a card at the end of the video so you will see a card and you can click on that and you can see the playlist and you might find a lot of other interesting video about latex and i hope you will find them useful thank you very much for listening and see you in the next video
Info
Channel: Federico Tartarini
Views: 2,062
Rating: undefined out of 5
Keywords: visual studio code, latex workshop, vs code, latex in vscode windows, setup latex in vscode, latex vscode tutorial, latex workshop vscode, latex workshop not working, vscode latex workshop tutorial, vscode latex windows, vscode latex, vscode latex set path, compile latex document on windows, latex-workshop, latex workshop vscode tutorial, latex vscode, miktex windows, miktex manually install package, install vscode windows, install miktex windows
Id: 4lyHIQl4VM8
Channel Id: undefined
Length: 13min 47sec (827 seconds)
Published: Mon Oct 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.