I want create theorem like this one:
pharagraph symbol before arabic number, then dot, then theorem name, then subsection with dot and no \newline at the end. "Na to żeby iloczyn nieskończony" is part written in theorem. I have tried many times.
I found this topic: Theorem style like (1.1 Theorem) and custom theorems like (1.2 Intermadiate Value Theorem)
Copied code with definition and guess how it works with reverse engineering, but still my output doesnt look like I want. Any idea how to make this?!
\documentclass[12 pt, a4paper]{article}
\usepackage[cp1250]{inputenc}
\usepackage{polski,enumerate,amsmath,amssymb, multicol,mathtools,ragged2e,amsthm}
\newcounter{mycounter}
\usepackage[a4paper,
bindingoffset=0.2in,
top=1in,
bottom=1in,
footskip=.25in]{geometry}
\setcounter{page}{104}
\swapnumbers
\newtheoremstyle{theorem}% name
{}% Space above, empty = `usual value'
{}% Space below
{\itshape}% Body font
{}% Indent amount
{\bfseries}% Head font
{.}% Punctuation after head
{ }% Space after head: \newline = linebreak
{$\S;${#1}\ifx\temp\empty\thmnumber{#2}\else \thmnumber{#2}\thmnote{ #3}\fi}% Head spec
\theoremstyle{theorem}
\newtheorem{theo}{Twierdzenie}
\begin{document}
\begin{theo}lorem ipsum
\end{theo}
\end{document}
Thats short version of my code including all that interferes theorem.
