From 1436604c912a222eb97ca0668b29a50bac05ea3d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 21 Dec 2014 00:01:48 +0000 Subject: savetrees (20dec14) git-svn-id: svn://tug.org/texlive/trunk@35871 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/savetrees/savetrees.bbx | 46 +++++++++++++++++++++ .../texmf-dist/tex/latex/savetrees/savetrees.cbx | 28 +++++++++++++ .../texmf-dist/tex/latex/savetrees/savetrees.sty | 47 ++++++++++++++++++---- 3 files changed, 114 insertions(+), 7 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/savetrees/savetrees.bbx create mode 100644 Master/texmf-dist/tex/latex/savetrees/savetrees.cbx (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/savetrees/savetrees.bbx b/Master/texmf-dist/tex/latex/savetrees/savetrees.bbx new file mode 100644 index 00000000000..ab3111acbd2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/savetrees/savetrees.bbx @@ -0,0 +1,46 @@ +%% +%% This is file `savetrees.bbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% savetrees.dtx (with options: `bbxfile') +%% +%% This is a generated file. +%% +%% Copyright (C) 2014 by Scott Pakin +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2006/05/20 or later. +%% +\ProvidesFile{savetrees.bbx} + [2014/12/19 v2.3 Pack as much text as possible onto each page] +\RequireBibliographyStyle{numeric-comp} + +\ExecuteBibliographyOptions{% + maxnames = 2, + minnames = 2, + firstinits = true, + isbn = false, + url = false, + doi = false, + eprint = false +} + +\AtBeginDocument{% + \@ifundefined{if@st@tight@bibnotes}{}{% + \if@st@tight@bibnotes + \DeclareFieldFormat{note}{}% + \fi + }% +} +\endinput +%% +%% End of file `savetrees.bbx'. diff --git a/Master/texmf-dist/tex/latex/savetrees/savetrees.cbx b/Master/texmf-dist/tex/latex/savetrees/savetrees.cbx new file mode 100644 index 00000000000..20ce89fbdb0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/savetrees/savetrees.cbx @@ -0,0 +1,28 @@ +%% +%% This is file `savetrees.cbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% savetrees.dtx (with options: `cbxfile') +%% +%% This is a generated file. +%% +%% Copyright (C) 2014 by Scott Pakin +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2006/05/20 or later. +%% +\ProvidesFile{savetrees.cbx} + [2014/12/19 v2.3 Pack as much text as possible onto each page] +\RequireCitationStyle{numeric-comp} +\endinput +%% +%% End of file `savetrees.cbx'. diff --git a/Master/texmf-dist/tex/latex/savetrees/savetrees.sty b/Master/texmf-dist/tex/latex/savetrees/savetrees.sty index e81721393aa..e1fd7228122 100644 --- a/Master/texmf-dist/tex/latex/savetrees/savetrees.sty +++ b/Master/texmf-dist/tex/latex/savetrees/savetrees.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2013 by Scott Pakin +%% Copyright (C) 2014 by Scott Pakin %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3c of this license @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{savetrees} - [2013/04/09 v2.1 Pack as much text as possible onto each page] + [2014/12/19 v2.3 Pack as much text as possible onto each page] \newcommand*{\st@margin@width}{1.5cm} \newcommand*{\st@parindent}{1em} \newcommand*{\st@baselinestretch}{0.95} @@ -30,6 +30,8 @@ \newcommand*{\st@cspace@shrink}{-25} \newcommand*{\st@wspace@factor}{0.8} \RequirePackage{xkeyval} +\RequirePackage{ifpdf} +\RequirePackage{ifluatex} \def\st@more@packages{} \newcommand*{\st@RequirePackage}[2][]{% \PassOptionsToPackage{#1}{#2}% @@ -65,6 +67,7 @@ \st@define@option{wordspacing} \st@define@option{bibliography} \st@define@option{bibnotes} +\st@define@option{bibbreaks} \st@define@option{mathspacing} \st@define@option{mathdisplays} \define@choicekey{savetrees}{all}[\st@arg\st@arg@num]{tight,normal}[tight]{% @@ -82,6 +85,7 @@ \@st@tight@wordspacingtrue \@st@tight@bibliographytrue \@st@tight@bibnotestrue + \@st@tight@bibbreakstrue \@st@tight@mathspacingtrue \@st@tight@mathdisplaystrue \else @@ -98,6 +102,7 @@ \@st@tight@wordspacingfalse \@st@tight@bibliographyfalse \@st@tight@bibnotesfalse + \@st@tight@bibbreaksfalse \@st@tight@mathspacingfalse \@st@tight@mathdisplaysfalse \fi @@ -110,7 +115,8 @@ floats=tight, mathspacing=tight, wordspacing=tight, - tracking=tight + tracking=tight, + bibbreaks=tight }% } \DeclareOptionX{subtle}{\KV@savetrees@subtle} @@ -277,10 +283,17 @@ \markeverypar{\the\everypar\looseness=-1\relax} \fi \if@st@tight@charwidths - \st@RequirePackage[stretch=0,shrink=\st@char@shrink]{microtype} + \ifpdf + \st@RequirePackage[stretch=0,shrink=\st@char@shrink]{microtype} + \fi \fi \if@st@tight@tracking - \st@RequirePackage[letterspace=\st@cspace@shrink,tracking=all]{microtype} + \ifpdf + \ifluatex + \else + \st@RequirePackage[letterspace=\st@cspace@shrink,tracking=all]{microtype} + \fi + \fi \fi \if@st@tight@wordspacing \g@addto@macro\define@newfont{% @@ -309,21 +322,41 @@ \renewcommand\theenumiv{\@arabic\c@enumiv}}% \small \sloppy - \clubpenalty4000 + \clubpenalty150 \@clubpenalty \clubpenalty - \widowpenalty4000% + \widowpenalty150% \sfcode`\.\@m }{% \def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist } + \AtBeginDocument{% + \@ifundefined{bibfont}{}{% + \renewcommand*{\bibfont}{\normalfont\small}% + \bibitemsep=0pt plus 2pt\relax + }% + }% \fi \if@st@tight@bibnotes \newcommand{\savetreesbibnote}[1]{\@gobble} \else \newcommand{\savetreesbibnote}[1]{#1} \fi +\if@st@tight@bibbreaks + \AtBeginDocument{% + \@ifundefined{bibsetup}{}{% + \renewcommand*{\bibsetup}{% + \interlinepenalty=100\relax + \widowpenalty=100\relax + \clubpenalty=100\relax + \raggedbottom + \frenchspacing + \biburlsetup + }% + }% + }% +\fi \if@st@tight@mathspacing \AtBeginDocument{% \thinmuskip=0mu plus 3mu -- cgit v1.2.3