{"id":1593,"date":"2016-06-24T10:22:00","date_gmt":"2016-06-24T15:22:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/imagen-de-fondo-en-documetos-latex\/"},"modified":"2016-06-24T10:22:00","modified_gmt":"2016-06-24T15:22:00","slug":"imagen-de-fondo-en-documetos-latex","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/imagen-de-fondo-en-documetos-latex\/","title":{"rendered":"Imagen de fondo en documetos LaTeX"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-PEZ1TRBMyXA\/V21MgUR6T-I\/AAAAAAAACok\/HeJyNSfJjV4tW35SIs6ao3OozYV4bdQUgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-06-24%2B10-06-22.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/1.bp.blogspot.com\/-PEZ1TRBMyXA\/V21MgUR6T-I\/AAAAAAAACok\/HeJyNSfJjV4tW35SIs6ao3OozYV4bdQUgCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-06-24%2B10-06-22.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">En algunas ocasiones, es necesario personalizar un documento elaborado en LaTeX, por ejemplo, ponerle un fondo a todo el documento, o una sola secci\u00f3n, etc.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">El paquete background puede realizar esta acci\u00f3n, este paquete incluye algunas caracter\u00edsticas que permiten agregar un imagen o pdf de fondo, se puede establecer el color de fondo, darle transparencia, indicar en qu\u00e9 posici\u00f3n comenzar\u00e1 la imagen, tambi\u00e9n si el fondo es para todo el documento o solo algunas p\u00e1ginas. La documentaci\u00f3n de ese paquete la pueden leer aqu\u00ed:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><a href=\"http:\/\/ftp.math.purdue.edu\/mirrors\/ctan.org\/macros\/latex\/contrib\/background\/background.pdf\">http:\/\/ftp.math.purdue.edu\/mirrors\/ctan.org\/macros\/latex\/contrib\/background\/background.pdf<\/a><\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Para utlizarlo es necesario agregar el siguiente fragmento de c\u00f3digo antes de la etiqueta document:<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 1.5rem; font-stretch: normal; font-style: inherit; font-weight: inherit; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-align: left; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent; border: 0px; font-family: inherit; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"border: 0px; color: #333333; font-family: menlo, monaco, consolas, 'courier new', monospace; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\">%La opci\u00f3n pages puede ser all (para todo el documento) o some, para algunas partes del documento<br \/>usepackage[pages=all]{background}<br \/>% configuraci\u00f3n<br \/>backgroundsetup{<br \/> scale=1, %escala de la imagen, es recomendable que sea del mismo tama\u00f1o que el pdf<br \/> color=black, %fondo a usar para transparencia<br \/> opacity=0.2, %nivel de transparencia<br \/> angle=0, %en caso de querer una rotaci\u00f3n<br \/> contents={%<br \/>  includegraphics[width=paperwidth,height=paperheight]{portada.pdf} %nombre de la imagen a utilizar como fondo<br \/> }%<br \/>}<\/span><\/span><\/span><\/pre>\n<\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">Si la opci\u00f3n en pages=all, entonces autom\u00e1ticamente el fondo de asignar\u00e1 a toda la p\u00e1gina, en caso de usar some, entonces es necesario utilizar la etiqueta&nbsp;<\/span><span style=\"background-color: #eff0f1; color: #8a4a0b; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; line-height: 19.5px; text-align: left; white-space: inherit;\"><span style=\"font-size: large;\">BgThispage<\/span><\/span><span style=\"font-size: large;\">&nbsp;, para indicar que esa p\u00e1gina llevar\u00e1 fondo, pero las otras p\u00e1ginas no.<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-eX7Sk3-3m9A\/V21PITCvN-I\/AAAAAAAACow\/CRy09QURWQkiIIh_LIeCHEVkTZSrh6Q-QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-06-24%2B10-17-33.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/4.bp.blogspot.com\/-eX7Sk3-3m9A\/V21PITCvN-I\/AAAAAAAACow\/CRy09QURWQkiIIh_LIeCHEVkTZSrh6Q-QCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-06-24%2B10-17-33.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">Como ven en la imagen de arriba, la segunda p\u00e1gina no tiene fondo, pero la tercera s\u00ed.<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">Ejemplo completo aqu\u00ed:<\/span><\/div>\n<div style=\"text-align: center;\"><span style=\"background-color: white; color: #333333; font-family: source_sans_proregular, Arial; line-height: 15px; text-align: start;\"><a href=\"https:\/\/mega.nz\/#!tdp2BQKA!SbNzMZj4ZfdCu4xznCYWP9Y1ve2HKk2jORNs2b0LcM4\">https:\/\/mega.nz\/#!tdp2BQKA!SbNzMZj4ZfdCu4xznCYWP9Y1ve2HKk2jORNs2b0LcM4<\/a><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>En algunas ocasiones, es necesario personalizar un documento elaborado en LaTeX, por ejemplo, ponerle un fondo a todo el documento, o una sola secci\u00f3n, etc. El paquete background puede realizar esta acci\u00f3n, este paquete incluye algunas caracter\u00edsticas que permiten agregar un imagen o pdf de fondo, se puede establecer el color de fondo, darle transparencia, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[566,567,11],"tags":[],"class_list":["post-1593","post","type-post","status-publish","format-standard","hentry","category-image-background-latex-document","category-imagen-de-fondo-en-documetos-latex","category-latex"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1593","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=1593"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}