# How to Write Ceiling Brackets (⌈ ⌉) in LaTeX

In LaTeX, you can write ceiling brackets using the `\lceil`

and `\rceil`

commands.

The following examples show how to write ceiling brackets in LaTeX.

## How to Write Ceiling Brackets in Text

For text, we can use the standard keyboard characters, but for proper mathematical formatting, we can use the `\lceil`

and `\rceil`

commands.

### Example: Ceiling Brackets in Text

Suppose we want to write ceiling brackets in the text.

We can use the following LaTeX code to do so:

```
\documentclass{article}
\begin{document}
This is an example of using ceiling brackets \(\lceil x \rceil\) in a sentence.
\end{document}
```

Output: 👇️

```
This is an example of using ceiling brackets ⌈x⌉ in a sentence.
```

In this example, we use the ceiling brackets to enclose a variable in the text.

## How to Write Ceiling Brackets in Mathematical Expressions

For mathematical expressions, we can use the `\lceil`

and `\rceil`

commands to ensure proper formatting.

### Example: Ceiling Brackets in Mathematical Expressions

Suppose we would like to write mathematical expressions that contain ceiling brackets.

We can use the following LaTeX code to do so:

```
\documentclass{article}
\begin{document}
An inline mathematical expression: \( \lceil a + b \rceil \).
A displayed mathematical expression:
\[
\left\lceil \frac{a}{b} \right\rceil + \left\lceil \frac{c}{d} \right\rceil
\]
\end{document}
```

Output: 👇️

In this example, we use the `\lceil`

and `\rceil`

commands to enclose elements in a ceiling function. The `\left\lceil`

and `\right\rceil`

commands are used to adjust the size of the ceiling brackets to fit the enclosed fractions.

## Conclusion

We can use the `\lceil`

and `\rceil`

commands for both text and mathematical expressions.

For larger expressions, the `\left\lceil`

and `\right\rceil`

commands help in adjusting the size of the ceiling brackets automatically.