Text FormattingNEW TO LATEX - AND ERRORS NOT SOLVED

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rohitkhatri08
Posts: 2
Joined: Fri Feb 26, 2016 8:22 am

NEW TO LATEX - AND ERRORS NOT SOLVED

Post by rohitkhatri08 »

Hi,

i have just started using Latex. Though have been working on it but there are these two basic errors that I am not able to solve. Seniors please help.

my source code is ATTACHED below.

the errors are
(a) Undefined control sequence
(b) Latex error: Missing \begin{Document}.
Attachments
DRAFT 1.tex
(32.4 KiB) Downloaded 180 times

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
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

NEW TO LATEX - AND ERRORS NOT SOLVED

Post by Stefan Kottwitz »

Welcome to the forum!

There's just one error, the other one is a consequence.

Remove this command, line 44:

\setmainfont[AutoFakeBold,AutoFakeSlant]{Times New Roman}

It's not working with pdfLaTeX, but with XeLaTeX.

By the way, I noticed that the tables are looking not so nice, they could be improved (spacing, lines, alignment of numbers). If you would like that, let us know.

Stefan
LaTeX.org admin
rohitkhatri08
Posts: 2
Joined: Fri Feb 26, 2016 8:22 am

Re: NEW TO LATEX - AND ERRORS NOT SOLVED

Post by rohitkhatri08 »

Hi,

Thansk

but what if I want the same font. How do i do that?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

NEW TO LATEX - AND ERRORS NOT SOLVED

Post by Johannes_B »

For a start, you could use package newtxtext.
Last edited by Stefan Kottwitz on Mon Feb 29, 2016 11:42 am, edited 1 time in total.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply