I'm having a problem with minipage margins. I have defined 2 minipages, one of which is a table (i.e. tabular environment) and the other one is a picture. Below is my code.
Code: Select all
Code, edit and compile here:
\documentclass[12pt]{article}\usepackage{latexsym,amssymb}\usepackage{amsmath,array}\usepackage[pdftex]{graphicx}\usepackage[croatian]{babel}\usepackage[margin=1in,headsep=2.5cm]{geometry}\usepackage{setspace}\setlength{\textwidth}{500pt}\setlength{\textheight}{8in}\setlength{\voffset}{-1.5cm}\setlength{\hoffset}{-0.5cm}\begin{document}\begin{figure}[h]\setstretch{1.5}\begin{minipage}[t]{0.2\textwidth}\begin{tabular}{l}$c=14$ cm\\$v_a=8$ cm\\$\alpha=65^\circ$\\\hline$b=$?\end{tabular}\end{minipage}\begin{minipage}[t]{0.2\textwidth}\includegraphics[scale=0.2]{triangle.png}\end{minipage}\end{figure}\end{document}