diff options
author | Norbert Preining <preining@logic.at> | 2007-12-12 07:53:49 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-12-12 07:53:49 +0000 |
commit | a35a45fc4b80f9194c50a81b92b6e678cb59a19d (patch) | |
tree | c6899edb7905e5578474807914bdb2817353ec86 | |
parent | d24ad9b0144273dc4290caa8670a887196818b8d (diff) |
update ltxmisc from ctan
git-svn-id: svn://tug.org/texlive/trunk@5761 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxmisc/askinclude.sty | 103 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxmisc/texilikecover.sty | 43 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxmisc/url.sty | 35 |
3 files changed, 172 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/askinclude.sty b/Master/texmf-dist/tex/latex/ltxmisc/askinclude.sty new file mode 100644 index 00000000000..c4a6ffb617c --- /dev/null +++ b/Master/texmf-dist/tex/latex/ltxmisc/askinclude.sty @@ -0,0 +1,103 @@ +% askinclude.sty - interactive asking of included files +% +% VERSION 1.2e November 11, 1994 +% +% (c) 1991 by Pablo A. Straub. Permission is granted to copy and use this +% in any way and for any purpose, except direct commercial advantage, +% provided that you retain this copyright notice. +% +% HISTORY +% +% 0.95 11/05/91 First beta-test version (asked two questions) +% 0.99 11/05/91 Second beta-test version (asks one question; uses * and -.) +% 1.0 11/07/91 Changed prompts (sent to comp.text.tex) +% 1.2e 11/02/94 Two small changes to run under LaTeX2e [RF]; +% additional documentation [TRS] +% +% Please send enhancements and corrections to straub@cs.umd.edu. +% +% USAGE +% +% Here's an example root file (see pp.72--74 in the LaTeX book): +% +% % File: main.tex +% % +% \documentclass[...]{book} +% \usepackage{askinclude} +% % ^^^^^^^^^^ +% % Initialization: +% \input{preamble} +% % +% \begin{document} +% % +% % Title page: +% \include{titlepg} +% % +% % Chapters: +% \include{chapter0} +% \include{chapter1} +% \include{chapter2} +% ... +% % +% \end{document} +% +% Each \include causes a page break and so askinclude probably only makes +% sense in the context of larger documents such as books. +% +% HOW IT WORKS +% +% The askinclude package asks the user which files to include. If +% the user presses return, the files from the previous run are included +% automatically (except on the first run, in which case all files are +% included); if the answer is * all files are included; if the answer +% is - no files are included; otherwise the specified files (separated +% by commas, with no embedded spaces) are included. +% +% RESTRICTIONS +% +% This file redefines \document, the command executed with \begin{document}. +% It may be incompatible with other styles that also redefine \document. +% +% The user's input is not validated. Anything that is not a * or a - or an +% empty line is passed to \includeonly. +% +% ACKNOWLEDGEMENT +% +% Tom Scavo (scavo@cie.uoregon.edu) suggested saving the include file list +% from the previous run and a simplified user interface. + + +\def\@includeonly{\@gobble} % assume we do not include from last run +\def\@inputs{*} % assume all files included + +% determine which files to include + +\def\@star{*} % constant for comparison purposes +\def\@minussign{-} % " " " " + +\typeout { } +\typeout {Enter file(s) to include (separated by commas and no spaces),} +\typeout {or enter * for all files, or enter - for none, or} +\typein [\inputfiles]{press Return if this run is the same as the last.} + +\ifx\inputfiles\@star % all files included + % do nothing +\else \ifx\inputfiles\@minussign % no files included + \includeonly{} + \def\@inputs{} +\else \ifx\inputfiles\empty % include according to previous run + \def\@includeonly#1{% + \gdef\@inputs{#1} + \ifx\@inputs\@star \else \global\@partswtrue\global\edef\@partlist{#1}\fi} +\else + \def\@inputs{\inputfiles} % include these files + \includeonly{\inputfiles} +\fi\fi\fi + + +\AtBeginDocument{\if@filesw + \immediate\write\@mainaux{\string\@includeonly\string{\@inputs + \string}}% + \def\@includeonly{}\fi} + +% END OF FILE askinclude.sty diff --git a/Master/texmf-dist/tex/latex/ltxmisc/texilikecover.sty b/Master/texmf-dist/tex/latex/ltxmisc/texilikecover.sty new file mode 100644 index 00000000000..cdd6deb8042 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ltxmisc/texilikecover.sty @@ -0,0 +1,43 @@ +% texilikecover.sty v 0.1 5-Apr-2007 +% Copyright (C) 2007 by Alberto Simões +% +% These macros may be freely transmitted, reproduced, or modified +% provided that this notice is left intact. +% +% Quick recipe: +% \usepackage{texilikecover} +% \title{My Title} +% \subtitle{My Subtitle} +% \date{Date or version info} +% \author{Name \and Name \and Name} +% +% \begin{document} +% \maketitle +% +% Contact me using ambs -at- cpan -dot- org +% +\ProvidesPackage{texilikecover}[2007/04/05 v 0.1: Texi-like cover for LaTeX2e.] + +\newcommand{\subtitle}[1]{\def\@subtitle{#1}} + +\renewcommand{\and}{\\} + +\renewcommand{\maketitle}{ + \thispagestyle{empty} + \mbox{} + \vfill + \noindent{\huge\bf \@title}\\ + \rule{\textwidth}{3pt} + \begin{flushright} + \vskip -3mm + \@subtitle\\ + \@date + \end{flushright} + \vfill\vfill + \begin{flushleft} + \bf\Large + \@author + \end{flushleft} + \vskip -5mm\rule{\textwidth}{2pt} + \cleardoublepage +}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ltxmisc/url.sty b/Master/texmf-dist/tex/latex/ltxmisc/url.sty index f321d51f567..30baf537521 100644 --- a/Master/texmf-dist/tex/latex/ltxmisc/url.sty +++ b/Master/texmf-dist/tex/latex/ltxmisc/url.sty @@ -1,5 +1,5 @@ -% url.sty ver 3.2 27-Jun-2005 Donald Arseneau asnd@triumf.ca -% Copyright 1996-2005 Donald Arseneau, Vancouver, Canada. +% url.sty ver 3.3 12-Apr-2006 Donald Arseneau asnd@triumf.ca +% Copyright 1996-2006 Donald Arseneau, Vancouver, Canada. % This program can be used, distributed, and modified under the terms % of the LaTeX Project Public License. % @@ -36,9 +36,11 @@ \Url@force@Tilde}% package option may force faked text-ascii-tilde \@namedef{Url@OT1encSpecials}{% - \do\Œ{\mathchar"3E }\do\œ{\mathchar"1B }\do\ß{\mathchar"19 }% + % *Some* latin-1 or windows characters that ot1 has elsewhere: OE oe ss + \do\^^8c{\mathchar30 }\do\^^9c{\mathchar27 }\do\^^df{\mathchar25 }% \do\~{\lower.45ex\hbox{\m@th$\mathchar126$}}% For tt style % lots more to add, but I should later link into inputenc + \do\^^b5{\mu}% \Url@OTnonTT % more for any but typewriter } @@ -46,9 +48,12 @@ \_{\_\penalty\@m}\do\|{\mid}\do\{{\lbrace}\do\}{\mathbin{\rbrace}}\do \\{\mathbin{\backslash}}\UrlTildeSpecial} -\@namedef{Url@T1encSpecials}{\do\µ{\mu}\do\¿{\mathchar190 }% - \do\Œ{\mathchar190 }\do\œ{\mathchar247 }\do\ß{\mathchar255 }% - \do\ÿ{\mathchar184 }} +% *Some* latin-1 or windows characters. Most will pass through safely to T1 enc +% mu inverted-? OE oe +% lots more to add, but I should later link into inputenc +\@namedef{Url@T1encSpecials}{\do\^^b5{\mu}\do\^^bf{\mathchar190 }% + \do\^^8c{\mathchar215 }\do\^^9c{\mathchar247 }\do\^^df{\mathchar255 }% + \do\^^ff{\mathchar184 }} \@namedef{Url@LY1encSpecials}{\do\~{\mathchar158 }} @@ -182,7 +187,7 @@ \def\urlstyle#1{\expandafter\protect\csname url@#1style\endcsname} -\def\DeclareUrlCommand#1#2{\def#1{\begingroup #2\Url}} +\def\DeclareUrlCommand#1#2{\def#1{\leavevmode\begingroup #2\Url}} % Sample (and default) configuration: % @@ -207,13 +212,17 @@ \@ifundefined{ProvidesPackage}{ }{\ProvidesPackage - {url}[2005/06/27 \space ver 3.2 \space Verb mode for urls, etc.] + {url}[2006/04/12 \space ver 3.3 \space Verb mode for urls, etc.] \DeclareOption{hyphens}{\def\do@url@hyp{\do\-}}% allow breaks after hyphens \DeclareOption{obeyspaces}{\let\Url@ObeySp\relax}% a flag for later \DeclareOption{spaces}{\def\Url@sppen{\UrlBreakPenalty}} \DeclareOption{LY1}{} \DeclareOption{T1}{} \DeclareOption{allowmove}{\let\Url@moving\@empty} +\DeclareOption{lowtilde}{% + \def\UrlTildeSpecial{\do\~{\raise.2ex\hbox{\m@th$\scriptstyle\sim$}}} + \let\Url@force@Tilde\UrlTildeSpecial +} \ProcessOptions\relax \ifx\Url@ObeySp\relax % [obeyspaces] was declared \begingroup \lccode`+=32 \lowercase @@ -264,7 +273,7 @@ \endinput % -% url.sty ver 3.2 27-Jun-2005 Donald Arseneau asnd@triumf.ca +% url.sty ver 3.3 12-Apr-2006 Donald Arseneau asnd@triumf.ca % % This package defines "\url", a form of "\verb" that allows linebreaks, % and can often be used in the argument to another command. It can be @@ -309,6 +318,12 @@ % points, but not to display them in the output. This would be easy to % implement, but is left out to avoid(?) confusion.) % +% Package Option: lowtilde +% Normal treatment of the ~ character is to use the font's "\textasciitilde" +% character, if it has one (or claims to). Otherwise, the character is +% faked using a mathematic "\sim". The "[lowtilde]" option causes a +% faked character to be used always (and a bit lower than usual). +% % Defining a defined-url: % Take for example the email address "myself%node@gateway.net" which could % not be given (using "\url" or "\verb") in a caption or parbox due to the @@ -466,6 +481,8 @@ % Fix cmsy-symbols in tt bug (from 3.0); LY1 encoding bug; Enable plain % with miniltx (again); Define the \urldef for hyperref; Lower "sim" tilde % a little; fix \lowercase error in \UrlSpecials handling. +% ver 3.3 April 2006: +% Fix some encoding bugs and remove 8-bit characters. lowtilde option % The End Test file integrity: ASCII 32-57, 58-126: !"#$%&'()*+,-./0123456789 |