{"id":1766,"date":"2015-03-06T17:03:00","date_gmt":"2015-03-06T23:03:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/codigo-fuente-en-documentos-latex-con-minted\/"},"modified":"2015-03-06T17:03:00","modified_gmt":"2015-03-06T23:03:00","slug":"codigo-fuente-en-documentos-latex-con-minted","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/codigo-fuente-en-documentos-latex-con-minted\/","title":{"rendered":"C\u00f3digo fuente en documentos latex con minted"},"content":{"rendered":"<div style=\"text-align: justify;\">En mis publicaciones de <a href=\"http:\/\/linuxgx.blogspot.mx\/2015\/03\/agregar-caption-mdframed-al-usar-minted.html\">http:\/\/linuxgx.blogspot.mx\/2015\/03\/agregar-caption-mdframed-al-usar-minted.html<\/a>, <a href=\"http:\/\/linuxgx.blogspot.mx\/2015\/03\/entorno-minted-en-saltos-de-pagina.html\">http:\/\/linuxgx.blogspot.mx\/2015\/03\/entorno-minted-en-saltos-de-pagina.html<\/a> y <a href=\"http:\/\/linuxgx.blogspot.mx\/2015\/03\/saltos-de-linea-usando-entorno-minted.html\">http:\/\/linuxgx.blogspot.mx\/2015\/03\/saltos-de-linea-usando-entorno-minted.html<\/a> hab\u00eda mencionado el uso de minted para dar un estilo de colores m\u00e1s llamativo de c\u00f3digo fuente en documentos elaborados en latex, pero no hab\u00eda dado un ejemplo completo o de c\u00f3mo compilar dicho documento.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">As\u00ed que ahora, les mostrar\u00e9 de c\u00f3mo crear un documento de este tipo usando el editor de textos latex TexStudio m\u00e1s informaci\u00f3n <a href=\"http:\/\/texstudio.sourceforge.net\/\" target=\"_blank\">aqu\u00ed<\/a>.<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/2.bp.blogspot.com\/-R-ckrv38XQM\/VPoNSkHHHSI\/AAAAAAAAAfg\/J0hUDyhQfM0\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B14%3A24%3A58.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-R-ckrv38XQM\/VPoNSkHHHSI\/AAAAAAAAAfg\/J0hUDyhQfM0\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B14%3A24%3A58.png\" height=\"223\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Para iniciar es necesario instalar minted:<\/div>\n<div style=\"text-align: justify;\">Aqu\u00ed pueden encontrar todos los requisitos de minted <a href=\"https:\/\/code.google.com\/p\/minted\/\">https:\/\/code.google.com\/p\/minted\/<\/a> y las dependencias que necesita.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">En fedora:<\/div>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: lime;\">sudo yum -y install phyton<\/span><\/pre>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: lime;\">sudo yum -y install yumex<\/span><\/pre>\n<div style=\"text-align: justify;\">La interfaz yumex yo la uso para instalar paquetes o librer\u00edas que en el paquete de instalaci\u00f3n de software no se puede o no vienen, por ejemplo paquetes de texlive, en esta interfaz busquen el paquete <b>minted<\/b> e instalenlo.&nbsp;<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Instalar Pygments en fedora<\/div>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: lime;\">sudo pip3 install Pygments<\/span><\/pre>\n<div style=\"text-align: justify;\">o usar la siguiente<\/div>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: lime;\">sudo easy_install Pygments<\/span><\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Ahora descargar el paquete <b>minted.sty<\/b> y anexarlo al directorio en el que est\u00e9 el documento de latex.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Para compilar el documento desde consola se usa la siguiente instrucci\u00f3n:<\/div>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: lime;\">xelatex -shell-escape documentoPrincipal.tex<\/span><\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">La configuraci\u00f3n de TexStudio para compilar los archivos se muestra en las im\u00e1genes siguientes:<\/div>\n<div style=\"text-align: justify;\"><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-BjY16iF2wQA\/VPoaL344cHI\/AAAAAAAAAfw\/Y0SYhx64rBE\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B15%3A20%3A03.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-BjY16iF2wQA\/VPoaL344cHI\/AAAAAAAAAfw\/Y0SYhx64rBE\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B15%3A20%3A03.png\" height=\"248\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-xXPGZlp7KHE\/VPoaeXKecmI\/AAAAAAAAAf4\/DAEmOk7Fw7g\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B15%3A21%3A10.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-xXPGZlp7KHE\/VPoaeXKecmI\/AAAAAAAAAf4\/DAEmOk7Fw7g\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B15%3A21%3A10.png\" height=\"201\" width=\"400\" \/><\/a><\/div>\n<p>El archivo de prueba est\u00e1 <a href=\"https:\/\/mega.co.nz\/#!yI5hgRJA!SZp7OrQFAOQXgiEZ2R1fxdGOSFlQlVVPsdWxY7pNyQ4\" target=\"_blank\">aqu\u00ed<\/a>.<\/p>\n<p>Instalaci\u00f3n en windows visitar el siguiente link: <a href=\"https:\/\/cgedmundo.wordpress.com\/2012\/04\/16\/colereado-formatos-de-codigo-fuente-con-minted-en-latex\/\">https:\/\/cgedmundo.wordpress.com\/2012\/04\/16\/colereado-formatos-de-codigo-fuente-con-minted-en-latex\/<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>En mis publicaciones de http:\/\/linuxgx.blogspot.mx\/2015\/03\/agregar-caption-mdframed-al-usar-minted.html, http:\/\/linuxgx.blogspot.mx\/2015\/03\/entorno-minted-en-saltos-de-pagina.html y http:\/\/linuxgx.blogspot.mx\/2015\/03\/saltos-de-linea-usando-entorno-minted.html hab\u00eda mencionado el uso de minted para dar un estilo de colores m\u00e1s llamativo de c\u00f3digo fuente en documentos elaborados en latex, pero no hab\u00eda dado un ejemplo completo o de c\u00f3mo compilar dicho documento. As\u00ed que ahora, les mostrar\u00e9 de c\u00f3mo crear un documento de este [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1315,87,1312,1316,1314,4,556,1294,1313,1311],"tags":[],"class_list":["post-1766","post","type-post","status-publish","format-standard","hentry","category-codigo-con-minted","category-gnome","category-insert-programm-code-in-latex","category-insertar-codigo-en-documentos-latex","category-laltex","category-linux","category-minted","category-minted-in-latex","category-usando-minted-en-latex","category-using-minted-in-latex"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1766"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1766\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}