Fonts & Character SetsError: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by eugene8086 »

Hello everyone. Sorry for my bad english.

I installed Texlive on Debian 7. I tried to convert tex file to dvi by latex. The tex file has the following preamble:
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, russian]{babel}
.

This gives the following error:
...

(/usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2acmr.fd

File: t2acmr.fd 2001/08/11 v1.0a Computer Modern Cyrillic font definitions
)
! Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable: Metric (TFM) file not fo
und.
<to be read again>
relax
l.100 \fontencoding\encodingdefault\selectfont

?
! Emergency stop.
<to be read again>
relax
l.100 \fontencoding\encodingdefault\selectfont

End of file on the terminal!
...

At the same time in the working directory created empty subfolders /.texmf-var/fonts/tfm/lh/lh-t2a and file missfont.log that contains the text:
mktextfm larm1200
mktextfm larm1200
If I change the encoding of cp1251 or remove the usepackage[T2A]{fontenc} or changed to usepackage[T1{fontenc} error persists. As I understand it, the problem arises from the connection usepackage[english,russian]{babel}.

The file /usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2acmr.fd contains the following :
%%
%% This is file `t2acmr.fd',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% t2lhfnt.fdd (with options: `T2Acmr')
%% This file is a generated file from the sources of the `cyrillic' bundle
%% in the LaTeX2e distribution.
%%
%% This is a generated file.
%%
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2008
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%%
%% This file was generated from file(s) of the Standard LaTeX `Cyrillic Bundle'.
%% -----------------------------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This file may only be distributed together with a copy of the LaTeX
%% `Cyrillic Bundle'. You may however distribute the LaTeX `Cyrillic
%% Bundle' without such generated files.
%%
%% The list of all files belonging to the `Cyrillic Bundle' is
%% given in the file `manifest.txt'.
%%
%% In particular, permission is granted to customize the declarations in
%% this file to serve the needs of your installation.
%%
%% However, NO PERMISSION is granted to distribute a modified version
%% of this file under its original name.
%%
\ProvidesFile{t2acmr.fd}
[2001/08/11 v1.0a Computer Modern Cyrillic font definitions]
\providecommand{\EC@family}[5]{%
\DeclareFontShape{#1}{#2}{#3}{#4}%
{<5><6><7><8><9><10><10.95><12><14.4>%
<17.28><20.74><24.88><29.86><35.83>genb*#5}{}}
\DeclareFontFamily{T2A}{cmr}{}
\EC@family{T2A}{cmr}{m}{n}{larm}
\EC@family{T2A}{cmr}{m}{sl}{lasl}
\EC@family{T2A}{cmr}{m}{it}{lati}
\EC@family{T2A}{cmr}{m}{sc}{lacc}
\EC@family{T2A}{cmr}{bx}{n}{labx}
\EC@family{T2A}{cmr}{b}{n}{larb}
\EC@family{T2A}{cmr}{bx}{it}{labi}
\EC@family{T2A}{cmr}{bx}{sl}{labl}
\EC@family{T2A}{cmr}{bx}{sc}{laxc}
\EC@family{T2A}{cmr}{m}{ui}{laui}
\endinput
%%
%% End of file `t2acmr.fd'.
What does this error mean? Where should the font T2A/cmr/m/n/12=larm1200? Maybe I need to change the way? What is mktextfm? Font can be generated somehow on the fly?

Please help solve this problem. :|

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by Johannes_B »

Try loading lmodern as well.

\usepackage{lmodern}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by eugene8086 »

Johannes_B wrote:Try loading lmodern as well.

\usepackage{lmodern}
Where should I download lmodern? I need to install it?

I have installed on Debian package texlive-full wheezy.

Tried so:

Code: Select all

\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{lmodern}
\usepackage[english,russian]{babel}
\usepackage{amsmath}
\usepackage{amsfonts, amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{color}
\usepackage{pst-plot}
\usepackage[matrix,arrow,curve,frame,poly,arc]{xy}
\usepackage[final]{graphicx}
\pagestyle{empty}
\setlength{\topskip}{0pt}
\setlength{\parindent}{0pt}
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\begin{document}
$$x+2x$$
\end{document}
This gives the same error.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by Stefan Kottwitz »

Try:

sudo apt-get install lmodern

Stefan
LaTeX.org admin
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by eugene8086 »

Thank you for your response.

Code: Select all

~# apt-get install lmodern
Reading package lists... Done
Building dependency tree
Reading state information... Done
lmodern is already the newest version.
lmodern set to manually installed.
The following package was automatically installed and is no longer required:
  libmicrohttpd10
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
This package is already installed. Apparently, during the installation texlive-full.

What else could be the reason for this error? :roll:
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by Johannes_B »

Hi, the font is generated at my side without any problems.

On the other hand, TeX was developed without any foreign (not western) scripts in mind. This gap was filled by XeTeX, also supporting system fonts.

This might be an alternative for you without the low-level font issues.

Code: Select all

% arara: xelatex
\documentclass{article}
\usepackage[english,russian]{babel}
\usepackage{amsmath}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\begin{document}
русскиы

\[x+2x\]
\end{document}

Personally, i don't speak russian and need to rely on user feedback. Unfortunately, most user feedback is not helpful at all.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by eugene8086 »

Recently I tried to run the program through ssh as root and it worked properly!

What permissions are missing?

I'm calling the program latex as myusername (no root) on php by function proc_open(). The php runs as an Apache module.

I checked the /usr #find -mtime -1 -print. No recently modified files associated with latex.

It did not help:
chown -R root:root /usr/share/
chmod -R g+rwx /usr/share/
usermod -G root myusername


Tried to do so:
chown root myscript.php
chmod u+s myscript.php

It does not help.

What could be the cause of the error? How to fix it? :|
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadab

Post by Stefan Kottwitz »

Do you still mean the same error as at the beginning of this topic?

So it's just a user issue? Permissions shout not be a problem during compiling. Ensure that the compiling user has a PATH variable with the correct settings as you succeeding user.

Stefan
LaTeX.org admin
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable

Post by eugene8086 »

Stefan_K wrote:Do you still mean the same error as at the beginning of this topic?
Yes of course. The same bug with missing fonts.
So it's just a user issue?
Apparently, this is a problem of user access.
Permissions shout not be a problem during compiling.
You mean the compilation tex-document? I did not compile the program texlive, I install it by packages.
Ensure that the compiling user has a PATH variable with the correct settings as you succeeding user.
Where is this setting?

As I understand it, the program creates temporary files. When the program is executed from the average user, there is a problem in the creation of temporary files.

But I still do not understand what to do :?
eugene8086
Posts: 9
Joined: Thu Apr 02, 2015 3:17 pm

Re: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadab

Post by eugene8086 »

I tried to run the latex through ssh as a normal user myusername and it worked properly. Hence the problem was that the latex is called through php, who works as a module of Apache. What is the cause of the error? How to fix?
Post Reply