Well, I have a current MiKTeX installation for standard A4paper.
If I compile your given code (added option showframe
to visualize the typing area and margins) I get the following two results:
MWE 1:
\documentclass{article}
\usepackage{lipsum}
%Use either
%\usepackage[showframe]{geometry} % <===================================
%\geometry{lmargin=0.5in,bmargin=0.5in,tmargin=0.5in,rmargin=0.5in}
%or
\usepackage[%
showframe, % <========================================================
letterpaper,left=.2in,right=0.2cm,top=0.5cm,bottom=0.5cm
]{geometry}
\begin{document}
\lipsum
\end{document}
and the result viewed with SumatraPDF:
MWE 2:
\documentclass{article}
\usepackage{lipsum}
%Use either
\usepackage[showframe]{geometry} % <===================================
\geometry{lmargin=0.5in,bmargin=0.5in,tmargin=0.5in,rmargin=0.5in}
%or
%\usepackage[%
%showframe, % <========================================================
%letterpaper,left=.2in,right=0.2cm,top=0.5cm,bottom=0.5cm
%]{geometry}
\begin{document}
\lipsum
\end{document}
and the resulting pdf with meta infos:
and if I explizit want to get a4paper:
\documentclass[a4paper]{article} % <====================================
%\documentclass{article}
\usepackage{lipsum}
%Use either
\usepackage[showframe]{geometry} % <===================================
\geometry{lmargin=0.5in,bmargin=0.5in,tmargin=0.5in,rmargin=0.5in}
%or
%\usepackage[%
%showframe, % <========================================================
%letterpaper,left=.2in,right=0.2cm,top=0.5cm,bottom=0.5cm
%]{geometry}
\begin{document}
\lipsum
\end{document}
and the result in pdf viewer:
Now it depends on your used printer: is it a letterpaper or a4paper printer? Can you show its configuration in your question please?
BTW: If I print the a4 variant on my a4 printer everything is as it should be ...
Okay, just a wild guess:
In my printer I can change the size for the to be printed document for example to 78 % like here (sorry menu is in German):
As you can see marked with the both red arrows on the left the printing size is definded to be 78 % and the result you see on the right marked with the arrows with the flash: The right margin gots too wide ...
0.5 in
. BTW, insteadlmargin=0.5in,bmargin=0.5in,tmargin=0.5in,rmargin=0.5in
you can shortly write:margin=0.5in
. to see your page layout, you can add to geometry settingsshowframe
option.