부록

부록

texlive를 에 설치했습니다 ~/texlive.

collection-fontsrecommended를 사용하여 설치했습니다 tlmgr.

이제 , , , ... , 등 ~/texlive/2014/texmf-dist/fonts/여러 폴더가 있습니다 .afmcmapencvf

다음은tlmgr info helvetic

package:     helvetic
category:    Package
shortdesc:   URW "Base 35" font pack for LaTeX.
longdesc:    A set of fonts for use as "drop-in" replacements for Adobe's basic set, comprising: - Century Schoolbook (substituting for Adobe's New Century Schoolbook); - Dingbats (substituting for Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for Abobe's Courier); - Nimbus Roman No9 L (substituting for Adobe's Times); - Nimbus Sans L (substituting for Adobe's Helvetica); - Standard Symbols L (substituting for Adobe's Symbol); - URW Bookman; - URW Chancery L Medium Italic (substituting for Adobe's Zapf Chancery); - URW Gothic L Book (substituting for Adobe's Avant Garde); and - URW Palladio L (substituting for Adobe's Palatino).
installed:   Yes
revision:    31835
sizes:       run: 2377k
relocatable: No
cat-date:    2012-06-06 22:57:48 +0200
cat-license: gpl
collection:  collection-fontsrecommended

하지만 컴파일하려고 하면 다음과 같습니다.

\documentclass{article}
\usepackage{helvetic}                                                           
\begin{document}
Hello World!
\end{document}

오류가 발생합니다.

! LaTeX Error: File `helvetic.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

나는 Helvetica 글꼴을 사용한 문서 조판을 기대하고 있었습니다. 분명히, 나는 뭔가 잘못하고 있습니다.

어떻게 하면 바로잡을 수 있나요?

답변1

시스템 글꼴이 아닌 TeX Live를 사용하고자 하므로 해당 글꼴에 대한 정보를 찾아보는 것이 좋습니다.패키지글꼴 파일 목록을 만드는 것보다 더 많은 것을 사용할 수 있습니다. 이는 대부분의 패키지에 다양한 파일이 포함되어 있고 texmf-dist/fonts해당 파일과 패키지 이름의 관계가 항상 명확하지는 않기 때문입니다. (디렉토리 이름은 더 나은 지침이 될 수 있지만 여전히 훌륭하지는 않습니다.)

그 이유를 알아보려면 에 포함된 다양한 종류의 파일에 대해 조금 생각해 볼 필요가 있습니다 texmf-dist/fonts. 내 컴퓨터에는 다음이 있습니다.

afm/  cid/  cmap/  enc/  fea/  lig/  map/  misc/  ofm/  opentype/  ovf/  ovp/  pfm/  pk/  sfd/  source/  tfm/  truetype/  type1/  vf/
  • afm파일은 Adobe Font Metrics입니다. 내가 아는 한 TeX는 이것을 직접 사용하지 않지만 다른 파일을 만드는 데 사용됩니다.
  • cmap파일은 검색을 지원하는 데 사용됩니다. 예를 들어 PDF의 문자를 검색 가능한 문자로 매핑하는 데 도움이 됩니다. (내가 모르는 다른 용도가 있을 수도 있습니다.)
  • enc파일은 TeX가 어떤 '슬롯'에 어떤 문자가 포함되어 있는지 파악하는 데 필요한 글꼴에 대한 다양한 인코딩을 지정합니다.
  • fealig함께 사용할 수 있는 기능 및 합자 파일인 fontspec것 같습니다.
  • mapTeX가 어떤 글꼴 파일이 어떤 글꼴에 해당하는지, 글꼴 인코딩이 변경되었는지 여부를 파악하는 데 도움이 됩니다.
  • opentype자명하다.
  • pfm파일 과 다른 형식의 글꼴 메트릭입니다 afm. 이 둘은 서로 변환될 수 있습니다.
  • pk메타글꼴 소스를 기반으로 미리 준비된 글꼴입니다.
  • sfd?? (글꼴의 FontForge 소스?)
  • source파일을 생성하는 데 사용되는 메타폰트 소스 pk(필요에 따라 조판 중에 위 또는 즉시)
  • tfm다른 정보와 함께 파일 afm에서 생성된 TeX 글꼴 메트릭입니다 . pfmTeX에 관한 한, 이러한~이다글꼴. 그러나 문자 모양은 포함되지 않습니다. 즉, 캐릭터의 '그림'이 포함되지 않습니다. 대신 해당 문자를 수용하는 데 필요한 상자, 상자 쌍 사이의 간격을 조정하는 방법, 두 상자를 다른 상자로 교체하는 시기, 상자 크기 등에 대한 정보가 포함되어 있습니다. (TeX는 상자를 조판합니다. 다른 모든 것과 마찬가지로 문자도 상자입니다.) pdfTeX에 관한 한 이것은 글꼴이 아닙니다. 그림도 필요합니다.
  • truetype자명하다.
  • type1다소 자명합니다. 이 파일에는 다음이 포함됩니다.아무것도 아니지만캐릭터 사진. 메트릭 정보가 없으면 유용하지 않습니다. (포스트스크립트 글꼴은 type1 글꼴 파일( .pfb또는 .pfa)과 메트릭 파일( .afm또는 ) 모두와 함께 배포됩니다 pfm. opentype 및 truetype 글꼴과 달리 postscript type1 글꼴인 단일 파일은 없습니다.
  • vf복잡한. '가상 글꼴' 입니다. 그들은 TeX에게 다른 글꼴에서 새 글꼴을 만드는 방법을 알려줍니다. 예를 들어, 보조 글꼴의 구식 그림과 합자를 기본 글꼴의 문자와 결합하려는 경우 각각에서 적절한 문자를 가져와 결합하는 가상 글꼴을 만들 수 있습니다. 그러면 TeX는 조판 목적을 위해 이 글꼴을 단일 글꼴로 처리할 수 있습니다. 가상 글꼴 파일은 TeX에게 가상 글꼴을 구성하는 데 필요한 다양한 정보와 문자 모양을 찾을 수 있는 위치를 알려줍니다. (전통적으로 구식 숫자, 작은 대문자 및 합자는 별도의 파일 .pfb이나 .pfa파일로 제공되는 경우가 많았습니다. 이를 TeX와 함께 사용하려면 기본 파일의 문자와 함께 추가 파일의 문자를 사용하여 결합된 글꼴을 만들어야 합니다.) 또한 실제 글꼴에 없는 문자 모양을 '가짜'로 만들고, 작은 대문자나 비스듬한 모양을 근사화하고, 다양한 기타 기능을 제공하는 데에도 사용됩니다.

이러한 디렉토리의 내용에서 귀하가 어떤 글꼴을 가지고 있는지 알아보기보다는 글꼴을 찾는 것이 더 나을 것입니다.패키지전체 글꼴과 그 계열을 함께 지원하는 파일 그룹에 일관된 인터페이스를 제공합니다.

TeX Live를 사용하고 있으므로 tlmgr.

여기에는 몇 가지 다른 옵션이 있습니다. 다양한 분류(예: 또는 ) tlmgr에 따라 패키지를 검색하는 데 사용할 수 있는 '분류법' 개념을 사용합니다 . 예를 들어 보겠습니다 .characterizationkeywordkeyword

먼저 어떤 키워드를 사용할 수 있는지 알아야 합니다.

tlmgr search --list --keyword

우리에게 목록을 줄 것입니다:

 Keywords:
        Computer Science
        DVI file manipulation
        Humanities
        Mathematics (the subject)
        MetaFont, Metapost
        Physics, Chemistry, Biology
        Social Science
        URLs, hyperlinks
        abbreviations, acronyms
        abstract
        alignment
        appendix
        arrays, matrices
        arrows
        article style
        author
        bibliography, formatting
        bibliography, management
        book style
        boxed text, frames
        calendar, schedule
        caption
        changebars
        chapters, sectioning
        collections, proceedings, conferences
        color
        columns, multiple columns
        commutative diagrams
        computer code, verbatim text
        cross references
        dates and times
        distributions, whole systems
        document style
        dropped letter, often initial letter
        editing, graphical work environment
        encodings, Unicode
        equations, subequations
        exams, exercises, answers
        external programs, interfacing
        figures, floating matter
        foils, overhead slides
        font selection
        fonts, mathematics
        fonts, text
        footnotes, end notes
        front matter, end matter
        glossary, dictionary
        graphics created inside TeX (pictures, PSTricks, PGF, etc.)
        graphics from outside TeX
        headers, footers
        help, documentation, FAQ
        hyphenation
        include file
        index, indexing
        justification
        languages other than English
        letters, envelopes, labels
        lists, bullets
        literate programming
        macro programming
        make, compilation systems
        marginal material
        minipage
        music
        output format PDF, PostScript
        output format other than PDF (HTML, etc.)
        output viewer
        page breaks
        page geometry (margins, etc.)
        page numbering
        page styles
        paper size, orientation
        paragraph
        presentations (powerpoint-like, using a beamer)
        proof sheets (typographical)
        proofs
        publisher's style
        punctuation
        quotation, poetry
        report style
        scientific units
        spacing, horizontal or vertical
        symbols, mathematical
        symbols, text
        table of contents
        tables
        text decoration (underline, etc.)
        theorems
        thesis style
        title, maketitle
        vita, CV, resume
        watermark, draftmark
        word processor conversion
        wrap around a figure

font selection여기에는 , fonts, text및 글꼴과 관련된 몇 가지가 있습니다 fonts, mathematics. 마지막 두 가지가 특히 희망적으로 들리므로 시도해 보겠습니다.

먼저 텍스트의 경우:

tlmgr search --keyword "fonts, text"
 amiri - A classical Arabic typeface, Naskh style.
 berenisadf - Berenis ADF fonts and TeX/LaTeX support.
 calligra-type1 - Type 1 version of Calligra.
 cantarell - LaTeX support for the Cantarell font family.
 cm-unicode - Computer Modern Unicode font family.
 comfortaa - Sans serif font, with LaTeX support.
 dejavu - LaTeX support for the DejaVu fonts.
 droid - LaTeX support for the Droid font families.
 fntproof - A programmable font test pattern generator.
 fontbook - Generate a font book.
 fonts-tlwg - Thai fonts for LaTeX from TLWG.
 fundus-calligra - Support for the calligra font in LaTeX documents.
 fundus-sueterlin - Sutterlin
 gillcm - Alternative unslanted italic Computer Modern fonts.
 gnu-freefont - A Unicode font, with rather wide coverage.
 hacm - Font support for the Arka language.
 ipaex - IPA and IPAex fonts from Information-technology Promotion Agency, Japan.
 latex-fonts - A collection of fonts used in LaTeX distributions.
 lato - Lato font family and LaTeX support.
 lcyw - Make Classic Cyrillic CM fonts accessible in LaTeX.
 lfb - A Greek font with normal and bold variants.
 lh - Cyrillic fonts that support LaTeX standard encodings.
 libris - Libris ADF fonts, with LaTeX support.
 linearA - Linear A script fonts.
 lm - Latin modern fonts in outline formats.
 marvosym - Martin Vogel's Symbols (marvosym) font.
 mathcomp - Text symbols in maths mode.
 mdsymbol - Symbol fonts to match Adobe Myriad Pro.
 mex - Polish formats for TeX.
 mf2pt1 - Produce PostScript Type 1 fonts from Metafont source.
 mxedruli - A pair of fonts for different Georgian alphabets.
 nkarta - A "new" version of the karta cartographic fonts.
 ocherokee - LaTeX Support for the Cherokee language.
 ocr-b - Fonts for OCR-B.
 ogham - Fonts for typesetting Ogham script.
 oldstandard - Old Standard: A Unicode Font for Classical and Medieval Studies.
 opensans - The Open Sans font family, and LaTeX support.
 orkhun - A font for orkhun script.
 pacioli - Fonts designed by Fra Luca de Pacioli in 1497.
 paratype - LaTeX support for free fonts by ParaType.
 phaistos - Disk of Phaistos font.
 phonetic - Metafont Phonetic fonts, based on Computer Modern.
 pigpen - A font for the pigpen (or masonic) cipher.
 poltawski - Antykwa Poltawskiego Family of Fonts.
 psnfss - Font support for common PostScript fonts.
 punk - Donald Knuth's punk font.
 punknova - OpenType version of Knuth's Punk font.
 pxfonts - Palatino-like fonts in support of mathematics.
 pxgreeks - Shape selection for PX fonts Greek letters.
 recycle - A font providing the "recyclable" logo.
 sanskrit - Sanskrit support.
 sauter - Wide range of design sizes for CM fonts.
 staves - Typeset Icelandic staves and runic letters.
 stix - OpenType Unicode maths fonts.
 superiors - Attach superior figures to a font family.
 tabfigures - Maintain vertical alignment of figures.
 tapir - A simple geometrical font.
 tipa - Fonts and macros for IPA phonetics characters.
 trajan - Fonts from the Trajan column in Rome.
 txgreeks - Shape selection for TX fonts Greek letters.
 typeface - Select a balanced set of fonts.
 uhc - Fonts for the Korean language.
 umtypewriter - Fonts to typeset with the xgreek package.
 universa - Herbert Bayer's 'universal' font.
 utopia - Adobe Utopia fonts.
 wadalab - Wadalab (Japanese) font packages.
 wnri - Ridgeway's fonts.
 wsuipa - International Phonetic Alphabet fonts.
 xecjk - Support for CJK documents in XeLaTeX.
 xepersian - Persian for LaTeX, using XeTeX.
 xits - A Scientific Times-like font with support for mathematical typesetting.
 yannisgr - Greek fonts by Yannis Haralambous.

수학의 경우:

tlmgr search --keyword "fonts, mathematics"
 a0poster - Support for designing posters on large paper.
 accfonts - Utilities to derive new fonts from existing ones.
 ae - Virtual fonts for T1 encoded CMR-fonts.
 aeguill - Add several kinds of guillemets to the ae fonts.
 allrunes - Fonts and LaTeX package for almost all runes.
 amsfonts - TeX fonts from the American Mathematical Society.
 antt - Antykwa Torunska: a Type 1 family of a Polish traditional type.
 arabtex - Macros and fonts for typesetting Arabic.
 aramaic-serto - Fonts and LaTeX for Syriac written in Serto.
 archaic - A collection of archaic fonts.
 arev - Fonts and LaTeX support files for Arev Sans.
 arphic - Arphic (Chinese) font packages.
 augie - Calligraphic font for typesetting handwriting.
 auncial-new - Artificial Uncial font and LaTeX support macros.
 aurical - Calligraphic fonts for use with LaTeX in T1 encoding.
 b1encoding - LaTeX encoding tools for Bookhands fonts.
 bbding - A symbol (dingbat) font and LaTeX macros for its use.
 bbm - "Blackboard-style" cm fonts.
 bbm-macros - LaTeX support for "blackboard-style" cm fonts.
 bbold - Sans serif blackboard bold.
 bbold-type1 - An Adobe Type 1 format version of the bbold font.
 belleek - Free replacement for basic MathTime fonts.
 bera - Bera fonts.
 beton - Use Concrete fonts.
 blacklettert1 - T1-encoded versions of Haralambous old German fonts.
 boisik - A font inspired by Baskerville design.
 bold-extra - Use bold small caps and typewriter fonts.
 boondox - Mathematical alphabets derived from the STIX fonts.
 brushscr - A handwriting script font.
 calligra - Calligraphic font.
 calrsfs - Copperplate calligraphic letters in LaTeX.
 casyl - Typeset Cree/Inuktitut in Canadian Aboriginal Syllabics.
 cbcoptic - Coptic fonts and LaTeX macros for general usage and for philology.
 cc-pl - Polish extension of Computer Concrete fonts.
 charter - Charter fonts.
 cherokee - A font for the Cherokee script.
 cm - Computer Modern fonts.
 cm-lgc - Type 1 CM-based fonts for Latin, Greek and Cyrillic.
 cm-super - CM-Super family of fonts
 cm-unicode - Computer Modern Unicode font family.
 cmbright - Computer Modern Bright fonts.
 cmcyr - Computer Modern fonts with cyrillic extensions.
 cmpica - A Computer Modern Pica variant.
 cmsd - Interfaces to the CM Sans Serif Bold fonts.
 cmtiup - Upright punctuation with CM italic.
 concmath - Concrete Math fonts.
 concmath-fonts - Concrete mathematics fonts.
 concrete - Concrete Roman fonts.
 cryst - Font for graphical symbols used in crystallography.
 cyklop - The Cyclop typeface.
 dancers - Font for Conan Doyle's "The Dancing Men".
 doublestroke - Typeset mathematical double stroke symbols.
 duerer - Computer Duerer fonts.
 dutchcal - A reworking of ESSTIX13, adding a bold version.
 ec - Computer modern fonts in T1 and TS1 encodings.
 ecc - Sources for the European Concrete fonts.
 eiad - Traditional style Irish fonts.
 elmath - Mathematics in Greek texts.
 epiolmec - Typesetting the Epi-Olmec Language.
 esint - Extended set of integrals for Computer Modern.
 esint-type1 - Font esint10 in Type 1 format
 esstix - PostScript versions of the ESSTIX, with macro support.
 ethiop - LaTeX macros and fonts for typesetting Amharic.
 ethiop-t1 - Type 1 versions of Amharic fonts.
 eulervm - Euler virtual math fonts.
 euro-ce - Euro and CE sign font.
 eurosym - Metafont and macros for Euro sign.
 fc - Fonts for African languages.
 fdsymbol - A maths symbol font.
 fntproof - A programmable font test pattern generator.
 foekfont - The title font of the Mads Fok magazine.
 fontbook - Generate a font book.
 fourier - Using Utopia fonts in LaTeX documents.
 fpl - SC and OsF fonts for URW Palladio L
 frcursive - French cursive hand fonts.
 gothic - A collection of old German-style fonts.
 greektex - Fonts for typesetting Greek/English documents.
 hfbright - The hfbright fonts.
 hyphenat - Disable/enable hypenation.
 ibygrk - Fonts and macros to typeset ancient Greek.
 ifsym - A collection of symbols.
 inconsolata - A monospaced font, with support files for use with TeX.
 initials - Adobe Type 1 decorative initial fonts.
 iwona - A two-element sans-serif font.
 junicode - A TrueType font for mediaevalists.
 kerkis - Kerkis (Greek) font family.
 kpfonts - A complete set of fonts for text and mathematics.
 kurier - A two-element sans-serif typeface.
 latex-fonts - A collection of fonts used in LaTeX distributions.
 libgreek - Use Libertine or Biolinum Greek glyphs in mathematics.
 lm - Latin modern fonts in outline formats.
 lm-math - OpenType maths fonts for Latin Modern.
 mathabx - Three series of mathematical symbols.
 mathabx-type1 - Outline version of the mathabx fonts.
 mathdesign - Mathematical fonts to fit with particular text fonts.
 mathpazo - Fonts to typeset mathematics to match Palatino.
 mathspec - Specify arbitrary fonts for mathematics in XeTeX.
 mdputu - Upright digits in Adobe Utopia Italic.
 mdsymbol - Symbol fonts to match Adobe Myriad Pro.
 mex - Polish formats for TeX.
 mf2pt1 - Produce PostScript Type 1 fonts from Metafont source.
 mnsymbol - Mathematical symbol font for Adobe MinionPro.
 prodint - A font that provides the product integral symbol.
 pxfonts - Palatino-like fonts in support of mathematics.
 pxtxalfa - Virtual maths alphabets based on pxfonts and txfonts.
 rsfs - Ralph Smith's Formal Script font.
 sansmathaccent - Correct placement of accents in sans-serif maths.
 sauter - Wide range of design sizes for CM fonts.
 shuffle - A symbol for the shuffle product.
 stmaryrd - St Mary Road symbols for theoretical computer science.
 tex-gyre-math - Maths fonts to match tex-gyre text fonts.
 trsym - Symbols for transformations.
 txfonts - Times-like fonts in support of mathematics.
 typeface - Select a balanced set of fonts.
 urwchancal - Use URW's clone of Zapf Chancery as a maths alphabet.
 xits - A Scientific Times-like font with support for mathematical typesetting.
 yhmath - Extended maths fonts for LaTeX.

이 목록에서 추가 조사를 위해 패키지를 선택할 수 있습니다. 특정 패키지에 대한 추가 정보는 다양한 방법으로 얻을 수 있습니다. 첫째, tlmgr자체적으로 패키지에 대한 기본 정보를 제공할 수 있습니다.

tlmgr info urwchancal
package:     urwchancal
category:    Package
shortdesc:   Use URW's clone of Zapf Chancery as a maths alphabet.
longdesc:    The package allows (the URW clone of) Zapf Chancery to function as a maths alphabet, the target of \mathcal or \mathscr, with accents appearing where they should, and other spacing parameters set to reasonable (not very tight) values. This package supersedes the pzccal package.
installed:   Yes
revision:    21701
sizes:       doc: 37k, run: 17k
relocatable: Yes
cat-version: 1
cat-date:    2014-02-26 23:03:13 +0100
cat-license: lppl
collection:  collection-fontsextra

둘째, texdoc로컬에 설치된 문서를 검사하는 데 사용할 수 있습니다.

texdoc urwchancal

때로는 texdoc가장 유용한 문서를 제공하지 않는 경우도 있습니다. 이 경우 texmf-dist/doc/fonts/<packagename>다른 항목이 있는지 확인할 수도 있습니다.

마지막으로 다른 사람들이 말했듯이 좀 더 시각적인 방식으로 글꼴을 선택하려면글꼴 카탈로그가능성을 탐색할 수 있습니다. 그러나 나열된 모든 글꼴이 모두 TeX Live의 일부가 아니기 때문에 컴퓨터에 설치되지는 않습니다. 그러나 이 정보는 글꼴 카탈로그 레코드의 일부로 제공됩니다.

부록

사용하려는 글꼴이 Helvetica와 같은 기본 포스트스크립트 글꼴 중 하나인 경우 texdoc psnfss사용법에 대한 정보를 제공합니다. 매뉴얼에는 Helvetica를 사용하려면 다음이 필요하다고 나와 있습니다.

\usepackage{helvet}% See notes about scaling if using in combination with something like Times

그러나 Helvetica는 산세리프 글꼴이므로 본문 텍스트에 Helvetica를 사용하지 않습니다. 패키지가 하는 일은 Helvetica(실제로는 복제본)를 기본 sans 제품군으로 설치하는 것입니다. 이를 사용하려면 sans 글꼴로 전환해야 합니다.

\sffamily abc

또는

\textsf{abc}

전체 문서에서 sans를 사용하려면 기본 serif 계열을 sans와 일치하도록 변경할 수 있습니다.

\documentclass{article}
\usepackage{helvet}
\renewcommand*{\rmdefault}{\sfdefault}
\begin{document}
Hello World!
\end{document}

헬베티카(클론)

관련 정보