Posts Tagged ‘ latex ’

Lslisting untuk program berbeda #Latex

Package lslisting sangat membantu untuk menampilkan kode di Latex. Terkadang kita menulis berbagai macam kode dalam satu latex dan ingin diberi caption berbeda. Supaya tidak menulis lsset berkali-kali, kita bisa menuliskan contoh perintah latex di bawah ini. Contoh dibawah ini berfungsi menulis query dan perintah shellscript.



Baca lebih lanjut

prevent a figure, a table, etc from floation other section #Latex

I just found a great Latex package which called placeins. This package is useful to place your table, figure in the right place. After compiling process, your figures and tables can be placed anywhere in your latex document. You just type \FloatBarrier before your figures or tables. Then, you will see your stuffs are inside the desired section.

Happy Latexing Anyone ūüėÄ

#Latex Nested folder with Subfiles package

I got a handy and pretty solution to deal with a nested files issue while I am using subfiles package. I am a fan of subfiles because we can compile and see a latex file without involving the main latex file.

suppose that, we have a latex project:

then we should write the main.tex and chapter1.tex as follows:

\usepackage{graphicx, epsfig}


#Latex Break Long Equation | Rumus Panjang

There are many ways to break a long equation in Latex. The simple way is using the mathtools package. The example of Latex code as follows:

Suppose that we have following equation:


\begin{split} x_1+x_2+x_3+ \\ x_4+x_5+x_6\end{split}

Or …

\begin{split} x_1+x_2+x_3+ \\ x_4+x_5+x_6 \end{split}

The output

Drawing With #latex

\tikzstyle{main}=[circle, minimum size = 3mm, thick, draw =black!80, node
distance = 12mm]
\tikzstyle{connect}=[-latex, thick]
\tikzstyle{box}=[rectangle, draw=black!100]
fill = white!100] (a) [label=left:$a$] { };
fill = white!100] (b) [right=of a,label=left:$b$] { };
(p) [below=of a,label=left:$p$] { };
(ei) [below=of p,label=left:$e_i$] { };
\node[main,fill = white!100] (alpha_E) [right=of b,label=left:$\alpha_E$] { };
\node[main,fill = white!100] (alpha_Edash) [right=of alpha_E,label=left:
$\alpha_{E'}$] { };
\node[main] (pie) [below=of alpha_E,label=left:$\pi_E$] {};
\node[main] (ze) [below=of pie,label=left:$z_{Ei}$] {};
\node[main] (piedash) [below=of alpha_Edash,label=left:$\pi_{E'}$] {};
\node[main] (zedash) [below=of piedash,label=left:$z_{E'i}$] {};
\node[main,fill = black!10] (xi) [below=of zedash,label=below:$x_i$] {};
\node[main, fill = white!100] (lambdae) [right= of piedash,label=left:
$\lambda_E$] { };
\node[main] (thetaek) [below= of lambdae,label=below:$\theta_{Ek}$] { };
\node[main, fill = white!100] (lambdaedash) [right= of lambdae,label=left:
$\lambda_{E'}$] { };
\node[main] (thetaekdash) [below= of lambdaedash,label=below:$\theta_{E'k}$]
{ };
\path (a) edge [connect] (p)
(b) edge [connect] (p)
(p) edge [connect] (ei)
(ei) edge [connect] (xi)
(alpha_E) edge [connect] (pie)
(alpha_Edash) edge [connect] (piedash)
(pie) edge [connect] (ze)
(piedash) edge [connect] (zedash)
(ze) edge [connect] (xi)
(zedash) edge [connect] (xi)
(lambdae) edge [connect] (thetaek)
(lambdaedash) edge [connect] (thetaekdash)
(thetaek) edge [connect] (xi)
(thetaekdash) edge [connect] (xi)
\node[rectangle, inner sep=0mm, fit= (ei) (ze) (zedash) (xi),label=above
right:N, xshift=16mm] {};
\node[rectangle, inner sep=5.4mm,draw=black!100, fit= (ei) (ze) (zedash) (xi)]
\node[rectangle, inner sep=0mm, fit= (thetaek),label=above right:$\infty$,
xshift=0.0mm] {};
\node[rectangle, inner sep=5.4mm, draw=black!100, fit = (thetaek)] {};
\node[rectangle, inner sep=0mm, fit= (thetaekdash),label=above right:$\infty$,
xshift=0.0mm] {};
\node[rectangle, inner sep=5.6mm, draw=black!100, fit = (thetaekdash)] {};

Result :
Credits: Vinod Hegde

#LaTeX handwritten symbol recognition

#LaTeX handwritten symbol recognition

a very useful site for finding the command of a specific symbol in Latex

#Latex EPS figure

Import the following packages :


And, the final step is put -shell-escape when invoke pdflatex command

pdflatex -interaction=nonstopmode -shell-escape %.tex