TeXblog

 Typography with TeX and LaTeX

New monospaced font on CTAN: Inconsolata

6 June 2009 by Stefan Kottwitz

The Inconsolata font package has been released on CTAN yesterday. Inconsolata is a monospaced (”typewriter”) font designed for code listings and the like by Raph Levien. It’s supporting several encodings including T1, OT1 and LY1.

The font can be used by loading inconsolata.sty. The package provides a font scaling option [scaled=X] and would redefine the typewriter font obtained by \texttt. Here’s a small example from the documentation, showing both how to load the font and how it’s looking:

inconsolata example

More information can be obtained here:

This entry was posted on 6 June 2009 at 8:30 PM and is filed under News, Fonts and Symbols. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 responses about “New monospaced font on CTAN: Inconsolata”

  1. intexpert said:

    Please, can you give me some info for how to install in a Debian system from CTAN files?

  2. Stefan Kottwitz said:

    Hi,

    copy the files where TeX would be able to find them and run texhash or mktexlsr. If you want to follow the TeX directory structure read its documentation (texdoc tds). I suggest copying the inconsolata files to TEXMFHOME (kpsewhich –var-value=TEXMFHOME), perhaps ~/texmf. It could look like:

    ~/texmf$ ls -R
    .:
    doc  fonts  tex
    
    ./doc:
    inconsolata
    
    ./doc/inconsolata:
    fonttable.pdf  inconsolata.pdf	test.pdf
    
    ./fonts:
    enc  map  otf  sfd  tfm  type1
    
    ./fonts/enc:
    inconsolata
    
    ./fonts/enc/inconsolata:
    fi4-ec.enc   fi4-ot1tt.enc  fi4-texnansi.enc
    fi4-ei1.enc  fi4-qxtt.enc   fi4-ts1.enc
    
    ./fonts/map:
    inconsolata
    
    ./fonts/map/inconsolata:
    fi4.map
    
    ./fonts/otf:
    inconsolata
    
    ./fonts/otf/inconsolata:
    Inconsolata.otf
    
    ./fonts/sfd:
    inconsolata
    
    ./fonts/sfd/inconsolata:
    Inconsolata.sfd
    
    ./fonts/tfm:
    inconsolata
    
    ./fonts/tfm/inconsolata:
    ec-inconsolata.tfm   qx-inconsolata.tfm  texnansi-inconsolata.tfm
    ei1-inconsolata.tfm  rm-inconsolata.tfm  ts1-inconsolata.tfm
    
    ./fonts/type1:
    inconsolata
    
    ./fonts/type1/inconsolata:
    Inconsolata.pfb
    
    ./tex:
    latex
    
    ./tex/latex:
    inconsolata
    
    ./tex/latex/inconsolata:
    ei1fi4.fd	 inconsolata.tex  ot1fi4.fd  t1fi4.fd  ts1fi4.fd
    inconsolata.sty  ly1fi4.fd	  qxfi4.fd   test.tex
    

    Then run texhash or mktexlsr.

    Further modify the map files, using updmap or the like. A quick hack could be editing pdftex.map, inserting the lines of fi4.map, for instance

    rm-inconsolata Inconsolata "fi4OT1TypewriterEncoding ReEncodeFont" < [fi4-ot1tt.enc

    for the OT1 encoding.

    Afterwards pdflatex should be able to compile a tex file using inconsolata.

    Stefan

  3. ฟอนท์ Inconsolata กับ LaTeX | Cholwich's blog said:

    […] Inconsolata เป็นฟอนท์สำหรับโปรแกรมเมอร์ (หมายถึงฟอนท์ความกว้างคงที่สำหรับแก้ไขโปรแกรม) ที่ออกแบบโดย Raph Levien ซึ่งผมใช้มาสักระยะหนึ่งแล้ว เนื่องจากชอบรูปร่าง สัดส่วนของตัวอักษร เมื่อไม่นานนี้มีคนใจดีนำฟอนท์นี้ไปทำเป็นแพคเกจสำหรับ LaTeX ซึ่งสามารถโหลดได้จาก http://ctan.org/pkg/inconsolata ทำให้ผมสามารถนำฟอนท์นี้มาใช้สำหรับแสดง code บนสไลด์ที่ใช้ประกอบการสอน (ผมใช้ LaTeX Beamer สำหรับทำสไลด์) […]

Leave a Reply