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!
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
- 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 TEXT
THAT CONTINUES BELOW THE WORD ON THE NEW LINES
WHILE STILL BEING RIGHT-ALIGNED

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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 that
continues below the word on the new lines while still being right-aligned}
Re: right and left aligned on the same line?
