Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yegor256/ffcode
LaTeX package for writing code in your articles in a good looking fixed-font
https://github.com/yegor256/ffcode
latex latex-package latex-style
Last synced: 3 months ago
JSON representation
LaTeX package for writing code in your articles in a good looking fixed-font
- Host: GitHub
- URL: https://github.com/yegor256/ffcode
- Owner: yegor256
- License: mit
- Created: 2021-06-10T09:10:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T05:59:18.000Z (8 months ago)
- Last Synced: 2024-05-01T23:12:15.744Z (8 months ago)
- Topics: latex, latex-package, latex-style
- Language: TeX
- Homepage: https://ctan.org/pkg/ffcode
- Size: 219 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fixed-Font LaTeX Primitive: `\ff` and `\begin{ffcode}`
[![make](https://github.com/yegor256/ffcode/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/ffcode/actions/workflows/l3build.yml)
[![CTAN](https://img.shields.io/ctan/v/ffcode)](https://ctan.org/pkg/ffcode)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/ffcode/blob/master/LICENSE.txt)This LaTeX package helps you write source code in your academic papers
and make sure it looks neat. The package uses
[`listings`](https://ctan.org/pkg/listings)
and [`tcolorbox`](https://ctan.org/pkg/tcolorbox) packages.First,
[install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
from [CTAN](https://ctan.org/pkg/ffcode)
and then use in the preamble:```tex
\documentclass{article}
\usepackage{ffcode}
\begin{document}
The function \ff{r()} reads the file:
\begin{ffcode}
void r() {
// read the file
}
\end{ffcode}
\end{document}
```Otherwise, you can download
[`ffcode.sty`](https://yegor256.github.io/ffcode/ffcode.sty) and
add to your project.If you want to contribute yourself, make a fork, then create a branch,
then run `l3build ctan` in the root directory.
It should compile everything without errors. If not, submit an issue and wait.
Otherwise, make your changes and then run `l3build ctan` again. If the build is
still clean, submit a pull request.