Directory macros/latex/contrib/alertmessage
latex-alert-message - available on CTAN
Alert messages for LaTeX - Inspired by Bootstrap alerts
Installation
Clean installation
To install the package properly, download the TDS archive. Then extract the archive into the texmf folder and install the package as following:
sudo unzip alertmessage.tds.zip -d "$(kpsewhich -var-value TEXMFLOCAL)"
sudo texhash
The package will be available from anywhere on your computer.
Use the package without installation
You can use the package without installation by putting the package file and the images in the root directory of your LaTeX project.
Download the latest release as a full example project or look at the example.tex.
Documentation
Include the package in the header of your TeX file:
\usepackage{alertmessage}
And simply call the methods you need. There are four panels availables for information
, warnings
, errors
or success
messages.
\alertinfo{Lorem ipsum dolor sit amet.} \alertsuccess{Lorem ipsum dolor sit amet.} \alertwarning{Lorem ipsum dolor sit amet.} \alerterror{Lorem ipsum dolor sit amet.}
The panel will adapt its size according to the length of the text (as you can see in the example).
Contributing
Feel free to open issues or create pull requests.
If you want to modify the package for personal use, you can manually edit the package file.
If you want to create a TDS archive to share your modifications with your friends, use the TDS generation script.
If you want to deploy your modifications on the CTAN by yourself, please take a different package name.
Releases
Download the contents of this package in one zip archive (112.2k).
alertmessage – Alert messages for LaTeX
Some macros to display alert messages (informations, errors, warnings and success messages).
Package | alertmessage |
Repository | https://github.com/pidupuis/latex-alert-message |
Version | 1.1 2015-08-04 |
Licenses | The LaTeX Project Public License 1.3 |
Maintainer | Pierre Dupuis |
TDS archive | alertmessage.tds.zip |
Contained in | TeX Live as alertmessage MiKTeX as alertmessage |
Topics | Boxing |