Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an options to use listings for code highlighting in LaTeX #2349

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions assets/latex/documenter.sty
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@
%

% listings
\usepackage{minted}
\setminted{
breaklines = true,
fontsize = \small,
frame = none,
bgcolor = codeblock-background,
rulecolor=codeblock-border,
}

%

% tables
Expand Down
2,247 changes: 2,247 additions & 0 deletions assets/latex/jlcode.sty

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/latex/listings.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\usepackage{listings}
\lstset{
breaklines = true,
% fontsize = \small,
frame = none,
backgroundcolor = codeblock-background,
rulecolor= codeblock-border,
}
\usepackage{jlcode}
8 changes: 8 additions & 0 deletions assets/latex/minted.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\usepackage{minted}
\setminted{
breaklines = true,
fontsize = \small,
frame = none,
bgcolor = codeblock-background,
rulecolor=codeblock-border,
}
1 change: 1 addition & 0 deletions assets/latex/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
\documentclass[oneside]{memoir}

\usepackage{./documenter}
\usepackage{./code_listings}
\usepackage{./custom}

%% Title Page
Expand Down
Loading
Loading