General ⇒ right and left aligned on the same line?
right and left aligned on the same line?
I need to have some text that are both right- and left-aligned on the same line. (it's for a dictionary, and the right-aligned text is in arabic)
the \begin{flushright} makes a new paragraph, so it automatically creates a new line - does anyone know how to circumvent this, or is there another solution?
Thanks!
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
right and left aligned on the same line?
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
right and left aligned on the same line?
Code: Select all
SOME WORD HERE RIGHT ALIGNED TEXTTHAT CONTINUES BELOW THE WORD ON THE NEW LINESWHILE STILL BEING RIGHT-ALIGNED

- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
right and left aligned on the same line?
without parallel, a simple solution could be using \hfill:
Code: Select all
SOME WORD \hfill RIGHT ALIGNED TEXT\hfill THAT CONTINUES BELOW THE WORD ON THE NEW LINES\hfill WHILE STILL BEING RIGHT-ALIGNED
Stefan
right and left aligned on the same line?
Code: Select all
Some word\hfill\parbox[t]{0.7\textwidth}{\raggedleft Right aligned text thatcontinues below the word on the new lines while still being right-aligned}
Re: right and left aligned on the same line?
