• No results found

This package simplifies the syntax of calling dynamic math brackets.

N/A
N/A
Protected

Academic year: 2021

Share "This package simplifies the syntax of calling dynamic math brackets."

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The dynbrackets package

Miguel R. Clemente miguel.clemente@dem.uc.pt

v1.0.0 from 2021/04/01

1 Introduction

This package simplifies the syntax of calling dynamic math brackets.

Dynamic math brackets builds on \left and \right syntax of deploying size sensible brackets in math mode.

2 Usage

dynbrackets implements commands to the math braces and parentheses found in Table 1. Note that L

A

TEXmarkup on the table doesn’t correspond to dynamic brackets, just the brackets themselves.

To have the brackets change size dynamically with the content one would have to use \left and \right on each bracket respectively. To simplify the syntax, dynbrackets implements a command for each bracket pair. When calling a dynamic bracket, content inside the bracket will automatically be in math mode.

3 Implementation

1

\NeedsTeXFormat{LaTeX2e}

2

\ProvidesPackage{dynbrackets}

Table 1: List of Math Brackets

Type L

A

TEX dynbrackets Renders as

Parentheses; round brackets ( x+y ) \dbr{} (x + y)

Brackets; square brackets [ x+y ] \dbs{} [x + y]

Braces; curly brackets \{ x+y\} \dbc{} {x + y}

Angle brackets \langle x+y \rangle \dba{} hx + yi

Pipes; vertical bars | x+y | \dbp{} x+y

Double pipes \| x+y \| \dbdp{} kx + yk

1

(2)

3

[2021/04/01 v1.0.0 Simplifies the syntax of calling dynamic math brackets]

\dbr

4

\newcommand{\dbr}[1]{\ensuremath{\left(#1\right)}}

\dbs

5

\newcommand{\dbs}[1]{\ensuremath{\left[#1\right]}}

\dbc

6

\newcommand{\dbc}[1]{\ensuremath{\left\{#1\right\}}}

\dba

7

\newcommand{\dba}[1]{\ensuremath{\left\langle#1\right\rangle}}

\dbp

8

\newcommand{\dbp}[1]{\ensuremath{\left|#1\right|}}

\dbdp

9

\newcommand{\dbdp}[1]{\ensuremath{\left\|#1\right\|}}

2

Referenties

GERELATEERDE DOCUMENTEN

Conversely, \\ will always produce a horizontal break in type inference rules; to obtain a vertical break, use \hva \\ instead. For instance, by default the

The smart-eqn package aims to provide an automatic and customizable approach for math symbol styling, which eliminates the need to enter style commands repeatedly..

Note that you only have to set up the font for a single family: opentype mathematical fonts typically contain all necessary variants of all mathematical characters.. Therefore, the

The decision to write patches for existing macro packages should not be made lightly: monkey patching done by somebody different from the original package author ties the

stricttex – strictly balanced brackets and numbers in command names (v0.2β).. Sebastian Ørsted (sorsted@gmail.com) September

Here we need to get url in a state such that when it switches to math mode and enters ASCII characters, the maths setup (i.e., unicode-math ) doesn’t remap the symbols into Plane

In unicode-math , the \symbf command works directly with both Greek and Latin maths characters and depending on package option either switches to upright for Latin letters

The style of Latin and Greek letters is set up by default to match the output of standard L A TEX: Latin letters and Greek lowercase letters are italic, and Greek.. uppercase