diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-24 15:43:15 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-24 15:43:15 +0000 |
commit | d65f9c0842d5d5c1720ed3165e98450c70554530 (patch) | |
tree | 26b0e93bfff2d479192b38c4b13029984bc81bf0 /Master/texmf-dist/doc/xelatex | |
parent | dc3ab019d70c18b051f989b82e5c085dabd084a6 (diff) |
update Will's xetex-based macro packages
git-svn-id: svn://tug.org/texlive/trunk@2881 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/fontspec/README | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx (renamed from Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex) | 31 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf | bin | 1971940 -> 1640565 bytes | |||
l--------- | Master/texmf-dist/doc/xelatex/xltxtra/README | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/xltxtra/README.txt | 18 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf | bin | 221150 -> 284898 bytes |
6 files changed, 16 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/xelatex/fontspec/README b/Master/texmf-dist/doc/xelatex/fontspec/README index b9f6e1b014b..067d00b45ed 100644 --- a/Master/texmf-dist/doc/xelatex/fontspec/README +++ b/Master/texmf-dist/doc/xelatex/fontspec/README @@ -1,5 +1,5 @@ -------------------------- -THE FONTSPEC PACKAGE v1.10 +THE FONTSPEC PACKAGE v1.12 The fontspec package only works with XeTeX, a unicode capable TeX-variant. It provides an automatic and unified interface for loading fonts in LaTeX. XeTeX allows a direct interface to system-installed fonts, so no manual font installation is required. @@ -14,7 +14,8 @@ Font families may be selected individually with the command \fontspec[<font options>]{<font name>} Commands for selecting fonts efficiently can be created with - \newfontinstance\myfont[<font options>]{<font name>} + \newfontfamily\myfamily[<font options>]{<font name>} + \newfontface\myfont[<font options>]{<font name>} Default document fonts are selected with \setromanfont[<font options>]{<font name>} diff --git a/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex b/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx index 2aed92a6fc3..9a7d94d0922 100644 --- a/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.tex +++ b/Master/texmf-dist/doc/xelatex/fontspec/fontspec-example.ltx @@ -1,28 +1,23 @@ +\documentclass{article} -\documentclass[12pt]{article} +\usepackage{euler} +\usepackage[cm-default]{fontspec} +\usepackage{xltxtra} -\usepackage{euler,fontspec,graphicx} - -\defaultfontfeatures{Scale=MatchLowercase ,Mapping=tex-text} -\setromanfont{Hoefler Text} -\setsansfont{Gill Sans} +\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} +\setromanfont[Numbers=Lowercase]{FPL Neu} +\setsansfont{Lucida Sans} \setmonofont{Lucida Sans Typewriter} -%% Define the \XeTeX logo: -\DeclareRobustCommand\XeTeX{% - \mbox{\smash{% - X\lower.5ex\hbox{\kern-.12em\reflectbox{E}}\kern-.1667em - T\kern -.1667em\lower .5ex\hbox {E}\kern -.12em X}}\@} -%% The logo should be defined on a per-document basis -%% so that its parameters may be fine tuned for the fonts used. +\frenchspacing % TeX's default is a little old-fashioned... \begin{document} \pagestyle{empty} -\section{The basics of the \textsf{fontspec} package} +\section*{The basics of the \textsf{fontspec} package} The \textsf{fontspec} package enables automatic font selection for \LaTeX{} documents typeset with \XeTeX{}. The basic command is\\ -\indent \verb|\fontspec[font features]{Mac OS X font display name}|.\\ +\indent \verb|\fontspec[font features]{font display name}|.\\ As an example: \begin{center} @@ -39,13 +34,13 @@ As an example: The default roman, sans serif, and typewriter fonts may be set with the \verb|\setromanfont|, \verb|\setsansfont| and \verb|\setmonofont| commands, respectively, as shown in the preamble. They take the same syntax as the \verb|\fontspec| package. All expected font shapes are available: \begin{center} - {\scshape Small caps and \itshape small caps italic\dots}\\ + {\itshape Italics and \scshape small caps\dots}\\ {\sffamily\bfseries Bold sans serif and \itshape bold italic sans serif\dots} \end{center} -With the roman and sans serif fonts set in the preamble, text fonts in math mode are also changed: $\cos(n\pi)=\pm 1$. The maths typeface `Euler' has been used in this document (with the \textsf{euler} package---note that the \textsf{eulervm} package will not work in \XeTeX{} because it uses virtual fonts), since the default Computer Modern maths font is rather light. +With the roman and sans serif fonts set in the preamble, text fonts in math mode are also changed: $\cos(n\pi)=\pm 1$. The maths typeface `Euler' has been used in this document (with the \textsf{euler} package---or the \textsf{eulervm} package if the |xpdfdvimx| driver is being used), since the default Computer Modern maths font is rather light. \[ - \mathcal F(s) = \int^\infty_0\! f(t) e^{-st}\,\mathrm{d}t + \mathcal F(s) = \int^\infty_0 f(t) \exp(-st)\,\mathrm{d}t \] You'll also notice the \verb|\defaultfontfeatures| command in the preamble. This command takes a single argument of font features that are then applied to every subsequent instance of font selection. The first argument in this case, \verb|Mapping=tex-text|, enables regular \TeX{} ligatures like \verb|``---''| for ``---''. The second automatically scales the fonts to the same x-height. diff --git a/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf b/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf Binary files differindex b9a50832149..cdf9407b4b8 100644 --- a/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf +++ b/Master/texmf-dist/doc/xelatex/fontspec/fontspec.pdf diff --git a/Master/texmf-dist/doc/xelatex/xltxtra/README b/Master/texmf-dist/doc/xelatex/xltxtra/README deleted file mode 120000 index c3ca07460ab..00000000000 --- a/Master/texmf-dist/doc/xelatex/xltxtra/README +++ /dev/null @@ -1 +0,0 @@ -README.txt
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/xltxtra/README.txt b/Master/texmf-dist/doc/xelatex/xltxtra/README.txt deleted file mode 100644 index 335110d32d8..00000000000 --- a/Master/texmf-dist/doc/xelatex/xltxtra/README.txt +++ /dev/null @@ -1,18 +0,0 @@ ------------------------- -THE XLTXTRA PACKAGE v0.1 - -This package provides a few small features that -are useful for XeLaTeX. - -It loads the fixltx2e and etex packages, and -patches a couple of other LaTeX commands: \- -for discretionary hyphenation with variable -hyphenation characters, and \textsuperscript/ -\textsubscript that use the fontspec to access -real superior/inferior characters. It also -provides a parameterised logos for \TeX, -\LaTeX and \XeTeX. - --------------- -Will Robertson -2006 diff --git a/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf b/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf Binary files differindex c266ce8aaff..c3e63582ea5 100644 --- a/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf +++ b/Master/texmf-dist/doc/xelatex/xltxtra/xltxtra.pdf |