AlegreyaSans, 마이크로타입의 추적 기능 및 각주

AlegreyaSans, 마이크로타입의 추적 기능 및 각주

내 질문은 다음과 밀접한 관련이 있습니다.이 하나.

나는 pdfLaTeX를 사용하고 microtype있습니다.알레그레야산스내 산세리프 글꼴로. 나는 주어진 대답을 조정했습니다.울리케 피셔지금까지의 위 질문에서는 본문 텍스트의 로마자와 산세 글꼴 모두에서 작은 대문자의 간격이 적절하게 배치되어 있었습니다. 그러나 각주에서 추적은 serif 글꼴에 대해서만 작동합니다. 나는 문제를 이 MWE로 요약했습니다.

\documentclass{article}

\usepackage[osf]{AlegreyaSans}

\usepackage[tracking=true]{microtype}
\DeclareMicrotypeSet*[tracking]{mysmallcaps}{
    encoding = *,
    family = {rm*},
    shape = {sc*, scit},
    font = */AlegreyaSansSC-OsF/*/*/*
    }
\SetTracking{
    encoding = *,
    shape = {sc*, scit},
    family = {rm*},
    font = */AlegreyaSansSC-OsF/*/*/*
    }{500}

\begin{document}
Some \textsc{small caps} in roman.\footnote{Some \textsc{small caps} inside a footnote in roman.}

{\sffamily Some \textsc{small caps} in sans.}\footnote{\sffamily Some \textsc{small caps} inside a footnote in sans.}
\end{document}

일반 본문 텍스트에서는 모든 것이 정상입니다. 본문

그러나 각주는 산세리프체 글꼴의 추적을 깨뜨립니다. 여기에 이미지 설명을 입력하세요

여기서 무슨 일이 일어나고 있나요?

답변1

마이크로타입에서 글꼴 세트를 설정하는 것은 꽤 힘든 작업이 될 수 있습니다. 이해해야 할 가장 중요한 점은 별표가 와일드카드가 아니라 특정 값(기본값)으로 대체된다는 것입니다. 따라서 옵션의 마지막 별표는 font추적을 일반 크기로 제한합니다.

"alegeyra smallcaps" 계열의 일반 모양과 기본 글꼴의 scshape에 대한 추적을 설정하려면 다음만 찾을 수 있습니다.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[osf]{AlegreyaSans}

\usepackage[tracking=true,letterspace=500]{microtype}

\DeclareMicrotypeSet*[tracking]{mysmallcaps}
  {
    family={cmr},
    shape=sc*,
    font={
          */\AlegreyaSansSCfamily/*/*/*,
          */\AlegreyaSansSCfamily/*/*/footnotesize,
          */\AlegreyaSansSCfamily/*/*/large
          }
  }



\begin{document}
Some \textsc{small caps} in sans. 
\footnotesize  Some \textsc{small caps} in footnotesize.

{\sffamily Some \textsc{small caps} in sans. 
\footnotesize  Some \textsc{small caps} in footnotesize.
\large \textsc{large}}

\end{document}

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

관련 정보