Hello, there. I’m writing this post for summarizing Latex syntax that are often used. I don’t like to write reports in Latex as the syntax are so complicated and it’s easy to forget them once you don’t use Latex for a while. Anyway, let’s start to do our summarizing.
- Inserting an image
\begin{figure}[h!]
\centering % optional
\includegraphics[width=0.8\textwidth]{image.jpg}
\caption{cation} % optional
\label{fig:mypic} % optional
\end{figure}
- Inserting a list
\begin{enumerate}
\item ...
\item ...
\end{enumerate}
- Inserting a table
\begin{tabular}{|c|c|c|}
\hline
1 & 2 & 3 \\
\hline
4 & 5 & 6 \\
\hline
\end{tabular}
- Emphasizing important words
\textbf{}
Repair LaTeX Error: This file needs format `pLaTeX2e’
This error occurs when you are writing something in Japanese. Here is the solution.
- Create a file named ‘.latexmkrc’ (without “.tex”)
- Insert the following:
# Compile with upLaTeX + dvipdfmx
$latex = 'uplatex';
$dvipdf = 'dvipdfmx %O -o %D %S';
$bibtex = 'upbibtex %O %S';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
$pdf_mode = 3;
- Open “Menu” on the top-left side, change the compiler to LaTeX
- Refresh the project
update coming soon…