Hi,
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!
General ⇒ right and left aligned on the same line?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
right and left aligned on the same line?
Take a look at the parallel package. It lets you typeset text blocks side by side.
Best regards
Thorsten¹
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
right and left aligned on the same line?
Thanks for a hyper-fast response! Will check the paralell package, but while reading about it, it seems that it makes two separate columns. The most ideal thing would be to have:
Is that possible, you think? Ignore to reply if paralell fixes this, I can read the manual 
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: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
right and left aligned on the same line?
Hi akvik,
without parallel, a simple solution could be using \hfill:
\parindent could be set to 0pt to begin the text at the left margin.
Stefan
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?
... or even with the help of \parbox:
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?
Thanks! That works 
