1장 대신 1장을 쓰는 방법

1장 대신 1장을 쓰는 방법

1장 대신 1장을 쓰고 싶습니다. 어떤 제안이 있나요?

감사합니다

답변1

내가 누락한 것이 없다면 OP 및 OP 아래의 설명을 기반으로 합니다. 이 솔루션으로 충분합니다.

\documentclass[12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[LGR,T1]{fontenc}
\usepackage[basque]{babel} % <- choice based on OP's comment
\usepackage{titlesec}

\renewcommand\chaptertitlename{kapitulua} % <- assuming that should be made lowercase when order changed
%\renewcommand\thechapter{\Roman{chapter}} % <- uncomment if you want Roman numerals instead
\titleformat{\chapter}[display]{\normalfont\huge\bfseries}{\thechapter\ \chaptertitlename}{20pt}{\Huge} % <- order changed (default is \chaptertitlename \ \thechapter)

\begin{document}

\chapter{Your title goes here}

\end{document}

코드의 출력

\renewcommand\thechapter{\Roman{chapter}}대문자 로마 숫자를 대신 사용하려면(예: 아랍어 "1 장", "2 장" 대신 "I 장", "II 장")을 사용하려면 해당 줄의 주석 처리를 제거하십시오 .

답변2

@Bernard가 그의 의견에 언급했듯이titlesec 패키지. 해당 PDF 파일의 23페이지와 24페이지에 있는 코드를 사용할 수 있습니다. 조정 페이지의 설명을 읽어보세요.

\documentclass[10pt,oneside]{book}
\usepackage[dvips]{color}
\usepackage{lipsum}
\usepackage[rigidchapters,explicit]{titlesec}
\DeclareFixedFont{\chapterfont}{T1}{phv}{bx}{n}{4cm}
\titlespacing{\chapter}{0pt}{100pt}{75pt}

\titleformat{\chapter}[block]
{\begin{picture}(0,230)}
{\put(450,80){%
\makebox(0,0)[rb]{%
{}}}
\put(0,270){%
\makebox(0,0)[lb]{%
\Huge\sffamily{\thechapter\ Chapter }}}}
{0pt}
{\put(0,200){\parbox[t]{300pt}{%
\Huge\sffamily\filright#1}}}
[\end{picture}]

\begin{document}
\chapter{First Chapter}
\lipsum[2]
\section{First Section}
\lipsum[1]
\end{document}

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

관련 정보