diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-24 21:27:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-24 21:27:53 +0000 |
commit | 4c112777c49cfb407c74d33e498cbe518f9855f1 (patch) | |
tree | 6f52d3140160b138e8d0d24c3ebab5c38ff09273 /Master/texmf-dist/doc | |
parent | 2236aa997752da2d5e58d66c85b42e6a0ad8a108 (diff) |
langsci (24apr17)
git-svn-id: svn://tug.org/texlive/trunk@44027 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
6 files changed, 323 insertions, 48 deletions
diff --git a/Master/texmf-dist/doc/xelatex/langsci/README.md b/Master/texmf-dist/doc/xelatex/langsci/README.md index ab936dbe555..73397b3ac59 100644 --- a/Master/texmf-dist/doc/xelatex/langsci/README.md +++ b/Master/texmf-dist/doc/xelatex/langsci/README.md @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Project: langsci %% Author: Language Science Press (http://langsci-press.org) -%% Date: 2016-05-10 11:11:11 UTC +%% Date: 2017-04-24 11:11:11 UTC %% Purpose: publishing boks with Language Science Press. %% Languages: LaTeX, tikz, eps %% Copyright 2012- Language Science Press @@ -22,15 +22,18 @@ %% - series.def: metadata for series %% - colors.def: colors used by the series %% - langsci-basic.sty for commands required by the standard template -%% - bib style definitions langsci-unified.bst, biblatex-langsci-unified.bbx, langsci-authoryear-comp.cbx -%% - files for the logos used in the textbook series Textbooks in Language Sciences: book.eps bulb.eps glass.eps law.eps +%% - bib style definitions langsci-unified.bst, biblatex-langsci-unified.bbx, langsci-authoryear-comp.cbx, biblatex-langsci-unified-undecap.bbx +%% - files for the logos used in the textbook series Textbooks in Language Sciences: tbls-book.eps tbls-bulb.eps tbls-glass.eps tbls-law.eps %% - the file logo.pdf as a dummy, to be replaced with a file for the hosting institution %% - a file advertisement.tex added to the very last page in tikz %% - langsci-optional.sty: additional useful commands %% - langsci-gb4e.sty and langsci-cgloss.sty: typeset linguistic examples %% - langsci-forest-setup.sty: definitions for linguistic trees %% - langsci-bidi.sty: bidirectional text -%% - langsci-tbls.sty: macros for the textbook series Textbooks in Language Sciences +%% - langsci-tbls.sty: macros for the textbook series Textbooks in Language Sciencesjambox.sty +%% - langsci-glyphs.sty: some workarounds for Libertine font limitations +%% - langsci-linguex.sty: a version of linguex which does not break gb4e +%% - langsci-subparts.sty: adds an additional sectioning level between part and chapter %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -48,10 +51,13 @@ The main file is the file langscibook.cls. This defines the basic structure of t The following optional packages are also provided, but have to be included manually if desired: - `langsci-optional.sty`: additional useful commands -- `langsci-gb4e.sty` and langsci-cgloss.sty typeset linguistic examples +- `langsci-gb4e.sty` and `langsci-cgloss.sty` typeset linguistic examples +- `langsci-linguex.sty`: a version of linguex which does not break gb4e - `langsci-forest-setup.sty`: definitions for linguistic trees - `langsci-bidi.sty`: bidirectional text -- `langsci-tbls.sty`: macros for the textbook series Textbooks in Language Sciences +- `langsci-tbls.sty`: macros for the textbook series Textbooks in Language Sciences +- `langsci-glyphs.sty`: some shortcuts for font workarounds +- `langsci-subparts.sty`: adds an additional sectioning level between part and chapter Documentation is found in the folder `documentation/`. diff --git a/Master/texmf-dist/doc/xelatex/langsci/avm.sty b/Master/texmf-dist/doc/xelatex/langsci/avm.sty new file mode 100755 index 00000000000..03e57511cfe --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/avm.sty @@ -0,0 +1,184 @@ +%% avm.sty - a style file for attribute-value matrices +%% Copyright 1992, 1993, 2006, 2013 Christopher Manning (manning@cs.stanford.edu) +% +% v 1.00 mar 29, 1992 +% v 1.01 dec 6, 1993 +% v 1.02 jan 5, 2006 +% v 1.03 dec 8, 2013 +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Christopher Manning. +% +% This work consists of the files avm.sty, avm-doc.tex, avm-test.tex. + +\newif\ifavmactive\newif\ifavmsorted\newif\ifavmlabeled +\newif\ifavmcenter\newif\ifavmbottom +\newif\ifavmbottomright\newif\ifavmtopleft\newif\ifavmtopright + +\newdimen\avmdimen +\newbox\avmboxone\newbox\avmboxthree + +\def\avmoptions#1{\avmactivefalse\avmsortedfalse\avmlabeledfalse + \avmcenterfalse\avmbottomfalse + \avmbottomrightfalse\avmtopleftfalse\avmtoprightfalse + \def\more{#1}\ifx\more\empty\else\avmjoptions#1,\@nil\fi} +\def\avmjoptions#1,#2\@nil{\def\more{#2}\csname avm#1true\endcsname + \ifx\more\empty\else\avmjoptions#2\@nil\fi} + + +\def\avmfont#1{\def\avmjfont{#1}} +\def\avmjfont{} + +\def\avmvalfont#1{\def\avmjvalfont{#1}} +\def\avmjvalfont{} + +\def\avmsortfont#1{\def\avmjsortfont{#1}} +\def\avmjsortfont{} + +\def\avmhskip#1{\def\avmjhskip{#1}} +\def\avmjhskip{1em} + +\def\avmbskip#1{\def\avmjbskip{#1}} +\def\avmjbskip{0em} + +\def\avmvskip#1{\def\avmjvskip{#1}} +\def\avmjvskip{0.385ex}%was .3875 + + +\def\avmjprolog#1{$\mskip-\thinmuskip + \left#1\hskip\avmjbskip\vcenter\bgroup\vskip\avmjvskip + \ialign\bgroup\avmjfont + \strut ##\unskip\hfil + &&\hskip\avmjhskip\avmjvalfont ##\unskip\hfil\cr} +\def\avmjpostlog#1{\crcr\egroup\vskip\avmjvskip\egroup + \hskip\avmjbskip\right#1\mskip-\thinmuskip$\ignorespaces} + + +\def\avmjcatcode{\let\lparen=(\let\rparen=)\catcode`\[=13\catcode`\]=13 + \catcode`\<=13\catcode`\@=13\catcode`\(=13\catcode`\)=13 + \catcode`\>=13\catcode`\|=13} + +{\avmjcatcode % new group: redefine above catcodes as active + +\gdef\specialavm{\avmjcatcode +\def({\avmjprolog\lparen}% +\def){\avmjpostlog\rparen}% +\def<{\avmjprolog\langle}% +\def>{\avmjpostlog\rangle}% +\ifavmsorted +\def[##1{\setbox\avmboxthree=\hbox{\avmjsortfont##1\/}\setbox2=\hbox + \bgroup\avmjprolog\lbrack}% +\def]{\avmjpostlog\rbrack\egroup\avmjsort}% +\else\ifavmlabeled +\def[##1{\def\more{##1}\setbox2=\hbox\bgroup\avmjprolog[}% +\def]{\avmjpostlog]\egroup\node{\more}{\box2}}% +\else +\def[{\avmjprolog\lbrack}% +\def]{\avmjpostlog\rbrack}% +\fi\fi +% +\def\<{$\langle$}\def\>{$\rangle$}% +\def\({\lparen} +\def\){\rparen}% +\def\[{\lbrack} +\def\]{\rbrack}% +\def|{$\,\vert\,$}% +\def@##1{\avmbox{##1}}% +} % end defn of \specialavm +} % restore active catcodes + + +\long\def\avm{\begingroup +\ifavmactive\specialavm +\else +\def\({\avmjprolog(}% +\def\){\avmjpostlog)}% +\def\<{\avmjprolog\langle}% +\def\>{\avmjpostlog\rangle}% +% +\ifavmsorted +\def\[##1{\setbox\avmboxthree=\hbox{\avmjsortfont##1\/}\setbox + 2=\hbox\bgroup\avmjprolog[}% +\def\]{\avmjpostlog]\egroup\avmjsort}% +\else\ifavmlabeled +\def\[##1{\def\more{##1}\setbox2=\hbox\bgroup\avmjprolog[}% +\def\]{\avmjpostlog]\egroup\node{\more}{\box2}}% +\else +\def\[{\avmjprolog[}% +\def\]{\avmjpostlog]}% +\fi\fi +% +\def\|{$\,\vert\,$}% +\def\@##1{\avmbox{##1}}% +\fi % end not active +% +\ifx\LaTeX\undefined\def\\{\cr}% running under TeX +\else \ifx\@tabularcr\relax +\def\\{\@arraycr}% fix for the Mainz array package +\else +\def\\{\@tabularcr}% Leverage off LaTeX's \\*[dimen] options +\fi +\fi +\def\!{\node}% +\long\def\avmjsort{\dimen2=\ht2\advance\dimen2 by -.25\baselineskip + \global\dimen\avmdimen=\wd\avmboxthree + \ifavmtopleft \raise\dimen2\llap{\box\avmboxthree}\box2% + \else\ifavmtopright \box2\raise\dimen2\box\avmboxthree + \else\ifavmbottomright \box2\lower\dimen2\box\avmboxthree + \else \lower\dimen2\llap{\box\avmboxthree}\box2% + \fi\fi\fi}% +\long\def\sort##1##2{\setbox2=\hbox{##2}\setbox + \avmboxthree=\hbox{\avmjsortfont##1\/}\dimen2=\ht2% + \advance\dimen2 by -.25\baselineskip + \ifavmtopleft \raise\dimen2\box\avmboxthree\box2% + \else\ifavmtopright \box2\raise\dimen2\box\avmboxthree% + \else\ifavmbottomright \box2\lower\dimen2\box\avmboxthree% + \else \lower\dimen2\box\avmboxthree\box2% + \fi\fi\fi}% +\long\def\osort##1##2{\setbox2=\hbox{##2}\setbox + \avmboxthree=\hbox{\avmjsortfont ##1\/}\avmjsort}% +\def\asort##1{\avmspan{\avmjsortfont ##1}\\}% +\def\avml{\avmjprolog.}% +\def\avmr{\avmjpostlog.}% +\def\avmb##1{\node{##1}{\lbrack\;\rbrack}}% +\def\avmd##1{\node{##1}{---}}% +\def\q##1{\ifx ##1\{$\lbrace$\else + \ifx ##1\}$\rbrace$\else + \ifx ##1<$\langle$\else + \ifx ##1>$\rangle$\fi \fi \fi \fi}% +\def\{{\avmjprolog\lbrace}% +\def\}{\avmjpostlog\rbrace}% +\def\;{\hskip\avmjhskip}% +\def\avmspan##1{\multispan2\strut ##1\expandafter\hfil}% +\avmjfont +\openup\avmjvskip +\setbox\avmboxone=\hbox\bgroup\ignorespaces +} % end defn of \avm + + +\def\endavm{\egroup\ifvmode\leavevmode\fi % this if is useful! + \ifavmsorted\null\hskip\dimen\avmdimen\fi + \ifavmcenter + \box\avmboxone + \else \ifavmbottom + \lower.575\baselineskip\hbox{\vbox{\box\avmboxone\null}}% + \else +% the next bit is ripped off from Emma's \evnup in lingmacros.sty + \dimen2=\ht\avmboxone\advance\dimen2 by -.725\baselineskip + \lower\dimen2\box\avmboxone +\fi \fi \endgroup} + + +% based on TeXbook exercise 21.3 +\def\avmbox#1{\setbox2=\hbox{$\scriptstyle #1$}\lower.2ex\vbox{\hrule + \hbox{\vrule\kern1.25pt + \vbox{\kern1.25pt\box2\kern1.25pt}\kern1.25pt\vrule}\hrule}} diff --git a/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex b/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex index cd0090f84a5..5255a5e256a 100644 --- a/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex +++ b/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex @@ -1,7 +1,6 @@ \documentclass[% -modfonts, output=guidelines, -guidelines]{langscibook} +guidelines]{../langscibook} \author{Sebastian Nordhoff} \title{The \texttt{langscibook} {\LaTeX} class} \subtitle{} @@ -41,7 +40,7 @@ This document describes the {\LaTeX} class langscibook.cls. This class is used f \chapter{The class} The class is loaded via \verb+\documentclass{langscibook}+. The standard use case is the creation of a book. If used without an \texttt{output=} option, the option \texttt{output=book} is loaded. The class can also be used to create dust jackets for books with different measurements via the output option values \texttt{covercreatespace} (for \url{http://www.createspace.com}) and -\texttt{coverbod} (for \url{http://www.bod.de}). +\texttt{coverbodsc/coverbodhc} (for \url{http://www.bod.de}). The class provides for the following: \begin{itemize} @@ -78,6 +77,9 @@ A couple of additional style files come with the class. Documents using this cla % \item \texttt{langsci-lgr.sty}: \item \texttt{langsci-tbls.sty}: Package for the textbook series Textbooks in Language Sciences \item \texttt{langsci-bidi.sty}: Package for typesetting right-to-left text +% \item \texttt{langsci-glyphs.sty}: some shortcuts for font workarounds +% \item \texttt{langsci-subparts.sty}: adds an additional sectioning level between part and chapter + \end{itemize} \section{Colors and series definitions} @@ -87,7 +89,7 @@ The metadata for Language Science Press book series are stored in the file \text The easiest way to start a book is to download the skeletons from \url{http://langsci-press.org/templatesAndTools}. Sample documents for monographs, edited volumes and chapters in edited volumes are provided in the folder \texttt{samples/} as well. \section{Creating a monograph} -Load the class. Make sure the following metadata values are set, either as options or with the metadata commands listed in \sectref{sec:metadatacommands}: +Load the class. Make sure the following metadata values are set with the metadata commands listed in \sectref{sec:metadatacommands}: \begin{itemize} \item author @@ -115,7 +117,7 @@ Provide the following additional information if necessary: \section{Creating an edited volume} -Proceed as for a monograph, but use the option \texttt{collection}. Use \verb+\author+ for the editor(s). You may want to use the further options \texttt{collectionchapter} and \texttt{collectiontoclong}. Chapters are included via \verb+\includepaper{}+. Set the bibliography resource for all papers in the main file. +Proceed as for a monograph, but use the option \texttt{collection}. Use \verb+\author+ for the editor(s). Use the option \texttt{multiauthors} if there is more than one editor. You may want to use the further options \texttt{collectionchapter} and \texttt{collectiontoclong}. Chapters are included via \verb+\includepaper{}+. Set the bibliography resource for all papers in the main file. \section{Creating a paper for an edited volume} @@ -126,15 +128,14 @@ Use the output option \texttt{paper}. Provide the following metadata in the prea \item \verb+\abstract+ (optional) \end{itemize} -You might want to redefine \verb+\rohead+ for chapters with very long titles. +You might want to use \verb+\shorttitlerunninghead+ for chapters with very long titles. \chapter{Creating a dust jacket} -Use the option \texttt{coverbod} or \texttt{covercreatespace}. Set the lengths \verb+\bodspine+ and \verb+\csspine+. For \texttt{covercreatespace} set the further output option \texttt{coverus} if desired. Run {\XeLaTeX} twice. Upload to the respective websites to see whether the lengths were chosen correctly. +Use the option \texttt{coverbodhc}, \texttt{coverbodsc} or \texttt{covercreatespace} and set the option \texttt{spinewidth}. Run {\XeLaTeX} twice. Upload to the respective websites to see whether the lengths were chosen correctly. \chapter{Options} -The class has flag options to toggle certain behaviour and string options to set metadata values. -The metadata values can all also be set via the metadata commands listed in \sectref{sec:metadatacommands}. +The class has flag options to toggle certain behaviour and string options to set metadata values. \section{Flag options} % \option{blackandwhite} @@ -143,39 +144,36 @@ The metadata values can all also be set via the metadata commands listed in \sec % \option{smallfont} % use 10pt as fontsize % {false -\option{draftmode}{Switch to draft mode (adds: draft stamp, indication of overlong lines, date)}{false} -\option{openreview}{Switch to open review mode}{false} % \option{noindex} % remove index} % {false -\option{nonflat}{Use elaborate directory structure. If set to true, fonts, packages etc will be loaded from subfolders. If set to false, they will be loaded from the working directory}{false} -\option{modfonts}{Use modified fonts provided by Language Science Press}{false} -\option{showindex}{Show indexed terms in margin}{false} \option{biblatex}{Use Bib\LaTeX}{true} \option{bibtex}{Use Bibtex}{false} -\option{newtxmath}{Switch math fonts to newtxmath}{false} \option{collection}{Make the book an edited volume}{false} \option{collectionchapter}{Add numeric chapter prefix to each contribution.}{false} -\option{collectiontoclong}{More detailed table of content in edited volumes}{false} -\option{coverus}{Use \texttt{isbnsoftcoverus} instead of \texttt{isbnsoftcover} if \texttt{output=covercreatespace}}{false} - -\section{String options} -\option{number}{Number of the book within the series}{"??"} -\option{issn}{ISSN of the series this book will appear in}{"??"} -\option{isbndigital}{The ISBN of the digital release}{"000-0-000000-00-0"} -\option{isbnsoftcover}{The ISBN of the soft cover release}{"000-0-000000-00-0"} -\option{isbnsoftcoverus}{The ISBN of the US version of soft cover release (used for distribution to US academic institutions)}{"000-0-000000-00-0"} -\option{isbnhardcover}{The ISBN of the hard cover release}{"000-0-000000-00-0"} -\option{url}{The URL of the book }{"http://langsci-press.org/catalog"} -\option{series}{The series code (see \texttt{series.def} for a list of acronyms)}{"eotms"} +\option{collectiontoclong}{More detailed table of content in edited volumes}{false} +\option{draftmode}{Switch to draft mode (adds: draft stamp, indication of overlong lines, date)}{false} +\option{openreview}{Switch to open review mode}{false} +\option{modfonts}{Use modified fonts provided by Language Science Press}{false} +\option{multiauthors}{Set editor suffix to eds. instead of ed.}{false} +\option{newtxmath}{Switch math fonts to newtxmath}{false} +\option{nobabel}{Do not use the Babel package in the class}{false} +\option{nonflat}{Use elaborate directory structure. If set to true, fonts, packages etc will be loaded from subfolders. If set to false, they will be loaded from the working directory}{false} +\option{showindex}{Show indexed terms in margin}{false} +\option{smallfont}{Use a smaller font for books above 500 pages}{false} +\option{undecapitalize}{Do not decapitalize titles in the list of references}{false} + +\section{String options} \option{output}{Different output formats}{book} \begin{itemize} \item \texttt{book}: The book with frontcover and backcover \item \texttt{inprep}: Mark manuscript as in preparation \item \texttt{paper}: Contribution to edited volume \item \texttt{guidelines}: Choose color grey; condense frontmatter -\item \texttt{coverbod}: Create a two-page wide cover (back-spine-front) for use with BoD +\item \texttt{coverbodsc}: Create a two-page wide cover (back-spine-front) for use with BoD hardcover books +\item \texttt{coverbodsc}: Create a two-page wide cover (back-spine-front) for use with BoD softcover books \item \texttt{covercreatespace}: Create a two-page wide cover (back-spine-front) for use with CreateSpace +\item \texttt{spinewidth}{The width of the spine (for cover creation)} \end{itemize} \option{copyright}{The license chosen}{"CC-BY"} \option{biblatexbackend}{The backend of BibLaTeX}{"bibtex"} @@ -205,7 +203,7 @@ Alternative: \texttt{biber} \section{Metadata commands}\label{sec:metadatacommands} -The following commands are used to indicated metadata. These commands can override the options passed to the class. +The following commands are used to indicated metadata. \option{$\backslash$BackBody}{Text to be printed on the back cover}{Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.} @@ -218,7 +216,7 @@ myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lin \option{$\backslash$ISBNsoftcover}{ISBN for the softcover version}{000-0-000000-00-0} \option{$\backslash$ISBNsoftcoverus}{ISBN for the softcover version (US distribution)}{000-0-000000-00-0} \option{$\backslash$Series}{The series this book appears in. Use the acronyms found in \texttt{series.def}}{eotms} -\option{$\backslash$SeriesNumber}{Number of the book in the series}{??} +\option{$\backslash$SeriesNumber}{Position of the book in its series}{??} \option{$\backslash$URL}{The URL where this title can be downloaded}{http://langsci-press.org/catalog} @@ -231,15 +229,14 @@ The following commands allow to override further default settings: \section{Command redefinitions} Redefine the following commands to further alter the appearance: -\option{$\backslash$lsAdvertisement}{specify the advertisement on the last page of the book}{$\backslash$include\{$\backslash$logopath didyoulikethisbook\}} +\option{$\backslash$lsAdvertisement}{Specify the advertisement on the last page of the book}{$\backslash$include\{$\backslash$logopath didyoulikethisbook\}} \option{$\backslash$lsBackBodyFont}{Font used for text on back cover}{\textrm{main font}} \option{$\backslash$lsBackTitleFont}{Font used for title on back cover}{$\backslash$sffamily$\backslash$addfontfeatures{Scale=MatchUppercase}\\$\backslash$fontsize\{25pt\}\{10mm\}$\backslash$selectfont} \option{$\backslash$lsCopyright}{Choice of licence}{CC-BY} \option{$\backslash$lsCoverAuthorFont}{Font for author/editor on cover}{$\backslash$fontsize\{25pt\}\{12.5mm\}$\backslash$selectfont} -\option{$\backslash$lsCoverSubTitleFont}{Font for the subtitle}{$\backslash$sffamily$\backslash$addfontfeatures\{Scale=MatchUppercase\}\\ -$\backslash$fontsize\{25pt\}\{10mm\}$\backslash$selectfont} -% \option{$\backslash$lsCoverTitleFont -\option{$\backslash$lsEditorPrefix}{How editors are indicated on title page. Useful for localization.}{{$\backslash$LARGE Edited by}\\} +\option{$\backslash$lsCoverSubTitleFont}{Font for the subtitle}{$\backslash$sffamily$\backslash$addfontfeatures\{Scale=MatchUppercase\}\\ $\backslash$fontsize\{25pt\}\{10mm\}$\backslash$selectfont} +\option{$\backslash$lsCoverTitleFont}{Font for the title}{$\backslash$sffamily$\backslash$addfontfeatures{Scale=MatchUppercase}\\ $\backslash$fontsize{52pt}{17.25mm}$\backslash$selectfont} +\option{$\backslash$lsEditorPrefix}{How editors are indicated on title page. Useful for localization.}{{$\backslash$LARGE Edited by$\backslash$$\backslash$}} \option{$\backslash$lsFontsize}{size of main font}{11pt} \option{$\backslash$lsImpressumCitationText}{custom citation text, useful for including notes etc.}{\textrm{computed from author and title fields}} \option{$\backslash$lsISSN}{ISSN of the series}{??} diff --git a/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex b/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex index 5cc60836589..dbb890b197f 100644 --- a/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex +++ b/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex @@ -13,10 +13,7 @@ \dedication{For Mom and Dad} \typesetter{Jane Doe} \proofreader{John Doe} -\BackBody{What everyone should know about monographs: it's here} - -\setlength{\csspine}{25.0559784mm} -\setlength{\bodspine}{20mm} +\BackBody{What everyone should know about monographs: it's here} \bibliography{localbibliography} \begin{document} diff --git a/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex b/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex index e912be8bcad..633e8375b83 100644 --- a/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex +++ b/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex @@ -1,8 +1,6 @@ \documentclass[output=book ,collection - ,collectionchapter - ,collectiontoclongg - ,biblatex + ,collectionchapter ]{langscibook} \author{Jane Doe} diff --git a/Master/texmf-dist/doc/xelatex/langsci/jambox.sty b/Master/texmf-dist/doc/xelatex/langsci/jambox.sty new file mode 100644 index 00000000000..ccf65af5762 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/jambox.sty @@ -0,0 +1,93 @@ +%%%%%%%%%%%%%%%%%% JAMBOX: RIGHT-COLUMN ANNOTATIONS %%%%%%%%%%%%%%%% +% +% Alexis Dimitriadis +% +% This is version 0.3 (informal release, Nov. 2003). +% +% Line up material a fixed distance from the right margin. For annotating +% example sentences, usually with a short note in parentheses. +% May overflow to the left or right, or line up on the next line as necessary. +% +% \jambox[width]{text} Align 'text' starting 'width' distance from the +% right margin (default \the\jamwidth). +% \jam(something) Align a note delimited by parentheses (which are +% retained). No optional argument. +% \jambox*{text} Set \jamwidth to the width of 'text', then align it. +% (\jamwidth stays set for the rest of the environment). +% +% Notes: +% +% Distance from the right margin can be set to an explicit amount, or to the +% width of some piece of text, as follows: +% +% \jamwidth=2in\relax Or +% \settowidth\jamwidth {(``annotation'')} +% +% \jamwidth is locally scoped, so it can be set globally or inside an example +% environment. +% +% BUG: Not compatible with ragged-right mode. +% +% Incompatibilities: Not useful with the vanilla cgloss4e.sty, which ends +% glossed lines prematurely. +% I do have a suitably modified file, cgloss.sty. With it you can do the +% following: +% \gll To kimeno. \\ +% the text \\ \jambox{(Greek)} +% \trans `The text.' + + +\newdimen\jamwidth \jamwidth=2in +\def\jambox{\@ifnextchar[{\@jambox} + {\@ifnextchar*{\@jamsetbox}{\@jambox[\the\jamwidth]}}} + +% Quickie invocation: The argument is delimited by the parentheses (no width +% argument allowed). I redefine it in my documents to add formatting. +% Syntax: \jam(Some note) +% +\def\jam(#1){\jambox{(#1)}} + +% Set width AND display the argument. +% The star is read and ignored; the argument #1 is boxed, used to set +% \jamwidth, then passed to \@jambox (which also puts it in \@tempboxa!) +% +\def\@jamsetbox*#1{\setbox\@tempboxa\hbox{#1}\jamwidth=\wd\@tempboxa + \@jambox[\the\jamwidth]{\box\@tempboxa}} + +%% Version 1: old & stupid +%% \def\@jambox[#1]#2{\hfill\hbox to #1 {#2\hfil}} + +% Version 2: +% Always takes up \jamwidth space, even if it means breaking the line. But it +% works on ragged-right mode, too. +% \def\@jambox[#1]#2{\setbox\@tempboxa\hbox {#2\hfil}% +% \ifdim \wd\@tempboxa<#1\relax \wd\@tempboxa=#1\relax\fi +% \hskip 0.5em plus 1fill +% \penalty 100\vadjust{}\nobreak\hfill\box\@tempboxa\par} +% The penalty enables a break. \vadjust inserts an empty element +% at the beginning of the next line, protecting \hfill from being discarded. + +% Version 3: +% This seems to cover everything! But unfortunately, it won't work in +% ragged-right mode-- the line is broken BEFORE the last word, to make enough +% space... +\def\@jambox[#1]#2{{\setbox\@tempboxa\hbox {#2}% + \ifdim \wd\@tempboxa<#1\relax % if label fits in the alloted space: + \@tempdima=#1\relax \advance\@tempdima by-\wd\@tempboxa % remaining \hspace + \unskip\nobreak\hfill\penalty250 % break line here if necessary + \hskip 1.2em minus 1.2em % used when the line extends past the margin + \hbox{}\nobreak\hfill\box\@tempboxa\nobreak + \hskip\@tempdima minus \@tempdima\hbox{}% + \else % the label is too wide: just right-align it + \hfill\penalty50\hbox{}\nobreak\hfill\box\@tempboxa + \fi + % suppress closing glue: + \parfillskip=0pt \finalhyphendemerits=0 \par}} +% The penalty enables a break, taken only if the line cannot fit. +% The \hbox{} ensures the next line does not begin with \hfill, which would +% be discarded if initial. +% (\vadjust inserts an empty element at the beginning of the next line, so +% that COULD be used instead of \hbox{}). +% Algorithm adapted from The TeXBook. +% +% The closing \par could be a problem if there is a \parskip... |