{"id":2253,"date":"2011-08-30T12:30:31","date_gmt":"2011-08-30T10:30:31","guid":{"rendered":"http:\/\/djalil.chafai.net\/blog\/?p=2253"},"modified":"2011-08-31T08:47:08","modified_gmt":"2011-08-31T06:47:08","slug":"graphics-and-latex","status":"publish","type":"post","link":"https:\/\/djalil.chafai.net\/blog\/2011\/08\/30\/graphics-and-latex\/","title":{"rendered":"Graphics and LaTeX"},"content":{"rendered":"<p><a href=\"\/blog\/wp-content\/uploads\/2011\/08\/yellow_balloon.jpg\"><img loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-2285\" title=\"Latex balloon\" src=\"\/blog\/wp-content\/uploads\/2011\/08\/yellow_balloon-150x150.jpg\" alt=\"Latex balloon\" width=\"150\" height=\"150\" srcset=\"https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2011\/08\/yellow_balloon-150x150.jpg 150w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2011\/08\/yellow_balloon-300x300.jpg 300w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2011\/08\/yellow_balloon.jpg 480w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">One of the most frequent question by beginners in <a title=\"LaTeX\" href=\"http:\/\/en.wikipedia.org\/wiki\/LaTeX\">\\(\\LaTeX\\)<\/a> is<\/p>\n<p style=\"text-align: center;\"><em>How to produce and to include graphics in my \\(\\LaTeX\\) file?<\/em><\/p>\n<p style=\"text-align: justify;\">You may read <a title=\"LaTeX\/Importing Graphics\" href=\"http:\/\/en.wikibooks.org\/wiki\/LaTeX\/Importing_Graphics\">this e-book<\/a>. If you have already your graphic in <a href=\"http:\/\/en.wikipedia.org\/wiki\/Encapsulated_PostScript\" title=\"Encapsulated PostScript\">EPS<\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/PDF\" title=\"Portable Document Format\">PDF<\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Portable_Network_Graphics\" title=\"Portable Network Graphic\">PNG<\/a>, or <a href=\"http:\/\/en.wikipedia.org\/wiki\/Jpeg\" title=\"Joint Photographic Expert Group\">JPEG<\/a> format, you may use the <em>graphicx<\/em> package and its <em>\\includegraphic<\/em> command. You may also produce graphics directly in \\(\\LaTeX\\), or using a package like <a title=\"PGF\/TikZ\" href=\"http:\/\/en.wikipedia.org\/wiki\/PGF\/TikZ\"><em>PGF\/TikZ<\/em><\/a> (see <a title=\"TeXample\" href=\"http:\/\/www.texample.net\/\">the examples gallery<\/a>). There is also <a title=\"Search for PDFTricks with Google!\" href=\"\/scripts\/search.php\/?q=PDFTricks+LaTeX\"><em>PDFTricks<\/em><\/a> which is the counterpart of <a title=\"PSTricks\" href=\"http:\/\/en.wikipedia.org\/wiki\/Pstricks\"><em>PSTricks<\/em><\/a>. You may also use an external program such as\u00a0 <a title=\"Metapost\" href=\"http:\/\/en.wikipedia.org\/wiki\/Metapost\"><em>Metapost<\/em><\/a>, <a title=\"Inkscape\" href=\"http:\/\/en.wikipedia.org\/wiki\/Inkscape\"><em>Inkscape<\/em><\/a>, the venerable <a title=\"Xfig\" href=\"http:\/\/en.wikipedia.org\/wiki\/Xfig\"><em>Xfig<\/em><\/a> or the more recent and neat <a title=\"Ipe\" href=\"http:\/\/en.wikipedia.org\/wiki\/Ipe_%28program%29\"><em>Ipe<\/em><\/a>. I use TikZ and Ipe. By the way, if you need to include selected pages from PDF files inside your \\(\\LaTeX\\) document compiled with pdflatex, you may use the excellent <a title=\"Search for pdfmerge with Google!\" href=\"\/scripts\/search.php\/?q=pdfmerge+latex\"><em>pdfmerge<\/em><\/a> package. Finally, if you use <a title=\"Debian GNU\/Linux\" href=\"http:\/\/www.debian.org\/\"><em>GNU\/Linux<\/em><\/a>, you may use for instance <a title=\"Emacs\" href=\"http:\/\/en.wikipedia.org\/wiki\/Emacs\"><em>Emacs<\/em><\/a>, <a title=\"TeXworks\" href=\"http:\/\/en.wikipedia.org\/wiki\/Texworks\"><em>TeXwork<\/em><\/a>, <a title=\"LaTeXila\" href=\"http:\/\/projects.gnome.org\/latexila\/\"><em>LaTeXila<\/em><\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Lyx\"><em>LyX<\/em><\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/Texmaker\"><em>Texmaker<\/em><\/a>, or <a href=\"http:\/\/en.wikipedia.org\/wiki\/Kile\"><em>Kile<\/em><\/a> to edit your \\(\\LaTeX\\) files. I use Emacs or <a title=\"Vim\" href=\"http:\/\/en.wikipedia.org\/wiki\/Vim_%28text_editor%29\"><em>vim<\/em><\/a> (old habits...). You may also try by curiosity <a href=\"http:\/\/en.wikipedia.org\/wiki\/Texmacs\"><em>TeXmacs<\/em><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most frequent question by beginners in \\(\\LaTeX\\) is How to produce and to include graphics in my \\(\\LaTeX\\) file? You may read&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/djalil.chafai.net\/blog\/2011\/08\/30\/graphics-and-latex\/\">Continue reading<span class=\"screen-reader-text\">Graphics and LaTeX<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":80},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/2253"}],"collection":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/comments?post=2253"}],"version-history":[{"count":35,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/2253\/revisions"}],"predecessor-version":[{"id":2358,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/2253\/revisions\/2358"}],"wp:attachment":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/media?parent=2253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/categories?post=2253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/tags?post=2253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}