XeTeXIs it possible not to use \XeTeXinputencoding ?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
fomin
Posts: 10
Joined: Thu Jun 17, 2010 10:52 am

Is it possible not to use \XeTeXinputencoding ?

Post by fomin »

Hello all!

I have a lot of TeX-files, like that

Code: Select all

\input my-macros-and-packages-define-all-that-need.tex

....
Useful Content
....

\end{document}
I process these files with latex and pdflatex, and all "insides"
(documentclass, ifpdf, hyperref setiing, macroses and so on) are
hidden from content writer.
And all these files in "cp1251" encoding.

All OK with latex and pdflatex.

But then I try to use xetex, I need to specify

Code: Select all

\XeTeXinputencoding   "cp1251"
in each file, because

Code: Select all

\XeTeXdefaultencoding "cp1251"
specified in "my-macros-and-packages-define-all-that-need.tex"
does not affect to main file.

Is it possible to specify input encoding of LaTeX files
without XeTeX-specific instructions in main file?

May be exist command line parameters to xetex or something else?

Thanks all in advance,
Sincerely, Stas Fomin

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

Post Reply