Hello,
I'm looking for a way to put a character above another character, like putting a circle over A, such as in Å. Specifically, i'm trying to find out how to put characters over hebrew characters. I'm writing hebrew using a package called cjhebrew. Below is a picture of what i'm thinking about.
I can't use math mode because cjhebrew doesn't work there as far as i know.
Thanks in advance for any comments/ideas.
General ⇒ Putting a character above another character
Putting a character above another character
- Attachments
-
- Adding characters above others.
- hebrew.PNG (4.15 KiB) Viewed 13743 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Putting a character above another character
Hi Wazupp,
I was waiting for someone more knowledgeable to respond to you, but now I guess I'll give it a go.
You can put the two characters that you want on top of each other in a box and then move the box up and down (with \raisebox maybe?).
I was waiting for someone more knowledgeable to respond to you, but now I guess I'll give it a go.
You can put the two characters that you want on top of each other in a box and then move the box up and down (with \raisebox maybe?).
Code: Select all
Code, edit and compile here:
\parbox{1in}{\char1 \\ \char2}[\code]Or, you can use a minipage and do pretty much the same thing but minipage allows you to align it vertically so I don't think you would need to raise or lower anything. I think either top or bottom alignment would work for you.Did that help at all?good luck!
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Putting a character above another character
Hi,
a simple possibility using amsmath in math mode could be
or use \genfrac (amsmath) or the old TeX command \atop or \limits.
Stefan
a simple possibility using amsmath in math mode could be
Code: Select all
\stackrel{\circ}{\text{A}}
Stefan
LaTeX.org admin
Re: Putting a character above another character
I don't know anything about hebrew nor cjhebrew package but, perhaps, you can use the \diatop command from the ipa package including the package via \usepackage or copying its definition from ipa.sty.
good luck!
good luck!
Putting a character above another character
Thanks for the tips!
I tested your ideas, and after getting inspired even more I came across the perfect and most flexible solution: The picture environment!
The hebrew worked perfectly with it. I created a picture with zero width, and then just inserted a circle (using \circle} or another symbol using the \put command. The objects can apparently be put outside of the picture, so it can have zero dimensions.
Thanks for all the help!

I tested your ideas, and after getting inspired even more I came across the perfect and most flexible solution: The picture environment!
Code: Select all
Code, edit and compile here:
\begin{picture}(width,height)%\put(x-coordinate,y-coordinate){The object you want there.}%\end{picture}%
Thanks for all the help!

Putting a character above another character
You can even use \put out of the picture environment (*). In such a case, the coordinates x and y in \put(x,y){text} refer to the current insertion point. Try this (with 12pt in \documentclass):
(*) \put, however, cannot be used in vertical mode, that is, for example, at the beginning of a paragraph. In such a case, it suffices to enclose \put in \mbox: \mbox{\put(x,y){text}}.
Code: Select all
\cjRL{\put(1,8){\tiny$\circ$}l'`\put(1,8){\put(0,7){\tiny$\circ$}\footnotesize r}dyh}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.