I have 2 separate documents. One compiled using texstudio, the other using overleaf. I am not sure why the spacing for the text in the paragraph is different. I believe I copied over the exact same settings and added a few more other lines.

I am trying to make the format for my current paper on overleaf (second image) look closer to the one on texstudio (first image). Below is the code I have for the paper on texstudio.

I tried changing the \linespace command from 1.5 to 1 to 1.25 but it still does not look alike. I hope someone can point out where I need to edit.


\usepackage[top=3cm, bottom=3cm, left=3cm, right=3cm]{geometry}

% graphics images

% 1.5 line spacing

% maths symbols
%\usepackage[math-style = upright]{unicode-math}

% table package

% citation style






% cover

% abstract

% acknowledgement

% table of content

% intro chapter


% references


enter image description here

And here is the code for the paper that i have on overleaf.

\titleformat{\chapter}[display] {\normalfont\Huge\bfseries}{\chaptertitlename\ \thechapter}{0pt}{\Huge}




\xpatchcmd{\endtitlepage}{\setcounter{page}\@ne}{\cleardoublepage}{}{}% Remove the reset of page at the end of titlepage

  % \@mainmatterfalse

    % \@mainmattertrue

  % \@mainmatterfalse


\title{Your Paper}


enter image description here

  • The exact settings are not the same. What happens if it is the same. . Commented Jan 9, 2018 at 20:04
  • 1
    Well, one is using \onehalfspacing and the other with \linespread{1.5}, they don't give the same result. Can you use one or the other in both documents?
    – Troy
    Commented Jan 9, 2018 at 20:10
  • 1
    The documents are also quite different. I suggest you fix this first. Commented Jan 9, 2018 at 21:43
  • By the by: tabu cannot be recommended. In my opinion, it should be avoided at almost any cost.
    – cfr
    Commented Jan 10, 2018 at 0:49


You must log in to answer this question.

Browse other questions tagged .