Texmaker and TeXstudioWant Help with some errors!

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
shayan
Posts: 5
Joined: Sun Dec 26, 2010 2:13 pm

Want Help with some errors!

Post by shayan »

Hi
I use Texmaker 4.1.When I try to compile:

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[farsi]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
this is a test.
\end{document}
I get the following errors:

Code: Select all

Encoding scheme LAE unknown.
Command \alefhamza unavailable in encoding OT1.
And some other similar ones for different commands.
What should I do?
Will I be able to write documents in Farsi using Texmaker anyway?
Thanks all
Last edited by cgnieder on Thu Jan 09, 2014 12:30 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Want Help with some errors!

Post by cgnieder »

Hi shayan,

You need to load fontenc with the right encoding:

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage[LAE]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[farsi]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
this is a test.
\end{document}
Regards
site moderator & package author
Post Reply