Text FormattingText alignment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
vmgobinath
Posts: 3
Joined: Mon Jan 11, 2021 11:03 pm

Text alignment

Post by vmgobinath »

Hi,
I am new to latex.



My latex lines :
\begin{rubric}{References}

%{\large Available on Request\par}
1. Dr. ABC
\\ Associate Professor, Mechanical, Engineering Department \par
%\\ Head of EGE group, Mechanical, Industrial and Aerospace Engineering,\par
\\ ABC University, Montréal, Canada. \par
\\ \makefield{\faEnvelope[regular]}{\texttt{abc@univ.com}}

\end{rubric}

I am getting output like below RIGHT SIDE ALIGNMENT

......................................................... 1. Dr. ABC
Associate Professor, Mechanical, Engineering Department
............................ABC University, Montréal, Canada
...................................................abc@univ.com

I don't know why it s coming like this.

But I want LEFT SIDE alignment like below

1. Dr. ABC
Associate Professor, Mechanical, Engineering Department
ABC University, Montréal, Canada
abc@univ.com

Please guide me on how to make it left side alignment.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Text alignment

Post by Bartman »

Can you show a Infominimal working example?
vmgobinath
Posts: 3
Joined: Mon Jan 11, 2021 11:03 pm

Text alignment

Post by vmgobinath »

My current latex lines :


\begin{rubric}{References}

%{\large Available on Request\par}
1. Dr. ABC
\\ Associate Professor, Mechanical, Engineering Department \par
%\\ Head of EGE group, Mechanical, Industrial and Aerospace Engineering,\par
\\ ABC University, Montréal, Canada. \par
\\ \makefield{\faEnvelope[regular]}{\texttt{abc@univ.com}}

\end{rubric}


CURRENT OUTPUT: RIGHT SIDE ALIGNMENT


......................................................... 1. Dr. ABC
Associate Professor, Mechanical, Engineering Department
............................ABC University, Montréal, Canada
...................................................abc@univ.com


REQUIRED OUTPUT: LEFT SIDE ALIGNMENT

like below

1. Dr. ABC
Associate Professor, Mechanical, Engineering Department
ABC University, Montréal, Canada
abc@univ.com

Please guide me on how to make it left side alignment.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Text alignment

Post by rais »

By default, LaTeX sets text justified, not right aligned.

Well, I don't know which class or package defines a rubric environment, but I'd try \raggedright just after beginning that rubric environment.

KR
Rainer
Post Reply