> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/more-topics/06-bold-italics-and-underlining-es.md).

# Bold, italics and underlining es

El dar cierto formato a un texto ayuda a resaltar conceptos importantes dentro de un documento y lo hace mucho más legible. Por medio del uso de cursivas, negritas o subrayado se puede cambiar la percepción del lector sobre una palabra.

## Introducción

En este artículo se explica el uso de tres herramientas básicas para dar formato a un documento: cursivas, negritas y subrayado. Empecemos con un ejemplo:

```latex
Some of the \textbf{greatest}
discoveries in \underline{science}
were made by \textbf{\textit{accident}}.
```

![Biu1.png](/files/L2HgklCG33OELgKlPG3r)

Como se puede ver, hay tres comandos básicos que pueden ser anidados para combinar su efecto.

Nota: *Los comandos **\it** y **\bf** también funcionan para convertir en cursivas o negritas el texto, pero su uso no se recomienda ya que no preservan los estilos previos. Por ejemplo, con estos comandos no se puede crear texto en negritas y cursiva*

[Abrir un ejemplo en Overleaf](https://www.sharelatex.com/project/new/template?zipUrl=/project/52e2cf6fcd3ae4400500066d/download/zip\&templateName=BoldItalicsUnderline\&compiler=pdflatex)

## Texto en cursiva

Escribir texto en letras cursivas (también llamadas itálicas o bastardillas) es muy simple, sólo hay que usar el comando **\textit**:

```latex
Some of the greatest
discoveries in science
were made by \textit{accident}.
```

![Biu2.png](/files/8uHFoxckqP7a4xTpRfqw)

[Abrir un ejemplo en Overleaf](https://www.sharelatex.com/project/new/template?zipUrl=/project/52e2cf6fcd3ae4400500066d/download/zip\&templateName=Bold_Italics_Underline\&compiler=pdflatex)

## Texto en negrita

Para escribir texto en negritas se debe usar el comando **\textbf**:

```latex
Some of the \textbf{greatest}
discoveries in science
were made by accident.
```

![Biu3.png](/files/Mz3RMhIVRi1IZEFVaIPW)

[Abrir un ejemplo en Overleaf](https://www.sharelatex.com/project/new/template?zipUrl=/project/52e2cf6fcd3ae4400500066d/download/zip\&templateName=Bold_Italics_Underline\&compiler=pdflatex)

## Texto subrayado

Subrayar texto es también muy sencillo, el comando a usar es **\underline**:

```latex
Some of the greatest
discoveries in \underline{science}
were made by accident.
```

![Biu4.png](/files/R1WLakMKIhd9dm17WDL4)

[Abrir un ejemplo en Overleaf](https://www.sharelatex.com/project/new/template?zipUrl=/project/52e2cf6fcd3ae4400500066d/download/zip\&templateName=Bold_Italics_Underline\&compiler=pdflatex)

## Enfatizar texto

El texto se puede enfatizar por medio del comando **\emph**. A veces éste comando se comporta igual que **\textit** pero no son exactamente lo mismo.

```latex
Some of the greatest \emph{discoveries}
in science
were made by accident.

\textit{Some of the greatest \emph{discoveries}
in science
were made by accident.}

\textbf{Some of the greatest \emph{discoveries}
in science
were made by accident.}
```

![Biu5.png](/files/wKQ5EeYNDRr5v1V9VJBo)

Lo que en realidad hace el comando **\emph** depende del contexto. Dentro de texto normal el texto enfatizado se imprime en cursiva, pero este comportamiento se invierte cuando se usa el comando con texto que ya está escrito en cursivas. Ver el ejemplo anterior para entender a qué se refiere esto.

Más aún, algunos paquetes, como por ejemplo [Beamer](/latex/presentations/01-beamer.md), cambian el comportamiento de comando **\emph**.

[Abrir un ejemplo en Overleaf](https://www.sharelatex.com/project/new/template?zipUrl=/project/52e2cf6fcd3ae4400500066d/download/zip\&templateName=Bold_Italics_Underline\&compiler=pdflatex)

## Lecturas adicionales

Para más información consultar:

* [Paragraphs and new lines](/latex/latex-basics/02-paragraphs-and-new-lines.md)
* [Lists](/latex/latex-basics/04-lists.md)
* [Paragraph formatting](/latex/formatting/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Line breaks and blank spaces](/latex/formatting/05-line-breaks-and-blank-spaces.md)
* [The not so short introduction to LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/more-topics/06-bold-italics-and-underlining-es.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
