LaTeX에서 subfigure를 그릴 때 정렬을 가운데가 아닌 오른쪽이나 왼쪽으로 하고 싶을 때가 있다.
대부분 subfigure의 예시는
\begin{figure}
\centering
\includegraphics[width=.6\textwidth]{example-image}
\caption{left aligned image}
\end{figure}
다음처럼 \centering을 쓰기 때문에 그와 대응되는 왼쪽 정렬, 오른쪽 정렬이 필요했다.
이에 대응되는 코드는
\raggedright % 오른쪽 정렬
\raggedleft % 왼쪽 정렬
이라고 한다.
다른 package를 이용해서 오른쪽, 왼쪽 정렬하는 방법도 있는데 위 명령이 간단하기 때문에 다음을 쓰면 될 것이다.
참고자료
https://tex.stackexchange.com/questions/91566/syntax-similar-to-centering-for-right-and-left
Syntax similar to \centering for right and left?
For images, we can use \centering. Is there anything available to align the image to the right side or the left side of the page.
tex.stackexchange.com
'기타 > 논문작성 Writing' 카테고리의 다른 글
[에러기록] overleaf에서 kotex package로 인한 지속적인 컴파일 에러 (6) | 2022.10.08 |
---|---|
[논문양식] 컨퍼런스에서 제공된 양식을 overleaf에서 사용하기/파일의 의미 (0) | 2022.09.07 |
[논문작성] Corpus 사용법 (0) | 2022.08.23 |
[논문작성] 논문 양식 검사 : paper size가 맞지 않는 오류 (0) | 2022.08.22 |
[논문작성] Turnitin에서 문법 오류 지적하는 종류 (0) | 2022.08.18 |