{"id":340,"date":"2022-02-14T02:34:14","date_gmt":"2022-02-13T18:34:14","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=340"},"modified":"2023-05-22T06:13:12","modified_gmt":"2023-05-21T22:13:12","slug":"image-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/image-in-latex","title":{"rendered":"How to Insert an Image in Latex \u2013 Managing Latex Figure and Picture"},"content":{"rendered":"\n<p>Image in latex are a vital part of many professional documents. These could be photos, graphs, charts, or figures that add value to the content they are accompanying.&nbsp; The good news is that LaTeX offers many options for inserting figures and pictures into documents. This guide will teach you how to insert an <em>image in LaTeX<\/em> as well as how to shrink, rotate, and position them.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_67_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d28c981cc58\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d28c981cc58\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Importing_a_Picture\" title=\"Importing a Picture\">Importing a Picture<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Using_High_Resolution_and_Low_Resolution_Image_in_LaTeX\" title=\"Using High Resolution and Low Resolution  Image in LaTeX\">Using High Resolution and Low Resolution  Image in LaTeX<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Generating_a_Low_Resolution_png_Image_From_a_pdf_Image\" title=\"Generating a Low Resolution .png Image From a .pdf Image\">Generating a Low Resolution .png Image From a .pdf Image<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Understanding_the_Image_Folder_Path\" title=\"Understanding the Image Folder Path\">Understanding the Image Folder Path<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Using_Relative_Paths\" title=\"Using Relative Paths\">Using Relative Paths<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Using_Absolute_Paths\" title=\"Using Absolute Paths\">Using Absolute Paths<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Using_Multiple_Paths\" title=\"Using Multiple Paths\">Using Multiple Paths<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Resizing_Your_Image\" title=\"Resizing Your Image\">Resizing Your Image<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Specifying_Image_Height_and_Width\" title=\"Specifying Image Height and Width\">Specifying Image Height and Width<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Setting_Image_Dimensions_Relative_to_Document_Elements\" title=\"Setting Image Dimensions Relative to Document Elements\">Setting Image Dimensions Relative to Document Elements<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Rotating_Images\" title=\"Rotating Images\">Rotating Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Positioning_Your_Image\" title=\"Positioning Your Image\">Positioning Your Image<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Captioning_Your_Image\" title=\"Captioning Your Image\">Captioning Your Image<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Frequently_Asked_Questions\" title=\"Frequently Asked Questions\">Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Q1_How_Do_I_Insert_a_Picture_Into_LaTeX\" title=\"Q1. How Do I Insert a Picture Into LaTeX?\">Q1. How Do I Insert a Picture Into LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Q2_How_Do_You_Insert_an_Image_in_LaTeX_Overleaf\" title=\"Q2. How Do You Insert an Image in LaTeX Overleaf?\">Q2. How Do You Insert an Image in LaTeX Overleaf?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Q3_How_Do_I_Scale_Up_an_Image_in_LaTeX\" title=\"Q3. How Do I Scale Up an Image in LaTeX?\">Q3. How Do I Scale Up an Image in LaTeX?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\/#Further_Reading\" title=\"Further Reading\">Further Reading<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"importing-a-picture\"><span class=\"ez-toc-section\" id=\"Importing_a_Picture\"><\/span><strong>Importing a Picture<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Adding an image in LaTeX is a relatively straightforward process. However, you should be familiar with the packages and commands needed to do this properly.<\/p>\n\n\n\n<p>An example of the code needed to import a picture into your LaTeX document is shown below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\usepackage{graphicx}\n\\graphicspath{ {.\/images\/} }\n \n\\begin{document}\nThis is a simple example of a picture inserted into a LaTeX document.\n \n\\includegraphics{teacup}\n \nThere is a picture of a teacup above\n\\end{document}\n\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/L9vPj4w86gPVCURiIB9N_ay90jWtwwPnjfIMJmYBSBkx6Lfo6MemIaGgHaXINWAl6Ip8sKR9ilNhOM-jaFIX-UG7AG9mCkjgbVn9P_MgaM-33Zam4lgnDcurYdXBvPXDwiH7UZO3=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>Note that the above example includes the command <em>\\usepackage{graphicx}<\/em>. LaTeX cannot manage images on its own and needs to use the graphicx package. This package builds onto the stock graphics package and offers a very useful interface for working with images.<\/p>\n\n\n\n<p>The command <em>\\graphicspath{ {.\/images\/} }<\/em> informs LaTeX that the images used are stored in a folder called <em>images<\/em> within the main document\u2019s directory.<\/p>\n\n\n\n<p>The command <em>\\includegraphics{teacup}<\/em> tells LaTeX to include the image file <em>teacup.png<\/em> in the document. Note that this command omits the file\u2019s extension.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-high-resolution-and-low-resolution-image-in-latex\"><span class=\"ez-toc-section\" id=\"Using_High_Resolution_and_Low_Resolution_Image_in_LaTeX\"><\/span><strong>Using High Resolution and Low Resolution  Image in LaTeX<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the above example, we omitted the image file extension from the command <em>\\includegraphics{teacup}<\/em>. This isn\u2019t always necessary, as you can include the file extension in certain situations. Omitting the file extension causes LaTeX to search for all supported image formats within the directory mentioned. It searches for each extension in a particular order, which users can also modify.<\/p>\n\n\n\n<p>Why would you want to include the file extension in the above command? The main reason is that it allows you to switch between a development environment and a production environment easily.<\/p>\n\n\n\n<p>It is generally better to use the development environment when your document is still in progress. This environment uses a low-resolution version of your image. The benefit of using a low-resolution image is that it allows for faster compilation when previewing your document.<\/p>\n\n\n\n<p>You can use a high resolution version of your image in LaTeX in the production environment. This is when your document is complete and is ready to be produced.<\/p>\n\n\n\n<p>For example, let\u2019s say you have two versions of your image, <em>teacup.pdf<\/em> and <em>teacup.png<\/em>. The pdf version is the high resolution image while the png version is the low resolution image. You can then use the command <em>\\DeclareGraphicsExtensions{.png,.pdf}<\/em> to the .png version when developing your report. This command will also use the .pdf version in the event that your .png version is missing.<\/p>\n\n\n\n<p>After you have developed your report,you can use your high-resolution .pdf version of the image using the command <em>\\DeclareGraphicsExtensions{.pdf,.png} <\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"generating-a-low-resolution-png-image-from-a-pdf-image\"><span class=\"ez-toc-section\" id=\"Generating_a_Low_Resolution_png_Image_From_a_pdf_Image\"><\/span><strong>Generating a Low Resolution .png Image From a .pdf Image<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is also possible to have LaTeX generate a low-resolution .png version of your image from a .pdf image automatically while compiling your document. This is possible by using the following code after the <em>\\usepackage{graphicx}<\/em> command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\usepackage{epstopdf}\n  \\epstopdfDeclareGraphicsRule{.pdf}{png}{.png}{convert #1 \\OutputFile}\n  \\DeclareGraphicsExtensions{.png,.pdf}\n\n<\/pre><\/div>\n\n\n<p>If your <em>teacup.pdf <\/em>image exists but <em>teacup.png<\/em> doesn\u2019t, the above code will create a file titled <em>teacup-pdf-converted-to.png<\/em> will be created and loaded into your document.&nbsp;<\/p>\n\n\n\n<p>In above code, the command <em>convert#1<\/em> takes care of the conversion process. Note that LaTeX will need to use the package <em>epstopdf<\/em> to perform this conversion. When completing the final production version of your document, you must include the command <em>\\epstopdfDeclareGraphicsRule<\/em> to ensure only the high-resolution PDF version is used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"understanding-the-image-folder-path\"><span class=\"ez-toc-section\" id=\"Understanding_the_Image_Folder_Path\"><\/span><strong>Understanding the Image Folder Path<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you intend to include multiple images in your document, you may need to keep them in separate folders. This can help keep your project organized while completing your document.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-relative-paths\"><span class=\"ez-toc-section\" id=\"Using_Relative_Paths\"><\/span><strong>Using Relative Paths<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can tell LaTeX to look for images in your <em>images<\/em> folder using the command <em>\\graphicspath{ {images\/}<\/em>. This image in the LaTeX path is relative to the directory you are currently working in. Therefore, the compiler will seek out the file within the same folder that the code for the image is included in.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-absolute-paths\"><span class=\"ez-toc-section\" id=\"Using_Absolute_Paths\"><\/span><strong>Using Absolute Paths<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is also possible to use an absolute path where your file\u2019s exact location is specified. This can be useful when you are working with a local installation of LaTeX on your computer. The absolute path in Windows format will resemble <em>\\graphicspath{ {c:\/user\/images\/} }<\/em><\/p>\n\n\n\n<p>On Linux and MacOS devices, this absolute path should resemble <em>\\graphicspath{ {\/home\/user\/images\/} }<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-multiple-paths\"><span class=\"ez-toc-section\" id=\"Using_Multiple_Paths\"><\/span><strong>Using Multiple Paths<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If your images are saved in multiple folders, you can use a special command to import them. For example, let\u2019s say you have two folders called <em>imagefolder1 <\/em>and <em>imagefolder2<\/em>. You can use the command <em>\\graphicspath{ {.\/imagefolder1\/}{.\/imagefolder2\/} }<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"resizing-your-image\"><span class=\"ez-toc-section\" id=\"Resizing_Your_Image\"><\/span><strong>Resizing Your Image<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>LaTeX offers many options for importing your image. For example, you can add an image in LaTeX and specify the dimensions such as length and height before the image is imported. This is illustrated in the following code example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\begin{document}\nLaTeX is a great document creation software used by scientists and mathematicians all over the world.\n\\includegraphics&#x5B;scale=2]{teacup}\n\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/7lHc_Cn8Y_BTbPrtjfdf92cuYsho5ZS0EppU3oxZ6P4YyDE59LOMkXU0yN3_-YC4X8cO2RN5uf-iY1n92kD32qaoJV_6SgZiWt3JNRbU5la9Dqevm_jL7dKn4Bc5MUq8V4wt71Vf=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>In the above example, the command <em>\\includegraphics[scale=2]{teacup}<\/em> added the <em>teacup<\/em> image into the document. The parameter <em>scale=2<\/em> scaled up the image to twice its original size.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"specifying-image-height-and-width\"><span class=\"ez-toc-section\" id=\"Specifying_Image_Height_and_Width\"><\/span><strong>Specifying Image Height and Width<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In some situations you may prefer to specify the exact dimensions you would like your image in LaTeX to fit. We illustrate this in the following example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\begin{document}\nLaTeX is a great document creation software used by scientists and mathematicians all over the world.\n\\includegraphics&#x5B;width=6cm, height=3cm]{teacup}\n\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/nzS5iGUROBt16Y3HsmPaD92IHBFuuBjCrDdRSQByg6BHBUNgk_ayLQUjCezeZqurT2LkUBgYgv_QbZlvmLeD9zboJK2JGOjAo9Qhcj87pnaRwiXS0V0ZCmyuDlbE3Aogvwljc8QM=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>In the above example, the dimensions are specified in centimeters. However, it is possible to specify the dimensions in different units. The following list explains the abbreviations for different units:<\/p>\n\n\n\n<ul><li>pt: Point refers to the default length unit, which is around 0.3515mm.<\/li><li>mm: millimetre<\/li><li>cm: centimetre<\/li><li>in: inch<\/li><li>ex: Refers to the height of an <em>x <\/em>using the current font.<\/li><li>em: Refers to the width of an <em>m <\/em>using the current font<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"setting-image-dimensions-relative-to-document-elements\"><span class=\"ez-toc-section\" id=\"Setting_Image_Dimensions_Relative_to_Document_Elements\"><\/span><strong>Setting Image Dimensions Relative to Document Elements<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In some cases you may need to set your image in LaTeX dimensions according to the size of your other document elements such as your text. We illustrate how to do this in the following example:<\/p>\n\n\n\n<p><em>\\begin{document}<\/em><\/p>\n\n\n\n<p><em>It is possible to set your image width to be the same as your text width by following the above code.<\/em><\/p>\n\n\n\n<p><em>\\includegraphics[width=\\textwidth]{teacup}<\/em><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/IAK8TKADtBKL-i4l67gkC1TV4h_JnVsQZ_FspwazsEOqgEgRabi_YEebu-rUixdLxLkBXHi26yQCOJ0dtLAj-5jny5vsclz8_NfeRMO83Rm-zZPI-QwRu26xRE8U2e_X5JcskjB-=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>You can also set the image in LaTeX size to match other LaTeX document elements. Some of these are shown below along with their corresponding abbreviations.<\/p>\n\n\n\n<ul><li><em>\\columnwidth<\/em>: Refers to the width of your document\u2019s column<\/li><li><em>\\linewidth<\/em>: Refers to the width of the line within the current environment<\/li><li><em>\\paperwidth<\/em>: Refers to your page width<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"rotating-images\"><span class=\"ez-toc-section\" id=\"Rotating_Images\"><\/span><strong>Rotating Images<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>LaTeX can also rotate images when inserting them. This is illustrated in the following example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\begin{document}\nYou can rotate images easily in LaTeX.\n\\includegraphics&#x5B;scale=1, angle=45]{teacup}\n\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/mozf9hfzqJa5EXHx1_wUx1uvngqPlYKUFQKs6LVd-dGzVoMn90X__LkbhTxqdEppUY5qfp2oIceq3XsXrr7KZBD-LaBMGbWKcX-Rug4gAu1xSi_F-DsrhTpBMDuzZ9UuUa6Luhrl=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>In the above example, we used the parameter <em>angle=45<\/em> to rotate the image in LaTeX counterclockwise by 45<sup>o<\/sup>. You can also rotate your images clockwise by setting the degrees in negative.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"positioning-your-image\"><span class=\"ez-toc-section\" id=\"Positioning_Your_Image\"><\/span><strong>Positioning Your Image<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>LaTeX offers many options for positioning your image. This can be accomplished by introducing a new environment as shown in the following example:<\/p>\n\n\n\n<p><em>The image will be added beneath this text.<\/em><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\begin{figure}&#x5B;h]\n\\includegraphics&#x5B;width=6cm]{teacup}\n\\end{figure}\n\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/vp2vn4im8iyVyR154acaL8K759jevaBemLtkQPu_Ta9DZFSQod9Ya858iQ0sMIyhS7pZXSUfDBEaYVNwBO6MxP4PZjkN8RIyBFT3uKMcjAaJ1NcbZ6qOTRWvDdY5zhGYRzVRKA0Y=s0\" alt=\"\"\/><\/figure><\/div>\n\n\n<p>In the above code, <em>\\begin{figure}[h]<\/em> specifies to position the image in LaTeX \u201chere\u201d via the \u201c<em>h<\/em>\u201d parameter. Some other parameters for positioning your image in LaTeX include:<\/p>\n\n\n\n<p>t: Adding figure to top of the page.<\/p>\n\n\n\n<p>b: Adding figure to bottom of the page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"captioning-your-image\"><span class=\"ez-toc-section\" id=\"Captioning_Your_Image\"><\/span><strong>Captioning Your Image<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>LaTeX also allows you to caption your image easily using the command <em>\\caption{Your caption}<\/em>. Your caption position will change depending on where it is in relation to the command <em>\\includegraphics<\/em>. For example, placing the command above <em>\\includegraphics <\/em>places the caption above the image.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"final-thoughts\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span><strong>Final Thoughts<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As you can see, there are numerous ways to add images and alter them to your liking in LaTeX. The aforementioned guide can help you insert your preferred images quickly and have them looking professional with only a few commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"frequently-asked-questions\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span><strong>Frequently Asked Questions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Some frequently asked questions about adding image in LaTeX are shown below:<\/p>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1630924627123\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q1_How_Do_I_Insert_a_Picture_Into_LaTeX\"><\/span><strong>Q1. How Do I Insert a Picture Into LaTeX?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can add a picture into your LaTeX document using the command <em>\\includegraphics{} <\/em>where your image file name is included between <em>{}<\/em>.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630924642873\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q2_How_Do_You_Insert_an_Image_in_LaTeX_Overleaf\"><\/span><strong>Q2. How Do You Insert an Image in LaTeX Overleaf?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can insert an image in LaTeX Overleaf using the following steps:<br \/>Click the upload icon in the upper left corner of the editor.<br \/>Drag and drop your files into the dialogue box that pops up<br \/>Alternatively, click <em>Select file(s)<\/em> and open the file browser before navigating to your image.<br \/>Your image files will now appear in the left panel.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630924655805\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q3_How_Do_I_Scale_Up_an_Image_in_LaTeX\"><\/span><strong>Q3. How Do I Scale Up an Image in LaTeX?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can scale an image up or down using the command <em>\\includegraphics[scale=x]{filename}<\/em> where \u201cx\u201d is the scale ratio and \u201c<em>filename<\/em>\u201d is the name of your image file.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"gb-headline gb-headline-c8ee9dc0 gb-headline-text\"><span class=\"ez-toc-section\" id=\"Further_Reading\"><\/span><strong>Further Reading<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/pros-and-cons-of-using-latex\">27 Pros and Cons of Using LaTex for Scientific Writing<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-document\">6 easy steps to create your first Latex document examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/circuit-diagrams-in-latex\">How to add circuit diagrams in Latex<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-font\">How to change Latex font and font size<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\">How to create a Latex table of contents<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/footnotes-in-latex\">How to create footnotes in LaTeX and how to refer to them, using the builtin commands<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/glossaries-in-latex\">How to create Glossaries in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plots-in-latex\">How to create plots in Latex \u2013 codes and examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/symbols-in-latex\">How to create symbols in LaTeX \u2013 commands for Latex greek alphabet<\/a>\u00a0 <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-tables\">How to create tables in LaTeX \u2013 rows, columns, pages and landscape tables<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/graphs-in-latex\">How to drawing graphs in Latex \u2013 vector graphics with tikz<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\">How to highlight source code in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-bullet-points\">How to Itemize and Number List \u2013 Adding Latex Bullet Points<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/hyperlinks-in-latex\">How to make hyperlink in latex \u2013 Clickable links<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\">How to reference in Latex \u2013 5 steps to bibliography with Bibtex<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-packages\">How to use Latex Packages with examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-paragraphs\">How to use LaTeX paragraphs and sections<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-installation-guide\">LaTeX Installation Guide \u2013 Easy to follow steps to install LaTex<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-equations-and-math\">Learn to typeset and align Latex equations and math<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Image in latex are a vital part of many professional documents. These could be photos, graphs, charts, or figures that add value to the content they are accompanying.&nbsp; The good news is that LaTeX offers many options for inserting figures and pictures into documents. This guide will teach you how to insert an image in &#8230; <a title=\"How to Insert an Image in Latex \u2013 Managing Latex Figure and Picture\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\" aria-label=\"Read more about How to Insert an Image in Latex \u2013 Managing Latex Figure and Picture\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":341,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/340"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":5,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":5589,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/340\/revisions\/5589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/341"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}