[Tex/LaTex] How to set up the LyX document for thesis writing

lyx

I am very new to Latex, plus i am using Lyx: Because that's pretty easy to use. And i am using a template which i found online. The problem i am having is that the chapter page is tilted towards right side and rest of the pages are tilted towards left side. this happens in all chapters. only the chapter page are totally on the right side. As i am very new to latex. I am not even sure where to to actually look to fix the problem. I have attached a picture below to show the problem, It might look ugly, but that's the best i could do. Anyway the top page is the chapter page and bottom page is it's continuation

Any suggestion on where to even look or how to fix this would help me alot.

EDIT1
enter image description here

this is the preamble i use:

\usepackage{svn-multi}
\svnid{$Id$}
%\usepackage{prelim2e}
%\renewcommand{\PrelimWords}{Draft Copy \svnkw{Id}}
%%\newcommand*{\mysvnrev}{\svnrev}
\usepackage[hyperindex=true,
            bookmarks=true,
            colorlinks=false,
            pdfborder=0,
            pagebackref=false,
            citecolor=blue,
            plainpages=false,
            pdfpagelabels,
            pagebackref=true,
            hyperfootnotes=false]{hyperref}
\usepackage[all]{hypcap}
\usepackage[palatino]{anuthesis}
\usepackage{afterpage}
\usepackage{graphicx}
\usepackage{thesissty}
%\usepackage[square]{natbib}
\usepackage[normalem]{ulem}
\usepackage[table]{xcolor}
\usepackage{makeidx}
\usepackage{cleveref}
\usepackage[centerlast]{caption}
\usepackage{float}
\urlstyle{sf}
\renewcommand{\sfdefault}{uop}
\usepackage[T1]{fontenc}
\usepackage[scaled]{beramono}
\usepackage{pifont}
\usepackage{rotating}
\usepackage{algorithmic}

\usepackage{multirow}

%%%% Old macros file includes
\usepackage{booktabs}
\usepackage{relsize}
\usepackage{xspace}
\usepackage{subfig}
\usepackage{listings}
%%%%%%%%

\newcommand{\cmark}{\ding{51}}
\newcommand{\xmark}{\ding{55}}

% renegade!
\setlength{\parindent}{0cm}
\setlength{\parskip}{4mm plus2mm minus3mm}

Best Answer

It appears from the discussion that you do not actually need to follow Australian National University's guidelines. There is therefore no good reason to use this very complicated and low-quality template. The best thing you can do is to get rid of it entirely: remove all the custom preamble (except maybe what you understand and are sure that you really need and is not automatically provided by LyX — given what I see, you should probably remove almost everything). Also reset all document parameters that you do not understand.

Then the question is, how to get again a nice-looking document? Use the following guide to have a good starting point.

Simple document defaults to get started with report writing in LyX

Document class

This is the most important choice. I recommend one of the classes from KOMA-Script. They have sensible defaults, and later, a lot of customization options and a good manual (texdoc scrguien) to explain the customization options. Use the following guide to choose between the article class, the report class and the book class from KOMA-Script: https://tex.stackexchange.com/a/36989/87201.

Page Layout

Choose your format (A4 or US Letter). Set Two-Sided Document if relevant for you; it sets the margins and other things appropriately for two-sided printing.

Select Page Style > Headings. This prints the Chapter and the Section at the top of the page.

Margins

Trust KOMA-Script to come up with a good choice of margins. You can fine-tune the margin size under Document Class > Class Options > Custom. There, type DIV=n where n is an integer. It denotes the fraction of the page that must be reserved for margins (more precisely, all the page dimensions are computed so that the text width is (n-2)/n times the page width while remaining harmonious).

Under the Page Margins tab, make sure that Default Margins is selected. (This prevents the geometry package from loading, which would interfere with KOMA-Script.)

Fonts

If you need special symbols (e.g. if you need mathematical formulae) I recommend choosing one of the recent high-quality fonts that provide everything you need in one package. This includes the Latin Modern fonts (selectable from the interface) and also the STIX fonts (choose Default as Roman font in the interface and add \usepackage{stix} in the preamble; also choose a suitable sans-serif font).

If you do not need special symbols, you have more freedom in the font choice and the LyX interface provides a good sample.

It is also possible to select system fonts (LyX will automatically switch to XeTeX or LuaTeX). However I do not recommend this for a start especially if math fonts are needed.

Modules

LyX functionality is extended with modules. Under the Modules tab, select what is relevant for your field. For instance if you need theorem environment, select an appropriate Theorems module.

Hyperref support

Activate Hyperref Support under PDF Properties. Select Automatically Fill Header, Break Links Over Lines and No Frames Around Links.

Math Options

Make sure that all packages are set to load automatically.

Tables

I recommend using tables in the booktabs style also known as the Formal style in LyX (available from the table properties). Looking at the examples in the booktabs manual is recommended (texdoc booktabs). There is also a small section on it in LyX's Embedded Objects manual.

Bibliography

The standard bibliographic tool used by LyX is bibtex (starting from version 2.3, LyX also supports biblatex). Add your bibtex bibliography from the Insertion menu and choose the style according to the best practices of your field. (amsalpha is a good one for mathematics.)

Sub-documents

For long document separated into child documents, you only need to select the same document class and modules, and to set up the master document for each child.

If in addition you want to be able to compile child documents independently, you must apply the above settings for each child document. They are ignored when compiling from the master document.

Going further

Many more customizations are possible! For this I recommend going step-by-step and using the LyX manuals and the KOMA-Script manual as your primary source. Introduce in the preamble commands that you find on the Internet only after you understand them and you are sure that LyX or KOMA-Script do not provide simpler alternatives.