 Hey, what's going on everybody? My name is John Hammond and welcome back to another YouTube video We're still looking at latex. We just get a really basic hello world program or a little PDF Beautiful document that we created with latex. It was really funny and in preparation to make this tutorial I actually just wanted to get like a nice little visual over you guys, you know as you started to watch So I googled latex it went to images and I completely forgot That it was not latex the program language, but also a latex so Okay, regardless let's talk about some text formatting and some text decoration within latex I'm gonna save this as a new file. I'll just call it text decoration dot text So we had a little hello world and let's get a new line for it And let's say we want bold text We want bold text so control b to display this out. We want whoa a little typo there. We want bold text and Notice that it actually displayed that on a new line because I specified a single line space In between this line and the other line That tells latex. Hey put this on a new line if I actually had it just one line ahead Control b to run it. It doesn't add the new line there We can specify. Hey, we literally want a new line in latex with two backslashes And that will put it on a new line for us, but you'll notice Now there's an indent for a hello world line and there's no indent for our we want bold text on that new line Because it's like it's still part of that paragraph If we wanted to we could specify no indent On the first line now when I run this you can see hello world is moved over to the side I'll close out of that and um, that's pretty much how you can work with those lines real simply in latex Just know You're not going to get a new line in between things if you just specify one new line in between them You have to specify another new line in between them. Sure. Okay. Let's seriously get that bold text now The syntax for that is text bf for text boldface and then wrapped inside our Curly braces here all the information will be in bold text now if we wanted italics It's similar syntax to that text and then it for italics bf for boldface it for italics And we now have italic text. What if we wanted underline text? Well, the syntax of that is underline And now we have underline text simple stuff Just syntax formatting that we want to have And let's see what else we can do I'm gonna check it out actually head over to do a little bit of research Let's do latex text formatting and there's some more information all this all online You can set up different line spaces you can um Supply stretch spaces. Okay, so let's get like if I wanted to display as a simple header my name John Hammond being the author display that out And we can also set a hfill to get on the same line something allocated to the end of the margin like the right side right aligned and let's put the date just like they're doing with backslash today Now you can see way over on the side there. There's the date And you'll notice way at the very end of this Uh document they explain some simple things that are latex ready-made strings like the date being today like we just filled in And then there's other stuff for latex We can actually specify Latex is something we actually want you to play out and we'll get that pretty latex symbol that they normally use to denote their latex stuff There's some other stuff in this document, which would be pretty cool to look through. Um I think spaces Hyphenating stuff you can roll in through this if you wanted to using quotes is an interesting thing Like if we wanted to write a book we could say that john said You'll actually notice I get errors I get some weird red syntax highlighting if I try to use regular quotes in here Because that won't actually run or at least it won't give us the output that we want If we wanted real quotes, it looks like it does give us some but not real pretty quotes If we wanted to we could specify within back ticks If I press the back tick symbol now we'll get a single quote And we can specify this one more time with another set of back ticks And now we'll even be syntax highlighted Like double quotes like real dialogue nice You can see that denoted in the uh argument here Other things they discuss our Looks like slash marks Oh, and they recommend subscript and superscript We can do that With text subscript velocity Initial or something how about that looks like we get an error Probably had to have a space there. No Text subscript. What is wrong with that? Okay, it looks like it needs a current leitech version or something to use it a subscript like that um So that's giving an error there. I'm not really going to mess with that but continue along superscript That works. I tested that that works. All right Whoa, whoa, what are you doing wikipedia? All right Other stuff they get into are hyphens and strikes like dashes and hyphens normally if you wanted to you like something Interrupted me When we display that It's not a very long hyphen. It's just like a regular dash But they note here that you can have a a range If you actually supply two dashes and it'll be a longer syntax They do also display the same thing with three dashes To get a m dash or like a longer punctuation dash. Now you can see that's even longer like something interrupted me cool also, they get into ellipsis because if you wanted to write something dramatic with dot dot dots There are no errors that it'll it'll look pretty all right But since it's a single like character. It's pretty small in the font space If you wanted to make it more in-depth ellipsis. It says they they talk about it here. You can actually just enter this A special command with backslash l dots Now when we run this This spacing is proper. So There you go Pretty simple stuff again. Just syntax text boldface text italics Bf for boldface it for italics underline Especially if we can use strike through text or stuff like that Or latex underline with dashes Just to get a little more information as to what more we can do Cool, they specify stuff with different packages packages it looks like Packages can extend latex functionality so we can use package right outside of our document environment, but and like the header or the information of our Uh latex document so we can use a ulem. It looks like will work for us and you can use dot u line or dash u line So now dot u line dotted underline No errors dotted underline cool And then dash u line for dash underline will looks like a dashed underline nice How do we get a strike through text? Do a little bit more research there. It looks like the syntax Ooh actually works with sol or sol So if we wanted to we could use package sol And then st looks like we'll get a strike through Strike through text No errors and hey strike through text it works just fine for us Cool very very cool simple stuff Just a matter of knowing the syntax in latex and I just want to run through a little bit of demonstration so Oh looks like you can even use it with ulem too Do we even need sol? s out Sweet it does the same thing for us. So yeah, we don't even need the sol or sol package. We can just use ulem ulem will give us a little bit more uh Information there or a little bit more functionality. That's cool. Cool. Thanks for watching guys simple stuff But knowing latex is a awesome tool to have in your in your pocket a little weapon on your belt, you know All right. See you later