in my diploma from topology, I need to somehow denote ordinary paths, polygonal paths and straight paths (lines). I am using \overline for straight paths and wish to use wavy overline (like sinus) for ordinary paths and fractured overline (like f(x)=|x|, that is, with 90° angles) for polygonal paths.
How can I do that? My friend already helped me a lot by changing the ulem package (defining two new commands), but it doesn't work very well: The polygonal line is a bit wavy and both are too high above the text. Neither me nor my friend know what is really going on in the code of ulem package.
Also, when I use the polygonal line in math mode under a \bigcup, the overline is way too high above the text.
I have attached my current ulem package, the new commands are between lines 192-201.
Also, the code, that doesn't work OK:
Code: Select all
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{customUlem}
\begin{document}
\owave{x,y},~~~\owave{P,Q},~~~\ozig{x,y}, ~~~\ozig{P,Q}\\
$$\bigcup\limits_{x\in \owave{f(t_2),f(t_1)}}\mathbb{B}(x,\varepsilon_x)$$
\end{document}