Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Align word to right in latex

I want to align just one word to the right margin.

When I try this command:

$A \implies B$ \begin{flushright} hipoteza \end{flushright}

Word aligns to the right, but in the next line.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

When I try command:

$A \implies B$ \rightline{hipoteza}

Word is in the same line, but it’s too much aligned to right.

enter image description here

Is there any way to fix this? I’m new to latex.

>Solution :

You can use \hfill:

\documentclass{article}

\usepackage{mathtools}

\begin{document}

$A \implies B$ \hfill hipoteza


\end{document}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading