Termo aditivo

Termo aditivo

Eu instalei o texlive em ~/texlive.

Eu instalei collection-fontsrecommendedusando tlmgr.

Agora, ~/texlive/2014/texmf-dist/fonts/possui várias pastas: afm, cmap, enc, ... , vf.

Aqui está a saída detlmgr 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

Mas quando tento compilar:

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

Dá um erro:

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

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

Eu esperava uma composição de documento usando a fonte Helvetica. Obviamente, estou fazendo algo errado.

Como faço para acertar as coisas?

Responder1

Como você deseja usar TeX Live em vez de fontes do sistema, é melhor procurar informações sobre a fontepacotesdisponível para você do que criar listas de arquivos de fontes. Isso ocorre porque a maioria dos pacotes incluirá muitos arquivos diferentes texmf-dist/fontse a relação desses arquivos com os nomes dos pacotes nem sempre será óbvia. (Os nomes dos diretórios provavelmente serão um guia melhor, mas ainda não são ótimos.)

Para entender por que isso acontece, é necessário pensar um pouco sobre os diferentes tipos de arquivos incluídos em texmf-dist/fonts. Na minha máquina, tenho o seguinte:

afm/  cid/  cmap/  enc/  fea/  lig/  map/  misc/  ofm/  opentype/  ovf/  ovp/  pfm/  pk/  sfd/  source/  tfm/  truetype/  type1/  vf/
  • afmos arquivos são Adobe Font Metrics. Até onde eu sei, o TeX não os usa diretamente, mas eles são usados ​​para criar outros arquivos.
  • cmaparquivos são usados ​​para dar suporte à pesquisa. Eles ajudam a mapear caracteres em PDFs, por exemplo, para caracteres que podem ser pesquisados. (Eles podem ter outros usos que não conheço.)
  • encOs arquivos especificam várias codificações para fontes que o TeX precisa para descobrir qual 'slot' contém qual caractere.
  • feae ligsão arquivos de recursos e ligaduras para uso fontspec, eu acho.
  • mapajuda o TeX a descobrir qual arquivo de fonte corresponde a qual fonte e se a codificação da fonte foi alterada.
  • opentypeautoexplicativo.
  • pfmmétricas de fonte em um formato diferente dos afmarquivos. Os dois podem ser convertidos um no outro.
  • pkfontes pré-preparadas com base em fontes de metafontes.
  • sfd?? (Fonte FontForge para fontes?)
  • sourcefontes metafont usadas para gerar pkarquivos (acima ou on-the-fly durante a composição, conforme necessário)
  • tfmMétricas de fonte TeX geradas a partir de arquivos afmou pfmjunto com outras informações. No que diz respeito ao TeX, estessãofontes. Eles, entretanto, não incluem os glifos. Ou seja, não incluem as ‘fotos’ dos personagens. Em vez disso, contêm informações sobre as caixas necessárias para acomodar esses caracteres, como ajustar o espaçamento entre pares de caixas, quando substituir duas caixas por uma caixa diferente, dimensões da caixa e muito mais. (TeX compõe caixas. Como tudo mais, um caractere é uma caixa.) Essas não são exatamente fontes no que diz respeito ao pdfTeX - ele também quer as imagens.
  • truetypeautoexplicativo.
  • type1um tanto autoexplicativo. Esses arquivos contêmnada além defotos de personagens. Sem as informações métricas, elas não são úteis. (As fontes Postscript são distribuídas com arquivos de fonte type1 ( .pfbou .pfa) e arquivos métricos ( .afmou pfm). Ao contrário das fontes opentype e truetype, não existe um único arquivo que seja uma fonte postscript type1.
  • vfcomplicado. Estas são 'fontes virtuais'. Eles dizem ao TeX como criar novas fontes a partir de outras fontes. Por exemplo, se você quiser combinar figuras e ligaduras antigas de uma fonte suplementar com os caracteres de uma fonte primária, poderá criar uma fonte virtual que pegue os caracteres apropriados de cada uma e os combine. O TeX pode então tratar essa fonte como uma fonte única para fins de composição tipográfica. Os arquivos de fontes virtuais informam ao TeX onde encontrar as diversas informações e glifos necessários para construir a fonte virtual. (Tradicionalmente, figuras antigas, maiúsculas e ligaduras eram frequentemente fornecidas em um arquivo separado .pfb. .pfaPara usá-las com o TeX, você precisa criar uma fonte combinada usando caracteres do arquivo adicional junto com aqueles do arquivo principal.) Esses arquivos podem também pode ser usado para 'falsificar' glifos que não estão presentes na fonte real, para aproximar letras maiúsculas ou uma forma oblíqua e para fornecer vários outros recursos.

Em vez de tentar descobrir a partir do conteúdo desses diretórios quais fontes você possui, seria melhor procurar por fontpacotesque fornecem uma interface coerente para grupos de arquivos que juntos suportam fontes inteiras e suas famílias.

Como você está usando o TeX Live, você pode obter algumas informações sobre os pacotes de fontes disponíveis usando tlmgr.

Existem várias opções diferentes aqui. tlmgrusa um conceito de 'taxonomias' que pode ser usado para procurar pacotes de acordo com várias classificações, por exemplo, characterizationou keyword. Tomemos keywordcomo exemplo.

Precisamos saber primeiro quais palavras-chave estão disponíveis:

tlmgr search --list --keyword

nos dará uma lista:

 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

Vários aqui estão relacionados a fontes font selection: fonts, texte fonts, mathematics. Os dois últimos parecem especialmente esperançosos, então vamos tentar.

Primeiro, para texto:

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.

E para matemática:

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.

Nessa lista, você pode selecionar pacotes para investigação adicional. Mais informações sobre qualquer pacote específico podem ser obtidas de várias maneiras. Primeiro, tlmgrele próprio pode fornecer informações básicas sobre um pacote:

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

Segundo, texdocpode ser usado para examinar a documentação instalada localmente:

texdoc urwchancal

Ocasionalmente, texdocnão fornece o documento mais útil. Nesse caso, você também pode verificar texmf-dist/doc/fonts/<packagename>se há algo mais disponível.

Finalmente, como outros já disseram, se você quiser escolher fontes de uma forma mais visual, oCatálogo de fontespermite que você navegue pelas possibilidades. Observe, entretanto, que nem todas as fontes listadas serão instaladas em sua máquina, pois nem todas fazem parte do TeX Live. Esta informação é, no entanto, fornecida como parte do registro de catálogo da fonte.

Termo aditivo

Se a fonte que você deseja usar for uma das fontes postscript básicas, como Helvetica, texdoc psnfssfornece informações sobre o uso. O manual nos diz que para usar Helvetica, precisamos

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

No entanto, por si só, isso não usará Helvetica para o corpo do texto, pois Helvetica é uma fonte sem serifa. O que o pacote faz é instalar o Helvetica (na verdade um clone) como a família sans padrão. Para usá-lo, você deve mudar para a fonte sans:

\sffamily abc

ou

\textsf{abc}

Se quiser que todo o documento use sans, você pode alterar a família serif padrão para corresponder ao sans:

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

Helvética (clone)

informação relacionada