Figures are labeled as 1.0.1 but as I am only using "Parts" and do not have "chapters" or"sections" i would like them to be 1.1, 1.2 and so on.
[Tex/LaTex] Figure numbering removing section LyX
floatslyxnumbering
Related Solutions
I fixed this by doing:
\usepackage{chngcntr}
\counterwithout{figure}{section}
This basically makes counters not label things as Section.## but just as ##.
To dfine your theorem-like structures in a consistent way, you can use the amsthm
package; the \swapnumbers
option gives the numbering and then the title; to get the theorem head in small capitals, you can easily define a new style:
\documentclass{article}
\usepackage{amsthm}
\swapnumbers
\newtheoremstyle{mystyle}
{\topsep}
{\topsep}
{}
{}
{\scshape}
{.}
{.5em}
{}
\theoremstyle{mystyle}
\newtheorem{lem}{Lemma}[section]
\newtheorem{pro}[lem]{Proposition}
\begin{document}
\section{Test section one}
\begin{lem}
Your text goes here.
\end{lem}
\begin{pro}
Your text goes here.
\end{pro}
\section{Test section two}
\begin{pro}
Your text goes here.
\end{pro}
\begin{lem}
Your text goes here.
\end{lem}
\end{document}
After the edit to the question, here's an option subject to the imposed constraints: no \newtheoremstyle
, no \renewcommand
, no \newenvironment
(I don't quite understand why these restrictions, specially the one about not using \newenvironment
to define environments!; also, weblink
uses \newtheorem
and \theoremstyle
, so why don't you want to use those?):
\documentclass[fleqn]{gsm-l}
\usepackage{weblink}
\let\lemma\relax
\let\corollary\relax
\let\proposition\relax
\let\remark\relax
\newcommand\lemma{%
\refstepcounter{subsection}%
\par\noindent\thesubsection.~\textsc{Lemma}.\itshape}
\newcommand\corollary{%
\refstepcounter{subsection}%
\par\noindent\thesubsection.~\textsc{Corollary}.\itshape}
\newcommand\proposition{%
\refstepcounter{subsection}%
\par\noindent\thesubsection.~\textsc{Proposition}.\itshape}
\newcommand\remark{%
\refstepcounter{subsection}%
\par\noindent\thesubsection.~\textsc{Remark}.\itshape}
\begin{document}
\chapter{LINEAR SPACES}
\begin{proposition}
text
\end{proposition}
\subsection{Test subsection one}
text
\begin{lemma}
text
\end{lemma}
\begin{corollary}
text
\end{corollary}
\subsection{Test subsection two}
text
\begin{remark}
text
\end{remark}
\end{document}
Best Answer
Add to your Document > Settings... > LaTeX Preamble the following code:
The default numbering of parts in KOMA-Script is Roman, so I've used
\arabic{part}
since. However, if you've updated this somehow to be Roman elsewhere, you could just use\thepart.\arabic{figure}
.