The title is self-explanatory really, all I really want to do is be able to add some kind of notch to any character, so that they are visible if you are actively looking for them.

Like accents, but less obvious and more customizable.


David Carlisle asked about what kind of notch I was talking, I was thinking something like:

Indentation in a character

Or the opposite

Either would work, but I would prefer something like the first one.

More specifically working with the cedilla thing, I would cut off the round part, keep the square at the top and move it up and to the right, but still such that it would be connected wih it.

  • what kind of "notch" above/below? That is, starting from \c{x} which puts a cedilla below, what changes would you want? – David Carlisle Nov 29 '12 at 17:33
  • David Carlisle, I edited my question with some examples of what I'd like. Just something much more subtle than the usual accents you find in TeX. – Atheuz Nov 29 '12 at 17:44

The following example provides \notch{<char>} to add a notch to a character. Because each character is different, the position of the notch and the notch itself is configured by \notchsetup{<char>}{<x pos>}{<y pos>}{<notch>}. The position value can be given as dimensions (recommended are the units ex and em). If the <x pos> is given as real number, then it means the fraction of the character's width, a real number for <y pos> means the fraction of the character's height. With \notchcolor{<color name>} the color of the notch can be configured, useful for visual debugging of the notch and its position.


    \@latex@warning{Notch is not configured for `#1'}%
      \csname notch@#1\endcsname
      \setbox0=\hbox to \wd0{%
        \kern\dimen0 %
      \box0 %
% \notchsetup{<char>}{<move right>}{<move up>}{<notch>}
  \dimen#1=#2#30 \@nil


\notch A
{\notchcolor{yellow}\notch A}

\notch A
{\notchcolor{yellow}\notch A}



| improve this answer | |

Unless there is a font-ish way to do this (i.e. use special fonts that has those glyphs already or defining your own accent), this could be a solution for an A and white background. Tik Z is also possible for non-white background …

This will break kerning, though.




enter image description here

| improve this answer | |
  • I went with the other response because it seemed easier to typeset all the letters using it. But thank you too. – Atheuz Nov 29 '12 at 20:49
  • @Atheuz Yes, of course. Heiko Oberdiek's answer is the “Let’s do it proper” version of my answer which should have been only an idea to start, anyway. I was hoping for a more font-ish alternative, though … – Qrrbrbirlbel Nov 29 '12 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.