Fonts & Character SetsWriting zeros with backslash natively

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
cheesesofnazareth
Posts: 8
Joined: Mon May 10, 2021 2:11 pm

Writing zeros with backslash natively

Post by cheesesofnazareth »

Here is the minimal working example:

Code: Select all

    \documentclass[a4paper,12pt]{article}
    \usepackage{stackengine}
    \newcommand\0{\stackinset{c}{}{c}{}{\textbackslash}{0}}
    \begin{document}
    There are 36\0 degrees in a circle.
    \end{document}

I am currently having to write all zeros as `\0` in the text to get the distinctive style I want. Is it possible to set something up in the preamble such that I can type with the normal `0` in the text, but when compiled they all come out as zeros with backslash.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply