All Projects → jez → latex-solarized

jez / latex-solarized

Licence: MIT license
Provides three LaTeX packages for using the Solarized theme in LaTeX code listings.

Programming Languages

TeX
3793 projects

Projects that are alternatives of or similar to latex-solarized

Idyll
Create explorable explanations and interactive essays.
Stars: ✭ 1,848 (+6272.41%)
Mutual labels:  writing
Vs Picgo
A VSCode plugin of PicGo
Stars: ✭ 209 (+620.69%)
Mutual labels:  writing
vim-textobj-quote
Use ‘curly’ quote characters in Vim
Stars: ✭ 112 (+286.21%)
Mutual labels:  writing
Ebook Template
Template to create PDF, ePub and Kindle books with Asciidoctor
Stars: ✭ 150 (+417.24%)
Mutual labels:  writing
Library
📚 Papers and essays I like
Stars: ✭ 198 (+582.76%)
Mutual labels:  writing
Tufte Pandoc Css
Starter files for using Pandoc Markdown with Tufte CSS
Stars: ✭ 215 (+641.38%)
Mutual labels:  writing
Emacs Powerthesaurus
Powerthesaurus integration for Emacs
Stars: ✭ 132 (+355.17%)
Mutual labels:  writing
product-language-framework
A ready-to-go starter kit for product copywriting and style guidelines. Useful guidelines, examples, and an optional static site generator.
Stars: ✭ 20 (-31.03%)
Mutual labels:  writing
Opus
minimal note-taking app
Stars: ✭ 199 (+586.21%)
Mutual labels:  writing
Academic Phrases
Bypass that mental block when writing your papers.
Stars: ✭ 244 (+741.38%)
Mutual labels:  writing
Typemill
TYPEMILL is a simple and lightweight Flat-File-CMS for authors and publishers.
Stars: ✭ 150 (+417.24%)
Mutual labels:  writing
Writefreely
A clean, Markdown-based publishing platform made for writers. Write together, and build a community.
Stars: ✭ 2,479 (+8448.28%)
Mutual labels:  writing
Vim Lexical
Build on Vim’s spell/thes/dict completion
Stars: ✭ 223 (+668.97%)
Mutual labels:  writing
Writingwithemacs
Tips, Examples, and Resources for Writing with Emacs
Stars: ✭ 150 (+417.24%)
Mutual labels:  writing
Butterfly
🎨 Powerful, minimalistic, cross-platform, opensource note-taking app
Stars: ✭ 381 (+1213.79%)
Mutual labels:  writing
Write Music
visualise sentence length
Stars: ✭ 144 (+396.55%)
Mutual labels:  writing
Openlivewriter
An open source fork of Windows Live Writer
Stars: ✭ 2,398 (+8168.97%)
Mutual labels:  writing
dotfiles
My setup
Stars: ✭ 84 (+189.66%)
Mutual labels:  solarized
ox-leanpub
Org-mode exporter for Leanpub books - mirrored from GitLab
Stars: ✭ 18 (-37.93%)
Mutual labels:  writing
Writing
📚📝 Notes on the journey
Stars: ✭ 234 (+706.9%)
Mutual labels:  writing

Solarized LaTeX Listings

This provides three LaTeX packages using the Solarized theme with the LaTeX listings package for code listings. It just defines Solarized color codes and provides two packages, solarized-light and solarized-dark, for changing the colors of the listings.

Download

First off, fork and clone (or simply clone) the repository:

# If you forked:
$ git clone https://github.com/<your-username>/latex-solarized.git

# If you didn't
$ git clone https://github.com/jez/latex-solarized.git

This is entirely up to you, but I like to keep all my LaTeX files in one place, a folder called ~/programming/LaTeX/, so I'd clone into this folder. You should choose a location that make sense to you.

Next up, we need to tell LaTeX where it can find the files we just cloned. Normally, the process would be to copy these files into a specific folder for LaTeX. However, this has a couple disadvantages, most notably that it makes updating a pain. Instead, we're going to symlink these files into place. If you've never heard about symlinks, you may want to read up about them, and checkout man ln (the man page for the command used to create links).

Installation

LaTeX package files need to be placed in a machine-dependent location in order for them to be usable with \usepackage{}. This location varies, but you can use the command kpsewhich -var-value=TEXMFHOME to figure out what the root folder is for your machine. If this command didn't work, you might have a non-standard installation of LaTeX. Check here for more help.

Within the folder returned by kpeswhich, you'll need to create the folder tex/latex/, and then create the links with ln -s <path-to-your-clone>/*sty tex/latex/.

If your LaTeX environment still won't recognize the new packages, you may have to run texhash.

Note: the following example uses a) the path where I personally installed latex-solarized, and b) the command tree which just lists directory contents. This command might not be available, but it's not necessary.

Installation

Usage

Now you're all set! You should be able include \usepackage{solarized-light} or \usepackage{solarized-dark} to start using Solarized colors with your LaTeX code listings. You might also want to read up on LaTeX code listings here and here.

Example

There are some examples in the examples/ folder.

Light example

Known Issues

When using the dark theme, if the line spacing isn't quite right, you will get thin lines of from the page background showing between the lines of the listing. There are some solutions outlined here, but none were easily incorporated into this package.

License

MIT License. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].