Skip to content

lucastorterotot/ltstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ltstyle LaTeX package

A LaTeX configuration.

GitHub commit activity GitHub last commit GitHub

LaTeX2e Version pdfTeX Version LuaHBTeX Version

minted Version ChemFig Version simplekv Version

Introduction

This package has been created to keep my preamble common to all my documents for most of its part. Some packages have been re-edited inside this one to make them compatible with others or to extend them with new features.

Installation

  1. Get a TeX distribution. TexLive is a pretty good one. To make sure you have all you need, the full version is a safe solution, but you can try any other version of your choice.
sudo apt-get install texlive-full 

If your LaTeX2e or pdfTeX version are older than these shown above, consider switching to older versions of the package listed below:

  • 20.04 for LaTeX2e 2020-02-02 and pdfTeX 3.14159265-2.6-1.40.20.
  • 18.04 for LaTeX2e 2017-04-15 and pdfTeX 3.14159265-2.6-1.40.18.
  1. Get this package
mkdir -p ~/texmf/tex/latex
cd ~/texmf/tex/latex
git clone git@gitlab.com:lucastorterotot/ltstyle.git --origin lucas

In case you do not have a ssh key you may use https:

git clone https://gitlab.com/lucastorterotot/ltstyle.git --origin lucas
  1. Get ChemFig and simplekv packages from Christian Tellechea
cd ~/texmf/tex/latex
for p in simplekv chemfig ; do wget http://mirrors.ctan.org/macros/generic/${p}.zip ; unzip ${p}.zip ; rm ${p}.zip ; done
  1. Install both minted and Pygments if you want to use minted. First, install minted with
git clone https://github.com/gpoore/minted.git -b v2.5

Then Pygments with

pip install Pygments

Update Pygments with provided themes. Find where Pygments is installed:

python
>>> import pygments
>>> pygments.__path__

Go in <pygments.__path__>/styles/ and do

for f in $(ls ~/texmf/tex/latex/ltstyle/pygments_styles/); do ln -sf ~/texmf/tex/latex/ltstyle/pygments_styles/$f $f ; done

Then, in the styles/__init__.py, add for each style lines like for example

'ltstyletangodark': 'ltstyletangodark::ltTangodarkStyle',
'ltstyleemacs': 'ltstyleemacs::ltEmacsStyle',

in the STYLE_MAP dictionnary. The last names (ltTangodarkStyle, ltEmacsStyle) can be found in the styles files from this repository.

Usage

Guides

Documentation will be published later.