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 13687 times
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
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: 10335
- 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}