LaTeX forum ⇒ Text FormattingSuperscript numbering of sentences

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

Superscript numbering of sentences

Postby Shapeshifter » Fri Nov 18, 2022 4:47 pm

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?

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

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



  /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


Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook

Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests