Skip to content

Commit

Permalink
feat(dockerfile): add pgfgantt
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufsyaifudin committed Jul 6, 2024
1 parent 9400448 commit dceec6a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
33 changes: 23 additions & 10 deletions ADDITIONAL_PACKAGES.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
% Serta disarankan untuk menambah kegunaan package tersebut agar tidak lupa.
% ------------------------------------------------------------------------------


% font tambahan
\usepackage{textcomp}

% digunakan untuk membuat flowchart
\usepackage{tikz}
\usetikzlibrary{shapes,arrows, fit, positioning}
\usetikzlibrary{shapes, shapes.misc, arrows, fit, positioning}
\tikzstyle{block} = [rectangle, draw, fill=gray!20, text width=4cm, text centered, rounded corners, minimum height=3em]
\tikzstyle{io} = [trapezium, draw, fill=gray!20, text width=1cm, text centered, rounded corners, minimum height=3em]
\tikzstyle{decision} = [diamond, draw, fill=gray!20, text width=3cm, text centered, minimum height=3em]

\usepackage{float}
\usepackage{booktabs}
Expand All @@ -34,7 +36,7 @@
\usepackage{enumitem}

% untuk input kode baik dari file atau bukan
\usepackage{listings}
\usepackage{listings}

% ----------------------------------------------------------------------------
% Contoh dari file
Expand All @@ -45,21 +47,21 @@
% \label{grab daftar berita kompas}
% \end{figure}
% ----------------------------------------------------------------------------
%
%
% ----------------------------------------------------------------------------
% Contoh
% ----------------------------------------------------------------------------
% \begin{figure}
% \begin{lstlisting}[language=sql]
% update train_data_statement set data = replace(data, '“', '"');
% update train_data_statement set data = replace(data, '”', '"');

% update test_data_statement set data = replace(data, '“', '"');
% update test_data_statement set data = replace(data, '”', '"');
% \end{lstlisting}
% \caption{\textit{Query} SQL untuk melakukan perubahan karakter pada data}
% \label{kueri SQL untuk melakukan perubahan karakter pada data}
% \end{figure}
% \end{figure}
% ------------------------------------------------------------------------------

\usepackage{color}
Expand Down Expand Up @@ -117,7 +119,7 @@
\newcommand{\previtemizecount}{%
\getrefnumber{countitems@\number\numexpr\value{nextitemizecount}-1\relax}%
}
\makeatother
\makeatother
\newenvironment{AutoMultiColItemize}{%
\ifnumcomp{\nextitemizecount}{>}{2}{\begin{multicols}{2}}{}%
\setupcountitems\begin{itemize}}%
Expand Down Expand Up @@ -146,9 +148,9 @@


% Setting list agar spasi antar list tidak terlalu banyak
\setlist{
listparindent=\parindent,
parsep=0pt
\setlist{
listparindent=\parindent,
parsep=0pt
}

% Agar tetap Justify tapi kata tidak dipisah sesuka hati (not hypenation but justified)
Expand All @@ -167,3 +169,14 @@
\UseTblrLibrary{varwidth}
\DefTblrTemplate{contfoot-text}{default}{Bersambung di halaman selanjutnya}
\DefTblrTemplate{conthead-text}{default}{(Lanjutan)}

% https://stackoverflow.com/a/16804893
% \usepackage{tablefootnote}
% \usepackage{footnote}
% \makesavenoteenv{tabular}
% \makesavenoteenv{table}

\usepackage{amsmath} % <-- for \eqref

\usepackage{pgfgantt}

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,8 @@ RUN tlmgr install mdwtools
# equation
RUN tlmgr install amsmath

# pgfgantt
# https://tex.stackexchange.com/a/63915
RUN tlmgr install pgfgantt

ENTRYPOINT ["pdflatex"]

0 comments on commit dceec6a

Please sign in to comment.