http://www.latex-community.org/forum/vi ... 703#p49703
Code: Select all
\def\@seccntformat#1{\csname the#1\endcsname.\quad}
\def\numberline#1{\hb@xt@\@tempdima{#1\if&\else.\fi\hfil}}
Code: Select all
\renewcommand{\thealgorithm}{\thesection.{\arabic{algorithm}.}}
How to solve this problem?
This is my preamble
Code: Select all
\documentclass[12pt,a4paper,titlepage]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts,amssymb,amsthm,amsmath}
\usepackage[english,polish]{babel}
\usepackage[OT4]{fontenc}
\usepackage[plmath]{polski}
\usepackage[section]{algorithm}
\usepackage{caption,algpseudocode}
\numberwithin{equation}{section}
\renewenvironment{proof}[1][Dowód]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\makeatletter
\def\imod#1{\allowbreak\mkern10mu({\operator@font mod}\,\,#1)}
\def\@seccntformat#1{\csname the#1\endcsname.\quad}
\def\numberline#1{\hb@xt@\@tempdima{#1\if&\else.\fi\hfil}}
\makeatother
\begin{document}