Math & Sciencewavy and fractured overline

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am

wavy and fractured overline

Post by Turkurz »

Hello,

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}
What I wish for these overlines is that they would be a fixed amount high over the text (for lowercase letters it would be lower than for uppercase letters), and that they wouldn't change the height of the row (even if there is overlapping). Also, it would be nice if they were exactly as wide as the text.
Attachments
customUlem.sty
(21.97 KiB) Downloaded 318 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply