{"id":1777,"date":"2015-02-07T00:56:00","date_gmt":"2015-02-07T06:56:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/mostrar-acentos-en-modo-minted\/"},"modified":"2015-02-07T00:56:00","modified_gmt":"2015-02-07T06:56:00","slug":"mostrar-acentos-en-modo-minted","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/mostrar-acentos-en-modo-minted\/","title":{"rendered":"Mostrar acentos en modo Minted"},"content":{"rendered":"<p>Mostrar acentos en modo minted en latex ejemplo:<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/2.bp.blogspot.com\/-L_BN_5qg85c\/VNWogoGr0aI\/AAAAAAAAAcw\/znMA4ojEuAE\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-02-06%2B23%3A48%3A13.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-L_BN_5qg85c\/VNWogoGr0aI\/AAAAAAAAAcw\/znMA4ojEuAE\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-02-06%2B23%3A48%3A13.png\" height=\"273\" width=\"400\" \/><\/a><\/div>\n<p>documentclass[a4paper]{article}<br \/>usepackage{fontspec}<br \/>usepackage{minted}<br \/>usepackage{url}<br \/>usepackage{listings}<\/p>\n<p>begin{document}<\/p>\n<p>begin{listing}[H]<br \/>begin{minted}[mathescape, numbersep=2pt, gobble=0, frame=lines, framesep=2mm]{c}<br \/>\/* Autor: Ferdinand Khopper<br \/>* Fecha: 6 febrero 2015<br \/>* Descripci\u00f3n: Imprime \u00abHola mundo desde Latex&#8230;!\u00bb N veces<br \/>*\/<\/p>\n<p>#include &lt;stdio.h&gt;<br \/>#define N 10<\/p>\n<p>int main(){<br \/>&nbsp;&nbsp;&nbsp; int i;<br \/>&nbsp;&nbsp;&nbsp; \/\/ L\u00ednea de comentario con acento.<br \/>&nbsp;&nbsp;&nbsp; printf(\u00abHola mundo desde Latex&#8230;!\u00bb);<br \/>&nbsp;&nbsp;&nbsp; for (i = 0; i &lt; N; i++){<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(\u00abLaTeX es para programadores tambi\u00e9n!!\u00bb);<br \/>&nbsp;&nbsp;&nbsp; }<br \/>&nbsp;&nbsp;&nbsp; return 0;<br \/>}<br \/>end{minted}<br \/>caption{Hola mundo en C.}<br \/>label{codigo2}<br \/>end{listing}<\/p>\n<p>end{document}<\/p>\n<p>Compilar el documento desde l\u00ednea de comandos de la siguiente manera:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', 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;\">xelatex -shell-escape nombreDelArchivoTex.tex<\/pre>\n<p>Y con eso se puede solucionar parcialmente, y digo parcial, porque al usarlo con otros paquetes como utf8 para documentos completos, deja de funcionar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mostrar acentos en modo minted en latex ejemplo: documentclass[a4paper]{article}usepackage{fontspec}usepackage{minted}usepackage{url}usepackage{listings} begin{document} begin{listing}[H]begin{minted}[mathescape, numbersep=2pt, gobble=0, frame=lines, framesep=2mm]{c}\/* Autor: Ferdinand Khopper* Fecha: 6 febrero 2015* Descripci\u00f3n: Imprime \u00abHola mundo desde Latex&#8230;!\u00bb N veces*\/ #include &lt;stdio.h&gt;#define N 10 int main(){&nbsp;&nbsp;&nbsp; int i;&nbsp;&nbsp;&nbsp; \/\/ L\u00ednea de comentario con acento.&nbsp;&nbsp;&nbsp; printf(\u00abHola mundo desde Latex&#8230;!\u00bb);&nbsp;&nbsp;&nbsp; for (i = 0; i &lt; N; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1348,1347,11,556],"tags":[],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-acentos","category-code-insert-in-latex-documents","category-latex","category-minted"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1777","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=1777"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1777\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}