color icons and text from env variable.
16
Makefile
|
@ -1,3 +1,4 @@
|
||||||
|
color = F44336
|
||||||
build = $(CURDIR)/build
|
build = $(CURDIR)/build
|
||||||
src = $(CURDIR)/tex
|
src = $(CURDIR)/tex
|
||||||
target = $(src)/main.tex
|
target = $(src)/main.tex
|
||||||
|
@ -5,15 +6,24 @@ output = $(build)/main.pdf
|
||||||
outputen = $(build)/voronind_en.pdf
|
outputen = $(build)/voronind_en.pdf
|
||||||
outputru = $(build)/voronind_ru.pdf
|
outputru = $(build)/voronind_ru.pdf
|
||||||
|
|
||||||
|
export RESUME_COLOR := $(color)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: clean en ru view
|
all: clean image en ru view
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@rm -rf $(build)
|
@rm -rf $(build)
|
||||||
|
|
||||||
|
.PHONY: image
|
||||||
|
image:
|
||||||
|
@mkdir -p $(build)/image;\
|
||||||
|
cd image/icon;\
|
||||||
|
for file in *; do convert "$$file" -fill "#$$RESUME_COLOR" -colorize 100 $(build)/image/"$$file"; done
|
||||||
|
|
||||||
.PHONY: en
|
.PHONY: en
|
||||||
en:
|
en: image
|
||||||
@mkdir -p $(build);\
|
@mkdir -p $(build);\
|
||||||
cd $(src);\
|
cd $(src);\
|
||||||
export RESUME_LANG=en;\
|
export RESUME_LANG=en;\
|
||||||
|
@ -21,7 +31,7 @@ en:
|
||||||
mv $(output) $(outputen)
|
mv $(output) $(outputen)
|
||||||
|
|
||||||
.PHONY: ru
|
.PHONY: ru
|
||||||
ru:
|
ru: image
|
||||||
@mkdir -p $(build);\
|
@mkdir -p $(build);\
|
||||||
cd $(src);\
|
cd $(src);\
|
||||||
export RESUME_LANG=ru;\
|
export RESUME_LANG=ru;\
|
||||||
|
|
|
@ -16,6 +16,7 @@ view | View built resumes in default PDF viewer.
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
This project is built using TeX (LuaLaTeX) on GNU/Linux.
|
This project is built using TeX (LuaLaTeX) on GNU/Linux.
|
||||||
|
Also ImageMagick is required to color the icons.
|
||||||
|
|
||||||
### Texlive setup.
|
### Texlive setup.
|
||||||
```text
|
```text
|
||||||
|
@ -31,4 +32,4 @@ When trying to build the project, lualatex may throw missing dependency errors.
|
||||||
To install them use `$ tlmgr install $dependency`.
|
To install them use `$ tlmgr install $dependency`.
|
||||||
|
|
||||||
## TODO.
|
## TODO.
|
||||||
- Change icon color programmatically.
|
[x] Change icon color programmatically.
|
||||||
|
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.3 KiB |
BIN
image/icon/ic_radio_checked.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 6.1 KiB |
|
@ -36,7 +36,8 @@
|
||||||
linktoc = all
|
linktoc = all
|
||||||
}
|
}
|
||||||
|
|
||||||
\graphicspath{ {../image} } % specify where images are stored.
|
% specify where images are stored.
|
||||||
|
\graphicspath{ {../image}{../build/image} }
|
||||||
|
|
||||||
\babelprovide[import]{russian} % add russian support.
|
\babelprovide[import]{russian} % add russian support.
|
||||||
\babelfont{rm}{montserrat} % use custom serif font for english.
|
\babelfont{rm}{montserrat} % use custom serif font for english.
|
||||||
|
|
|
@ -11,18 +11,18 @@
|
||||||
\vspace{4mm}
|
\vspace{4mm}
|
||||||
\newline
|
\newline
|
||||||
% location.
|
% location.
|
||||||
\sicon{location}
|
\sicon{ic_location}
|
||||||
\stext{\location}
|
\stext{\location}
|
||||||
\vspace{2mm}
|
\vspace{2mm}
|
||||||
\newline
|
\newline
|
||||||
% birthday, email & phone number.
|
% birthday, email & phone number.
|
||||||
\sicon{cake}
|
\sicon{ic_cake}
|
||||||
\stext{\birthday}
|
\stext{\birthday}
|
||||||
\hspace{2mm}
|
\hspace{2mm}
|
||||||
\sicon{email}
|
\sicon{ic_email}
|
||||||
\stext{\href{mailto:\email}{\ \email}}
|
\stext{\href{mailto:\email}{\ \email}}
|
||||||
\hspace{2mm}
|
\hspace{2mm}
|
||||||
\sicon{call}
|
\sicon{ic_call}
|
||||||
\stext{\href{tel:\phone}{\phone}}
|
\stext{\href{tel:\phone}{\phone}}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
% colors.
|
% colors.
|
||||||
|
\getenv[\colormain]{RESUME_COLOR}
|
||||||
\definecolor{black}{RGB}{0,0,0}
|
\definecolor{black}{RGB}{0,0,0}
|
||||||
\definecolor{white}{RGB}{255,255,255} % default white.
|
\definecolor{white}{RGB}{255,255,255} % default white.
|
||||||
\definecolor{link} {RGB}{46,116,181} % web link.
|
\definecolor{link} {RGB}{46,116,181} % web link.
|
||||||
\definecolor{main} {RGB}{244,67,54} % main.
|
\definecolor{main} {HTML}{\colormain} % main.
|
||||||
\definecolor{gray} {RGB}{127,127,127} % gray.
|
\definecolor{gray} {RGB}{127,127,127} % gray.
|
||||||
\definecolor{lgray}{RGB}{229,229,229} % light gray.
|
\definecolor{lgray}{RGB}{229,229,229} % light gray.
|
||||||
\definecolor{ref} {RGB}{53,82,105} % reference color.
|
\definecolor{ref} {RGB}{53,82,105} % reference color.
|
||||||
|
@ -53,7 +54,7 @@
|
||||||
\newcommand{\sccomment} [1]{\textcolor{code_comment}{#1}} % color code comment.
|
\newcommand{\sccomment} [1]{\textcolor{code_comment}{#1}} % color code comment.
|
||||||
|
|
||||||
\newcommand{\sjposition}[1]{\stext{#1}} % job position.
|
\newcommand{\sjposition}[1]{\stext{#1}} % job position.
|
||||||
\newcommand{\sjlink} [1]{\sicon{link}\ \href{https://#1}{\sitallic{#1}}} % job webpage.
|
\newcommand{\sjlink} [1]{\sicon{ic_link}\ \href{https://#1}{\sitallic{#1}}} % job webpage.
|
||||||
\newcommand{\sjplace}[2]{\sreset{\ssemibold{#1}}\sreset\hfill\fontsize%
|
\newcommand{\sjplace}[2]{\sreset{\ssemibold{#1}}\sreset\hfill\fontsize%
|
||||||
{10}{10}\selectfont\textcolor{gray}{(#2)}} % job place.
|
{10}{10}\selectfont\textcolor{gray}{(#2)}} % job place.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
\newcommand{\radio}[1]{%
|
\newcommand{\radio}[1]{%
|
||||||
\ifnum#1>0{\sicon{radio_checked}}\else{\sicon{radio_unchecked}}\fi
|
\ifnum#1>0{\sicon{ic_radio_checked}}\else{\sicon{ic_radio_unchecked}}\fi
|
||||||
\ifnum#1>1{\sicon{radio_checked}}\else{\sicon{radio_unchecked}}\fi
|
\ifnum#1>1{\sicon{ic_radio_checked}}\else{\sicon{ic_radio_unchecked}}\fi
|
||||||
\ifnum#1>2{\sicon{radio_checked}}\else{\sicon{radio_unchecked}}\fi
|
\ifnum#1>2{\sicon{ic_radio_checked}}\else{\sicon{ic_radio_unchecked}}\fi
|
||||||
\ifnum#1>3{\sicon{radio_checked}}\else{\sicon{radio_unchecked}}\fi
|
\ifnum#1>3{\sicon{ic_radio_checked}}\else{\sicon{ic_radio_unchecked}}\fi
|
||||||
\ifnum#1>4{\sicon{radio_checked}}\else{\sicon{radio_unchecked}}\fi
|
\ifnum#1>4{\sicon{ic_radio_checked}}\else{\sicon{ic_radio_unchecked}}\fi
|
||||||
}
|
}
|
||||||
|
|