GeneralNew symbol for inclusion

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yesugei
Posts: 4
Joined: Wed Mar 26, 2008 10:43 pm

New symbol for inclusion

Post by yesugei »

Hi,

I'm looking for a new symbol that doesn't already exist :

for the continuous inclusion default is $H^{1}(\Omega)\hookrightarrow C^0(\bar{\Omega})$ but this symbol is horrible. I join a file where i have drawn my symbol.

For the creation of this symbol I tried to put together an inclusion symbol $\subset$ and a $>$ with the following command :

Code: Select all

\def\injection{\mathrel\subset\joinrel>}

but I can't manage to have the good symbol : how to put the $>$ in subscript size and correctly placed ?

Thanks for your help

ps: I even looked in the comprehensive list of symbol.
Attachments
injection.jpg
injection.jpg (2.02 KiB) Viewed 6428 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

New symbol for inclusion

Post by Juanjo »

I have frequently used \hookrightarrow and I don't find it particularly horrible. Anyway, that's a matter of taste.

I don't think that the combination of > and \subset may yield good results to obtain your symbol. Why do not try to draw the symbol by yourself? Here you have a bit of code using the simplest drawing environment in LaTeX. I'm sure that you can get much better results with ps-tricks or Tikz/pgf.

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{pict2e}

\begin{document}

% With \hookrightarrow

$H^{1}(\Omega)\hookrightarrow C^0(\overline{\Omega})$

% First try
\newcommand{\injection}{\mathrel{%
  \setlength{\unitlength}{2pt}
  \begin{picture}(6,4)(0,-1.5)
     \qbezier(2,2)(0,2)(0,1)
     \qbezier(0,1)(0,0)(2,0)
     \put(2,0){\vector(1,0){4}}
  \end{picture}}}

$H^{1}(\Omega)\injection C^0(\overline{\Omega})$

% Second try
\renewcommand{\injection}{\mathrel{%
  \setlength{\unitlength}{2pt}
  \begin{picture}(5,4)(0,-1.5)
     \qbezier(2,2)(0,2)(0,1)
     \qbezier(0,1)(0,0)(2,0)
     \put(2,0){\line(1,0){3}}
     \qbezier(3.8,1.2)(4,0.5)(4.95,0)
     \qbezier(3.8,-1.2)(4,-0.5)(4.95,0)
  \end{picture}}}

$H^{1}(\Omega)\injection C^0(\overline{\Omega})$

% With \subset (just to compare sizes)

$H^{1}(\Omega)\subset C^0(\overline{\Omega})$

\end{document}
By the way, to denote the clausure of a set, I find better \overline than \bar.
yesugei
Posts: 4
Joined: Wed Mar 26, 2008 10:43 pm

Re: New symbol for inclusion

Post by yesugei »

Thank you very much !

I didn't know that it is possible to define symbols by this way, using pstricks !

I prefered the second try...

Your will be very useful for me.

Thanks.
Bye.
Post Reply