-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from EagleoutIce/34-add-a-classic-option
New `classic` option
- Loading branch information
Showing
6 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
[<img src="https://github.com/EagleoutIce/fancyqr/blob/gh-pages/preview-1.png?raw=true" width="600"/>](qr-example.tex) | ||
|
||
A simple package to create fancy qr-codes with the help of the [`qrcode`][qrcode]-package. | ||
You may use `\fancyqr` just like the normal `\qrcode` (`\fancyqr[<qr-options>]{<url>}`). See the [documentation](https://media.githubusercontent.com/media/EagleoutIce/fancyqr/gh-pages/build/fancyqr-doc.pdf). | ||
You may use `\fancyqr` just like the normal `\qrcode` (`\fancyqr[<qr-options>]{<url>}`). See the [documentation](https://media.githubusercontent.com/media/EagleoutIce/fancyqr/gh-pages/build/fancyqr-doc.pdf). If you just want to create a simple qr-code, please refer to the [minimal example](qr-minimal.tex). | ||
|
||
*fancyqr* is actively developed by *Florian Sihler* (contact me at: <[email protected]>) under the [GPLv3 License](LICENSE). I am very happy about every contribution (see [CONTRIBUTING.md](CONTRIBUTING.md)). You can find it on CTAN (<https://www.ctan.org/pkg/fancyqr>). | ||
|
||
|
@@ -14,26 +14,27 @@ At the moment, there are six other styles (`flat`, `frame`, `blobs`, `glitch`, a | |
|
||
There are the following extra qr-options (you can set all of them with `\fancyqrset{<keys>}`): | ||
|
||
| Option | Type | Default | Explanation | | ||
| ----------------- | ----------- | :------: | --------------------------------------------------------------------------------------------- | | ||
| `color` | color | | Disables the `gradient` and sets the qr color accordingly. | | ||
| `gradient angle` | angle | `135` | Change the gradient angle. | | ||
| `gradient` | boolean | true | Toggle the color gradient | | ||
| `image` | LaTeX | | Automatically center an image.[^1] | | ||
| `image padding` | number | | Additionally hide blocks (x & y) around the image. | | ||
| `image x padding` | number | `0` | Additionally hide blocks (x) around the image. | | ||
| `image y padding` | number | `0` | Additionally hide blocks (y) around the image. | | ||
| `l color` | color | `purple` | Set the top left gradient color. | | ||
| `left color` | color | | Alias for `l color`. | | ||
| `level` | L/M/Q/H | `M` | [`qrcode`][qrcode] option affecting error correction (low, medium, quartile, high). | | ||
| `padding` | flag | | [`qrcode`][qrcode] option adding sufficient additional space around the QR code. | | ||
| `r color` | color | `teal` | Set the bottom right gradient color. | | ||
| `random color` | colors | | Allow to set a random color pool to pick from. | | ||
| `right color` | color | | Alias for `r color`. | | ||
| `size` | length | | Alias for [`qrcode`'s][qrcode] `height` option. | | ||
| `tight` | flag | | [`qrcode`][qrcode] option adding no additional space around the QR code. | | ||
| `version` | [0..40] ∈ ℕ | `0` | [`qrcode`][qrcode] option affecting the size (tries to be as small as possible). | | ||
| `width` | length | | Alias for [`qrcode`'s][qrcode] `height` option. | | ||
| Option | Type | Default | Explanation | | ||
| ----------------- | ----------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `classic` | boolean | `false` | Use the classic qr-code style (black with flat rectangles, this loads the `flat` style). | | ||
| `color` | color | | Disables the `gradient` and sets the qr color accordingly. | | ||
| `gradient angle` | angle | `135` | Change the gradient angle. | | ||
| `gradient` | boolean | true | Toggle the color gradient | | ||
| `image` | LaTeX | | Automatically center an image (you have to care for the size and maybe adjust the `version` and `level` to keep the qr-code readable).[^1] | | ||
| `image padding` | number | | Additionally hide blocks (x & y) around the image. | | ||
| `image x padding` | number | `0` | Additionally hide blocks (x) around the image. | | ||
| `image y padding` | number | `0` | Additionally hide blocks (y) around the image. | | ||
| `l color` | color | `purple` | Set the top left gradient color. | | ||
| `left color` | color | | Alias for `l color`. | | ||
| `level` | L/M/Q/H | `M` | [`qrcode`][qrcode] option affecting error correction (low, medium, quartile, high). | | ||
| `padding` | flag | | [`qrcode`][qrcode] option adding sufficient additional space around the qr-code. | | ||
| `r color` | color | `teal` | Set the bottom right gradient color. | | ||
| `random color` | colors | | Allow to set a random color pool to pick from. | | ||
| `right color` | color | | Alias for `r color`. | | ||
| `size` | length | | Alias for [`qrcode`'s][qrcode] `height` option. | | ||
| `tight` | flag | | [`qrcode`][qrcode] option adding no additional space around the qr-code. | | ||
| `version` | [0..40] ∈ ℕ | `0` | [`qrcode`][qrcode] option affecting the size (tries to be as small as possible). | | ||
| `width` | length | | Alias for [`qrcode`'s][qrcode] `height` option. | | ||
|
||
The defaults are set like this: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
\documentclass{article} | ||
|
||
\usepackage{fancyqr} | ||
|
||
\usepackage[active,tightpage]{preview} | ||
\setlength\PreviewBorder{0pt} | ||
|
||
\begin{document} | ||
\preview | ||
\fancyqr[classic,padding]{https://github.com/EagleoutIce/fancyqr} | ||
\endpreview | ||
\end{document} |