0
\usepackage[hmargin=1.15in,vmargin=1.115in]{geometry}
\usepackage{verbatim}
\usepackage{graphicx,caption,subcaption}
\newcommand{\noi}{\noindent}

\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{intersections,arrows.meta,automata,er,calc,backgrounds,mindmap,folding,patterns,decorations.markings,fit,snakes,shapes,matrix,positioning,shapes.geometric,through,arrows,decorations}

\newcommand{\vertex}{\node[vertex]}
\newcounter{Angle}
3
3

Beamer already loads the geometry package, so you cannot load it again with different options. But this is no problem, because beamer provides its own command to change the left and right margin size.

Setting the vertical margin on the other hand does not make much sense with beamer. At the top, beamer will automatically calculate the required height of the headline (depending on the theme you use) and because beamer does not automatically start new pages, the concept of a bottom margin is also more or less theoretical, the content will just overflow. Normally beamer assumes a vmargin of 0, changing that may badly affect the placement of all kinds of elements.

You also don't need to load xcolor and graphicx, both is loaded automatically. And snakes is superseded by the decorations library, so you should not need this either.

\documentclass{beamer}

%\usepackage[hmargin=1.15in,vmargin=1.115in]{geometry}
\usepackage{verbatim}
\usepackage{
%graphicx,
caption,subcaption}
\newcommand{\noi}{\noindent}

\usepackage{tikz}
%\usepackage{xcolor}
\usetikzlibrary{intersections,arrows.meta,automata,er,calc,backgrounds,mindmap,folding,patterns,decorations.markings,fit,
%snakes,
shapes,matrix,positioning,shapes.geometric,through,arrows,decorations}

\newcommand{\vertex}{\node[vertex]}
\newcounter{Angle}

\setbeamersize{text margin left=1.15in,text margin right=1.15in}

\begin{document}

\begin{frame}
    abc
\end{frame} 

\end{document}
2
  • Kind help with edit I apologize
    – sriram
    Dec 19 '18 at 16:27
  • @sriram If you want to use such extraordinary large margins like 1.15in, you would need to scale down the picture considerable. For example using \begin{tikzpicture}[scale=0.55] (I would not use such very large margins) Dec 19 '18 at 16:30
1
\PassOptionsToPackage{hmargin=1.15in,vmargin=1.115in}{geometry}
\documentclass{beamer}
...

and then do not load geometry, it is done by beamer

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.