Hierarchical File Structure
- folder 20151618ipaSMP1
- Gambar1.tex
- Gambar2.tex
- Gambar3.tex
- Gambar4.tex
- pbhs2015KalorKonduktor.tex
- soal2015KalorKonduktor.tex
- 20151618ipaSMP1.tex
Guide
1. Open the Latex editor
2. Create a new file
3. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
% picture 1
\begin{tikzpicture}[>=latex,scale=1.5]
% draw conduction ball
\node[nodeball] (P1) at (0,0) {P};
\node[nodeball] (R1) at (2.5, 0) {R};
\node[nodepoint] (NP1) at (1, 0) {};
\node[nodepoint] (NP2) at (1.5, 0) {};
% draw arrow line for interaction force
\path[->, very thick] (P1) edge node[below]{} (NP1);
\path[<-, very thick] (NP2) edge node[below]{} (R1);
\end{tikzpicture}
\end{document}
4. Save as picture1.tex
5. Create a new file
6. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
% picture 2
\begin{tikzpicture}[>=latex,scale=1.5]
% draw conduction ball
\node[nodeball] (P2) at (4.3, 0) {P};
\node[nodeball] (T1) at (5.3, 0) {T};
\node[nodepoint] (NP3) at (3.3, 0) {};
\node[nodepoint] (NP4) at (6.3, 0) {};
% draw arrow line for interaction force
\path[lthickarrow] (NP3) edge node[below]{} (P2);
\path[rthickarrow] (T1) edge node[below]{} (NP4);
\end{tikzpicture}
\end{document}
7. Save as picture2.tex
8. Create a new file
9. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
% picture 3
\begin{tikzpicture}[>=latex,scale=1.5]
% draw conduction ball
\node[nodeball] (S1) at (0, -1) {S};
\node[nodeball] (R2) at (2.5, -1) {R};
\node[nodepoint] (NP5) at (1, -1) {};
\node[nodepoint] (NP6) at (1.5, -1) {};
% draw arrow line
\path[rthickarrow] (S1) edge node[below]{} (NP5);
\path[lthickarrow] (NP6) edge node[below]{} (R2);
\end{tikzpicture}
\end{document}
10. Save as picture3.tex
11. Create a new file
12. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
% picture 4
\begin{tikzpicture}[>=latex,scale=1.5]
\node[nodeball] (Q1) at (3.3, -1) {Q};
\node[nodeball] (S1) at (4.3, -1) {S};
\node[nodepoint] (NP7) at (2.3, -1) {};
\node[nodepoint] (NP8) at (5.3, -1) {};
\path[lthickarrow] (NP7) edge node[below]{} (Q1);
\path[rthickarrow] (S1) edge node[below]{} (NP8);
\end{tikzpicture}
\end{document}
13. Save as picture4.tex
14. Create a new file
15. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
Perhatikan gambar interaksi bola konduktor bermuatan di bawah ini!
\begin{figure}[h!]
\centering
\subfile{Picture1.tex}
\caption*{Gambar 1}
\label{fig:Gambar1}
\end{figure}
\begin{figure}[h]
\centering
\subfile{Picture2.tex}
\caption*{Gambar 2}
\label{fig:Gambar2}
\end{figure}
\begin{figure}[h]
\centering
\subfile{Picture3.tex}
\caption*{Gambar 3}
\label{fig:Gambar3}
\end{figure}
\begin{figure}[h!]
\centering
\subfile{Picture4.tex}
\caption*{Gambar 4}
\label{fig:Gambar4}
\end{figure}
Jika bola konduktor P bermuatan positif maka gaya interaksi yang terjadi ketika bola P didekatkan bola S, dan bola R didekatkan bola Q berturut-turut adalah ...
\begin{flushleft}
\begin{enumerate}
\renewcommand{\labelenumi}{\Alph{enumi}.}
\item P\textemdash S tarik-menarik dan R{\textemdash}Q tarik-menarik.\\
\item P\textemdash S tarik-menarik dan R{\textemdash}Q tolak-menolak.\\
\item P\textemdash S tolak-menolak dan R{\textemdash}Q tarik-menarik.\\
\item P\textemdash S tolak-menolak dan P\textemdash Q tarik-menarik.\\
\end{enumerate}
\end{flushleft}
\end{document}
16. Save as soal2015KalorKonduktor.tex
17. Create a new file
18. Type this following Latex code in your Latex editor:
\documentclass[../20151618ipaSMP1.tex]{subfiles}
\begin{document}
Jika bola konduktor P bermuatan positif maka:
\begin{itemize}
\item Pada gambar 1 terjadi tarik-menarik, jika P bermuatan positif maka R bermuatan negatif.
\item Pada gambar 2 terjadi tolak-menolak, jika P bermuatan positif maka T bermuatan positif.
\item Pada gambar 3 terjadi tarik-menarik, jika R bermuatan negatif maka S bermuatan positif.
\item Pada gambar 4 terjadi tolak-menolak, jika S bermuatan positif maka Q bermuatan positif.
\end{itemize}
Jadi, gaya interaksi yang terjadi adalah:
\begin{itemize}
\item Bola P bermuatan positif didekatkan dengan bola S bermuatan positif maka tolak-menolak.
\item Bola R bermuatan negatif didekatkan dengan bola Q bermuatan positif maka tarik-menarik.
\end{itemize}
\end{document}
19. Save as pbhs2015KalorKonduktor.tex
20. Create a new file
21. Type this following Latex code in your Latex editor:
\documentclass[a4paper, 12pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usepackage{amsmath}
\usepackage{fourier}
\usepackage{subfiles}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{fullpage}
\title{Soal Kalor - Konduktor - IPA SMP}
\author{After School Course and Tutor Course}
\date{}
\tikzset{
nodeball/.style={draw, circle, inner sep=0pt, outer sep=0pt, minimum width=0.5cm, fill=white, rounded corners=1, minimum size=1cm, thick},
nodepoint/.style={circle, inner sep=0pt, outer sep=0pt, minimum width=0cm, rounded corners=1, minimum size=0cm},
rthickarrow/.style={very thick, arrows={-latex}},
lthickarrow/.style={very thick, arrows={latex-}}
}
\begin{document}
\maketitle
\LARGE{}
\section*{Soal}
\subfile{20151618ipaSMP1/soal2015KalorKonduktor.tex}
\section*{Pembahasan}
\subfile{20151618ipaSMP1/pbhs2015KalorKonduktor.tex}
\end{document}
22. Save as 20151618ipaSMP1.tex
23. Build or Compile this file.
24. Open the output in PDF reader, such as Adobe Reader.
Output
go to
Soal Konduktor - IPA SMP >
Bibliography
https://latex-tutorial.com/
https://www.learnlatex.org/
https://www.overleaf.com/