LOADING

加载过慢请开启缓存 浏览器默认开启

Latex Document

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.

  1. Inserting an image
\begin{figure}[h!]
        \centering % optional
        \includegraphics[width=0.8\textwidth]{image.jpg}
        \caption{cation} % optional
        \label{fig:mypic} % optional
\end{figure}
  1. Inserting a list
\begin{enumerate}
        \item ...
        \item ...
\end{enumerate}
  1. Inserting a table
\begin{tabular}{|c|c|c|}
        \hline
        1 & 2 & 3 \\
        \hline
        4 & 5 & 6 \\
        \hline
\end{tabular}
  1. 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.

  1. Create a file named ‘.latexmkrc’ (without “.tex”)
  2. 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;
  1. Open “Menu” on the top-left side, change the compiler to LaTeX
  2. Refresh the project

update coming soon…