TransWikia.com

Problem with initial

TeX - LaTeX Asked by Nizar Hijazeen on October 30, 2020

I have a problem with the initial, the paragraph is aligned with the initial paragraph. Can you help in fixing that?
A snapshot from the problem

RequirePackage[l2tabu]{nag}    


documentclass[a4paper,11pt,leqno]{memoir}
usepackage{nomencl}
makenomenclature


usepackage{datetime}
usepackage{ifpdf}
ifpdf
pdfinfo{
   /Author (Author's name)
   /Title (PhD Thesis)
   /Keywords (One; Two;Three)
   /CreationDate (D:pdfdate)
}
fi
ifdraftdoc 
    usepackage{draftwatermark}         
    SetWatermarkScale{0.3}
    SetWatermarkText{bf Draft: today}
fi
usepackage{rotating}
usepackage{array, makecell, multirow, tabu}
usepackage{makecell}
renewcommand{theadfont}{smallbfseries}usepackage{makecell}
renewcommand{theadfont}{smallbfseries}

usepackage[margin=2cm]{geometry} 
usepackage{tabularx}
newcolumntype{Y}{>{raggedleftarraybackslash}X}



newsubfloat{figure}
newsubfloat{table}

settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt} 
setlength{trimedge}{stockwidth} 
addtolength{trimedge}{-paperwidth} 
settypeblocksize{634pt}{448.13pt}{*} 
setulmargins{4cm}{*}{*} 
setlrmargins{*}{*}{1.5} 
setmarginnotes{17pt}{51pt}{onelineskip} 
setheadfoot{onelineskip}{2onelineskip} 
setheaderspaces{*}{2onelineskip}{*} 
checkandfixthelayout

frenchspacing
usepackage{apacite}
usepackage{fouriernc}
usepackage[T1]{fontenc}
usepackage{multirow}
usepackage{forest}

usepackage{longtable}
usepackage{titlesec}
makeatletter
defttl@mkchap@i#1#2#3#4#5#6#7{
    ttl@assign@tempskipa#3relaxbeforetitleunit
    vspace{@tempskipa}
    global@afterindenttrue
    ifcase#5 global@afterindentfalsefi
    ttl@assign@tempskipb#4relaxaftertitleunit
    ttl@topmode{@tempskipb}{
        ttl@select{#6}{#1}{#2}{#7}}
    ttl@finmarks 
    @ifundefined{ttlp@#6}{}{ttlp@write{#6}}}
makeatother


OnehalfSpacing 


setsecnumdepth{subsection} 
maxsecnumdepth{subsubsection}

usepackage{calc,soul,fourier}
makeatletter 
newlengthdlf@normtxtw 
setlengthdlf@normtxtw{textwidth} 
newsavebox{feline@chapter} 
newcommandfeline@chapter@marker[1][4cm]{
    sboxfeline@chapter{
        resizebox{!}{#1}{fboxsep=1pt
            colorbox{gray}{color{white}thechapter}
        }}
        rotatebox{90}{
            resizebox{
                heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}
            {!}{scshapeso@chapapp}}quad
        raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}
} 
newcommandfeline@chm[1][4cm]{
    sboxfeline@chapter{feline@chapter@marker[#1]}
    makebox[0pt][c]{
        makebox[1cm][r]{useboxfeline@chapter}
    }}
makechapterstyle{daleifmodif}{
    renewcommandchapnamefont{normalfontLargescshaperaggedleftso} 
    renewcommandchaptitlefont{normalfontLargebfseriesscshape} 
    renewcommandchapternamenum{} renewcommandprintchaptername{} 
    renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par} 
    renewcommandafterchapternum{parvskipmidchapskip} 
    renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
} 
makeatother 
chapterstyle{daleifmodif}


makepagestyle{myvf} 
makeoddfoot{myvf}{}{thepage}{} 
makeevenfoot{myvf}{}{thepage}{} 
makeheadrule{myvf}{textwidth}{normalrulethickness} 
makeevenhead{myvf}{smalltextsc{leftmark}}{}{} 
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}


usepackage{array}
usepackage{multirow}

newcommandMyBox[2]{
  fbox{lower0.75cm
    vbox to 1.7cm{vfil
      hbox to 1.7cm{hfilparbox{1.4cm}{#1\#2}hfil}
      vfil}
  }
}



newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}






makeindex

usepackage{import}


newsavebox{toptabular}
usepackage{array, caption}
usepackage{makecell}


usepackage{lipsum}             
usepackage{amsfonts}               
usepackage{amsmath}            
usepackage{stmaryrd}               
usepackage[utf8]{inputenc}
usepackage{adjustbox}

usepackage{amssymb}                    
usepackage{amsthm}                 
usepackage{newlfont}                   
usepackage{layouts}                
usepackage{hhline}
usepackage{colortbl} 
usepackage{xcolor} 
usepackage{xfrac}
usepackage{booktabs}
usepackage{lscape}
usepackage{placeins}
usepackage{mhchem}
usepackage{chemformula}
usepackage[utf8]{inputenc}     
usepackage{amssymb}
usepackage{tabularx}
usepackage{etoolbox}
usepackage{pgfplotstable}
usepackage{pgfplots}
usepackage{siunitx}
sisetup{input-symbols = ()}



usepackage{mathrsfs}               
usepackage{float}                  
usepackage{verbatim}                   
usepackage{upgreek }               
usepackage{latexsym}                    
usepackage{array}   
newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}
usepackage{natbib} 
usepackage{url}
usepackage{blindtext}

 usepackage{fixltx2e}                  
usepackage[spanish,english]{babel} 
usepackage{color}                                  
usepackage[colorlinks = true,
            linkcolor = blue,
            urlcolor  = black,
            citecolor = blue,
            anchorcolor = blue]{hyperref}
            
usepackage{graphicx}

usepackage{memhfixc}               
usepackage{enumerate}              
usepackage{footnote}               
usepackage{microtype}                  
usepackage{ragged2e}
usepackage{rotfloat}               
usepackage{alltt}                  
widowpenalty=1000
clubpenalty=1000
usepackage{setspace}

newcommand{keywords}[1]{parnoindent{small{bf Keywords:} #1}} 
newcommand{parcial}[2]{frac{partial#1}{partial#2}}                            
newcommand{vectorr}[1]{mathbf{#1}}                                                        
newcommand{vecol}[2]{left(                                                                         
    begin{array}{c} 
        displaystyle#1 \
        displaystyle#2
    end{array}right)}
newcommand{mados}[4]{left(                                                                       
    begin{array}{cc}
        displaystyle#1 &displaystyle #2 \
        displaystyle#3 & displaystyle#4
    end{array}right)}
newcommand{pgftextcircled}[1]{                                                                    
    setbox0=hbox{#1}
    dimen0wd0
    dividedimen0 by 2
    begin{tikzpicture}[baseline=(a.base)]
        useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
        node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
    end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1}                                             
newcommand{innerp}[2]{leftlangle#1,#2rightrangle}                                 
newcommand{prom}[1]{leftlangle#1rightrangle}                                         
newcommand{tra}[1]{textnormal{tra} : #1}                                                       
newcommand{sign}[1]{textnormal{sign,}#1}                                                   
newcommand{sech}[1]{textnormal{sech} #1}                                                  
newcommand{diag}[1]{textnormal{diag} #1}                                                    
newcommand{arcsech}[1]{textnormal{arcsech} #1} 
newcommand{arctanh}[1]{textnormal{arctanh} #1}     usepackage{amsmath}
                                   
newcommand{permarkup}[1]{(SI{#1}{percent})}

newcolumntype{L}[1]{>{raggedrightarraybackslash}p{#1}}
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}}
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
 ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi
 refstepcounter{proofcount}
 normalfont 
 trivlist
 item[hskiplabelsep
       itshape
   {bfem #1}]ignorespaces
}{
 addtocounter{proofcount}{-1}
 popQEDendtrivlist
}


letoldsqrtsqrt

defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}
{box0lower0.4ptbox2}}

newcommand{mycaption}[2][@empty]{
    captionnamefont{scshape} 
    changecaptionwidth
    captionwidth{0.9linewidth}
    captiondelim{.:} 
    indentcaption{0.75cm}
    captionstyle[centering]{}
    setlength{belowcaptionskip}{10pt}
    ifx @empty#1 caption{#2}else caption[#1]{#2}
}

newcommand{mysubcaption}[2][@empty]{
    subcaptionsize{small}
    hangsubcaption
    subcaptionlabelfont{rmfamily}
    sidecapstyle{raggedright}
    setlength{belowcaptionskip}{10pt}
    ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}





theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]

hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
usepackage{xcolor}
usepackage{threeparttable}
usepackage{tikz}
usetikzlibrary{arrows}
 usepackage{xkeyval} 
usepackage{multirow}
usepackage{caption}
usepackage{graphicx}
usepackage{epstopdf}
usepackage{xspace}
usepackage{lettrine}
newcommand{initial}[1]{
    lettrine[lines=3,lhang=0.33,nindent=0em]{
        color{gray}
            {textsc{#1}}}{}}
newcommand{hiddensubsection}[1]{
    stepcounter{subsection}
    subsection*{arabic{chapter}.arabic{section}.arabic{subsection}hspace{1em}{#1}}
}
usepackage{epstopdf}
newlength{Aheight}
setlength{Aheight}{fontcharhtfont`A}
newlength{jdepth}
settodepth{jdepth}{footnotesize j}


newcommand{phraselabel}[3][jdepth]{
    begin{tikzpicture}[
        baseline = (word.base),
        txt/.style = {inner sep = 0pt, text height = Aheight, draw},
        my above/.style = {inner sep = 0pt, text depth = 0pt, draw}
        ]
    node[txt] (word) {#2};
    node [my above, above=#1 of word.north] {footnotesize{#3}};
    end{tikzpicture}
    }
usetikzlibrary{positioning,arrows.meta}

begin{document}


setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

frontmatter
pagenumbering{roman}

input{frontmatter/title}
clearemptydoublepage

input{frontmatter/abstract}
clearemptydoublepage

input{frontmatter/dedication}
clearemptydoublepage

input{frontmatter/declaration}
clearemptydoublepage

renewcommand{contentsname}{Table of Contents}
maxtocdepth{subsection}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage

listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage

listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage



renewcommand{nomname}{List of Abbreviations & Acronyms}
printnomenclature 
raggedrightnomenclature{$RF$}{Random Forest
}



raggedrightnomenclature{$SVM$}{Support Vector Machine}
nomenclature{$AI$}{Artificial Intelligence}
nomenclature{$S&P  500$}{Standard and Poor's 500 Index}
nomenclature{$EMH$}{Efficient Market Hypothesis}
nomenclature{$CM$}{Confusion Matrix}
nomenclature{$OLS$}{Ordinary Least Squares}
nomenclature{$AR(1)$}{Autoaggressive Model}
nomenclature{$AMEX$}{American Express Company}
nomenclature{$NBER$}{National Bureau of Economic Research}
nomenclature{$LASSO$}{Least Absolute Shrinkage and Selection Operator}

nomenclature{$dp$}{Dividend to Price}
nomenclature{$E/P$}{Earning to Price}

nomenclature{$CV$}{Cross Validation}
nomenclature{$FTSE$}{Financial Times Stock Exchange Index}
 nomenclature{$Nikkei$}{Stock Market Index for the Tokyo Stock Exchange}
nomenclature{$NYSE$}{New York Stock Exchange}
nomenclature{$Post sample$  }{ Refers to the time when the  World War II ended}





















clearemptydoublepage










usetikzlibrary{fit,shapes.arrows,positioning}














mainmatter
clearemptydoublepage
clearemptydoublepage

import{chapters/chapter01/}{Intro.tex}
clearemptydoublepage
import{chapters/chapter01/}{Lit.tex}
clearemptydoublepage

import{chapters/chapter01/}{Methodology.tex}
clearemptydoublepage


import{chapters/chapter01/}{Results.tex}

clearemptydoublepage
import{chapters/chapter01/}{S Discussion.tex}
clearemptydoublepage

import{chapters/chapter01/}{Z conclsuion.tex}






backmatter
renewcommandbibname{References}
bibliographystyle{apacite}
normalsize bibliography{nizar.bib}


appendix
import{chapters/appendices/}{app0A.tex}
clearemptydoublepage
 
end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP