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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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