I am currently working on a report but for some reason, after I compile it, the text appears to be unjustified. I thought LaTex did this by default.

Below is my code


%%Label Equations According To Chapter

%% Enables Sub Sub Sections to be Numbered

%% Format Header and Footer

%% Used to Insert Graphics

%% Used to Convert EPS images to PDF

%% Paragraph Formatting

%% Used to Insert Blocks of Code

%% Used for Tables

% Use Numbers Libary for numbering
%\renewcommand{\labelenumi}{\arabic{enumi}. }

%% Used to Insert SI Units

%% Hyperlinks Formatting

%% Referencing Library

%% Include Graphics from Multiple Folders


%New Command: Diagram Scale - % of textwidth



%% Header and Footer Setup
\fancyhead[L]{\slshape \leftmark}



\addcontentsline{toc}{section}{List of Figures}
\addcontentsline{toc}{section}{List of Tables}






The resulting PDF can be found at Report PDF Result

Any help is appreciated.


1 Answer 1


Try removing the line \raggedright.

('Ragged right' is how you get left-aligned text in LaTeX. There's also a \raggedleft for right-aligned text.)

Edit: If you only want part of your document to be left-aligned, then make sure \raggedright occurs inside a pair of braces. Otherwise it will ruin your whole document! For example, to make just your disclaimer page left-aligned, use:

\par % This ends the paragraph properly. See egreg's comment below.
  • Yeah, check out the warning here: en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting
    – rickhg12hs
    May 8, 2013 at 7:31
  • the \raggedright is there so the disclaimer page in my document is aligned correctly (2nd page in the attached file). Removing the \raggedright disturbs this only but fixes everything else. Can I just define \raggedright for this page only?
    – JHoop
    May 8, 2013 at 7:35
  • many thanks, just applied that to the file that needed it, worked a treat
    – JHoop
    May 8, 2013 at 7:41
  • 1
    Add \par before the closing brace.
    – egreg
    May 8, 2013 at 8:18
  • @egreg: Why's that? May 8, 2013 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.