# latex-auto-greek

July 13, 2010 at 08:20

[TOC]

### Who is it for

Users who want to write greek documents of any type, but also need to write a lot of english (or generally, use latin alphabet) and/or maths.

### Description

This FreeBSD port allows you to write greek documents in LaTeX, with both greektext and latintext, without having to switch between the two with the usual commands greektext, latintext (or any other): you just write greek or latin text.

The port installs postcript fonts created by Angelos Haritsis (Arial, Times, Courier) and uses hyphenation patterns for greek by Regina Mourtou (the semantics) and Stefanos Maganaris (pattern generatation). The patterns were adapted to the Windows ASCII position by G. Moustakides.

### Installation

The installation procedure is as for any FreeBSD port/package. In summary:

cd /usr/ports/print/latex-auto-greek \
&& make install clean

or

texhash
updmap-sys
fmtutil-sys --byfmt latex
fmtutil-sys --byfmt pdflatex

Refer to the apropriate section of FreeBSD Handbook for details.

### Usage

To use it, include the line:

\usepackage{auto-greek}

in the preamble of your .tex (see ag-test.tex) like:

\documentclass{article}
\usepackage{auto-greek}
\title{Τίτλος latin}

\begin{document}
\maketitle
\tableofcontents
αβγδέ ΑΒΓΔΈ \it αβγδέ ΑΒΓΔΈ \bf αβγδέ
ΑΒΓΔΈ \sf αβγδέ ΑΒΓΔΈ \tt αβγδέ ΑΒΓΔΈ\\
\uppercase{αβγδέ ΑΒΓΔΈ \it αβγδέ}
αβγδεζηθικλμνξόπρστύφχψώ και
Μιαμεγάληλέξηγιατεσττουhyphenationτουπακέτου.
\end{document
}

Source at github: https://github.com/EelVex/auto-greek

git clone git://github.com/EelVex/auto-greek.git

File Description Size
latex-auto-greek-port.tar.gz Port files 2.1 KB
latex-auto-greek-1.0b.tar.gz Port sources 649 KB
latex-auto-greek-1.0b.tbz Binaries 635 KB

#### Windows

Auto-greek should work in windows (MiKTeX or Tex Live) but there is no "official" installer for that. There is a contributed installer from Emmanuel Koukaras that is known to work for at least some Windows + MiKTeX combos. You can get it from google code or here:

File Description Size
Installer.rar Binaries 646 KB

#### Issues

Report issues either here or here.

Related posts:

No tips yet.
Be the first to tip!
Like this post? Tip me with bitcoin!

15c7yvV71Rh6sgdkLgBf1cS7bVpPwQEyEd

## respond

1. ### Alexander Altanis

on November 30, 2010 at 08:33

Hello. I am trying to make this font work on debian, so I have to install it by hand.

I have texlive. I see that even though the package has a texmf-dist folder, debian has simply texmf and texmf-texlive. I copied the files there, and latex (and pdflatex) see auto-greek and don't complain about it missing. However, I can't get the fonts to work, even though I have copied them in texmf-texlive and ran texhash and all the rest of the commands you mention in the Installation section.

The error I get is this:
mktexpk: don't know how to create bitmap font for grtimes-p
kpathsea: Appending font creation commands to missfont.log.
(see the transcript file for additional information)
!pdfTeX error: pdflatex (file grtimes-p): Font grtimes-p at 600 not found
==> Fatal error occurred, no output PDF file produced!

\$ locate grtimes yields:
...
/usr/share/latex-auto-greek-1.0b/share/texmf-dist/fonts/tfm/public/auto-greek/grtimes-b.tfm
/usr/share/latex-auto-greek-1.0b/share/texmf-dist/fonts/tfm/public/auto-greek/grtimes-bi.tfm
/usr/share/latex-auto-greek-1.0b/share/texmf-dist/fonts/tfm/public/auto-greek/grtimes-i.tfm
/usr/share/latex-auto-greek-1.0b/share/texmf-dist/fonts/tfm/public/auto-greek/grtimes-p.tfm
/usr/share/latex-auto-greek-1.0b/share/texmf-dist/tex/latex/auto-greek/ot1grtimes.fd
/usr/share/texmf/fonts/tfm/public/auto-greek/grtimes-b.tfm
/usr/share/texmf/fonts/tfm/public/auto-greek/grtimes-bi.tfm
/usr/share/texmf/fonts/tfm/public/auto-greek/grtimes-i.tfm
/usr/share/texmf/fonts/tfm/public/auto-greek/grtimes-p.tfm
/usr/share/texmf/tex/latex/auto-greek/ot1grtimes.fd

PS I am writing in english so that foreign people can benefit from this discussion.

I think the correct paths for texlive are:

texmf/fonts/afm/auto-greek/ for *.afm
texmf/fonts/tfm/auto-greek/ for *.tfm
texmf/tex/latex/auto-greek/ for *.fd
texmf/fonts/type1/auto-greek/ for *.pfb
texmf/fonts/map/ for *.map

after copying the files run:
texhash
updmap --enable Map=greek.map
fmtutil --byfmt latex
fmtutil --byfmt pdflatex

and hopefully you're good to go.

I installed the package and fonts to the correct directories, and didn't get the same errors as before. However, my output document contained garbage, not greek, and I got this in the .log file:

Missing character: There is no ­ in font grtimes-b!
Missing character: There is no in font grtimes-p!
Missing character: There is no in font grtimes-p!
Missing character: There is no in font grtimes-p!

I am trying to use auto-greek in windows with MiKTeX.
I get a similar error as yours:

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
(C:\texmf\tex\latex\auto-greek\auto-greek.sty)
No file untitled-1.aux.
(C:\texmf\tex\latex\auto-greek\ot1grtimes.fd) [1{C:/ProgramData/MiKTeX/2.9/pdft
ex/config/pdftex.map}] (C:\Users\Vasilis\Desktop\untitled-1.aux)Trying to make PK font grtimes-p at 600 DPI...
Running miktex-makemf.exe...
miktex-makemf: The grtimes-p source file could not be found.

Running ttf2pk.exe...
miktex-makepk: PK font grtimes-p could not be created.
)
(see the transcript file for additional information)
!pdfTeX error: pdflatex.EXE (file grtimes-p): Font grtimes-p at 600 not found
==> Fatal error occurred, no output PDF file produced!
texify: pdflatex failed for some reason (see log file).

I changed the files us proposed...but I don't know where to run these commands in windows:
texhash
updmap --enable Map=greek.map
fmtutil --byfmt latex
fmtutil --byfmt pdflatex

I get the same errors...I also tried to change the encoding of the .tex file to iso-8859-7 but nothing changed!

I got it working after all, by setting the .tex file's encoding to iso-8859-7 instead of UTF-8.

2. ### S

on January 6, 2011 at 17:30

thank you, very usefull

3. ### V

on May 4, 2011 at 22:49

Hello

I am using OS X 10.6.7 and I have the MacTex distribution of Latex which is based on TeX Live.

Could you please help me with some instructions on how to install this package on my system?

Thanks a lot

V.