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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply