I want to increase the (right) margin in the documentclass article about 0.5cm. How could I achieve this? I can use the package geometry but for that I must know the standard margin of this class.
Asked
Active
Viewed 2,707 times
8
Phelype Oleinik
- 70,814
1 Answers
11
\documentclass{article}
\usepackage{lipsum}
%\textwidth=\dimexpr\textwidth-.5cm\relax% BRUTE syntax
%\advance\textwidth by -0.5cm% TeX'ey syntax
\addtolength{\textwidth}{-0.5cm}% LaTeX'ey syntax
\begin{document}
\lipsum[1]
\end{document}
Syntax EDITED to reflect LaTeX (rather than BRUTE syntax), per suggestion of egreg.
Steven B. Segletes
- 237,551
-
1
-
@user372565 You are welcome. If you only need the change for part of a document, there is the
\rightskip(and\leftskip) lengths that can accomplish this, though there can be side effects from this alternate approach. – Steven B. Segletes Aug 15 '18 at 16:35
passoption forgeometry, it will preserve the existing margins of the underlying class, while making the tools of the package available to you. But you will see in my answer that you don't even needgeometryto globally change the right margin – Steven B. Segletes Aug 15 '18 at 13:14