{"id":1768,"date":"2015-03-06T10:46:00","date_gmt":"2015-03-06T16:46:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/entorno-minted-en-saltos-de-pagina\/"},"modified":"2015-03-06T10:46:00","modified_gmt":"2015-03-06T16:46:00","slug":"entorno-minted-en-saltos-de-pagina","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/entorno-minted-en-saltos-de-pagina\/","title":{"rendered":"Entorno minted en saltos de p\u00e1gina"},"content":{"rendered":"<div style=\"text-align: justify;\">De nueva cuenta, en la redacci\u00f3n de documentaci\u00f3n de c\u00f3digo para manual de t\u00e9cnico, me percat\u00e9 de lo siguiente, si bien es cierto, ya hab\u00eda podido solucionar lo del salto de l\u00ednea autom\u00e1tico del c\u00f3digo al usar el entorno minted en latex. (<a href=\"http:\/\/linuxgx.blogspot.mx\/2015\/03\/saltos-de-linea-usando-entorno-minted.html\" target=\"_blank\">Ver aqu\u00ed.<\/a>)<\/div>\n<p>Ahora se me presentaba el siguiente problema:<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-xZQwJndyF3I\/VPnKDxIRXVI\/AAAAAAAAAfI\/FtwTAEw-9V0\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A38%3A19.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-xZQwJndyF3I\/VPnKDxIRXVI\/AAAAAAAAAfI\/FtwTAEw-9V0\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A38%3A19.png\" height=\"207\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">El problema, b\u00e1sicamente era que, al incluir un fragmento de c\u00f3digo extenso, en la siguiente p\u00e1gina no continuaba, sino que se perd\u00eda por completo, como se muestra en la imagen de arriba.<\/div>\n<p>Bueno, el problema lo solucion\u00e9 usando el paquete <span style=\"color: #660000;\"><b>mdframed<\/b><\/span> el da un resultado como el siguiente:<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/2.bp.blogspot.com\/-UdJr0ypj6Sg\/VPnLK_aOj7I\/AAAAAAAAAfQ\/9qOfFO7upEQ\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A43%3A00.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-UdJr0ypj6Sg\/VPnLK_aOj7I\/AAAAAAAAAfQ\/9qOfFO7upEQ\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-06%2B09%3A43%3A00.png\" height=\"400\" width=\"343\" \/><\/a><\/div>\n<p>Ya con eso, el c\u00f3digo se mueve autom\u00e1ticamente en las p\u00e1ginas o saltos de nuevas p\u00e1ginas que sean necesario.<\/p>\n<p>El c\u00f3digo para ingresar el c\u00f3digo fuente usando <span style=\"color: #660000;\"><b>mdframed<\/b><\/span> en latex, es el siguiente:<br \/><span style=\"color: #660000;\"><b><br \/><\/b><\/span><span style=\"color: #660000;\"><b>begin{mdframed}[linecolor=black, topline=false, bottomline=false, leftline=false, rightline=false, userdefinedwidth=textwidth]<br \/>begin{minted}[breaklines, frame=single, tabsize=4, gobble=0]{c}<\/b><\/span><br \/>\/* Autor: Ferdinand Khopper<br \/>* Fecha: 6 febrero 2015<br \/>* Descripcion: Imprime \u00abHola mundo desde Latex&#8230;!\u00bb N veces<br \/>*\/<br \/>#include &lt;stdio.h&gt;<br \/>#define N 10<\/p>\n<p>int main(){<br \/>&nbsp;&nbsp;&nbsp; int i;<br \/>&nbsp;&nbsp;&nbsp; \/\/ Linea de comentario.<br \/>&nbsp;&nbsp;&nbsp; printf(\u00abPrograma Hola Mundo en C, mostrado en Latex usando minted!\u00bb);<br \/>&nbsp;&nbsp;&nbsp; for (i = 0; i &lt; N; i++){<br \/>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(\u00abLaTeX es para programadores mas sofisticados y tambi\u00e9n para los que no son tanto!\u00bb);<br \/>&nbsp;&nbsp;&nbsp; }<br \/>&nbsp;&nbsp;&nbsp; return 0;<br \/>}<span style=\"color: #660000;\"><b><br \/>end{minted}<br \/>end{mdframed}<\/b><\/span><\/p>\n<p>Gracias por visitar, Hasta la pr\u00f3xima.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>De nueva cuenta, en la redacci\u00f3n de documentaci\u00f3n de c\u00f3digo para manual de t\u00e9cnico, me percat\u00e9 de lo siguiente, si bien es cierto, ya hab\u00eda podido solucionar lo del salto de l\u00ednea autom\u00e1tico del c\u00f3digo al usar el entorno minted en latex. (Ver aqu\u00ed.) Ahora se me presentaba el siguiente problema: El problema, b\u00e1sicamente era [&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,1292,1294,1322,1313,1311],"tags":[],"class_list":["post-1768","post","type-post","status-publish","format-standard","hentry","category-breaklines-in-minted","category-entorno-minted","category-latex","category-linux","category-minted-en-latex","category-minted-in-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\/1768","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=1768"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}