Skip to content

Instantly share code, notes, and snippets.

@taktoa
Created July 14, 2016 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taktoa/54f3ac75a8af654954179d2209395165 to your computer and use it in GitHub Desktop.
Save taktoa/54f3ac75a8af654954179d2209395165 to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index e35159b..fdc4e64 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ DRULES=${DRULES_1},${DRULES_2},${DRULES_3}
LANGUAGETOOL = languagetool -l en-US -d ${DRULES}
-PREVIEWER := zathura
+PREVIEWER := evince
KILL_COMMAND = ps | grep ${PREVIEWER} | sed 's/^[ ]*//g' | grep -o '^[0-9]* '
@@ -14,7 +14,7 @@ proj := ${shell cat project}
all: test build
build: ${proj}.tex
- latexmk -xelatex -pdf ${proj}.tex
+ latexmk -pdf ${proj}.tex
continuous: ${proj}.tex
trap "make clean" SIGINT; latexmk -xelatex -pvc -pdf ${proj}.tex
diff --git a/Resume.tex b/Resume.tex
index 1a06f7c..b7398a9 100644
--- a/Resume.tex
+++ b/Resume.tex
@@ -6,22 +6,18 @@
% font family (sans and roman)
\documentclass[10pt,letterpaper,sans]{moderncv}
-% Fix fonts in XeTeX
-\usepackage{fontspec}
-\defaultfontfeatures{
- Path = /home/remy/Documents/NotWork/Projects/LaTeX/taktoa-resume/fonts/}
-
% Add GitHub Octicons font
-\newfontfamily{\githubfont}{Octicons}
-\newcommand{\ghOctocat}{{\githubfont\char"F00A}}
-\newcommand{\ghCommit}{{\githubfont\char"F01F}}
-\newcommand{\ghAdd}{{\githubfont\char"F06B}}
-\newcommand{\ghRem}{{\githubfont\char"F06C}}
+%\newfontfamily{\githubfont}{Octicons}
+\newcommand{\ghOctocat}{octocat} %{{\githubfont\char"F00A}}
+\newcommand{\ghCommit}{commit} %{{\githubfont\char"F01F}}
+\newcommand{\ghAdd}{add} %{{\githubfont\char"F06B}}
+\newcommand{\ghRem}{rem} %{{\githubfont\char"F06C}}
% style options are casual (default), classic, banking, oldstyle and fancy
% color options black, blue (default), burgundy, green, grey, orange, and red
\moderncvstyle{casual}
\moderncvcolor{blue}
+\moderncvicons{marvosym}
% to set the default font:
% use \sfdefault for the default sans serif font
@@ -33,7 +29,7 @@
\nopagenumbers{}
% character encoding
-\usepackage[utf8]{inputenc}
+%\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[scale=0.75]{geometry}
@@ -64,12 +60,12 @@
\newcommand{\ghrepo}[1]{\ghlink{#1}{\ghOctocat}}
\newcommand{\ghlang}[1]{\texttt{#1}}
\newcommand{\ghcom}[1]{\textcolor[HTML]{666666}{\ghCommit{} #1}}
-\newcommand{\ghadd}[1]{\textcolor[HTML]{30A622}{\faicon{plus-sign} #1}}
-\newcommand{\ghrem}[1]{\textcolor[HTML]{BD2C00}{\faicon{minus-sign} #1}}
+\newcommand{\ghadd}[1]{\textcolor[HTML]{30A622}{{+} #1}}
+\newcommand{\ghrem}[1]{\textcolor[HTML]{BD2C00}{{-} #1}}
\newcommand{\ghstar}[1]{#1}
\newcommand{\ghfork}[1]{#1}
\newcommand{\ghtr}[0]{}
-\newcommand{\ghtf}[0]{\faCodeFork}
+\newcommand{\ghtf}[0]{fork} %\faCodeFork}
\newcommand{\ghub}[4]{\ghrepo{#2} | \ghlang{#1} | \ghadd{#3} | \ghrem{#4}}
\newcommand{\ghtable}[6]{#1 & #2 & #3 & #4 & #5 & #6 \\}
diff --git a/default.nix b/default.nix
index 071844a..4428a3b 100644
--- a/default.nix
+++ b/default.nix
@@ -2,27 +2,30 @@ with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "latex-environment";
-
- latexPkgs = [
- texLive
- texLiveExtra
- texLiveCMSuper
- lmodern
- tipa
- ];
-
+
+ #latexPkgs = [
+ # texLive
+ #texLiveExtra
+ #texLiveCMSuper
+ #lmodern
+ #tipa
+ #];
+
buildInputs = [
git
zsh
gnumake
- haskellngPackages.pandoc
+ pandoc
python34Packages.pygments
- languagetool
- (pkgs.texLiveAggregationFun { paths = latexPkgs; })
+ #(pkgs.texLiveAggregationFun { paths = latexPkgs; })
+ (texlive.combine {
+ inherit (texlive) scheme-full collection-xetex moderncv
+ tipa fontawesome;
+ })
];
- shellHook = ''
- IN_NIX="nix" zsh
- exit
- '';
+ #shellHook = ''
+ #IN_NIX="nix" zsh
+ #exit
+ #'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment