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 175 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
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