[tex-live] OT2 vs. T2A; compilation by apache user issues

mario chiari ml at mariochiari.net
Mon Feb 24 01:21:01 CET 2014


Hi,

thanks to all for the replies.
I had some spare time, and tried again, but it is not working yet.
Let me remind I wish to write a paper in italian, english and russian (a
few words).

Now I use:
\usepackage[T2A,T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage{lmodern} 
\usepackage[american,russian,italian]{babel}
\usepackage{tipa}
\usepackage[babel,italian=guillemets]{csquotes}

As you suggested, I enter a cyrillic string by \textcyrillic{Коминтерн}.
But I still have the same issues. 

First issue:
pdflatex compiles fine, if I do NOT write something like:
\section{\textcyrillic{Коминтерн}}.

If I do, pdflatex fails. The relevant portion of log file is:
****************
LaTeX Font Info:    Try loading font information for T2A+lmr on input
line 2.
LaTeX Font Info:    No file T2Almr.fd. on input line 2.
LaTeX Font Warning: Font shape `T2A/lmr/bx/n' undefined
(Font)              using `T2A/cmr/m/n' instead on input line 2.

! Argument of \@sect has an extra }.
<inserted text> 
                \par 
l.2 \section{{\textcyrillic{Коминтерн}}}
                                                 
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
{\normalfont \Large \bfseries }\relax \ifx \reserved at b \@let at token
\@tempswafal
se \ETC.
! Paragraph ended before \@sect was complete.
<to be read again> 
                   \par 
l.2 \section{{\textcyrillic{Коминтерн}}}
                                                 
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

Runaway argument?
|\@empty \protect {\protect #I\<def>-command \reserved at a \<let>-command
\ETC.
! Paragraph ended before \HyPsd@@ProtectSpacesFi was complete.
....
**********************
I am not sure how to fix it. Is it a 'fragile argument in moving
argument' still?

Second issue.
If I call pdflatex from inside a php script, it fails anyway to render
cyrillic characters. Relevant portion of log is:
*********************
LaTeX Font Info:    Try loading font information for T2A+lmr on input
line 4.
LaTeX Font Info:    No file T2Almr.fd. on input line 4.

LaTeX Font Warning: Font shape `T2A/lmr/m/n' undefined
(Font)              using `T2A/cmr/m/n' instead on input line 4.

! Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable: Metric (TFM) file
not fo
und.
<to be read again> 
                   relax 
l.4 \textcyrillic{Коминтерн}
                                     
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

Missing character: There is no \CA in font nullfont!
Missing character: There is no \EE in font nullfont!
Missing character: There is no \EC in font nullfont!
Missing character: There is no \E8 in font nullfont!
Missing character: There is no \ED in font nullfont!
Missing character: There is no \F2 in font nullfont!
Missing character: There is no \E5 in font nullfont!
Missing character: There is no \F0 in font nullfont!
Missing character: There is no \ED in font nullfont!
LaTeX Font Info:    External font `lmex10' loaded for size
(Font)              <5> on input line 7.
! Font T2A/lmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file
not fo
und.
<to be read again> 
                   relax 
***************************
I generated /root/.texlive2010/texmf-var/fonts/tfm as root by running
allcm and allec; and copied it
into /usr/local/texlive/2010/texmf-var/fonts/tfm, but that did not fix
the problem with TFM files.


My entire texlive directory is now 777. 
If it is a issue with the apache user, I do not know how to fix it. 

This issue is indeed fixed if I define (don't ask me how or why): 
\newcommand\cyrillic{%
\renewcommand\rmdefault{wncyr}%
\renewcommand\sfdefault{wncyss}%
\renewcommand\encodingdefault{OT2}%
\normalfont
\selectfont}
\DeclareTextFontCommand{\textcyrillic}{\cyrillic} 



I appreciate your advise.
cheers
mario




 











On Mon, 2014-02-17 at 08:26 +0000, Robin Fairbairns wrote:
> Vladimir Lomov <lomov.vl at gmail.com> wrote:
> 






More information about the tex-live mailing list