CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/csthm

README.md

title: Theorem Environments for Computer Science (csthm.sty) linter-yaml-title-alias: Theorem Environments for Computer Science (csthm.sty) date created: Monday, March 25th 2024, 14:13:16 date modified: Saturday, August 31st 2024, 11:32:48

aliases: Theorem Environments for Computer Science (csthm.sty)

Theorem Environments for Computer Science (csthm.sty)

Overview

The csthm package provides customized theorem-like environments specifically designed for computer science documents. It offers a set of pre-defined theorem styles and environments to streamline the creation of theorems, definitions, remarks, and other common structures in computer science papers and documents.

Features

  • Pre-defined theorem styles: thmstyle, defstyle, remarkstyle, and hltstyle
  • Theorem environments: theorem, fact, assumption, claim, conjecture, corollary, lemma, property, proposition
  • Definition environments: definition, example, exercise, problem, question
  • Remark environments: note, remark, solution
  • Highlight environments: important, highlight, key-point
  • Custom environments: case, axiom
  • Accent Colour: Customizable accent colour
  • Cleveref Support: Optional integration with cleveref package

Installation

  1. Download the csthm.sty file.
  2. Place it in the same directory as your document or in your local tree.

Usage

Load the package in your document:

\usepackage{csthm}

To use the package with cleveref support:

\usepackage[cleveref]{csthm}

Examples

\begin{theorem}
  This is a theorem.
\end{theorem}

\begin{definition}
  This is a definition.
\end{definition}

\begin{remark}
  This is a remark.
\end{remark}

\begin{case}
  \item This is case 1.
  \item This is case 2.
\end{case}

\begin{axiom}
  \item This is axiom A.
  \item This is axiom B.
\end{axiom}

Customization

To change the accent colour:

\setaccentcolor{blue}

License

This file may be distributed and/or modified under the conditions of the Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in https://www.latex-project.org/lppl.txt and version 1.3c or later is part of all distributions of version 2008/05/04 or later.

Author

Agni Datta <[email protected]>

Bug Reports and Feature Requests

Please report any issues or feature requests on the package’s GitHub repository.

Download the contents of this package in one zip archive (406.8k).

csthm – Customized theorem environments for computer science documents

This package provides customized theorem-like environments specifically designed for computer science documents. It offers a set of pre-defined theorem styles and environments to streamline the creation of theorems, definitions, remarks, and other common structures in computer science papers and documents.

Features:

  • Predefined theorem styles tailored for computer science
  • Environments for theorems, lemmas, definitions, examples, remarks, and more
  • Special environments for cases and axioms
  • Customizable accent color
  • Optional cleveref support for enhanced cross-referencing

The package requires the following packages to be installed: amsmath, amssymb, amsthm, enumitem, and thmtools. If using the cleveref option, hyperref and cleveref are also required.

Packagecsthm
Repositoryhttps://github.com/agni-datta/csLaTeX/
Version1.2 2024-08-31
LicensesThe Project Public License 1.3c
Copyright2024 Agni Datta
MaintainerAgni Datta
Contained inTeX Live as csthm
TopicsMaths theorem
Computer science
...
Guest Book Sitemap Contact Contact Author