The Centernot Package Manual 3

Manual%203

en_np_Manual-3

pt_np_Manual-3

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 5

DownloadThe Centernot Package Manual 3
Open PDF In BrowserView PDF
The centernot package
Heiko Oberdiek∗

2016/05/16 v1.4

Abstract
This package provides \centernot that prints the symbol \not on the
following argument. Unlike \not the symbol is horizontally centered.

Contents
1 User interface

1

2 Implementation

2

3 Installation
3.1 Download . . . . . . . . . . . .
3.2 Bundle installation . . . . . . .
3.3 Package installation . . . . . .
3.4 Refresh file name databases . .
3.5 Some details for the interested

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

4 Catalogue
5 History
[2006/12/02
[2007/05/31
[2010/03/29
[2011/07/11
[2016/05/16

4
v1.0]
v1.1]
v1.2]
v1.3]
v1.4]

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

6 Index

1

2
2
3
3
3
3

.
.
.
.
.

.
.
.
.
.

4
4
4
4
5
5
5

User interface

If a negated relational symbol is not available, \not can be used to create the
negated variant of the relational symbol. The disadvantage of \not is that it is
put at a fixed location regardless of the width of the relational symbol. Therefore \centernot takes an argument and measures its width to achieve a better
placement of the symbol \not. Examples:
symbol
=
\parallel
\longrightarrow

\not
6=
6k
6−→

\centernot
6=
6k
−→
6

(definition)

But do not forget that most negated symbols are already available, e.g.:
∗ Please

report any issues at https://github.com/ho-tex/oberdiek/issues

1

case
\parallel:
\mid:
\rightarrow:

2

package
centernot
amssymb
centernot
amssymb
mathabx
centernot
amssymb
mathabx

code
$A \centernot\parallel B$
$A \nparallel B$
$A \centernot\mid B$
$A \nmid B$
$A \notdivides B$
$A \centernot\rightarrow B$
$A \nrightarrow B$
$A \nrightarrow B$

result
A6k B
A∦B
A6 | B
A-B
A ffl B
A 6→ B
A9B
AÛB

Implementation

1

h*packagei
\NeedsTeXFormat{LaTeX2e}
3 \ProvidesPackage{centernot}
4 [2016/05/16 v1.4 Centers the not symbol horizontally (HO)]%
2

\not is a \mathrel atom with zero width. It prints itself outside its character
box, similar to \rlap. The next \mathrel symbol is then print on top of it. TEX
does not add space between two \mathrel atoms. The following implementation
assumes that the math font is designed in such a way that the position of \not
fits well on the equal symbol.
The blue boxes marks the character bounding boxes seen by TEX:
\not
=
\not=

6

=

6=

\centernot \centernot is not a symbol but a macro that takes one argument. It measures the

width of the argument and places \not horizontally centered on that argument.
The result is a \mathrel atom.
\newcommand*{\centernot}{%
\mathpalette\@centernot
7}
8 \def\@centernot#1#2{%
9 \mathrel{%
10
\rlap{%
11
\settowidth\dimen@{$\m@th#1{#2}$}%
12
\kern.5\dimen@
13
\settowidth\dimen@{$\m@th#1=$}%
14
\kern-.5\dimen@
15
$\m@th#1\not$%
16
}%
17
{#2}%
18 }%
19 }
5
6

20

h/packagei

3

Installation

3.1

Download

Package. This package is available on CTAN1 :
CTAN:macros/latex/contrib/oberdiek/centernot.dtx The source file.
CTAN:macros/latex/contrib/oberdiek/centernot.pdf Documentation.
1 http://ctan.org/pkg/centernot

2

Bundle. All the packages of the bundle ‘oberdiek’ are also available in a TDS
compliant ZIP archive. There the packages are already unpacked and the documentation files are generated. The files and directories obey the TDS standard.
CTAN:install/macros/latex/contrib/oberdiek.tds.zip
TDS refers to the standard “A Directory Structure for TEX Files” (CTAN:tds/
tds.pdf). Directories with texmf in their name are usually organized this way.

3.2

Bundle installation

Unpacking. Unpack the oberdiek.tds.zip in the TDS tree (also known as texmf
tree) of your choice. Example (linux):
unzip oberdiek.tds.zip -d ~/texmf
Script installation. Check the directory TDS:scripts/oberdiek/ for scripts
that need further installation steps. Package attachfile2 comes with the Perl script
pdfatfi.pl that should be installed in such a way that it can be called as pdfatfi.
Example (linux):
chmod +x scripts/oberdiek/pdfatfi.pl
cp scripts/oberdiek/pdfatfi.pl /usr/local/bin/

3.3

Package installation

Unpacking. The .dtx file is a self-extracting docstrip archive. The files are
extracted by running the .dtx through plain TEX:
tex centernot.dtx
TDS. Now the different files must be moved into the different directories in your
installation TDS tree (also known as texmf tree):
centernot.sty → tex/latex/oberdiek/centernot.sty
centernot.pdf → doc/latex/oberdiek/centernot.pdf
centernot.dtx → source/latex/oberdiek/centernot.dtx
If you have a docstrip.cfg that configures and enables docstrip’s TDS installing
feature, then some files can already be in the right place, see the documentation
of docstrip.

3.4

Refresh file name databases

If your TEX distribution (teTEX, mikTEX, …) relies on file name databases, you
must refresh these. For example, teTEX users run texhash or mktexlsr.

3.5

Some details for the interested

Unpacking with LATEX.

The .dtx chooses its action depending on the format:

plain TEX: Run docstrip and extract the files.
LATEX: Generate the documentation.
If you insist on using LATEX for docstrip (really, docstrip does not need LATEX),
then inform the autodetect routine about your intention:
latex \let\install=y\input{centernot.dtx}
Do not forget to quote the argument according to the demands of your shell.

3

Generating the documentation. You can use both the .dtx or the .drv to
generate the documentation. The process can be configured by the configuration
file ltxdoc.cfg. For instance, put this line into this file, if you want to have A4 as
paper format:
\PassOptionsToClass{a4paper}{article}
An example follows how to generate the documentation with pdfLATEX:
pdflatex centernot.dtx
makeindex -s gind.ist centernot.idx
pdflatex centernot.dtx
makeindex -s gind.ist centernot.idx
pdflatex centernot.dtx

4

Catalogue

The following XML file can be used as source for the TEX Catalogue. The elements caption and description are imported from the original XML file from the
Catalogue. The name of the XML file in the Catalogue is centernot.xml.
21

h*cataloguei

23 
24 
25 centernot
26 Centred \not command.
27 
28 
29 
30 
31 
32
The package provides \centernot that prints the symbol
33
\not on the following argument. Unlike the default
34
\not command, the symbol is horizontally centered.
35

36 The package is part of the oberdiek 37 bundle. 38 39 41 42 43 44 45 46 h/cataloguei 22 5 History [2006/12/02 v1.0] • First version. [2007/05/31 v1.1] • Real symbols added in documentation part. [2010/03/29 v1.2] • Documentation fix: ‘negotiated’ to ‘negated’ (Hartmut Henkel). 4 [2011/07/11 v1.3] • Superfluous \makeatother removed (Martin Münch). [2016/05/16 v1.4] • Documentation updates. 6 Index Numbers written in italic refer to the page where the corresponding entry is described; numbers underlined refer to the code line of the definition; plain numbers refer to the code lines where the entry is used. Symbols \@centernot . . . . . . . . . . . . . . . . . . 6, 8 \mathrel . . . . . . . . . . . . . . . . . . . . . . 9 N \NeedsTeXFormat . . . . . . . . . . . . . . . 2 \newcommand . . . . . . . . . . . . . . . . . . 5 \not . . . . . . . . . . . . . . . . . 15, 26, 33, 34 C \centernot . . . . . . . . . . . . . . . . . . 5, 32 D \dimen@ . . . . . . . . . . . . . 11, 12, 13, 14 K \kern . . . . . . . . . . . . . . . . . . . . . \ProvidesPackage P ............... 3 R \rlap . . . . . . . . . . . . . . . . . . . . . . . . 10 12, 14 M \m@th . . . . . . . . . . . . . . . . . . 11, 13, 15 \mathpalette . . . . . . . . . . . . . . . . . . . 6 S \settowidth . . . . . . . . . . . . . . . . 5 11, 13


Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 5
Page Mode                       : UseOutlines
Author                          : Heiko Oberdiek, 
Title                           : The centernot package
Subject                         : Centers the not symbol horizontally (HO)
Creator                         : LaTeX with hyperref package
Create Date                     : 2016:05:16 18:45:39+01:00
Modify Date                     : 2016:05:16 18:45:39+01:00
Producer                        : LuaTeX-1.7.0
Trapped                         : False
PTEX Full Banner                : This is LuaTeX, Version 1.07.0 (TeX Live 2018/dev)
EXIF Metadata provided by EXIF.tools

Navigation menu