3

How can I type the letter ð with a slash across it? I have tried the solutions proposed in How can I place a "slash" -- / -- through a letter in this way? but they do not work for the letter ð, or letters with diacritics like á or ä.

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}

\usepackage{fontspec} \setmainfont{Linux Libertine O}

\usepackage{cancel}

\begin{document}

$\cancel{d}$ $\cancel{ð}$

${d\mkern-7.5mu/}$ ${ð\mkern-7.5mu/}$

\end{document}

David Carlisle
  • 757,742

1 Answers1

8

You can use Unicode Combining /.

Unicode has two, short U+0337 ̷ and long U+0338 ̸

The exact positioning on the base character depends on the font

enter image description here

\documentclass[12pt]{article}
% no!\usepackage[T1]{fontenc}

\usepackage{fontspec} \setmainfont{Linux Libertine O}

\begin{document}

d ð ä d̷ ð̷ ä̷ d̸ ð̸ ä̸

\end{document}

David Carlisle
  • 757,742
  • Thank you. Can you explain how to generate those for other letters? I can copy and use the ones you posted but don't know how to substitute the letter. – user278663 Aug 22 '22 at 10:40
  • @user278663 it depends on your editor, how did you type ð in your question? If it is not clear how to enter ̷ You can use ^^^^0337 for the short one and ^^^^0338 for long so ð^^^^0337 or even ^^f0^^^^0337 for an all ascii version all make the same output. – David Carlisle Aug 22 '22 at 10:47
  • I use Overleaf and just copy and paste the characters that are not in my keyboard. – user278663 Aug 22 '22 at 11:00
  • 1
    @user278663 you can copy ̷ and put it after any base letter but using ^^^^0337 might be easier – David Carlisle Aug 22 '22 at 11:01