{"id":1769,"date":"2015-03-06T10:30:00","date_gmt":"2015-03-06T16:30:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/saltos-de-linea-usando-entorno-minted-en-latex\/"},"modified":"2015-03-06T10:30:00","modified_gmt":"2015-03-06T16:30:00","slug":"saltos-de-linea-usando-entorno-minted-en-latex","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/saltos-de-linea-usando-entorno-minted-en-latex\/","title":{"rendered":"Saltos de l\u00ednea usando entorno minted en latex"},"content":{"rendered":"<div style=\"text-align: justify;\">Hace como dos semanas necesitaba hacer un manual de programador. El documento lo comenc\u00e9 a redactar en LaTeX usando el entorno <a href=\"https:\/\/github.com\/gpoore\/minted\" target=\"_blank\">minted<\/a> para resaltar el c\u00f3digo, eso no fuera problema si al compilar el archivo no hubiese mostrado lo siguiente:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/1.bp.blogspot.com\/-HkWLpLAMNnU\/VPnGR634lyI\/AAAAAAAAAew\/LBiNOJDKqdk\/s1600\/img2.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-HkWLpLAMNnU\/VPnGR634lyI\/AAAAAAAAAew\/LBiNOJDKqdk\/s1600\/img2.png\" height=\"200\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">Descargu\u00e9 el manual oficial de minted para ver la configuraci\u00f3n que deb\u00eda de agregarle y que el c\u00f3digo se ajustara al contorno de su contenedor, la instrucci\u00f3n que se deb\u00eda agregar es <span style=\"color: #660000;\"><b>breaklines<\/b><\/span> pero, sorpresa, no funcion\u00f3, mostrara un error de compilaci\u00f3n que breaklines no estaba definida en dicho paquete.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Despu\u00e9s de una horas buscando en internet sin \u00e9xito, tome el paquete <b>minted.sty<\/b> y lo agregu\u00e9 en la carpeta principal de mi proyecto, y resulta que al dar clic en compilar funcion\u00f3.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Ahora el resultado que se tiene es el siguiente:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-fFZv0aRl2oY\/VPnHmN8pduI\/AAAAAAAAAe8\/gHztKWDM8Uk\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A27%3A35.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-fFZv0aRl2oY\/VPnHmN8pduI\/AAAAAAAAAe8\/gHztKWDM8Uk\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A27%3A35.png\" height=\"260\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">Ahora el c\u00f3digo se ve m\u00e1s legible y m\u00e1s bonito esta es una soluci\u00f3n por ahora, habr\u00eda que seguir buscando otra que no requiera tener el paquete de <b>minted.sty<\/b> dentro del directorio del documento principal.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hace como dos semanas necesitaba hacer un manual de programador. El documento lo comenc\u00e9 a redactar en LaTeX usando el entorno minted para resaltar el c\u00f3digo, eso no fuera problema si al compilar el archivo no hubiese mostrado lo siguiente: Descargu\u00e9 el manual oficial de minted para ver la configuraci\u00f3n que deb\u00eda de agregarle y [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1317,1320,11,4,556,1292,1294,1323,1322,1313,1311],"tags":[],"class_list":["post-1769","post","type-post","status-publish","format-standard","hentry","category-breaklines-in-minted","category-entorno-minted","category-latex","category-linux","category-minted","category-minted-en-latex","category-minted-in-latex","category-resaltado-de-codigo-en-latex","category-saltos-de-linea-en-minted","category-usando-minted-en-latex","category-using-minted-in-latex"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1769","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=1769"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1769\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}