diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hologo.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/hologo.dtx | 142 |
1 files changed, 126 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hologo.dtx b/Master/texmf-dist/source/latex/oberdiek/hologo.dtx index 69e8569b6fc..590beb898e7 100644 --- a/Master/texmf-dist/source/latex/oberdiek/hologo.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/hologo.dtx @@ -22,7 +22,8 @@ % % This work consists of the main source file hologo.dtx % and the derived files -% hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-test1.tex. +% hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-test1.tex, +% hologo-test-spacefactor.tex. % % Distribution: % CTAN:macros/latex/contrib/oberdiek/hologo.dtx @@ -57,6 +58,7 @@ % Installation: % TDS:tex/generic/oberdiek/hologo.sty % TDS:tex/generic/oberdiek/hologo-test1.tex +% TDS:tex/generic/oberdiek/hologo-test-spacefactor.tex % TDS:doc/latex/oberdiek/hologo.pdf % TDS:source/latex/oberdiek/hologo.dtx % @@ -75,7 +77,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: hologo 2010/04/16 v1.1 Logo collection (HO)} +\Msg{* Package: hologo 2010/04/24 v1.2 Logo collection (HO)} \Msg{************************************************************************} \keepsilent @@ -108,7 +110,8 @@ because some files are installed in TDS:tex/generic//. This work consists of the main source file hologo.dtx and the derived files - hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-test1.tex. + hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-test1.tex, + hologo-test-spacefactor.tex. \endpreamble \let\MetaPrefix\DoubleperCent @@ -119,6 +122,7 @@ and the derived files \usedir{tex/generic/oberdiek}% \file{hologo.sty}{\from{hologo.dtx}{package}}% \file{hologo-test1.tex}{\from{hologo.dtx}{test1}}% + \file{hologo-test-spacefactor.tex}{\from{hologo.dtx}{test-spacefactor}}% } \catcode32=13\relax% active space @@ -128,7 +132,7 @@ and the derived files \Msg{* To finish the installation you have to move the following} \Msg{* files into a directory searched by TeX:} \Msg{*} -\Msg{* hologo.sty, hologo-test1.tex} +\Msg{* hologo.sty, hologo-test1.tex, hologo-test-spacefactor.tex} \Msg{*} \Msg{* And install the following script file:} \Msg{*} @@ -149,10 +153,10 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{hologo.drv}% - [2010/04/16 v1.1 Logo collection (HO)]% + [2010/04/24 v1.2 Logo collection (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] -\usepackage{hologo}[2010/04/16] +\usepackage{hologo}[2010/04/24] \usepackage{longtable} \usepackage{array} \begin{document} @@ -161,7 +165,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{1145} +% \CheckSum{1200} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -182,7 +186,7 @@ and the derived files % \GetFileInfo{hologo.drv} % % \title{The \xpackage{hologo} package} -% \date{2010/04/16 v1.1} +% \date{2010/04/24 v1.2} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -217,6 +221,7 @@ and the derived files % \entry{eTeX}{}[2010/04/08] % \entry{LaTeX}{}[2010/04/08] % \entry{LaTeX2e}{}[2010/04/08] +% \entry{LaTeX3}{}[2010/04/24] % \entry{LaTeXe}{}[2010/04/08] % \entry{LuaLaTeX}{}[2010/04/08] % \entry{LuaTeX}{}[2010/04/08] @@ -227,6 +232,7 @@ and the derived files % \entry{plainTeX}{hyphen}[2010/04/16] % \entry{plainTeX}{runtogether}[2010/04/16] % \entry{TeX}{}[2010/04/08] +% \entry{VTeX}{}[2010/04/24] % \entry{XeLaTeX}{}[2010/04/08] % \entry{XeTeX}{}[2010/04/08] % \end{longtable} @@ -358,7 +364,7 @@ and the derived files \fi \expandafter\x\csname ver@hologo.sty\endcsname \ProvidesPackage{hologo}% - [2010/04/16 v1.1 Logo collection (HO)] + [2010/04/24 v1.2 Logo collection (HO)] % \end{macrocode} % % \begin{macrocode} @@ -842,6 +848,14 @@ and the derived files % \end{macrocode} % \end{macro} % +% \begin{macro}{\HOLOGO@SpaceFactor} +% \begin{macrocode} +\def\HOLOGO@SpaceFactor{% + \spacefactor1000 % +} +% \end{macrocode} +% \end{macro} +% % \subsection{\hologo{TeX} and friends} % % \subsubsection{\hologo{TeX}} @@ -850,7 +864,7 @@ and the derived files % Source: \hologo{LaTeX} kernel. % \begin{macrocode} \def\HoLogo@TeX#1{% - T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000 % + T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\HOLOGO@SpaceFactor } % \end{macrocode} % \end{macro} @@ -982,6 +996,27 @@ and the derived files % \end{macrocode} % \end{macro} % +% \subsubsection{\hologo{LaTeX3}} +% +% \begin{macro}{\HoLogo@LaTeX3} +% Source: \hologo{LaTeX} kernel +% \begin{macrocode} +\expandafter\def\csname HoLogo@LaTeX3\endcsname#1{% + \hologo{LaTeX}% + 3% +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\HoLogoBkm@LaTeX3} +% \begin{macrocode} +\expandafter\def\csname HoLogoBkm@LaTeX3\endcsname#1{% + \hologo{LaTeX}% + 3% +} +% \end{macrocode} +% \end{macro} +% % \subsubsection{\hologo{eTeX}} % % \begin{macro}{\HoLogo@eTeX} @@ -1070,12 +1105,6 @@ and the derived files % \end{macrocode} % \end{macro} % -% \begin{macro}{\HoLogoBkm@XeTeX} -% \begin{macrocode} -\def\HoLogoBkm@XeTeX#1{XeTeX} -% \end{macrocode} -% \end{macro} -% % \begin{macro}{\HoLogo@XeLaTeX} % \begin{macrocode} \def\HoLogo@XeLaTeX#1{% @@ -1107,6 +1136,18 @@ and the derived files % \end{macrocode} % \end{macro} % +% \subsubsection{\hologo{VTeX}} +% +% \begin{macro}{\HoLogo@VTeX} +% \begin{macrocode} +\def\HoLogo@VTeX#1{% + \HOLOGO@mbox{% + V\hologo{TeX}% + }% +} +% \end{macrocode} +% \end{macro} +% % \subsubsection{\hologo{AmS}, \dots} % % Source: class \xclass{amsdtx} @@ -1497,6 +1538,68 @@ and the derived files %</test1> % \end{macrocode} % +% \subsection{Spacefactor} +% +% The space factor must be 1000 after a logo. If it is greater 1000 +% then the following space is a space after a sentence closing point. +% If the space factor is smaller 1000 then an immediate following +% dot is interpreted as abbreviation, not sentence closing point. +% +% \begin{macrocode} +%<*test-spacefactor> +\NeedsTeXFormat{LaTeX2e} +\documentclass{article} +\usepackage{hologo}[2010/04/24] +\usepackage{kvsetkeys} +\usepackage{qstest} +\IncludeTests{*} +\LogTests{log}{*}{*} +\begin{document} +\begin{qstest}{spacefactor}{spacefactor} +\newcommand*{\Test}[1]{% + \sbox0{% + \hologo{#1}% + \Expect*{1000 (#1)}*{\the\spacefactor\space(#1)}% + }% +}% +\makeatletter +\kv@parse@normalized{% + AmSLaTeX,% + AmSTeX,% + eTeX,% + LaTeX,% + LaTeX2e,% + LaTeX3,% + LaTeXe,% + LuaLaTeX,% + LuaTeX,% + pdfTeX,% + pdfLaTeX,% + plainTeX=,% + plainTeX={variant=space},% + plainTeX={variant=hyphen},% + plainTeX={variant=runtogether},% + TeX,% + VTeX,% + XeLaTeX,% + XeTeX,% +}{% + \begingroup + \let\@logo=\kv@key + \ifx\kv@value\relax + \else + \expandafter\hologoLogoSetup\expandafter\@logo\expandafter{% + \kv@value + }% + \fi + \Test\@logo + \endgroup + \@gobbletwo +} +\end{qstest} +\end{document} +%</test-spacefactor> +% \end{macrocode} % % \section{Installation} % @@ -1559,6 +1662,7 @@ and the derived files % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % hologo.sty & tex/generic/oberdiek/hologo.sty\\ % hologo-test1.tex & tex/generic/oberdiek/hologo-test1.tex\\ +% hologo-test-spacefactor.tex & tex/generic/oberdiek/hologo-test-spacefactor.tex\\ % hologo.pdf & doc/latex/oberdiek/hologo.pdf\\ % hologo.dtx & source/latex/oberdiek/hologo.dtx\\ % \end{tabular}^^A @@ -1696,6 +1800,12 @@ and the derived files % \item % Variant support added by option \xoption{variant}. % \end{Version} +% \begin{Version}{2010/04/24 v1.2} +% \item +% \hologo{LaTeX3} added. +% \item +% \hologo{VTeX} added. +% \end{Version} % \end{History} % % \PrintIndex |