diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
commit | f07bb53970ee2ecc53f81a206a3d3a67ef665e4a (patch) | |
tree | 6f57a1d62971db79e5ff023bdfd83b22cb971dc9 /Master/texmf-dist/doc/generic/t2/examples | |
parent | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (diff) |
doc 6
git-svn-id: svn://tug.org/texlive/trunk@85 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/t2/examples')
5 files changed, 220 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/t2/examples/example1.tex b/Master/texmf-dist/doc/generic/t2/examples/example1.tex new file mode 100644 index 00000000000..abc24cbb9de --- /dev/null +++ b/Master/texmf-dist/doc/generic/t2/examples/example1.tex @@ -0,0 +1,72 @@ +% This is the file example1.tex of the T2 package. + +\documentclass{article} + +% The following command overrides the default T2A encoding. If you +% don't have new LH fonts with X2 and T2* encodings, you have to use +% this command. It will select old lh* fonts with the LCY encoding. +% You may also use OT2 7-bit cyrillic encoding. +% +% The general rule: always call the `fontenc' package *before* the BABEL +% package, and also always use encoding which contains latin letters as +% a last option to the `fontenc' package (i.e., X2 or OT2 must not +% appear as a last option!). +% +% Uncomment the following line if you don't have the new LH fonts. +% +%\usepackage[LCY,OT1]{fontenc} + +% You may specify the (default) input encoding for the Russian letters. +% Some of available encodings are (see cyinpenc.dtx for a full list): +% cp866 --- MS-DOS Russian codepage +% cp866av Alternative Variant of cp866 +% cp866mav Modified Alternative Variant of cp866 +% cp866nav New Alternative Variant of cp866 +% cp1251 --- MS-Windows Cyrillic codepage +% cp855 --- MS-DOS Cyrillic codepage +% koi8-r --- koi8-r Russian codepage (as of RFC1489) +% isoir111 +% koi8-ru +% koi8-u koi8-u Ukrainian codepage +% 8859-5 --- ISO 8859-5 Cyrillic codepage +% maccyr --- Apple Macintosh Cyrillic codepage (AKA MS cp10007) +% macukr --- Apple Macintosh Ukrainian codepage + +\usepackage[cp1251,koi8-r]{inputenc} + +\usepackage[english,russian]{babel} % load Babel setup for English + % and Russian languages; + % the latter is the default. + +\begin{document} + +Here goes some text in koi8-r input encoding. +It will look as a `garbage' of cyrillic glyphs if the X2 encoding is used, +because X2 does not contain latin letters. :-) +However, it will be Ok with the T2A encoding which appeared in lhfnt v3.19. + +% To switch the current language (and font encoding) to English, +% use \English macro (or it's synonym: \Eng) +% To switch the current language (and font encoding) to Russian, +% use \Russian macro (or it's synonym: \Rus) +% Switching languages will, in particular, set the correct hyphenation. + +% IMPORTANT: +% If you are using X2 encoding (which does not contain latin letters), you +% have to use language-switching commands (which also select the correct fonts). +% You also have to use language-switching commands to have right hyphenation +% anyway (unless you're using a combined `russian-english' language). + +% You may use several different input encodings in one document! :-) + +\inputencoding{cp1251} + +Here goes some text in cp1251 input encoding + +% You may also use several different Cyrillic font encodings in one document! + +\fontencoding{T2A}\selectfont + +Proba Pera + +\end{document} diff --git a/Master/texmf-dist/doc/generic/t2/examples/example2.tex b/Master/texmf-dist/doc/generic/t2/examples/example2.tex new file mode 100644 index 00000000000..2d3582bf885 --- /dev/null +++ b/Master/texmf-dist/doc/generic/t2/examples/example2.tex @@ -0,0 +1,25 @@ +% This is the file example2.tex of the T2 package. + +\input plainenc % Load support for inputenc mechanism + +\fontencoding{T2A} % Load the T2A encoding definition file (t2aenc.def) + % One can use also other font encodings, e.g. LCY. + +\font\larm=larm1000 % Set the default font --- Cyrillic +\larm % T2A encoded Computer Modern font. +% Note, that if you use e.g. lh* fonts (which have both Latin and +% Cyrillic glyphs), it's better to load these fonts in plain.tex instead +% of standard Computer Modern fonts. in this case you'll not need to +% specify font names in your documents explicitly. + +\inputencoding{koi8-r} % Set current input encoding to koi8-r. + % See the file cyrlatex.ins for a complete + % list of available input encodings. + +Here goes some text in a koi8-r input encoding. . + +\inputencoding{cp866} % Set current input encoding to cp~866. + +Here goes some text in a cp~866 input encoding. . + +\bye diff --git a/Master/texmf-dist/doc/generic/t2/examples/example3.tex b/Master/texmf-dist/doc/generic/t2/examples/example3.tex new file mode 100644 index 00000000000..0bb1851f24d --- /dev/null +++ b/Master/texmf-dist/doc/generic/t2/examples/example3.tex @@ -0,0 +1,26 @@ +% This is the file example3.tex of the T2 package. + +% If you need to process a Plain TeX file, you may use a LaTeX `plain' +% package by David Carlisle. You can get it from +% CTAN:macros/latex/contrib/carlisle/plain.sty +% In this case, you do not need any hacks with plainenc.tex to typeset +% Cyrillic, and all the LaTeX power (including NFSS) is available. In +% particular, `babel' package works out of the box, as well as inputenc. + +\documentclass{article} + +\usepackage[koi8-r]{inputenc} +\usepackage[russian]{babel} +\usepackage{plain} + +\begin{document} + +\begin{plain} + +\input{file} % Input a Plain TeX file. + % You may also type Plain TeX commands here + % directly, without \input'ing any file. + +\end{plain} + +\end{document} diff --git a/Master/texmf-dist/doc/generic/t2/examples/example4.tex b/Master/texmf-dist/doc/generic/t2/examples/example4.tex new file mode 100644 index 00000000000..6756ed7b0a5 --- /dev/null +++ b/Master/texmf-dist/doc/generic/t2/examples/example4.tex @@ -0,0 +1,62 @@ +% This is the file example4.tex of the T2 package. +% It should be processed with "cyrtex" --- cyrillized plain TeX. +\parindent0pt +\parskip.5\baselineskip + +\inputencoding{koi8-r} + +\centerline{\bf } +\vskip1cm +\centerline{\bf } + +\vfill + + : +\item{--} , ; +\item{--} , + ; +\item{--} . + +\inputencoding{cp866} + + ਤ ᯮ ࠭ +, ᮡ ⬥⨢ ᯮ ⮢, ᢥ +ࠧ㬠 ⫮, ⠫ ⭠. + +⢠ 㯮ॡ 㬥७, 宬 殮訬 ९⢨ ⠭栬 + 稭. , ঠ, 㤥 ⪠~--- + ᨤ. 祬 , 嫥, +ᨫ. 嫥襬 , ᬥ ⭠. + +\inputencoding{cp1251} + + --- --- + . + + , . + , , +. + +\inputencoding{iso88595} + + , , , + + . + + , , , , + , --- , +. . + , , + , . + +\inputencoding{maccyr} + + , , + , --- +, , , + . , . + +\vfill +\rightline{<< I>>} + +\bye diff --git a/Master/texmf-dist/doc/generic/t2/examples/example5.tex b/Master/texmf-dist/doc/generic/t2/examples/example5.tex new file mode 100644 index 00000000000..335fa1fe4b3 --- /dev/null +++ b/Master/texmf-dist/doc/generic/t2/examples/example5.tex @@ -0,0 +1,35 @@ +% This is the file example5.tex of the T2 package. +% +% This file can be used (after some needed modifications) to build a +% `custom' LaTeX format file using `mylatex' by David Carlisle. You can +% find it at CTAN:macros/latex/contrib/carlisle/mylatex.ltx +% See the documentation on usage of this approach in mylatex.ltx. + +\documentclass{article} + +\usepackage[T2A]{fontenc} +\usepackage[koi8-r]{inputenc} +\usepackage[russian]{babel} + +% This is standard for Russian typesetting: +\usepackage{indentfirst} + +% To get \texttrademark, \textregistered, \textcopyright, \quotesinglbase, +% \textbrokenbar and some other symbols looking good: +\usepackage{textcomp} + +% Make \varkappa, \leqslant, \geqslant (and a lot of other) symbols +% available (they are used in Russian mathematical books instead of +% \kappa, \leq, \geq; also \varepsilon instead of \epsilon and +% \varphi instead of \phi are often used). +\usepackage{amssymb} + +% If you are not using complex mathematical typesetting, comment out +% the line below. +\usepackage{amsmath} + +% if you want straight integral signs (and other stuff) +\usepackage{euler} + +\begin{document} +% END OF FILE |