• No results found

The utf8hax package

N/A
N/A
Protected

Academic year: 2021

Share "The utf8hax package"

Copied!
3
0
0

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

Hele tekst

(1)

The

utf8hax

package

Using UTF-8 encoded input as short cuts

Palle Jørgensen

26th May 2020

1 Introduction

The purpose of this package is to provide som short cuts for typing math in LATEX. It is

notintended for increasing readability.

2 Loading the package

\usepackage [ d e f a u l t ]{ u t f 8hax }

2.1 Package options

autochar Choosing the character for the math automatation. It must be the hex code

for the desired character.

mathchar Choosing the character for math mode. It must be the hex code for the desired

character.

currmath Setting ‘¤’ as the math character.

yenmath Setting ‘¥’ as the math character.

sterlingmath Setting ‘£’ as the math character.

copyauto Setting ‘©’ at the math automatation character.

regauto Setting ‘®’ at the math automatation character.

default Short cut for thecopyautoandcurrmathoption. The authors favourite.

(2)

3 Using the package

3.1 Math character

Typing

The slope of the line is designated ¤a. equals

The slope of the line is designated \ensuremath{a}. yielding

The slope of the line is designated a.

3.2 Math automatation character

Typing

The slope of the line is designated ©a. automates into

The slope of the line is designated \@automath@a.

The command ‘\@automath@a’ is programmed into being equal to ‘\ensuremath{\alpha}’. Thus the input is equal to

The slope of the line is designated \ensuremath{\alpha}. yielding

The slope of the line is designated α.

(3)

3.3 New math automatation

New math automatation is accessible through the ‘\newmathautomatation’ command. Typing

\newmathautomatation{?}{What?} makes the input sequence ‘©?’ equal to \ensuremath{What?}

yielding What?

4 Drawbacks

As some input characters are changed the access to these characters is made more difficult.

The copyright symbol is accessible through ‘©!’. As i do not know anybody using the

generic currency symbolin real life it is not made as easily accessible.

5 Copyright and license

This fileutf8haxis part of theutf8addbundle.

Theutf8addpackage and all the associated files are copyright © Palle Jørgensen, 2020. utf8addis free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

utf8addis distributed in the hope that it will be useful, but WITHOUT ANY

WAR-RANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along withutf8add. If not, see <https://www.gnu.org/licenses/>.

Referenties

GERELATEERDE DOCUMENTEN

This work 'is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation..

Stubs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of

This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version

As I have discovered the easy access for special characters using the compose key feature, I found out that some extra support for various UTF-8 characters was needed.. Otherwise

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the

The XY-pic package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;