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?
- localghost
- Site Moderator
- Posts: 9201
- 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[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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 TEXTTHAT CONTINUES BELOW THE WORD ON THE NEW LINESWHILE STILL BEING RIGHT-ALIGNED

- Stefan Kottwitz
- Site Admin
- Posts: 10290
- 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
Code, edit and compile here:
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 thatcontinues below the word on the new lines while still being right-aligned}
Re: right and left aligned on the same line?
Thanks! That works 
