LaTex Common

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2024 Mar 23 14:27
Editor
Edited
Edited
2025 Aug 13 20:20
Refs
Refs

System

  • \def
  • \let
@는 클래스 파일이나 패키지 내부에서만 사용되는 내부 명령어 그래서 일반적으로 사용할 때
  • \makeatletter: @ 기호가 포함된 명령어의 사용을 허용합니다. 보통 패키지나 클래스 파일을 수정하거나 정의할 때 필요합니다.
  • \makeatother: \makeatletter에 의해 변경된 @ 기호의 처리 방식을 기본 상태로 되돌립니다.
  • \hypersetup
 
 

Layout

\documentclass{article} \title{title} \author{author} \date{date} \begin{document} \maketitle blabla \end{document}
  • \newpage page
  • \par paragraph
  • \begein \end (if you want here, \begin{}[H])
    • document
    • center align center
    • enumerate numbered item
    • algorithm algorithmic
    • itemize bullet list or check boxes
      • \begin{itemize}[itemsep=-2ex] \def\answer{1} \checkeditem\answer1 True \checkeditem\answer2 False \end{itemize}
    • tcolorbox notion callout
    • verbatim code block
    • tabular table \begin{tabular}{lllrrrll} left or right per column
    • figure \includegraphics packages enable load file
  • \null box
  • \section
  • \todo[inline]
  • \subsection
  • \footnote
  • ~\ref{}
    • tab
    • figure
    • table
  • \appendix
 
 

Code block

Inserting code in this LaTeX document with indentation
Simple configuration for LaTeX header (before \begin{document}): \usepackage{listings} \usepackage{color} \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82} \lstset{frame=tb, language=Java, aboveskip=3mm, belowskip=3mm, showstringspaces=false, columns=flexible, basicstyle={\small\ttfamily}, numbers=none, numberstyle=\tiny\color{gray}, keywordstyle=\color{blue}, commentstyle=\color{dkgreen}, stringstyle=\color{mauve}, breaklines=true, breakatwhitespace=true, tabsize=3 } You can change default language in the middle of document with \lstset{language=Java}.
Inserting code in this LaTeX document with indentation
 
 
 
 
 

Recommendations