[Tex/LaTex] How to \flushleft and \flushright in the same line horizontal alignment I want to write: Proof. Skipped. \flushright$\Box$ in the same line and this outputs two lines. Best Answer You are looking for \hfill: \documentclass{article} \usepackage{amssymb} \begin{document} Proof. Skiped. \hfill $\square$ \end{document} Related Solutions[Tex/LaTex] Align the text in flushright block Use a tabular: \begin{flushright} \begin{tabular}{@{}l@{}} Foo \\ Hello everyone \end{tabular} \end{flushright} With @{} we remove the default space that's inserted also at the left and right of a tabular. [Tex/LaTex] Flushleft and flushright in the same line (ConTeXt) I am using the annotation module for a better key-value driven syntax (although you can also use \definestartstop). You can use \wordright{...} to place a word on the right. For example: \usemodule[annotation] \defineannotation [Quote] [ alternative=command, spacebefore=big, spaceafter=big, command=\PlaceQuote, ] \define[2]\PlaceQuote {\startalignment[flushleft] \placeannotationcontent \stopalignment \blank[samepage] \wordright{\placeannotationtitle}} \setuppapersize[A5] \starttext \input ward \startQuote[title={Donald Knuth}] \input knuth \stopQuote \input ward \stoptext gives Related Question[Tex/LaTex] tabular with “centered” and “flushright” entries[Tex/LaTex] Aligning using flushleft and flushright[Tex/LaTex] How to do \flushleft and \flushright with tikzpictures[Tex/LaTex] Flushright and whitespace[Tex/LaTex] flush text on the left and centre equation of the same line (not working!)[Tex/LaTex] A simple way to flush right, flush left and center in the same line
Best Answer
You are looking for
\hfill
: