I try to create a new environment for a monotonously repeating tabular, which has one parameter. This must be at the end of the tabular. I tried this way:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[magyar]{babel}
\usepackage{amsthm}
\newenvironment{point}[1]
{
\begin{tabular}{ @{}p{.4\textwidth}p{.4\textwidth}c@{} }
\hline
}
{
\hline
\multicolumn{2}{r}{Summary}& #1 point
\end{tabular}
}
but I got Illegal parameter number in definition of \endpoint. error. I can't figure out, why is it happen and how to solve it.
