I want to decrease the left, size, top and right margin in the following code. I also want to increase the horizontal line lengths after every section. How can I do that?


%\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}

%A Few Useful Packages
\usepackage{fontspec}                   %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip}   %other packages for formatting
%\usepackage[big]{layaureo}                 %better formatting of the A4 page
% an alternative to Layaureo can be 

\usepackage{supertabular}               %for Grades
\usepackage{titlesec}                   %custom \section

%Setup hyperref package, and colours for links
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}

%\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
%%% modified for Karol Kozioł for ShareLaTeX use
SmallCapsFont = Fontin-SmallCaps.otf,
BoldFont = Fontin-Bold.otf,
ItalicFont = Fontin-Italic.otf

%Tweak a bit the top margin

%Italian hyphenation for the word: ''corporations''



%--------------------BEGIN DOCUMENT----------------------

%WATERMARK TEST [**not part of a CV**]---------------
%\font\wm=''Baskerville:color=787878'' at 8pt
%\font\wmweb=''Baskerville:color=FF1493'' at 8pt
%   \begin{textblock}{1}(0,0)
%       \rotatebox{-90}{\parbox{500mm}{
%           Typeset by Alessandro Plasmati with \XeTeX\  \today\ for 
%           {\wmweb \href{http://www.aleplasmati.comuv.com}{aleplasmati.comuv.com}}
%       }
%   }
%   \end{textblock}

\pagestyle{empty} % non-numbered pages

\font\fb=''[cmr10]'' %for use with \LaTeX command

        {\Huge \textsc{xxxx}  \textsc{xxxxx}

%Section: Personal Data
\section{Personal Data}

    \textsc{Place and Date of Birth:} 

%Section: Education

  • Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – jub0bs
    Dec 9, 2013 at 22:39
  • 1
    What's wrong with using \usepackage[margin=1in]{goemetry} (or what you current have, but commented out)?
    – Werner
    Dec 10, 2013 at 2:51

1 Answer 1


Had the same problem/question from using the same template (see https://www.sharelatex.com/templates/cv-or-resume/professional-cv)

Keep this line commented out to avoid a clash between the layaureo package and the geometry package:

%\usepackage[big]{layaureo}                 %better formatting of the A4 page

And include this line:


At which point you will find that the horizontal line created by \linerule in this \titleformat statement increases the length of the line to extend to the new margins:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .