{"id":1785,"date":"2015-01-20T22:30:00","date_gmt":"2015-01-21T04:30:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/insertar-codigo-latex-en-documentos-latex\/"},"modified":"2015-01-20T22:30:00","modified_gmt":"2015-01-21T04:30:00","slug":"insertar-codigo-latex-en-documentos-latex","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/insertar-codigo-latex-en-documentos-latex\/","title":{"rendered":"Insertar codigo Latex en documentos Latex"},"content":{"rendered":"<div style=\"text-align: justify;\"><span style=\"font-size: small;\">Redactando un manual para latex usando latex, me encontr\u00e9 con un peque\u00f1o detalle, no sab\u00eda c\u00f3mo mostrar codigo latex en latex, es decir, obtener un resultado como el que se muestra en la imagen.<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/1.bp.blogspot.com\/-z0az2K_uAKw\/VL8bGeYpZZI\/AAAAAAAAAaY\/mnQ4P2qBQHI\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-01-20%2B21%3A20%3A20.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-z0az2K_uAKw\/VL8bGeYpZZI\/AAAAAAAAAaY\/mnQ4P2qBQHI\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-01-20%2B21%3A20%3A20.png\" height=\"103\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">El problema fue que no pod\u00eda hacerlo en ese instante, pero ahora ya s\u00e9 como hacerlo: En la propia imagen muestro c\u00f3mo se hace.<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">Aqu\u00ed est\u00e1 el c\u00f3digo de c\u00f3mo hacerlo:<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<pre><br \/>documentclass{article}<br \/>usepackage{tikz}<br \/>usepackage{showexpl}<br \/>usepackage[utf8]{inputenc}<br \/>usepackage[spanish]{babel}<br \/>lstset{<br \/>    language=[LaTeX]TeX,<br \/>    breaklines=true,<br \/>    basicstyle=ttscriptsize,<br \/>    keywordstyle=color{blue},<br \/>    identifierstyle=color{magenta},<br \/>}<br \/><br \/>begin{document}<br \/>Esto es en l\u00ednea lstinline!TeX! y a continuaci\u00f3n se muestra c\u00f3mo hacerlo:<br \/><br \/>begin{lstlisting}<br \/>documentclass{article}<br \/>begin{document}<br \/>Hello World<br \/>end{document}<br \/>end{lstlisting}<br \/><br \/><br \/>begin{LTXexample}[pos=b,preset=centering,width=0.5linewidth]<br \/>begin{tikzpicture}<br \/>    draw[fill=red] (0,0) circle (1);<br \/>end{tikzpicture}<br \/>end{LTXexample}<br \/><br \/>El otro m\u00e9todo es usando lstinline|verb!text!| con esa etiqueta se<br \/>muestra solo en negro, de este modo verb|pagebreak[text]| el color<br \/>es posible ser asignado al usar lstinline!lstinline|code|!.<br \/>end{document}<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Redactando un manual para latex usando latex, me encontr\u00e9 con un peque\u00f1o detalle, no sab\u00eda c\u00f3mo mostrar codigo latex en latex, es decir, obtener un resultado como el que se muestra en la imagen. El problema fue que no pod\u00eda hacerlo en ese instante, pero ahora ya s\u00e9 como hacerlo: En la propia imagen muestro [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1370,87,1371,1316,11,1369,4],"tags":[],"class_list":["post-1785","post","type-post","status-publish","format-standard","hentry","category-codigo-latex-en-latex","category-gnome","category-insert-latex-in-latex","category-insertar-codigo-en-documentos-latex","category-latex","category-latex-code","category-linux"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1785","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=1785"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1785\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}