General ⇒ Putting a character above another character
Putting a character above another character
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.
- Attachments
-
- Adding characters above others.
- hebrew.PNG (4.15 KiB) Viewed 14049 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Putting a character above another character
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
\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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Putting a character above another character
a simple possibility using amsmath in math mode could be
Code: Select all
\stackrel{\circ}{\text{A}}
Stefan
Re: Putting a character above another character
good luck!
Putting a character above another character

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
\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
Code: Select all
\cjRL{\put(1,8){\tiny$\circ$}l'`\put(1,8){\put(0,7){\tiny$\circ$}\footnotesize r}dyh}