Overleaf:“fontspec 所有字体!”:LaTeX 源?

Overleaf:“fontspec 所有字体!”:LaTeX 源?

是否有适用于以下 pdf 的 LaTeX 源?

https://www.overleaf.com/latex/templates/fontspec-all-the-fonts/hjrpnxhrrtxc

或者至少是旧版本?或者类似的东西(包含多种字体的文档)?

答案1

(此处有来自 Overleaf Support 的汤姆。)

恐怕我不会让你高兴。该文档的源代码不可用,因为该文档目前超出了 XeTeX 的一些限制——字体实在太多了!因此,列表是使用一些我们不打算发布的 hack 解决方案创建的,对此我们深表歉意。

然而,使用我们在https://www.overleaf.com/learn/latex/Questions/Which_OTF_or_TTF_fonts_are_supported_via_fontspec%3F,您可以快速执行如下操作,列出所有存在的衬线字体(请注意,虽然它们在 Overleaf 中可用,但您的机器上可能没有其中一些)(为此使用 XeLaTeX):

\documentclass[a5paper]{article}

\title{Fontspec Serif fonts (2021 edition, Overleaf Support showcase)}
\author{Tom (Overleaf Support)}
\date{May 2022}

\usepackage{fontspec}
\usepackage{pgffor}
\usepackage[hmargin=1cm,vmargin={1cm,2cm}]{geometry}
\usepackage[small,compact]{titlesec}

\begin{document}

\maketitle

\catcode`\_=12
\catcode`\&=12

\foreach \x in {Aboriginal Serif, Abyssinica SIL, Accanthis ADF Std No3, Alegreya, Alfios, AlgolRevived, Annapurna SIL, Antykwa Poltawskiego, Antykwa Poltawskiego Light, Antykwa Torunska, Antykwa Torunska Condensed, Asea, Avdira, Averia Serif GWF, BABEL Unicode, Baskervald ADF Std, Baskervaldx, BaskervilleF, Berenis ADF Pro, Berenis ADF Pro SC, Berylium, Bitstream Vera Serif, Bookman Uralic, BPG Serif GPL&GNU, BPG Serif Modern GPL&GNU, C059, Caladea, Cardo, Caslon, Century Catalogue, Charis SIL, Charis SIL Compact, Cinzel, Cinzel Decorative, Clara, CMU Concrete, CMU Serif, CMU Serif Extra, CMU Serif Upright Italic, CMU Typewriter Text Variable Width, Cochineal, Coelacanth, Conakry, Cormorant Garamond, Credit River, Credit Valley, Crimson, Crimson Pro, DejaVu Serif, Domitian, Doulos SIL, Doulos SIL Compact, Droid Serif, Dustismo Roman, EB Garamond, Echelon Condensed, Eczar, Edmunds, Edmunds Distressed, Effloresce, Effloresce Antique, EMERITA Latina, Essays1743, ETbb, Ezra SIL, Ezra SIL SR, Fanwood, Fanwood Text, Foulis Greek, FreeSerif, Furat, Galatia SIL, Gayathri, Gentium, Gentium Basic, Gentium Book Basic, Gentium Plus, Gentium Plus Compact, GentiumAlt, Georgia, GFS Artemisia, GFS Bodoni, GFS Didot, Goodfish, Goudy Bookletter 1911, Heuristica, IBM Plex Serif, IM FELL DW Pica, IM FELL English, IM FELL English SC, IndUni-N, IndUni-P, IndUni-T, Inria Serif, Irianis ADF Std, Irianis ADF Style Std, Junicode, Kalpurush, KpRoman, Latin Modern Roman, Latin Modern Roman Dunhill, Liberation Serif, Libertinus Serif, Libre Baskerville, Libre Bodoni, Libre Caslon Text, Linden Hill, Linux Libertine Display O, Linux Libertine O, Mekanus ADF Std, Mekanus ADF Titling Std, Merriweather, Merriweather Light, MPH 2B Damase, NewComputerModern08, NewComputerModern10, Nimbus Roman, Noto Serif, NovelDeco, Old Standard TT, Oradano-mincho-GSRR, Palladio Uralic, Parix, Playfair Display, Prociono, PT Serif, QTAntiquePost, QTBasker, QTBengal, QTBodini, QTBookmann, QTCaslan, QTCaslanOpen, QTFrizQuad, QTGaromand, QTGraphLite, QTGraveure, QTKorrin, QTOldGoudy, QTPalatine, QTSchoolCentury, QTWeise, Quattrocento, Rasa, RIT-Sundar, Roboto Slab, Romande ADF No2 Std, Romande ADF Std, Romande ADF Style Std, Schoolbook Uralic, Soufflet Vert, Source Serif Pro, Spira, Subpear, Sweynheim & Pannartz, Symbola, Tempora, TeX Gyre Bonum, TeX Gyre Pagella, TeX Gyre PagellaX, TeX Gyre Schola, TeX Gyre ScholaX, TeX Gyre Termes, TeX Gyre TermesX, Times New Roman, Tinos, Tribun ADF Std, Tymes, URW Bookman, Vahika, Verana, Vollkorn, XCharter, Yrsa} {
    \subsection*{\x}
    \fontspec{\x}
    The quick brown fox jumps over the lazy dog.\\
    Příliš žluťoučký kůň úpěl ďábelské ódy.
}

\end{document}

相关内容