Skip to content

Instantly share code, notes, and snippets.

\usepackage{showexpl}
\lstset{%
basicstyle=\ttfamily\small,
commentstyle=\itshape\ttfamily\small,
showspaces=false,
showstringspaces=false,
breaklines=true,
backgroundcolor=\color{eggshell},
breakautoindent=true,
captionpos=b
\renewcommand{\arraystretch}{1.25}
\newcolumntype{C}{>{\centering\arraybackslash}m{5mm}|}
\newcolumntype{F}{>{\centering\arraybackslash}m{5cm}|}
\arrayrulecolor{white}
\begin{tabular}{Cl|*{5}C}\rowcolor{MidnightBlue}
&&\multicolumn{3}{c|}{\color{white}\bfseries Nilai}&&\\\rowcolor{MidnightBlue}
\multirow{2}{*}[4.5mm]{\color{white}\bfseries No.}&\multicolumn{1}{F}{\multirow{2}{*}[4.5mm]{\color{white}\bfseries Nama Siswa}}&\cellcolor{SpringGreen}\bfseries PH&\cellcolor{SpringGreen}\bfseries PTS&\cellcolor{SpringGreen}\bfseries PTS&\multirow{2}{*}[4.5mm]{\color{white}\bfseries NA}&\multirow{2}{*}[4.5mm]{\color{white}\bfseries NR}\\
\arrayrulecolor{MidnightBlue!20}
1.&Nunung Nurhasanah&75 & 62 & 64&&\\\hline
2.&Muhammad Hisyam Al Faruq&65 & 70 & 64&&\\\hline
\renewcommand{\arraystretch}{1.25}
\newcolumntype{C}{>{\centering\arraybackslash}m{5mm}|}
\newcolumntype{F}{>{\centering\arraybackslash}m{5cm}|}
\arrayrulecolor{white}
\begin{tabular}{Cl|*{5}C}\rowcolor{MidnightBlue}
\multirow{2}{*}{\color{white}\bfseries No.}&\multicolumn{1}{F}{\multirow{2}{*}{\color{white}\bfseries Nama Siswa}}&\multicolumn{3}{c|}{\color{white}\bfseries Nilai}&\multirow{2}{*}{\color{white}\bfseries NA}&\multirow{2}{*}{\color{white}\bfseries NR}\\\rowcolor{MidnightBlue}
&&\cellcolor{SpringGreen}\bfseries PH&\cellcolor{SpringGreen}\bfseries PTS&\cellcolor{SpringGreen}\bfseries PTS&&\\
\arrayrulecolor{MidnightBlue!20}
1.&Nunung Nurhasanah&75 & 62 & 64&&\\\hline
2.&Muhammad Hisyam Al Faruq&65 & 70 & 64&&\\\hline
\begin{tabular}{*{7}c}\toprule
\multirow{2}{*}{1}&\multirow{2}{*}{2}&\multicolumn{3}{c}{kolom}&\multirow{2}{*}{6}&\multirow{2}{*}{7}\\\cmidrule{3-5}
&&a&b&c&&\\\midrule
1&2&3&4&5&6&7\\\bottomrule
\end{tabular}
\begin{tabular}{*{7}c}\toprule
1&2&3&4&5&6&7\\\midrule
1&2&3&4&5&6&7\\\midrule
1&2&3&4&5&6&7\\\bottomrule
\end{tabular}
\begin{tabular}{lcr}
sel 1 & sel 2 & sel 3\\
\end{tabular}
\path[name path=g1] (P)--(Q) ;
\path[name path=g2] (R)--(S);
\path [name intersections={of = g2 and g1, by={X}}];
\draw[ceil] (2.4,.1)--(1,1.2) node[black,above,font=\scriptsize]{$(180-2\alpha)^\circ$};
\draw[ceil] (4.1,1.7)--(2.8,1.8) node[left,black,font=\scriptsize,yshift=1mm]{$(180-4\alpha)^\circ$};
\pic[draw=orange-red,angle radius=7mm,pic text=$\alpha^\circ$,pic text options={font=\scriptsize,yshift=.1mm},angle eccentricity=.75] {angle={B--A--C}};
\pic[draw=orange-red,angle radius=5mm,pic text=$75^\circ$,pic text options={font=\scriptsize,shift={(-.5mm,.1mm)}},angle eccentricity=.75] {angle={F--E--C}};
\pic[draw=orange-red,angle radius=3.5mm,pic text=$x^\circ$,pic text options={font=\scriptsize,shift={(.8mm,.5mm)}},angle eccentricity=.35] {angle={B--F--E}};
\pic[angle radius=5mm,pic text=$2\alpha^\circ$,pic text options={font=\scriptsize,shift={(1mm,0mm)}},angle eccentricity=.75] {angle={F--D--E}};
\tikzset{
sama/.style={postaction={decorate,decoration={
markings,
mark=at position .5 with {\arrow[scale=1.25]{|}},
}}}
}