Text FormattingSuperscript numbering of sentences

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Shapeshifter
Posts: 1
Joined: Fri Nov 18, 2022 4:39 pm

Superscript numbering of sentences

Post by Shapeshifter »

I would like to number a text not only by having a number of the sentence but also the chapter next to it. So that would be 1:1, 1:2, 1:3 and so on until it hits a new chapter and goes to 2:1, 2:2 etc.

So far I have been able to get a continuous numbering of sentences (see below). How can I add the "1:" in from the numbering? Is this possible at all with LaTex?

Code: Select all

\documentclass[pagesize, english]{scrartcl}
\usepackage{babel, scrjura, xcolor, etoolbox}

\useshorthands{/}
\defineshorthand{/S}{\Sentence\ignorespaces}
\defineshorthand{/.}{. \Sentence\ignorespaces}

\makeatletter
\preto\contract@paragraph@font{\color{white}}
\makeatother

\begin{document}


\begin{contract}
\Paragraph{}
  /S Lorem Ipsum is simply dummy text of the printing and typesetting industry/. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book/. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged/. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
\end{contract}


\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply