Text FormattingWhy this simple example don't work?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Why this simple example don't work?

Post by artemff »

I tried it in MikTex and TexLive 2008...

Code: Select all

\documentclass[12pt,a4paper,oneside] {article}
\usepackage[koi8-r]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{indentfirst}
\usepackage{misccorr}
\usepackage{amsmath}
\begin{document}
\section{Basic Formulas}
 \begin{equation}
   D = (n - n0)(\frac{1}{R1} - \frac{1}{R2})
 \end{equation}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Why this simple example don't work?

Post by gmedina »

That sample code works OK in my system. What kind of warning/error messages are you getting?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Why this simple example don't work?

Post by artemff »

Code: Select all

! LaTeX Error: File `koi8-r.def' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)

Enter file name: 
After entering file name many new errors have appeared.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Why this simple example don't work?

Post by Stefan Kottwitz »

koi8-r.def belongs to the cyrillic package, that should be installed.

Stefan
LaTeX.org admin
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Why this simple example don't work?

Post by artemff »

Stefan_K wrote:koi8-r.def belongs to the cyrillic package, that should be installed.
Thank you. It helped me. But why cyrillic symbols aren't shown properly after compilation? Because I view a mix of chars - not the same, that was in my *.tex file.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Re: Why this simple example don't work?

Post by Stefan Kottwitz »

Perhaps show us a compilable minimal example containing cyrillic symbols that's not working for you.

Stefan
LaTeX.org admin
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Why this simple example don't work?

Post by artemff »

Stefan_K wrote:Perhaps show us a compilable minimal example containing cyrillic symbols that's not working for you.

Code: Select all

\documentclass[12pt,a4paper,oneside]{article}
\usepackage[koi8-r]{inputenc}
\usepackage[english, russian]{babel}
\usepackage{indentfirst}
\usepackage{misccorr}
\usepackage{amsmath}
\begin{document}
\section{Основные формулы}
 \begin{equation}
   D = (n - n0)(\frac{1}{R1} - \frac{1}{R2})
 \end{equation}
\end{document}
The attached file is photo of my .dvi file.
.pdf file show the same.
Attachments
err.gif
err.gif (18.94 KiB) Viewed 5095 times
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Re: Why this simple example don't work?

Post by artemff »

I have solved problem. It was in encoding of source file. Thanks all for help :D
Post Reply