Page LayoutCorrect options for Kindle

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Borneq
Posts: 14
Joined: Tue May 24, 2016 9:28 am

Correct options for Kindle

Post by Borneq »

I attach file from http://tex.stackexchange.com/questions/ ... for-kindle
(font not must be Cambria, but good for Kindle)
I try compile it with pdfTeX but is error:

Code: Select all

! Fatal fontspec error: "cannot-use-pdftex"
! 
! The fontspec package requires either XeTeX or LuaTeX.
! 
! You must change your typesetting engine to, e.g., "xelatex" or
! "lualatex"instead of plain "latex" or "pdflatex".
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.28 \msg_fatal:nn {fontspec} {cannot-use-pdftex}
I prefer pdfTex, but also but XeTeX or LuaTeX is also bad

What I must change to compile it with preferred pdfTeX or other?
Attachments
KindleSample.tex
(2.37 KiB) Downloaded 291 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Borneq
Posts: 14
Joined: Tue May 24, 2016 9:28 am

Correct options for Kindle

Post by Borneq »

I remove unnecessary fonts defs:
attach zip
Attachments
KindleSample.zip
with png
(8.46 KiB) Downloaded 176 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Correct options for Kindle

Post by Stefan Kottwitz »

Yes, remove font settings via \setmain... but also remove \usepackage{fontspec}. There are also nice pdfLaTeX fonts.

Stefan
LaTeX.org admin
Post Reply