• No results found

This Class provides a clean, multi-column design intended for Cheat Sheets.

N/A
N/A
Protected

Academic year: 2021

Share "This Class provides a clean, multi-column design intended for Cheat Sheets."

Copied!
2
0
0

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

Hele tekst

(1)

The cheatsheet class 1

Adrian C. Hinrichs

adrian.hinrichs@rwth-aachen.de August 18, 2017

Abstract

This Class provides a clean, multi-column design intended for Cheat Sheets.

It imports the most useful Packages and encloses the document in a multicol-environment.

Options

(Not)Inherited options

Because the class is inherited by article, every Option that can be passed to article, will be passed to article. There is only one restriction:

twocolumn Because I create the columns with multicol, article would screw up the layout if twocoloumn would be passed, so this raises an error.

Own options

columns=<x> Sets the number of columns. Note that 1 column is not supported by multicol and will be set to 2.

standard value is 4

Commands

None so far.

Dependencies

This class is build uppon article, so of course the first dependency is:

article 1992 Leslie Lamport, 1994-97 Frank Mittelbach Johannes Braams, The L

A

TEX-Team, https://www.ctan.org/pkg/kvoptions, These are all required packages:

amsmath The L

A

TEX–Team, Frank Mittelbach, Rainer Schöpf, et al.,

https://www.ctan.org/pkg/amsmath, For better math-typesetting

amssymb American Mathematical Society,

mirror.ctan.org/fonts/amsfonts/doc/

amssymb.pdf,

For more mathematical symbols

csqutotes Philipp Lehman (inaktiv), Joseph Wright, https://www.ctan.org/pkg/csquotes, For better citation

etoolbox Philipp Lehman (inactive), Joseph Wright, https://www.ctan.org/pkg/etoolbox , The package is a toolbox of programming facilities geared primarily towards L

A

TEXclass and package authors fontenc The L

A

TEX–Team,

https://www.ctan.org/pkg/fontenc, The package allows the user to select font encodings hyperref Sebastian Rahtz, Heiko Oberdiek,

https://www.ctan.org/pkg/hyperref, I originally did not want to include it, but apparently I can not use \ AtBeginDocument if hyperref is not the first Package to be loaded.

If anyone has an other solution, please let me know!

kvoptions Heiko Oberdiek,

https://www.ctan.org/pkg/kvoptions, for key=value–style options

libertine Bob Tennent,

https://www.ctan.org/pkg/libertine, A nicer than default font (at least in my opinion)

mdframed Marco Daniel, Elke Schubert,

https://www.ctan.org/pkg/mdframed, Provides breakable, colored, framed boxes

multicol The L

A

TEX–Team, Frank Mittelbach, https://www.ctan.org/pkg/multicol, Provides the multicolumn–layout

suffix David Kastrup,

https://www.ctan.org/pkg/suffix , Makes it easy to define \macro* commands xcolor Uwe Kern,

https://www.ctan.org/pkg/xcolor, Based uppon color , it provides colors

xifthen Josselin Noirel,

https://www.ctan.org/pkg/xifthen, For if–else–structures

Development and support

The class is developed at GitHub:

https://github.com/ACHinrichs/

LaTeX-templates

Please refer to that site for any bug report or development information.

Changelog

v0.2 - 2017/07/06 Initial

v0.4 - 2017/07/29 Enclose document with multicol (technicaly, it is the other way around) v0.8 - 2017/08/18 Change names to match CTANS

requirements,

Fix a possibly old Bug, could date back to v0.4

Note: The minor version of stable versions is always even, the minor version of unstable versions is always odd. There are no unstable patch–versions, instead unstable versions get an alphabetical suffix.

1

This document corresponds to cheatsheet.cls v1.0, dated 2017/08/18

(2)

Credits

This class is not based upon, but inspired by a document I found on Stackoverflow. Unfortunately, I can’t find it anymore. If you happen to find it, feel free to open a

Pull-Request (or an Issue, or send me an E-Mail) , so that I can credit him or her!

Known Bugs

• When trying to use \lstinline in the label of an

description –item, the code–snippet will be displayed at

the bottom of the column. Possibly relates to floats not being supported by multicol

Examples

For examples, pleas see the Git-Repo at https:

//github.com/ACHinrichs/LaTeX-templates or my CheatSheets at https:

//github.com/ACHinrichs/CheatSheets or this document!

Minimal Document

\documentclass[a4paper,landscape,columns=3]{CheatSheet}

\title{Cheat--Sheet}

\author{A. Uthor\\\href{mailto:author@mail.eg}{author@mail.

,→ eg}}

\date{\today}

\begin{document}

\maketitle

\section{Some things}

Cheats

\section{Other things}

more Cheats

\end{document}

Referenties

GERELATEERDE DOCUMENTEN

This research answered questions such as why invest in clean tech, which categories of clean tech are real estate, what is the status of the technological developments, in

We look whether the token list contains the bizarre list followed by \protect and the same name (with two spaces) which happens if #2 is a control sequence defined

If the ‘twoside’ option has been given to the main document class (either explicitly, or implicitly as in the default for book class), the package will rotate sideways figures

For setting the first column \count\footins and \skip\footins should both be zero since footnotes are held over while for the second column \count\footins should be 1000 and

Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue quam, in hendrerit risus eros eget felis.. Maecenas eget erat in sapien

The following elements are colored as well: title of the document (title page), number of the chapter on the chapter page, name of the chapter in the footer, section and

Define a boolean key that can switch between full and abbreviated formats for the month and day of week names in the text format4.

Load fonts for Japanese and update font info in colophon Default value: false.