논문을 작성 중이며 대학 요구 사항에 따라 각주 글꼴 크기를 9pt로 설정해야합니다. 본문 텍스트 크기는 12pt입니다. 다음을 사용하여 값을 변경하려고했습니다.

\renewcommand{\footnotesize}{(one of the 8 values)} 

그러나이 표를 보면 여기에 이미지 설명 입력

가능한 값이 9의 글꼴 크기를 제공하지 않는다는 것을 깨달았습니다. 문제를 어떻게 해결할 수 있습니까?

서문은 다음과 같습니다.

\documentclass[a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \let\up\textsuperscript \usepackage{blindtext} \usepackage{setspace} \renewcommand{\baselinestretch}{1.5} \usepackage{pslatex} \usepackage{titlesec} \titleformat{\chapter} {\normalfont\fontsize{14}{14}\bfseries}{\thechapter}{1em}{} \titleformat{\section} {\normalfont\fontsize{13}{13}\bfseries}{\thesection}{1em}{} \titleformat{\subsection} {\normalfont\fontsize{12}{12}\bfseries\slshape}{\thesubsection}{1em}{} \usepackage{amsmath, amsthm, amssymb, amsfonts} \mathchardef\mhyphen="2D \usepackage{fancyhdr} \fancypagestyle{IHA-fancy-style}{% \fancyhf{}% Clear header and footer \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[R]{\thepage}% Custom footer \renewcommand{\headrulewidth}{0pt}% Line at the header visible \renewcommand{\footrulewidth}{0pt}% Line at the footer visible } % Redefine the plain page style \fancypagestyle{plain}{% \fancyhf{}% \fancyfoot[R]{\thepage}% \renewcommand{\headrulewidth}{0pt}% Line at the header invisible \renewcommand{\footrulewidth}{0pt}% Line at the footer visible } \usepackage{fancyhdr} \pagestyle{plain} \lhead{} \chead{} \rhead{} \lfoot{} \cfoot{} \rfoot{\thepage} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \usepackage{graphicx} \usepackage{color} \usepackage{transparent} \usepackage{caption} \usepackage{enumerate} \usepackage{url} \usepackage{natbib} \bibliographystyle{abbrvnat} \setcitestyle{authoryear,open={},close={}} \usepackage[]{tocbibind} \usepackage{makeidx} \usepackage{lipsum} %\pagestyle{headings} %\usepackage{emptypage} \title{Epistemic Contextualism:\\ Skeptcism and Intuitions} \author{Alessandro Rizzo\\ Department of Philosophy, Vita-Salute S.Raffaele University} 

댓글

  • 문서가 다른 위치에서도 \footnotesize 크기를 사용할 수 있습니다. . 거기에서도 변경해야합니까? 그렇지 않은 경우 각주 크기 변경은 클래스 (및 각주 관련 패키지)에 따라 크게 달라 지므로 MWE가 필요합니다.
  • @Johannes_B MWE 란 무엇입니까?
  • documentclass 누락 😉 MWE :-> dickimaw-books.com/latex/ minexample / html 도우미를위한 편의성, 복사 / 붙여 넣기 / 컴파일 /
  • 관련이 없지만 \fontsize{14}{14}는 다음과 같은 경우에만 의미가 있습니다. ‘ 장 제목이 두 줄에 걸쳐있을 것으로 예상하지 않습니다.

답변

정의 복사 \footnotesize from size11.clo :

\makeatletter \renewcommand\footnotesize{% \@setfontsize\footnotesize\@ixpt{11}% \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ \def\@listi{\leftmargin\leftmargini \topsep 4\p@ \@plus2\p@ \@minus2\p@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } \makeatother 

이 코드는 서문, 예를 들어 패키지로드 후.

\fontsize의 값을 변경하는 것만은 잘못된 것입니다. 각주에는 일반적으로 목록이나 수학도 포함될 수 있기 때문입니다.


코드에 대한 참고 사항

pslatex 패키지는 더 이상 사용되지 않습니다. Times를 사용하려면

\usepackage{newtxtext,newtxmath} 

장 제목에 \fontsize{14}{14}를 지정하는 것이 모호합니다. 두 줄로 된 제목은 어색하게 설정되기 때문입니다. 다른 레벨과 유사합니다.

\renewcommand{\baselinestretch}{1.5} 대신 setspace 패키지를 사용하세요.


무엇입니까? reportarticle 클래스는 size10.clo, size11.closize12.clo, 클래스에 전달 된 글꼴 크기 옵션에 따라 다릅니다 (기본값 : 10pt).

이러한 파일에는 글꼴 크기에 따라 달라지는 명령 및 매개 변수에 대한 정의와 설정이 포함되어 있습니다. 특히 \normalsize, \small, \footnotesize, \large 등이지만 \parindent, \bigskipamount, \textwidth 및 기타 여러 매개 변수 (특히 목록과 관련된 매개 변수)

는 글꼴 크기와 기준선 건너 뛰기뿐 아니라 수직 스파의 매개 변수를 설정하는 것입니다. 수학 표시 전후 및 첫 번째 수준 목록의 공백).

size11.clo에서 \footnotesize의 정의를 차용합니다. 각주가 9pt로 조판되는 div>에서는 필요한 것을 얻습니다.

코멘트

  • 따라서 각주 글꼴 크기가 9pt로 본문 글꼴 크기가 12pt입니다. 서문의 코드를 복사해야합니까?
  • 예, iv에서 서문의 @egreg ‘ 코드를 복사하면됩니다. id = “fbebecd6ad”>

에서\makeatother로. 편집 :하지만 이제 읽었으므로 Johannes_B의 대답을 선호합니다.\footnotesize명령이 각주 외에 다른 곳에서도 사용될 수 있기 때문입니다.

  • @alessandro 예, ‘ 맞습니다.
  • 누군가 답변의 코드가 본문 글꼴 크기가 12pt이고 글꼴 크기가 9pt가되는 방법을 설명해 주시겠습니까?
  • @Heisenberg 이렇게하면 \footnotesize가 실행될 때 글꼴 크기가 9pt로 설정되고 정의 텍스트의 첫 번째 줄에 따라 11pt의 기준선 건너 뛰기가 설정됩니다.
  • Answer

    LaTeX 내에서 기본 글꼴 크기 (\ normalsize, \ Large, \ footnote 크기, & c.). 9pt의 글꼴 크기에 대한 명령은 다음과 같습니다.

    \renewcommand{\footnotesize}{\fontsize{9pt}{11pt}\selectfont} 

    두 번째 값은 해당 크기에 대한 인터 라인 건너 뛰기 값입니다. 일반적으로 공칭 크기보다 약 20 % 더 많습니다.

    답변

    제한이 각주에만 적용되고 아무것도 적용되지 않는 경우 또한 각주에 대해서만 설정할 수 있습니다. 다음은 KOMA 스크립트와 엄청나게 높은 글꼴 크기를 사용한 예입니다.

    alessandroFootnoteSize

    \documentclass[fontsize=22pt]{scrartcl} \usepackage{lmodern} \addtokomafont{footnote}{\fontsize{9pt}{11pt}\selectfont} \setlength{\textheight}{5cm} \makeatletter \newcommand{\fnsize}{current size: \f@size\,pt} \makeatother \begin{document} Capybara went crazy\footnote{Charles Seymoure Capybara was crazy all his life, no need to worry. \fnsize} {\footnotesize \fnsize} \end{document} 

    KOMA-script는 관련 크기의 폴백 계산을 사용하므로 18.33356pt라는 매우 홀수 값입니다.


    표준

    ,하지만 LaTeX 커널의 내부 명령을 패치해야합니다.결과는 동일합니다. 각주 단지 글꼴 크기 변경

    \documentclass[12pt]{report} \usepackage{lmodern} \usepackage{etoolbox} %\tracingpatches \makeatletter \patchcmd{\@footnotetext}{\footnotesize}{\fontsize{9pt}{11pt}\selectfont}{}{} \makeatother \setlength{\textheight}{5cm} \makeatletter \newcommand{\fnsize}{current size:~\f@size\,pt} \makeatother \begin{document} Capybara went crazy\footnote{Charles Seymoure Capybara was crazy all his life, no need to worry. \fnsize} {\footnotesize \fnsize} \end{document} 

    댓글

    • 제 생각에는 \patchcmd{\@footnotetext}{\footnotesize}{\small}{}{}가 더 좋습니다. 각주에 수학 공식, 목록 등이 포함될 수 있기 때문입니다 (@egreg의 답변 참조).
    • @ johannes_B 마지막 코드의 여섯 번째 줄에서 첫 번째는 각주 텍스트의 글꼴 크기를 이해했습니다. 두 번째 코드는 어떻습니까? 무엇을 의미합니까?
    • @alessandro \patchcmd{<command>}{<search>}{<replace>}{<success>}{<fail>} 각주 크기를 검색하고이를 9pt 크기에 대한 호출로 명시 적으로 바꿉니다.
    • @GustavoMezzetti \small를 사용하면 글꼴 크기가 9pt임을 ‘ 보장하지 않습니다. \footnotesize\fontsize{9pt}{10pt}로 대체하는 것이 더 작은 글꼴 크기로 최소한 일부 조정하는 것이 더 낫습니다.
    • @Johannes_B 알겠습니다. , 그러나 여전히 ‘ {11pt} \ selectfont의 의미

    답변

    size12.clo 내부의 \footnotesize 정의는 다음과 같습니다.

    \newcommand\footnotesize{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ \def\@listi{\leftmargin\leftmargini \topsep 6\p@ \@plus2\p@ \@minus2\p@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } 

    \@setfontsize 부분은

    \@setfontsize\footnotesize\@ixpt\@xipt 

    어쨌든 scr 문서 클래스는 많은 구성 가능성을 제공합니다.

    답글 남기기

    이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다