
내 책 원고의 본문에 이탤릭체가 모두 누락되어 있다는 것을 방금 깨달았습니다( 사용 \textit{}
).
문제의 범위를 Roboto Condensed를 글꼴로 사용하는 것으로 좁혔습니다.
\documentclass{scrbook}
\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}
\usepackage{fbb}
%If I unclude the next line, the “text” will no longer be in italiscs
%\usepackage[condensed]{roboto}
\begin{document}
Test \textit{text}.
\end{document}
Roboto 줄의 주석 처리를 제거하면(또는 그냥 "압축"을 삭제하면) "텍스트"가 더 이상 이탤릭체로 표시되지 않습니다.
이전 버전을 살펴보고 이탤릭체가 아직 남아 있던 2019년 중반부터 다시 컴파일했습니다. 다시 컴파일한 후에는 이탤릭체도 사라졌습니다. TeX Live 2019의 변경 사항과 관련이 있다고 생각합니다. 문제에 접근하는 방법에 대한 아이디어가 있습니까?
도움이 된다면, robotso 압축 시 문제가 발생하는 로그 부분을 사용하세요.
(/usr/local/texlive/2020/texmf-dist/tex/latex/fbb/T1fbb-TLF.fd)
LaTeX Font Warning: Font shape `T1/fbb-TLF/c/n' undefined
(Font) using `T1/fbb-TLF/m/n' instead on input line 112.
)) (/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
) (./Test.aux) (/usr/local/texlive/2020/texmf-dist/tex/latex/ly1/ly1ptm.fd)
LaTeX Font Warning: Font shape `T1/fbb-TLF/c/it' undefined
(Font) using `T1/fbb-TLF/c/n' instead on input line 10.
LaTeX Font Warning: Font shape `T1/fbb-TLF/c/sl' undefined
(Font) using `T1/fbb-TLF/c/it' instead on input line 12.
[1{/usr/local/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./Test.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
답변1
알 수 없는 이유로 는 옵션 을 사용하여 로 roboto.sty
재정의합니다 .\mddefault
\mddefault@sf
condensed
c
압축된 시리즈를 제공하지 않으므로 fbb
글꼴 대체가 가능합니다.
가짜 경고도 방지하는 수정 사항은 다음과 같습니다.
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\DeclareFontShape{T1}{cmr}{c}{n}{<->ssub*cmr/m/n}{} % avoid a spurious warning
% first roboto to avoid other spurious warnings
\usepackage[condensed]{roboto}
\usepackage{fbb}
% fix the bad declaration made by roboto
\renewcommand{\seriesdefault}{m}
\begin{document}
Test \textit{text}.
\textsf{Condensed}
\end{document}
답변2
robotso는 시리즈의 기본값을 압축으로 강제합니다. - 만약 robotso가 산세리프에만 사용된다면 이상한 선택이겠지만, fbb는 이 시리즈를 지원하지 않습니다.
\documentclass{scrbook}
%\usepackage[utf8]{inputenc} % unneeded in new systems
\usepackage[T1]{fontenc}
\usepackage{fbb}
\usepackage[condensed]{roboto}
\makeatletter
\renewcommand\seriesdefault{\mddefault\@empty}
\makeatother
\begin{document}
Test \textit{text} \sffamily Text \textit{text}
\end{document}