기본값 사이에 있을 때 필요한 글꼴 크기를 얻으려면 어떻게 해야 합니까? SAE 수업 진행

기본값 사이에 있을 때 필요한 글꼴 크기를 얻으려면 어떻게 해야 합니까? SAE 수업 진행

나는 클래스 파일을 함께 해킹하는 것에 대해 잘 모르지만 포럼의 다른 곳에서 언급했듯이 SAE를 위해 하나를 시도하고 있습니다. 내 현재 클래스 파일은 \normalsize로 10pt 글꼴 크기만 지원합니다. 다양한 글꼴 크기 명령(\tiny에서 \Huge까지)을 사용하여 5, 7, 8, 9, 10, 12, 14.4, 17.28, 20.74 및 24.88을 입력할 수 있습니다.

이상적으로는 \normalsize 글꼴을 9pt(SAE 논문의 본문 글꼴 크기)로 설정하고 싶지만 7, 8, 9, 10, 11, 12 및 15pt 글꼴이 필요합니다.

제 질문은 이것을 어떻게 달성할 수 있느냐는 것입니다. 사용자 정의 글꼴 크기 조정에 대한 포럼의 많은 페이지를 살펴보았는데 약간 혼란스럽습니다.

LaTeX 매뉴얼은 이에 대해 많이 언급하지 않습니다.http://svn.gna.org/viewcvs/점검/latexrefman/trunk/latex2e.html#Font-sizes

기본적으로 amsart.sty 템플릿을 따르는 것에 대해 생각하고 있었지만 얼마나 포함해야 하는지 잘 모르겠습니다. 각 크기에 대해 다음과 같은 방식으로 특정 포인트 크기를 정의합니까?

\renewcommand\normalsize{\@xsetfontsize\normalsize 6%
  \@adjustvertspacing \let\@listi\@listI}
\DeclareRobustCommand{\Tiny}{\@xsetfontsize\Tiny 1}
\DeclareRobustCommand{\tiny}{\@xsetfontsize\tiny 2}
\DeclareRobustCommand{\SMALL}{\@xsetfontsize\SMALL 3}
\DeclareRobustCommand{\Small}{\@xsetfontsize\Small 4%
  \@adjustvertspacing
  \def\@listi{\topsep\smallskipamount \parsep\z@skip \itemsep\z@skip
    \leftmargin=\leftmargini
    \labelwidth=\leftmargini \advance\labelwidth-\labelsep
  }%
}
\DeclareRobustCommand{\small}{\@xsetfontsize\small 5\@adjustvertspacing}
\def\footnotesize{\Small}
\def\scriptsize{\SMALL}
\DeclareRobustCommand{\large}{\@xsetfontsize\large 7\@adjustvertspacing}
\DeclareRobustCommand{\Large}{\@xsetfontsize\Large 8\@adjustvertspacing}
\DeclareRobustCommand{\LARGE}{\@xsetfontsize\LARGE 9}
\DeclareRobustCommand{\huge}{\@xsetfontsize\huge{10}}
\DeclareRobustCommand{\Huge}{\@xsetfontsize\Huge{11}}
\def\@xsetfontsize#1#2{%
  \chardef\@currsizeindex#2\relax
  \edef\@tempa{\@nx\@setfontsize\@nx#1%
    \@xp\ifcase\@xp\@currsizeindex\@typesizes
      \else{99}{99}\fi}%
  \@tempa
}

\DeclareOption{9pt}{\def\@mainsize{9}\def\@ptsize{9}%
  \def\@typesizes{%
    \or{5}{6}\or{5}{6}\or{6}{7}\or{7}{8}\or{8}{10}%
    \or{9}{11}% normalsize
    \or{10}{12}\or{\@xipt}{13}\or{\@xiipt}{14}%
    \or{\@xivpt}{17}\or{\@xviipt}{20}}%
  \normalsize \linespacing=\baselineskip
}

내가 전혀 모르는 영역을 너무 깊이 탐구하기 전에 이 영역에 대해 좀 더 경험이 있는 누군가로부터 조언을 받기를 바랐습니다. 클래스 기본값을 다음 크기로 설정할 수 있기를 정말로 원합니다.

  • 각주 크기 = 7pt
  • 작은 = 8pt
  • 보통 크기 = 9pt
  • 대형 = 10pt
  • 대형 = 11pt
  • 대형 = 12pt
  • 거대 = 15pt

내 클래스 파일을 자세히 살펴보면 기사 클래스를 기반으로 하며 그 안에 다음이 포함되어 있습니다.

\LoadClass[twocolumn]{article}
\ExecuteOptions{times,letter,10pt}
\ProcessOptions

그러나 \ExecuteOptions에서 10pt를 변경해도 내 문서에서는 아무 작업도 수행되지 않습니다.

다음은 현재(다소 형편없는) 클래스 파일로 현재 글꼴 크기를 인쇄하는 MWE입니다(클래스 파일은 아래에서 다운로드 가능).

\documentclass[letterpaper]{saeRyan}
\makeatletter
\newcommand\thefontsize[1]{{#1 The current font size is: \f@size pt\par}}
\makeatother
\begin{document}
\thefontsize\tiny
\thefontsize\scriptsize
\thefontsize\footnotesize
\thefontsize\small
\thefontsize\normalsize
\thefontsize\large
\thefontsize\Large
\thefontsize\LARGE
\thefontsize\huge
\thefontsize\Huge
\end{document}

현재 상태의 클래스 파일은 여기에서 찾을 수 있습니다. https://drive.google.com/file/d/0B6FxKnpluKC4NjU1TzNuZTFEWEE/view?usp=sharing

답변1

이 문제에 대한 나의 해결책은 먼저 SAE 클래스 파일의 기본 클래스를 기사에서 외부 기사로 변경하는 것이었습니다.

% The extarticle class allows for 9 pt font as the normalsize font.
\LoadClass[twocolumn,9pt]{extarticle}

이를 통해 필요한 대부분의 글꼴 크기가 처리되었으며 9pt를 사용할 수 있었습니다. 글꼴을 \normalsize문서의 글꼴 로 사용합니다 . 일반 글꼴 크기 명령을 통해 사용할 수 없는 글꼴의 경우 다음과 같은 방법으로 두 가지 추가 글꼴 크기를 정의했습니다.

% Define two additional exact font sizes to meet SAE guidelines. These font sizes are not included as part of the extarticle class, so we define them here. A 15pt font (baseline skip = 15*1.2 = 18), and an 11 pt font (baseline skip = 11*1.2 = 13.2). The general rule of thumb is that the baseline skip is 1.2 times the font point size. We will need to use \SAEtitlesize in the title definition, and SAEheadtwosize in the \subsection{} definition (heading level 2).
\newcommand\SAEtitlesize{\@setfontsize\SAEtitlesize{15pt}{18}}
\newcommand\SAEheadtwosize{\@setfontsize\SAEtwohead{11pt}{13.2}}

% A note about font sizes in this class: The class is based off the extarticle class, which supports 8-20pt font sizes as the default. Here we select 9pt fonts as the default \normalsize font. Thus in the SAE document class you will get the following font point sizes for each latex fontsize command:

% \tiny:         5 pt
% \scriptsize:   6 pt. 
% \footnotesize: 7 pt. SAE asks that text inside tables is 7 pt. Use \footnotesize before tables for this.
% \small:        8 pt. SAE asks for caption fonts to be 8 pt. Use \small for captions.
% \normalsize   9 pt. This should be the standard fontsize for the text body, as well as for 4th level headings (in bold/italic). This should also be the size of the paper number at the top of the page (in bold), and the size of the nomenclature/definitions/abbreviations at the end of the paper.
% \large        10 pt. This should be the size of 3rd level headings (in bold, \subsubsection{}), and the affiliations
% \Large        10.95 pt. 
% \SAEheadtwosize 11 pt. This custom font size should be the size of Heading level 2 (subsection{})
% \LARGE        12 pt. This should be the size of the author list (in bold), and all 1st level headings (in bold), including abstract, introduction, body headings, summary, references, contact info, acknowledgements, definitions/abbreviations, and the appendix heading.
% \huge         14.4 pt. 
% \SAEtitlesize 15 pt. This custom font size should be the size of the title.
% \Huge         17.28 pt.

관련 정보