How to Write the Turnstile Symbol (⊢) in LaTeX

In LaTeX, you can write the turnstile symbol (⊢) using the \vdash command.

The following examples show how to write the turnstile symbol in LaTeX.

How to Write the Turnstile Symbol in Text

We can use the \vdash command to write the turnstile symbol in LaTeX document for text.

Suppose we want to write the turnstile symbol in the text.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

This is an example of using the turnstile symbol \( A \vdash B \) in a sentence.

\end{document}

Output: 👇️

This is an example of using the turnstile symbol A ⊢ B in a sentence.

In this example, we use the \vdash command to display the turnstile symbol in the text.

How to Write the Turnstile Symbol in Mathematical Expressions

For mathematical expressions, we can use the \vdash command to ensure proper formatting.

Suppose we would like to write mathematical expressions that contain the turnstile symbol.

We can use the following LaTeX code to do so:

\documentclass{article}
\begin{document}

An inline mathematical expression: \( A \vdash B \).

A displayed mathematical expression:
\[
A \vdash B
\]

\end{document}

Output: 👇️

Turnstile Symbol

In this example, we use the \vdash command to denote the turnstile symbol in both inline and displayed mathematical expressions.

Conclusion

We can use the \vdash command for both text and mathematical expressions. This ensures that the turnstile symbol is properly formatted and displayed in your LaTeX document.