 All right, what's up everyone? So you're ready to have your paradigm shifted because in this video We're gonna talk about bibliography management in LaTeX and once you have this set up you will never look back at word or anything else Of course, there are lots of reasons you're never gonna look back, but bibliography management is one of the best So I'm gonna open the scary-looking file here. This is actually my Bibliography index that I have so everything that I have cited in any one of my papers Or theses or anything in the past Since I've been using LaTeX for a couple years is in this file every time I read something new I just reflexively put it in here has the author title year publisher whatever I need of each of these resources Now this might look intimidating. I mean it is 1500 lines or whatever But once I put something in this file I will never have to think about it ever ever ever again because once it's in this file LaTeX will take care of everything for me. Now. How does this work? How what is the logic of bibliographies in LaTeX? It's really simple So whenever I put an entry in actually, let's make one up of our own Let's say I want to make a book entry. So you just say at book and then you open the brackets and First you think of a tag to tag this with we'll just tag it with test This is never going to appear. This is just what LaTeX uses to refer to it Then we'll say let's say the author and you put the author in Quotation marks will make it me then you comma now notice I put last name first You can put first name without a comma and then last that's fine. LaTeX is smart enough to deal with it It's usually safer to do last name comma first in middle whatever else But anyway, so author title my first We should probably capitalize it in my first book exclamation point you know, you can put your year will make the year current year 2017 and Publisher will say Luke Publishing If I ever had a publisher, I'd name it something smarter than that But we've just added a little injury to this bibliography file So once I've put something in here and once I've labeled it and I've labeled it with this test thing Whenever I call this in my document LaTeX will automatically put the reference in for me and deal with everything Let me show you what that looks like. Let me show you how to make it work So first off, there are different options for the specific packages that you use for Compiling or for bibliography management. I'm gonna use Bieber or Bieber, whatever it is. I'm not quite sure B-I-B-E-R now I will note that Those of you who are using Arch like me This is not automatically installed with tech live most. I don't know if it's an automatically installed with Ubuntu But you're gonna want to install this Bieber Bieber make sure it's there Or if you're using Mac or Windows, you might want to double check But this is what I'm gonna use if you don't want to use this there are other ways of compiling You know or managing bibliography, which is you know more or less the same But you might have to look it up. This is the one I use because it works well with my auto compile system Which of course I'm not using now, but anyway, I like this more for different reasons anyway Let's let me go ahead and tell you remember in this file We named we named the new resource we the new book. We made test. That's it So how do we call that? Well first we have to In our before we have our begin document tag We are going to use a package. We're gonna call a new package and we're gonna call bib law tech I'm assuming you do have packages installed if you don't it'll probably prompt you to install this But that's you know, you need this so bib law tech And I'm also gonna say in brackets before this command. This is where you put different parameters And I'm gonna put in the parameters We'll say back end Equals bibber And close your square brackets. So that's that's all we need to call the package The other thing we need to do is add bib resource And this is a function which adds the file that I just showed you a second ago And that's in the same directory as this file. It's just uni dot bib So I'm just gonna call uni dot bib and the last thing you need to do is Wherever you want your references you just call the command print References and this command is going to automatic oops accidentally exit it out So this command is going to print all the references that you have for this document now if we compile this You should see Oops, no not print reference print bibliography silly me Um Fee print bibliography crap exit it again. I'm kid just pressing all these random muttons So we'll compile that and you should see nothing will happen That's because we're not calling the entire file and all the references law tech only uses the references you specifically name So let's go ahead and pull one up So again the one we had before was just a test But let's go ahead and implement that in the text. Let's say as text site test says There's no reason not to use Law tech for Bibliography management. I'm too lazy to write it all out. It doesn't matter So once we have put this in this is the text site command and this treats This will call the reference that you know who's a tag you've called And it'll call it as if it's an in-text citation. So if we recompile this First nothing will happen. It'll just say test what you have to do after that is say bibber or beber Whatever it is and then type in the name of your document Don't include the dot-tech just include the name and then run that and that might take a second But once it's done now your references are ready now you recompile it once again and You will see that this reference has appeared now it is Smith It is called the last name of that author It's given it a number and this number refers to the reference which is down here If you add more references more of them will get numbered now This so this is nice this by default. It's going to use this sort of It's more characteristic of the hard sciences when you have numbers in text and they refer to references down here I don't usually use this I usually use something similar to like APA or MLA when you have Like a last name and then a year so you can change that by going up to the use package command and In you know where we put back-end Bibber add a comma and we can add another parameter and the one I usually like Is to set the style to the following? author year hyphen I comp And once you do that, that's the file. That's the sort of format. I like so now let's Repeat our compiling process. So PDF a lot lot tech three. That's my file name Select bibber again. So bibber lot tech three and then compile it once more and now you will have Everything exactly how I want it. You know, so Smith 2007 says there's no reason blah, blah, blah, blah And now we have the reference in the way. I want you got everything properly formatted for example The title is italic. I never told it to do that. It knew because it's a book to italicize the name Everything like that is done perfectly And of course I can call other things so I don't know Well, I should say so this is text site if you want everything to be in parentheses you can use the parent site command So Let's say we have some kind of sentence. This is something you'll commonly have some kind of claim and you want to sort of You know cite someone to support that so you can use the command parent site and Then let's use someone else say Chomsky 2005 okay, that's who we're going to cite for this Jumbo of sentences or jumbo of words So if you again just recompile PDF lot tech Bieber lot tech and then PDF lot tech again You will see that now this reference which I have in my bibliography now appears automatically Everything's ordered. It's an article. So it knows to put quotation marks around it It knows to italicize this everything works perfectly. So this is what I meant by Every you don't have to deal with any kind of bibliography management anymore Once I have put something into this file where I have all of my References I will never have to worry about any of them. All of them are done done automatically So anyway, this is sort of the glory of dealing with references in law tech There's this automatic way of dealing with them. So anyway, we're gonna have some more stuff coming up soon more a lot tech syntax But once you get the hang of telling you once you get the hang of references This is gonna make your life so much easier. So I hope you learn something. See you in next time