Coder Social home page Coder Social logo

realhats's Introduction

realhats LaTeX package

realhats is a package for LaTeX that makes \hat put real hats on symbols. A reasonably up-to-date version of realhats is available from the CTAN archive.

Regretfully brought into the world by Matthew Scroggs and Adam Townsend.

Thanks to

  • Smitha Maretvadakethope
  • Pedro Horse

Example

Letters with hats on

Changelog

Version 7.1 (2023-04-05)

  • Reflected dark blue tile hat

Version 7.0 (2023-04-04)

  • Added aperiodic tile hat

Version 6.0 (2022-06-13)

  • Added Scottish hat
  • Added police hat
  • Added birthday hat
  • Added mortarboard

Version 5.0 (2019-11-19)

  • Added Ash's hat

Version 4.0 (2019-11-02)

  • Vectorised the hats
  • Added dunce cap

Version 3.0 (2019-04-14)

  • Added optional parameters for \hat and \usepackage to control which hats are used.
  • Added crown

Version 2.0 (2019-02-25)

  • Replaced tikz with stackengine
  • Added top hat, fez, cowboy hat

Version 1.0 (2019-02-05)

  • First working version of package
  • Added five hats
  • Added documentation

Licensing

This work may be distributed and/or modified under the conditions of the MIT license.

realhats's People

Contributors

mscroggs avatar pecnut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

realhats's Issues

Wally's hat

Though we had this but can't seem to find it...

\widehat

\widehat should add a particularly wide hat

specify

\hat[crown]{x} does not let me specify to use a crown. It prints out [crown]. Does the same for specifying any kind of hat.

File 'hats/realhats-birthday' not found

Greetings, I've just updated to version 6.0 and used the package for the first time.
I tried running the \hat{} command within a mathmode block to test it out, and my editor (Texmaker, Windows) gives me the following error:
File 'hats/realhats-birthday' not found.
I use MiKTeX as my package distributor, and after some quick digging I've noticed that only a single file is installed, realhats.sty. So I tried putting the hats folder from this git repo in the same folder in case the problem could be fixed, but it hasn't.
Is there something I am missing? I checked out the docs, but nothing's mentioned.

Thanks in advance.

More hats

We should add:

  • - Top hat
  • Make LaTeX great again hat
  • Fez
  • Cowboy hat

Input without curly brackets

Hey! I'm currently writing another joke package, having big inspiration of your awesome work.

While reading into it, I learned that using input{docstrip} is strongly seen as bad practise since this would limit it to LaTeX only instead of other *tex, which may use your file as well.

Source: http://texdoc.net/texmf-dist/doc/latex/base/docstrip.pdf Page 5 (\input)

Just fyi, I really like your project and will genuinely use it for my fourier analysis lecture next semester ๐Ÿ‘

Cheers

Adding a birthday party hat

I'm coming from the twitter thread here and I'm the birthday thesis defense guy. The author of the package has personally suggested I open an issue regarding this topic. I defend on July 11th, so this isn't something that must happen overnight. I'm suggesting a birthday party hat, but I don't have a specific preference on its appearance, so long it is recognizable. Perhaps red with a few colorful spots?

Thanks for the opportunity.

Kalpak?

A kyrgyz kalpak would be an excellent addition!

how to remove distance between letters and remove italic format?

First of all, thanks for the great package gentleman!

Now the issue: I tried it in one word:

\hat[crown]{B}OX

The results looks like this:

crown realhats latex usage

  • is it possible to remove italic format?
  • is it possible to remove the distance between the letters?

using it with:
\documentclass[11pt]{article}

Packages:

  • geometry
  • pdfpages
  • babel
  • pgffor, ifthen
  • hyperref
  • cuisine

Incompatibility with unicode-math

Using realhats in conjunction with unicode-math in XeLaTeX results in a plain hat being output. Minimal document to reproduce:

\documentclass{article}
\usepackage{unicode-math}
\usepackage{realhats}
 
\begin{document}
$\hat{a}$
\end{document}

Police hat

We should have a police hat for unit vectors in charge of law and order.

Make the package better

The tikz stuff is hacky and bad.
The multiple checks for each letter as a \vec, \mathbf and normal letter are awful.

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.