왼쪽 전용 정렬 방법

왼쪽 전용 정렬 방법

내 코드는

\documentclass[a4paper,12pt]{article}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry}

\newenvironment{dedication}
  {\clearpage           % we want a new page
   \thispagestyle{empty}% no header and footer
   \vspace*{\stretch{1}}% some space at the top 
   \itshape             % the text is in italics
   \raggedleft          % flush to the right margin
  }
  {\par % end the paragraph
   \vspace{\stretch{3}} % space at bottom is three times that at the top
   \clearpage           % finish off the page
  }

\begin{document}
\begin{dedication}
Dedicated to google and wikipedia  
\end{dedication}
\end{document}

결과는 다음과 같습니다.

여기에 이미지 설명을 입력하세요

답변1

귀하가 게시하는 코드는 \raggedleft귀하가 원하는 것과 반대되는 것을 지정합니다. \raggedright당신이 사용해야하는 것입니다.

또한 왼쪽에 균일한 들여쓰기를 원합니다. 코드의 명령을 \raggedleft다음으로 바꿉니다.

\leftskip=2cm
\raggedright
\parindent=0pt

2cm이 코드의 를 원하는 들여쓰기 너비로 바꾸세요 .

이 코드는 LaTeX가 아닌 "일반 TeX" 스타일이지만 일부 LaTeX 사용자는 LaTeX 전용 형식을 선호하더라도 문제 없이 작동합니다.

제가 댓글로 답변을 하려고 했던 이유는 제가 현재 테스트할 능력이 없기 때문입니다. 나는 검증되지 않은 답변을 제공하고 싶지 않습니다.

관련 정보