LaTeX forum ⇒ LyXHow can I left align with LyX Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Posts: 7
Joined: Tue May 19, 2009 10:26 am

How can I left align with LyX

Postby ck9 » Tue May 19, 2009 10:36 am


I never imagined I'd ever have such a headache trying to left align some text. I'm using the UNSW LyX template ( ... for_UNSW_T) which center-aligns all section and subsection headings. I tried editing the following from its default value of 'Centre' to 'Left'

Style Section
Align Left
AlignPossible Block, Center, Left

In LyX, the section headings move to the left, but when previewing the .pdf there's no change.

I think this may need coding in to the preamble. Could you please let me know what code that is? Specifically I'd like the section (and subsection/subsubsection) headings to be left aligned. I'd like to learn LaTeX properly but right now I'm fighting with deadlines.



Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Postby fatra2 » Tue May 19, 2009 11:42 am

Hi there,

To align your text to the left-hand side of the page, you can do:
  1. \begin{flushleft}
  2. Text on line 1 \\
  3. Text on line 2 \\
  4. ....
  5. ....
  6. \end{flushleft}

  1. {\raggedright
  2. Your text goes here}

The differences between the two is that \raggedright command will not start a new paragraph, and can be used nested in other environment like quote or parbox.


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests