섹션에 작은 대문자를 어떻게 추가합니까?

섹션에 작은 대문자를 어떻게 추가합니까?

여기에 제가 복사하려고 하는 예가 있습니다. 로마 숫자는 사용하지 않고 작은 대문자만 사용하고 싶습니다. 목표는 종이와 동일하게 보이도록 하는 것입니다.

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

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

내 코드는 아래와 같습니다.

%++++++++++++++++++++++++++++++++++++++++
% Don't modify this section unless you know what you're doing!
\documentclass[11pt]{article}
\usepackage{amsmath}  % improve math presentation
\usepackage[utf8]{inputenc}
\usepackage[none]{hyphenat}
\usepackage{graphicx} % takes care of graphic including machinery
\usepackage[margin=0.6in,letterpaper]{geometry} % decreases margin
\usepackage{fixltx2e}
\usepackage{setspace}
\usepackage{cite} % takes care of citations
\usepackage[final]{hyperref} % adds hyper links inside the generated pdf file
\usepackage{xcolor,colortbl}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{tikz}
\usepackage{amssymb}
\usepackage{wrapfig}
\usepackage{fancyhdr}
\pagestyle{fancy}
\cfoot{}
\lhead{Physics HL}
\rhead{Internal Assessment}
\fancyfoot[R]{\thepage}
\usepackage[document]{ragged2e}
\usepackage[skip=10pt plus1pt, indent=40pt]{parskip}
\usetikzlibrary{arrows,calc,positioning,patterns,angles,quotes}
\titleformat*{\subsection}{\Large\bfseries}
\titleformat*{\section}{\Large\bfseries}
\hypersetup{
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=blue,        % color of internal links
    citecolor=blue,        % color of links to bibliography
    filecolor=magenta,     % color of file links
    urlcolor=blue         
}
\renewcommand{\baselinestretch}{1.1} 
%++++++++++++++++++++++++++++++++++++++++
\begin{document}

\begin{titlepage}
\begin{center}
    \line(1,0){300} \\
    [0.25in]
    \huge{\bfseries INTERNAL ASSESSMENT} \\
    [2mm]
    \line(1,0){200} \\
    [1.5cm]
    \textsc{\LARGE What is the effect of varying the } \\
    [0.75cm]
    \textsc{\Large Pages: 12} \\
    [9cm]
\end{center}
\begin{flushright}
\\~\\ \\~\\ \\~\\ \\~\\ \\~\\ \\~\\ 
\textsc{\large Neal B.\\
IB HL Physics\\}
\end{flushright}
\end{titlepage}


\section{Exploration}
\subsection{Introduction}
During my early years of learning to play the flute, I struggled with maintaining a consistent tempo. Fortunately, I discovered the metronome, a device that produces a regular and precise beat, which helped me improve my sense of rhythm. This experience sparked my curiosity about the metronome's functionality, leading me to learn that it operates as a physical pendulum. Additionally, the study of physical pendulums also serves as a crucial precursor to understanding the unpredictable nature of double pendulums, which consist of two physical pendulums attached together. This topic is closely related to chaos theory, which is the modern successor to Newtonian mechanics. Despite being a common sight in clocks and musical instruments, double pendulums are incredibly complex and have defied attempts by physicists to develop an analytical solution. To grasp the intricacies of their chaotic mechanics, it is necessary to first examine the properties of the simpler correspondent, the physical pendulum.

답변1

fontenc(a) 옵션 [T1]을 사용하여 패키지를 로드하고 (b) 지침을 변경하는 것이 좋습니다.

\titleformat*{\subsection}{\Large\bfseries}
\titleformat*{\section}{\Large\bfseries}

에게

\titleformat*{\subsection}{\Large\bfseries\centering\scshape}
\titleformat*{\section}{\Large\bfseries\centering\scshape}

실제로 코드에서 ragged2e패키지를 로드 \Centering하므로 \centering. (섹션 헤더가 한 줄보다 길면 \centering와 의 효과 사이의 차이가 \Centering쉽게 드러납니다.)

"작은 대문자 모양"의 줄임말 이라고 추측했다면 scshape정확할 것입니다.

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


\documentclass[11pt]{article}
%% (I've streamlined and simplified the OP's code as much as possible)
%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc} % <-- new
\usepackage[none]{hyphenat}

\usepackage[margin=0.6in,letterpaper]{geometry}

\usepackage{titlesec}
\titleformat*{\subsection}{\large\bfseries\centering\scshape}
\titleformat*{\section}{\Large\bfseries\centering\scshape}

\usepackage{fancyhdr}
\pagestyle{fancy}
\cfoot{}
\lhead{Physics HL}
\rhead{Internal Assessment}
\fancyfoot[R]{\thepage}

\usepackage[document]{ragged2e}
\usepackage[skip=10pt plus1pt, indent=40pt]{parskip}

\usepackage{lipsum}

\begin{document}

\section{Exploration}
\subsection{Introduction}

\lipsum[1-2] % filler text
\end{document}

관련 정보