(UPDATED) LaTeX Tutorial 6: Packages, Macros and Graphics

  Рет қаралды 42,206

Michelle Krummel

Michelle Krummel

Күн бұрын

In this updated tutorial, I show you how to use LaTeX for text and document formatting. To follow along with this tutorial I recommend using one of the following:
(1) Overleaf: www.overleaf.com/?r=b4398ca7&...
(2) TexMaker: www.xm1math.net/texmaker/
Warning! If you decide to install TexMaker, make sure you install MacTeX/MikTeX BEFORE installing TexMaker, or you will have a problem.
Topics in this tutorial include:
00:12 using packages
01:50 fullpage and geometry packages (adjusting margins)
07:16 amsfonts package
11:20 using macros to define custom commands
19:40 adding images to your document
28:31 adding images in Overleaf
Downloadable .tex file: www.dropbox.com/sh/lbrcoezrm7...
Learn more at www.michellekrummel.com/tutor....
Happy coding!

Пікірлер: 52
@sinansenocak
@sinansenocak 3 жыл бұрын
This series reduced my thesis anxiety so much. Life saving playlist, thank you!
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
I'm happy I could help :)
@breadwithavocado
@breadwithavocado 3 жыл бұрын
Nice tutorial and good explication! I'm really learning a lot with these tutorials.
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
That's great to hear. Thank you!
@imadnm1
@imadnm1 3 жыл бұрын
Thank you for sharing this. Very useful!
@minaxisharma7630
@minaxisharma7630 Жыл бұрын
Kindly upload more videos. Your style of explanation is too good
@baruchba7503
@baruchba7503 3 жыл бұрын
Great tutorial...nicely paced and easy to understand. All the best to you and your students in the upcoming school year.
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
Thank you very much!
@ellenw1597
@ellenw1597 3 жыл бұрын
This is very useful and helps me a lot with my assignment. Thank you, Michelle!
@antonioavilix
@antonioavilix 3 жыл бұрын
latex in vscode kzbin.info/www/bejne/bJbZcqZ5qbGmn9U
@angelomarcone8221
@angelomarcone8221 3 жыл бұрын
Nice and clear tutorial. Thank you Michelle.
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
Thanks for watching!
@asaradhi
@asaradhi 3 жыл бұрын
She is the undisputed Queen of latex tutorials ! Amazing, fantastic , simple yet deeply effective !
@minaxisharma7630
@minaxisharma7630 Жыл бұрын
Very well explained. Thanks so much
@Edgawliet
@Edgawliet 3 жыл бұрын
A little help here: The time stamp for the video 0:00 Intro 0:10 Topics to explain 0:20 Saving the file 0:49 Packages 11:18 Macros 19:40 Graphics
@adadbarkho2977
@adadbarkho2977 3 жыл бұрын
Thank you very much for providing such great quality tutorials for free
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
You're very welcome!
@vwij1736
@vwij1736 Жыл бұрын
Much appreciated, Michelle!
@douglasmangini8744
@douglasmangini8744 3 жыл бұрын
Great, Michelle. Thank you!
@iitmaths4757
@iitmaths4757 2 жыл бұрын
Thanks you so much Michelle mam!!! For this most useful video
@shutupimlearning
@shutupimlearning 2 жыл бұрын
great video! You make learning LaTeX a breeze
@MichelleKrummel
@MichelleKrummel 2 жыл бұрын
Glad to hear that!
@LupinoArts
@LupinoArts Жыл бұрын
Hello Michelle, one piece of nitpicking here regarding your definition at 13:00 : macros defined in LaTeX's preamble can only have letters in their name, that is [a-z] and/or [A-Z]. Numbers and any other characters are not allowed (except @ when you say "\makeatletter" before, which literally means "make '@' into a 'letter'"). What you are actually doing there, is to define a macro named "\eq", which has the hard-coded requirement to be followed by the character "1". If you type "\eq" after "\begin{document}" you will get an "Use of \eq doesn't match its definition." error instead of "Undefined control sequece", since LaTeX is expecting the 1. However, if you type in "\eq 1", the code will compile without any errors, since all spaces after a control sequence are ignored by LaTeX and therefore the call fulfills the "must be followed by a '1'" requriement. Your whole code will fail if you try to define another macro "\eq2" in the same way: then you re-define "\eq, which must be followed by the number 1" to "\eq, which must be followed by the number 2" and every call to "\eq1" will lead to the "Use of \eq doesn't match its definition." error, since it is not followed by "2". The only way to define a macro that is genuinly called "eq1" is to use \csname and \endcsname: \expandafter\def\csname eq1\endcsname{...}. However, be aware that calls to those macros also require that csname "shell": \csname eq1\endcsname. That way you can create makros with the name "eq2", "eq3", and so on. The etoolbox package provides an abbreviation of that with the \csdef and \csuse macros: \csdef{eq1}{...} defines a macro "eq1", and \csuse{eq1} calls that macro.
@MichelleKrummel
@MichelleKrummel Жыл бұрын
Thank you for the clarification :)
@bendibhafed1687
@bendibhafed1687 3 жыл бұрын
great job, perfect!!
@antonioavilix
@antonioavilix 3 жыл бұрын
i recommend you tha video kzbin.info/www/bejne/bJbZcqZ5qbGmn9U
@jimchang2322
@jimchang2322 2 жыл бұрын
I followed your code and use \calculator command and it returns an error message. I’ve checked repeatedly on overleaf for typos to it’s full correctness and has no clue of the error. It is truly a great tutorial!
@nikhilmanikpuri1076
@nikhilmanikpuri1076 9 ай бұрын
How did you formed those new commands?? I count understand also these command s are not working if I just used the package
@joseantoniobarreranunez9949
@joseantoniobarreranunez9949 2 жыл бұрын
Thank you Michell,
@anishasahu830
@anishasahu830 Жыл бұрын
Could you please share the tex file containing all the packages and macros you were using in Tutorial 6?
@sukranochani5764
@sukranochani5764 3 жыл бұрын
ThankYou Mam
@moinulhoque2160
@moinulhoque2160 3 жыл бұрын
Really helpful video. I have one question, sometimes or most of the times it shows file not found. Where should I found?
@antonioavilix
@antonioavilix 3 жыл бұрын
latex in vscode kzbin.info/www/bejne/bJbZcqZ5qbGmn9U
@MrVoocGaming
@MrVoocGaming 2 жыл бұрын
Thanks mam for this helpful tutorial. Why you stopped making videos 🙁??
@wesjredd1
@wesjredd1 3 жыл бұрын
Thank you for your tutorials. Suppose that I want the item numbers to be bold. Is there a way to do that?
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
\documentclass{article} \usepackage{enumitem} \setlist[enumerate,1]{label=\textbf{\arabic*}.} \begin{document} \begin{enumerate} \item One \item Two \item Three \end{enumerate} \end{document}
@wesjredd1
@wesjredd1 3 жыл бұрын
Thank you!
@alishaheedmuhamad
@alishaheedmuhamad 3 жыл бұрын
Great video Michel Krummer, but what if I want to build my own class of document ? Any material you could suggest me, by chance.
@johanneschristopherstahle3395
@johanneschristopherstahle3395 2 жыл бұрын
Then ask yourself if you really need it. Usually there will already be a package that will give you all you need. Tweak it to your taste and put all of your tweaks into a separate tex-file. You can then use \input{mytemplate.tex} to load it into new documents. So you don't need put all this code into every new document and still have all your tweaks. If you change this external file, it will automatically change the output of all documents that load (input) this file once you recompile them.
@alishaheedmuhamad
@alishaheedmuhamad 2 жыл бұрын
@@johanneschristopherstahle3395 Thanks a lot ! That is still a very good option and quicker to get things done
@bhartikumari4179
@bhartikumari4179 2 жыл бұрын
Can you tell me from where to download different packages??
@richardwalters9249
@richardwalters9249 2 жыл бұрын
I am new to LaTeX … but I still have questions I would like to know how to use one font, such as cinzel, for the title, and the main body of text with Bakersfield, and sections that use background color that spans a full line with something like Avenir. Switching fonts in a document does not look easy to me. Any recommendations for where to learn about switching fonts in a single document ? I would also like to know about book vs article for class options
@johanneschristopherstahle3395
@johanneschristopherstahle3395 2 жыл бұрын
First of all it's unusual to switch fonts within a document. Usually you do have three different fonts you can use: Serif, Non-Serif, Typewriter. The Serif font is usually used for your main text, tables and so on. The Non-Serif font is often used for headings. Typewriter fonts are used for code snippets and similar things where you need a font with a fixed letter width. There are some effect fonts (handwriting, glyphs for example) that can be used at different places inside a document using specific commands. But generally it is not easily possible to switch the main fonts. But that's for good reason: LaTeX is designed to give you the tools to craft good looking papers from the viewpoint of typesetting. If you are more into fancy design, LaTeX is probably not the tool for you. Of course, there are ways to make LaTeX to do a lot of things, it originally was not designed to do, but it might be easier to use other tools for those cases. For the second part of your question: article: small documents without chapters and parts report: larger documents that do need chapters, but are usually set one-sided (margins usually the same on all pages) book: Whole Books that are typeset as such. Usually two-sided (margins and page numbers are swapped between left and right pages, chapters begin on right pages, you can use front matter, main matter and back matter commands... Articles and reports allow you to use an abstract, books don't. In many cases the differences between book and report won't be drastic, because you can still change a lot of the options anyways. Plus you can use other document classes than the standard ones. Memoir for example is great for creating books with more exciting designs for your headings and title pages for example. In Germany the KOMA Script classes have become kind of the new standard classes. If you write an article for a paper or a chapter for a book you will most likely have to use a specific class made by the publisher... Hope my answer is helpful
@adhishpv6315
@adhishpv6315 Жыл бұрын
Could you share your LaTeX doc with all other packages and Macros, It would really help, because everything is at one place
@leonardodrago893
@leonardodrago893 3 жыл бұрын
@michelle I have a problem: I insert images, then I need to write a test under that image (not the caption, a full paragraph) but on the pdf, the images and the paragraphs don't result in the order I call. Please help I don't understand why is that...
@MichelleKrummel
@MichelleKrummel 3 жыл бұрын
If you use \begin{figure}...\end{figure} you will have more control over the placement of the image. This may help: www.overleaf.com/learn/latex/Positioning_of_Figures
@leonardodrago893
@leonardodrago893 3 жыл бұрын
@@MichelleKrummel Solved! Wow thanks a lot really!!! yes, I always used \begin{figure},... but the trick was to add [H]. Thank you so much and wish you a good year!!!
@johanneschristopherstahle3395
@johanneschristopherstahle3395 2 жыл бұрын
@@leonardodrago893 If you use a floating environment (for example figure or table) LaTeX will put it somewhere into the document where LaTeX will find enough space. Usually somewhere directly on the top or bottom of a page or as a single object on a page. In the text you should then refer to the figure or table. This is standard in scientific articles/books. If you want the picture to be exactly where you put the \includegraphics command just don't use the figure environment and it will always appear exactly where you want it to be. You can't use a caption, though (as long as you don't use a package that allows you to create captions outside of floating environments). There has been put quite a lot of thought into the behavior how LaTeX chooses the position of floating objects. So maybe you just want to get used to it. If you don't and you don't need a caption, just don't use the figure environment. The option H should really be used with care. Why need a floating environment if you don't want it to float. If you want to make sure that floats appear after being referenced in the text, use the package flafter. If you want the flat to stay within the same section, use placeins with the option [section].
@joseantoniobarreranunez9949
@joseantoniobarreranunez9949 2 жыл бұрын
Good afternoon Michelle; I have finished tutorial 6. It's being very entertaining in a new year's eve. I have a question about the instruction ew command: once it is created where must be filed so it can be invoked and put it in the actual file? Thank you. I can wait for your answer until next year.
@haraldurkarlsson1147
@haraldurkarlsson1147 2 жыл бұрын
Overleaf used to have a free option. That is now gone (bound to happen after the took over ShareLateX).
@timothygorden7689
@timothygorden7689 9 ай бұрын
23:10 agreed, enormous even
@oriabnu1
@oriabnu1 3 жыл бұрын
, "try" to be concealed in a cover file. After encoding, the message is "5S " and the enciphered message "ğð:." how write encipher message in latex
(UPDATED) LaTeX Tutorial 7: Errors and Debugging
22:51
Michelle Krummel
Рет қаралды 20 М.
(UPDATED) LaTeX Tutorial 1 - Creating a LaTeX Document
34:42
Michelle Krummel
Рет қаралды 292 М.
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 33 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 822 М.
Final increíble 😱
00:39
Juan De Dios Pantoja 2
Рет қаралды 33 МЛН
LaTeX for Students - A Simple Quickstart Guide
13:51
Jake B
Рет қаралды 99 М.
(UPDATED) LaTeX Tutorial 5 - Text and Document Formatting
22:50
Michelle Krummel
Рет қаралды 50 М.
How to make beautiful math graphics using Tikz & LaTeX
24:16
Dr. Trefor Bazett
Рет қаралды 148 М.
How to use LaTeX and why all textbooks look the same
40:44
Thomas Rintoul
Рет қаралды 44 М.
Typst: The LaTeX alternative in Rust
10:34
chris biscardi
Рет қаралды 30 М.
My favorite LaTeX packages for writing beautiful math documents
28:48
Dr. Trefor Bazett
Рет қаралды 196 М.
2 Genius Ways To Use ChatGPT To Create A PowerPoint Presentation
5:48
IncrediSkill PowerPoint
Рет қаралды 678 М.
My favorite LaTeX Tricks to save time
17:04
Dr. Trefor Bazett
Рет қаралды 61 М.
LaTeX Tutorial 11: Creating CV in LaTeX
20:56
Physics Matters
Рет қаралды 42 М.