Mengenal Jam
- pada muka jam
- jarum pendek menunjuk angka 9
- jarum panjang menunjuk angka 12
- dibaca jam 9
Kursus dan Bimbingan Belajar, Belajar Sambil Bahagia Bersama
% !TEX TS-program = pdflatex
%Typeset/Build program
\documentclass[preview=true,multi,crop=false,tikz]{standalone}
%% 5.3 Macros and environments
\standaloneconfig{border=10}
\standaloneenv{minipage,tikzpicture}
%% hatch line between, shaded line bounded between
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{decorations.markings}
\tikzset{
region2/.style={
postaction={decorate},
decoration={
markings,
mark=between positions 0 and 1 step 0.75mm with { %
% note that the values are in axis units
\draw [solid,thin] (axis direction cs:0,#1*0.1) -- (axis direction cs:0,#1*1);
}
},
/pgfplots/forget plot
},
region/.default=1
}
\begin{document}
\begin{minipage}[t]{0.55\linewidth}
$\displaystyle\begin{cases}
ax + 4y \\
x + y = 12 \\
x + 2y = 16 \\
\end{cases}$
\end{minipage}
\begin{tikzpicture} %% 2
\begin{axis}[ %
axis x line=center, axis y line=center,
width=4in, height=4in,
x axis line style={<->},
y axis line style={<->},
xmin=-1, xmax=16,
ymin=0, ymax=12,
every axis plot/.append style={
very thick,
cyan!50!black,
domain=-10:16,
samples=2, % all you need for straight lines
} %, nodes near coords
]
\addplot [solid,black] {12 - x};
\addplot [black]{8 - 0.5*x};
% path/hatch/parallel segments to be decorated between two intersection lines
\addplot [region2] coordinates{(0,12)(8,4)(16,0)};
\addplot [dashed,black] coordinates {(0,4)(8,4)};
\addplot [dashed,black] coordinates {(8,0)(8,4)};
\end{axis}
\end{tikzpicture} %% end 2
\end{document}
<< back to Study About Draw In Latex 2
% !TEX TS-program=pdflatex
\documentclass{article}
\usepackage{tikz}
\usepackage{parskip}
\usepackage{fourier}
\usepackage{tgbonum}
\usepackage{bm}
\usepackage[active,tightpage,varwidth]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{0.25pt}
\begin{document}
\LARGE{}
\boldmath
%% draw nine o'clock
\begin{tikzpicture}[line cap=rect,line width=3pt,scale=3]
%% draw clock face circle
\filldraw [fill=gray!30] (0,0) circle [radius=2cm];
%% draw small tick line and the hour number of time
\foreach \angle [count=\xi] in {60,30,...,-270}
{
\draw[line width=1.5pt] (\angle:1.8cm) -- (\angle:2cm);
\node[font=\Huge] at (\angle:1.36cm) {$\textsf{\xi}$};
}
%% Part III TikZ ist kein Zeichenprogramm > 13 Specifying Coordinates > 13.2 Coordinate Systems > 13.2.3 Node Coordinate System
%% /tikz/cs/angle=<degrees>
%% draw big tick line and long tick line
\foreach \angle in {0,90,180,270}
\draw[line width=4pt] (\angle:1.6cm) -- (\angle:1.98cm);
%% Part III TikZ ist kein Zeichenprogramm > 16 Arrows >
%% 16.3.1 Size
%% draw short arm clock
\draw [line width=4pt,arrows=-stealth] (0,0) -- (180:0.85cm);
%% draw long arm clock
\draw [line width=4pt,arrows=-stealth](0,0) -- (90:1.15cm);
\end{tikzpicture}
%% 17.2.3 Common Options: Separations, Margins, Padding and Border Rotation
%% /pgf/shape border rotate=<angle>
\end{document}
2. Compile or build
3. Output similar like below
<< back to Study About Draw In Latex
==== ERD ( Entity Relationship Diagram )
:author: AsciiDoctor
:co-author: Tutor Course and After School Course
:revnumber: 1.0
:revdate: June 6th, 2007
:doctype: article
:toc:
:icons:
:lang: en
.Database Table Design: adminacc
[options="header"]
|===
|Field Name |Type |Size
|Username* |Text |50
|password |Text |50
3+|* _Primary Key_ ||
|===
.Database Table Design: record
[options="header"]
|===
|Field Name |Type |Size
|stud_ID* |Text |50
|fname |Text |50
|mname |Text |50
|lname |Text |50
|email |Text |50
3+|* _Primary Key_ ||
|===
3. Result Asciidoctor code after rendering, similar like this:
Field Name | Type | Size |
---|---|---|
Username* |
Text |
50 |
password |
Text |
50 |
* Primary Key |
Field Name | Type | Size |
---|---|---|
stud_ID* |
Text |
50 |
fname |
Text |
50 |
mname |
Text |
50 |
lname |
Text |
50 |
Text |
50 |
|
* Primary Key |
3+| is for merge three cells in one row as one cell.
These following list are measurement unit in Latex:
\arraycolsep{<number>}
\arrayrulewidth{<number>}
\baselineskip{<number>}
\columnwidth{<number>}
\evensidemargin{<number>}
\extrarowheight{<number>}
\footskip{<number>}
\headheight{<number>}
\headsep{<number>}
\itemsep{<number>}
\linewidth{<number>}
\oddsidemargin{<number>}
\paperheight{<number>}
\paperwidth{<number>}
\parindent{<number>}
\PreviewBorder{<number>}
\tabcolsep{<number>}
\textheight{<number>}
\textwidth{<number>}
\topmargin{<number>}
\topsep{<number>}
\topskip{<number>}
\setlength\arraycolsep{1.5em}
\fontsize{<number>}{<number>}\selectfont
\linespread{<number>}\selectfont
\fontsize{13pt}{14pt}\selectfont
<< back to Learning Latex RoadMap