 Alright, what's up everyone? So in this video, we're going to make our first Lautec document, and I'm going to do it the basic bare bones way. You might have some system for automatically compiling documents, or you might be using Share Lautec or something online. But I'm going to do it in the most basic way. But the core is learning the syntax, not necessarily, you know, I'm not necessarily caring about how you're compiling your documents. So I'm going to make a working directory, and I'm going to cd into that. You can do it however you want. But I'm going to create a file, and I'm going to call it lautec.tech. Now I'm using Vim as my editor, you can use whatever doesn't matter. But we're just going to go ahead and open this up. Now, basic syntax of a Lautec document, there are only a couple things you need to have in each document. One of them is the document class function. So functions in Lautec are called with this slash, and the function name is document class, and then you can put arguments inside of these curly brackets. Now some functions will not take anything in curly brackets in that situation, you would just have nothing. But we're going to give this the argument article. And this is just telling Lautec, use the article format when you format this document. There are other choices, you can use a book or, you know, a handout or a beamer presentation. But we're going to be dealing with articles now, and we'll talk about the other ones later. So that's one thing you need. The other thing is you need to actually begin in the text of your document. And how you do that is with the begin function. So begin document, and end document. Now the stuff that's between these, you know, this, that's in this environment here, that's the stuff that's actually going to pop up on your PDF, or whatever you compile this to. The stuff up here might be, you know, defining functions, calling packages, whatever. But down here, you can do that as well. But this is where the actual text is going to do, going to, you know, exist. So the last thing we'll put here is actually put some text. So this is some text. And that's it. So if we save that document, now I'm going to go into my working directory where I where this file is. And in order to compile that, you can just type PDF Lautec, and then we'll do Lautec dot tech, and that'll compile. Now if you're using like share Lautec or something, or some kind of, you know, aid, it will, it might have a compile button, or it works differently, but I'm sure you can figure it out. We're doing everything the basically the caveman way, just to make sure we're on the same page. Now I'm going to open this PDF in events. And events is just a PDF viewer. The reason I'm going to use it, well, actually, here's our text, here's our document, congratulations, you just compiled your first Lautec document. But the reason I'm using events is whenever the PDF is changed, it'll automatically update. And if you're on Windows, you can use something like Sumatra PDF, or look for some PDF does the same thing. Otherwise, you'll be opening it every time you update the document. Anyway, so now we got our first document. Now let's add some stuff to this. One thing you're going to want basically every document is some kind of title. Now, titles are called with the make title command, but that requires you to do two things. One is you have to say what the author is. So what how you do that is above the begin document tag, you can say author, and then you can put your name. And then you can give it a title. Let's say my first Lautec document. That looks good. Now once you've done that, in your text area, you can just say make title. Now this make title command will call these two things. Well, I'll just show you what it looks like. We'll recompile this. And here you will see it says my first Lautec document. It'll have your name and it'll have the date. Now you can change the date as well. So you can say like date, last Monday, or something like that. If you recompile that last Monday will be the actual date. I mean literally written out last Monday. But you don't have to include this. And if you don't include it, it'll just be today's date. Okay, so anyway, that's making a title. So one other thing you got to do this because you, you know, I know all you guys want to be super cool. You don't want to write Lautec like this. You want to write it in the cool way. And how you do that is there's a special function for writing Lautec in the characteristic Lautec way. And there it is. So if you call this function, then you get this specially formatted text. So notice that I put this in curly brackets. This is a general tip, general tip. Sometimes you'll call, you know, functions like make title that have no arguments, and text might run behind them. If you don't include curly braces, you might have some text formatting error. So let me compile that. For example, you'll notice if I don't have the curly brackets, Lautec sort of eats up the space behind it. So putting the curly brackets around it is just sort of a safe way of, you know, calling arguments or functions without any arguments. Okay, so anyway, now we got our title. Here's some basic text logic. So if you press return, and go to a next line, so this is a new line in my editor, save that compile it. You'll notice that it's actually the same line in the Lautec document. And that's because if you want to make a new paragraph, you have to make, you have to make two returns. And then we can recompile that. And bam, now you have two paragraphs. It's not super clear because the first one isn't very long. But if I make this a little longer, you will see that it wraps around. And this is indented, this is indented automatically. Let me zoom out a little. Okay, so that's the basic logic, just two returns to get a new line. Okay, so section headings, that's another important thing. Now to make a section heading, very easy, you just type section, and we'll call this section introduction. And we'll put another down here, and we'll call it, you know, I don't know, formatting. Are there two T's in formatting? I don't even know who cares. Oh yeah, theoretically I have some kind of spell check. Okay, yeah, that looks right. Okay, so formatting. So you'll notice that even though we didn't put any numbers in these section headings, they're already automatically assigned numbers by LaTeX. And these will change every time that you recompile. So formatting is two right here. If I add another section, we'll call it, I don't know, you know, numbering, something like that. If we recompile it then you'll notice that numbering is now two. So these numbers are automatically assigned at compile time. Now you can also make subheadings. So for example, you can just say subsection, and you know, we'll just call this subsection, subsection. And these will be, again, automatically numbered wherever they are. So this is 3.1. So this is the basic sort of skeleton of your LaTeX document. Now just as a note, you might be looking at this and be like, oh, I don't want to document formatted exactly like this. I don't like the way the headings look. I don't like the way the title looks. And that's fine. The logic of LaTeX is you write this in syntax and you can change that stuff later. We'll talk about that later. But for now just bear with me even if you, I don't like the way it looks. Although you're going to get used to the LaTeX aesthetic. You're going to come to appreciate, I used to try and format my documents in funny ways when I first started learning it. But there's some appeal to the like default format. There just is. Okay, so anyway, one last thing, some important formatting stuff that you got to know, you got to know how to do the basic stuff like bold italics, all that kind of stuff. Okay, so this is normal text. Nice and simple. Now if you want to make some bold text, what you do is you call the text BF command. So this is bold text. Okay, save that and compile it. Here we got some bold text. I'll zoom in so you can see it a little easier. If you want to make italic text, you can say text it. This is italic. Or there's also a command, which is imp for emphatic, emphatic test text. This is emphatic. Nice and simple. All of them work pretty much the same way. So you'll notice that italics and emphatics look about the same. In fact, they look exactly the same. But stylistically, these are different. You should use the text it when you're using things that are always italicized, like book titles or Latin phrases or something. And if emph is for anything emphatic, now the reason they're different is in some kind of documents, like style guides might want emphatic text to be not italic, but maybe bold or maybe red or something. So you want to have these in different commands. So if you want, you can redefine what emph does and keep text italic the way it is. So that's just the side note. But of course, you have other things. Underline here is some underlined text. And all of that works pretty much the way you would expect. Okay, one final note on quotations. And this is something that'll trip people up when they first start using LaTeX. So let's put something in quotations. So this is in quotation marks and compile that and see what happens. Now, if you look really close, I don't know if you can see it on mine, you might be able to see it on yours. The closing quote looks fine. But the opening quote looks just like a closing quote. It looks a little funny. Now, the logic of LaTeX is that everything you put in is unambiguous. So this one symbol that you put in for two quotes, that always means the same thing in both of these situations. Now, if you want to use the quotes the way that they are meant to be used, you should use two grave accents. That's the accent right next to one on an American English keyboard at least. So it's the sort of falling accent. So this is in proper quotation marks. And then you close them with two apostrophes right next to each other. And if you recompile that, you will see, oh, look, that's exactly what we want it to look like. Or you can have the same thing and have only single quotes around it. And that's going to do what you expect. Just make sure to use this special opening quotation. Alright, so now we've covered some really basic stuff about the formatting in LaTeX. So a lot of this might seem arbitrary, because the magic of LaTeX is not necessary. You're not seeing it. But in the next video, we're going to start talking about labels and references and soon bibliographies. And you'll see the real magic of this. But for now, just understand the basic syntax of the LaTeX document. You got your document class, you open and you begin and end your document, you have the make title command which calls an author and title. You have sections and subsections. And you also have things like bold font, italic font, and remember the not the little caveat about quotation marks. So anyway, in the next video, we're going to talk about labels and refs and why LaTeX is so powerful for dealing with document editing. So anyway, hope you enjoyed it. Hope you learned something. See you around.