2014 dxdy logo

Научный форум dxdy

Математика, Физика, Computer Science, Machine Learning, LaTeX, Механика и Техника, Химия,
Биология и Медицина, Экономика и Финансовая Математика, Гуманитарные науки




Начать новую тему Ответить на тему
 
 Ошибка: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Сообщение02.04.2015, 15:37 


25/11/08
449
Такая преамбула
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, russian]{babel}

Дает ошибку
Цитата:
...

(/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!
...

При этом в рабочей папке создаются пустые вложенные папки /.texmf-var/fonts/tfm/lh/lh-t2a и файл missfont.log с содержимым:
Цитата:
mktextfm larm1000
mktextfm larm1200

Если поменять кодировку на cp1251 или убрать \usepackage[T2A]{fontenc} или поменять на \usepackage[T1]{fontenc} ошибка остается. Проблема, как я понимаю, от подключения \usepackage[english, russian]{babel}.

В файле /usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2acmr.fd содержится следующее:
Цитата:
%%
%% 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'.

Что вообще значит эта ошибка? Где должен быть T2A/cmr/m/n/12=larm1200? Может нужно пути поменять? Кто такой mktextfm? Может шрифт должен генерироваться как-то на лету? В какую сторону копать? :-(

 Профиль  
                  
 
 Re: Ошибка: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Сообщение02.04.2015, 16:36 
Заслуженный участник
Аватара пользователя


31/01/14
11064
Hogtown
У меня никаких ошибок нет. В какой кодировке у Вас файл спасается?—в такой же кодировке и д.б. inputenc.

Кстати, LaTeX источники следует помещать в соответствующие таги, а не в какой бог на душу положит (высветив текст, нажмите "выберите язык" и остановитесь на LaTeX)

 Профиль  
                  
 
 Re: Ошибка: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Сообщение02.04.2015, 16:55 


25/11/08
449
Red_Herring в сообщении #999366 писал(а):
У меня никаких ошибок нет. В какой кодировке у Вас файл спасается?—в такой же кодировке и д.б. inputenc.
По умолчанию на сервере у меня все в UTF-8. Я пробовал в преамбуле и UTF-8, и CP1251. Когда ставил CP1251, перед сохранением текста в tex-файл конвертировал его
Код:
$tex = mb_convert_encoding( $tex , 'cp1251', mb_detect_encoding($tex) );

Цитата:
Кстати, LaTeX источники следует помещать в соответствующие таги
В следующий раз учту. Уже не могу отредактировать сообщение.

 Профиль  
                  
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 3 ] 

Модераторы: Karan, Toucan, PAV, maxal, Супермодераторы



Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group