GithubHelp home page GithubHelp logo

kthcolors's Introduction

kthcolors

KTH Colorscheme for LaTeX!

Installing

Make the style file available to your latex distribution.

Using

It's just a matter of adding

\usepackage{kthcolors}

to the header of your document (This will also include the xcolor package).

The default package provides the following colors from the KTH official color profile:

kth-blue = 25,84,166
kth-red = 157,16,45
kth-green = 98,146,46
kth-lightblue = 36,160,216
kth-lightred = 228,54,62
kth-lightgreen = 176,210,43
kth-pink = 216,84,151
kth-yellow = 250,185,25
kth-darkgray = 101,101,108
kth-middlegray = 189,188,188
kth-lightgray = 227,229,227

according to the KTH color profile palette kth palette

Using even better

There is some logic embedded in the package: if you add the name of a dvips color as an option, the package will overwrite that color with the corresponding KTH template color. For instance, running

\usepackage[red,blue]{kthcolors}

will change all references to the color blue with references to kth-blue and all references to the color red to kth-red. You can use the flag all to change standard colors to their closest KTH matches:

blue -> kth-blue
red -> kth-red
green -> kth-green
pink -> kth-pink
yellow -> kth-yellow
gray -> kth-darkgray

KTH Logo

The package also provides the \kthlogo command, if it not already defined, to represent kth-logo.pdf, which is given inside the lib directory and has the correct blue color. In your documents, you can use it as follows:

% ...

% \usepackage{graphicx}

% ...

\begin{figure}
  \centering
  \includegraphics[width = 10mm]{\kthlogo}
\end{figure}

Hacking

If you have comments or hacks that you would like to include, send me a message or post an issue or a pull request. Have fun!

kthcolors's People

Contributors

riccardosven avatar neveritt avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

neveritt martisak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.