I want to add page border in each of my project's report page. If there is any command in sharelatex then let me know about it or else just give me some solution for it.


Here is a possible solution based on the packages eso-pic and calc.







    \framebox(\strip@pt\Page@FrameWidth, \strip@pt\Page@FrameHeight){}}}





It produces the following result.

Output of the MWE.

You can change the values for \PageFrameTopMargin, \PageFrameBottomMargin, \PageFrameLeftMargin and \PageFrameRightMargin in the preamble as needed.

  • Is there a way to modify this if the background of the page is colored? It seems that the color overrides the border. Apr 23 '20 at 22:23
  • @Matthias Please tell me, How to increase the width of the frame or line??
    – limlian
    Dec 1 '20 at 16:11
  • @limlan You can use \thicklines instead of \thinlines. As far as I know the fine-tuning options are quite limited using the eso-pic package. TikZ might be a better alternative.
    – Matthias
    Feb 12 '21 at 18:59

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.