Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vjousse/vim-for-humans-book
The vim for humans book
https://github.com/vjousse/vim-for-humans-book
book ebook latex vim
Last synced: 6 days ago
JSON representation
The vim for humans book
- Host: GitHub
- URL: https://github.com/vjousse/vim-for-humans-book
- Owner: vjousse
- License: other
- Created: 2014-11-18T15:00:41.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-06-14T09:45:37.000Z (7 months ago)
- Last Synced: 2024-12-26T16:07:44.681Z (13 days ago)
- Topics: book, ebook, latex, vim
- Language: TeX
- Homepage: https://vimebook.com
- Size: 22.7 MB
- Stars: 134
- Watchers: 7
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vim for humans
Website code available here: https://github.com/vjousse/vim-for-humans-website
`vimrc` config examples available here: https://github.com/vjousse/vim-for-humans## Install
Be sure to create a symlink named 'vim-for-humans' in the project directory. This symlink should point to a directory where you've cloned [code examples](https://github.com/vjousse/vim-for-humans).
You will need some prerequisites to be able to compile the LaTeX source code:
- A Tex distribution, [TexLive](https://www.tug.org/texlive/) for example.
- [Pygments](http://pygments.org/), it's used for syntax highlighting using the mint LaTeX package.
- [Sphinx](http://sphinx-doc.org/) to generate the epub file.
- [kindlegen](http://www.amazon.com/gp/feature.html?docId=1000765211) to generate the .mobi file.
- [sphinx-autobuild](https://github.com/sphinx-doc/sphinx-autobuild) if you want to start a webserver with hot reload in `rst/fr` with `make livehtml`### Archlinux
yay -S python-sphinx python-pygments kindlegen
Use [instructions from the official website for TeX Live](https://tug.org/texlive/quickinstall.html)
## Compile
After the dependencies have been installed, run `makedist.sh` script to start compiling. If the compilation fails, be sure to check the content of the script and try running each command one after another.
## Enjoy
Upon success outputs can be found in the `dist/vimpourleshumains/` directory. Enjoy!
## Tips & tricks
### Generate rounded/shadowed image
Be sur to have [ImageMagick](https://imagemagick.org/index.php) installed and use the `add-borders.sh` script like these:
./add-borders.sh book-tex/graphics/vim-catpuccin-mocha.png
It will replace your `book-tex/graphics/vim-catpuccin-mocha.png` image with a rounded/shadowed one and save the original image to `book-tex/graphics/vim-catpuccin-mocha-original.png`.
### Get kitty terminal window for screenshots with sway
With sway, be sure that your [kitty](https://sw.kovidgoyal.net/kitty/) window is floating. Then resize it and change kitty font size.
swaymsg -r resize set width 1200 px; swaymsg -r resize set height 1000 px; kitty @ set-font-size 14
Font used: FiraCode Nerd Font from [Nerd Fonts](https://www.nerdfonts.com/font-downloads).