LyXneed help with paragraph alignment

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
vinaybabug
Posts: 2
Joined: Fri Jan 04, 2013 6:02 am

need help with paragraph alignment

Post by vinaybabug »

Hi,

I am working on writing a research paper. I am trying to do paragraph alignment to justified, however when i do
edit->paragraph setting->justified

it does not work. My text is center aligned. I am under deadline and using lyx for the first time. Any help is really appreciated.

Sincerely,
Vinay

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: need help with paragraph alignment

Post by Stefan Kottwitz »

Hi Vinay,

welcome to the board!

I guess there's some hidden effect which we cannot see in this description. Perhaps add your .lyx file as attachment to a post. It can be a copy where you removed the text which is not relevant, so as minimal as possible but still showing the effect. So you don't need to attach your whole original paper.

Stefan
LaTeX.org admin
vinaybabug
Posts: 2
Joined: Fri Jan 04, 2013 6:02 am

Re: need help with paragraph alignment

Post by vinaybabug »

Hi Stefan,

Thanks for quick response. I am attaching my lyx and pdf that is generated. I am having difficulty with paragraph alignment and to resize tables.

Thanks for your help again.

Sincerely,
Vinay
Attachments
research paper v00-vbg.lyx
lyx file
(21.83 KiB) Downloaded 195 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

need help with paragraph alignment

Post by cgnieder »

Hi Vinay,

Welcome to the LaTeX community!

The problem is a wrong usage of \centering in the ERT at the beginning of the document. \centering is not a command that takes an argument like \textbf{} but a switch. Everything that comes after it will be typeset centered. In order to avoid that its effect must be kept local, that is, within a TeX group.

You could change it into this:

Code: Select all

\vskip -2.5em
\begingroup\centering
\author{\textbf{Vinay B Gavirangaswamy}, Computer Science Department,\\
Western Michigan University, Kalamazoo MI 49008, USA.\\
Email: vinay.b.gavirangaswamy@wmich.edu\\
\textbf{Gagan Gupta}, Kalamazoo Area Math \& Sci Ctr,\\
Kalamazoo MI 49008, USA.\\
Email: \\
\textbf{Rajeev Agrawal}, North Carolina A\&T State University,\\
Greensboro, NC 27411, USA.\\
Email: ragrawal@ncat.edu}  \\*
\vskip 1.5em
Received: \today{} Revised: \today{}
\vskip 1.5em
\endgroup
Note that the line you have inserted before the abstract is indented by the paragraph indent. You can suppress it by inserting the ERT \noindent before it. Also, the second line is part of the abstract instead of following it which means it is indented the same amount the abstract is. You should insert it after the abstract. (have a look at the source to see what I mean).

Regards
site moderator & package author
Post Reply