🌱 [LaTeX] Introdução ao LaTeX e Overleaf | Formatação de Figuras | Aula 03
How to Insert Figures in LaTeX
Introduction to the Lesson
- The instructor, Professor Jacqueline Silva, introduces the topic of inserting figures into a LaTeX document and encourages viewers to like and subscribe.
- Viewers are advised to watch the previous lesson for foundational knowledge before proceeding with today's topic.
Setting Up for Inserting Figures
- To insert figures, it is essential to include the
graphicxpackage in the LaTeX document preamble; without it, figure insertion will not function.
- The command
beginfigureis introduced as part of creating a figure environment where images can be placed.
Adding and Formatting Figures
- The command
includegraphicsmarca.pngis used to specify which image file to include. Adjustments can be made for size using options like[width=2cm].
- Centering an image can be achieved by wrapping it with
begincenter ... endcentercommands.
Captioning and Labeling Figures
- A caption for the figure can be added using
captionlogomarca da Jaqueline, which automatically numbers the figure.
- The use of
label...allows users to reference figures later in their text easily, enhancing organization when multiple figures are present.
Referencing Figures within Text
- To reference a labeled figure, one uses
ref..., allowing seamless integration of references throughout the document.
- This method ensures that even if figures are rearranged or added later, references remain accurate without manual updates.
Uploading Custom Images
- Instructions on uploading custom images into LaTeX are provided; users must drag files into their working environment or upload them directly.
- Renaming uploaded images is possible through interface options for easier identification within documents.
Finalizing Figure Insertion
- After uploading an image named "imagem.png," users learn how to adjust its size again using width specifications (e.g.,
[width=5cm]).
- Captions can also be applied similarly as before, ensuring each new figure maintains proper labeling and numbering conventions.
Referencing Figures in Text
Creating References to Figures
- The speaker emphasizes the importance of labeling figures correctly, specifically mentioning "leblon fig 02" as a preferred label for clarity.
- A demonstration is provided on how to reference figures within text, highlighting that the speaker prefers figure 2 over figure 1 and shows how to implement this in writing.
- The process involves marking the figure and then making references throughout the text, which enhances readability and comprehension.
- The speaker expresses hope that learners find this method enjoyable and engaging, indicating a focus on user-friendly techniques in academic writing.
- Future lessons will cover integrating mathematical elements with figures and formatting text, suggesting an expansion of skills beyond just referencing.