# Tag Info

3

The line \usepackage[utf8]{fontenc} is incorrect: the good one is \usepackage[T2A,T1]{fontenc} for supporting both the Latin and the Cyrillic alphabet. However, you have to mark up where you want to use Cyrillic: \documentclass[a4paper,12pt]{article} \usepackage[T2A,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,english]{babel} ...

3

Font and input encodings are different things (see fontenc vs inputenc). As such, utf8 makes sense as an option for the inputenc package (it is an input encoding), but is nonsense for fontenc (it's not a font encoding). You presumably want something like \usepackage[T1]{fontenc} (or perhaps T2A,T1, as you seem to have some Russian text based on your ...

1

This seems to be a bug in the new version of the base compiler. I had the same error using pdflatex and resolved it replacing \usepackage[utf8]{inputenc} by \usepackage[utf8]{input} Then the compiler will say it didn't find input.sty and ask for a file. Just type 'inputenc.sty'. It should be able to complete. I'm on my way to a better fix, waiting ...

3

You have improper encoding: UTF-16 instead of expected UTF-8. It may be still visible in your graphic editor, but makes a false input to the pdflatex (e.g.) program.

1

It is been a while but I'd like to contribute to offer a solution for LyX. Type: \usepackage{cmap} \usepackage[T2A]{fontenc} in the preamble (Document-> Preferences). Then activate under languages (Document->Preferences->Language) for the encoding: "Different -> Unicode(utf8). Close and save.

4

The column is narrower that \tymin which is 10pt by default. Set \tymin to a smaller value to avoid the warning: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{tabulary} \begin{document} \setlength{\tymin}{5pt} \begin{tabulary}{\textwidth}{C}aa\end{tabulary} \end{document}

4

The problem seems to be in the fact that the European Modern font have a slightly thinner em than Computer Modern. If I load tabulary with the debugshow option, I get Table Target Width: 345.0pt \tabcolsep: 6.0pt \arrayrulewidth: 0.4pt \doublerulesep: 2.0pt \tymin: 10.0pt \tymax: 690.0pt Col 1: Initial=22.00003pt -12.0pt Final=10.00003pt > ...

1

After more digging, I worked out a solution which allows using the pnastwof package. The font name for the helvetica font suggested by PNAS are actually wrong. They should be phvr*8t instead of phvr*: %% Karl Berry Names: \def\helvetica{phvr8t} \def\helveticaoblique{phvro8t} \def\helveticaboldoblique{phvbo8t} \def\helveticabold{phvb8t} This then fixes the ...

1

The pnastwof package is full of \font declarations that are evil. The accent problem is due to the fact that the default font is a proprietary version of Frutiger that apparently has accents moved in different places. If you want a preprint that is similar to the final result, avoid loading pnastwof and change the font setup. I really can't understand why ...

Top 50 recent answers are included