diff options
Diffstat (limited to 'Master/texmf-dist')
30 files changed, 6415 insertions, 0 deletions
diff --git a/Master/texmf-dist/bibtex/bst/langsci/langsci-unified.bst b/Master/texmf-dist/bibtex/bst/langsci/langsci-unified.bst new file mode 100644 index 00000000000..92a187c20b4 --- /dev/null +++ b/Master/texmf-dist/bibtex/bst/langsci/langsci-unified.bst @@ -0,0 +1,1578 @@ +%%% This version was modified by Language Science Press to include the PERIODICAL entry type +%%% +%%% This is unified.bst, made by Bridget Samuels. It is based on sp.bst (v1.9+) +%%% coded by Kai von Fintel as the house style for bibliographies in the journal +%%% Semantics and Pragmatics. The style is based on a style generated +%%% with custom-bib/merlin.mbs, a system for customizing bibliographic styles +%%% created by Patrick W Daly. There have been some hand-coded adjustments to that +%%% style to get the style closer to the Unified Style Sheet for Linguistics Journals. +%%% +%%% Please note that unified.bst does not supply periods after abbreviated authors' names +%%% (which are anyway discouraged by the Unified Style Sheet for Linguistics Journals). Also, +%%% article titles are changed to lower case. In order to protect capitals, it is necessary to +%%% enclose the relevant material in curly brackets. +%%% +%%% Version 1.2 [6 Mar 2010] Improved handling of multiple non-numerical year items by the same author. Should now output, e.g., "To appear(a)" +%%% Version 1.1 [2 Feb 2010] Added comma before vol. +%%% Version 1.0 [22 Aug 2009] Changes from sp.bst include conforming to the Unified +%%% Style Sheet format for PhD & MA theses and citing URLs for online materials (use +%%% misc or unpublished as the category). +%% + +ENTRY + { address + author + booktitle + chapter + doi + edition + editor + eid + howpublished + institution + journal + key + month + note + number + organization + pages + publisher + school + series + title + type + url + volume + year + } + {} + { label extra.label sort.label short.list } +INTEGERS { output.state before.all mid.sentence after.sentence after.block } +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := +} +STRINGS { s t} +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { " " * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} +FUNCTION {fin.entry} +{ add.period$ + write$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { after.block 'output.state := } + if$ +} +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ +} +FUNCTION {add.blank} +{ " " * before.all 'output.state := +} + +FUNCTION {add.colon} +{ ": " * before.all 'output.state := +} + +FUNCTION {add.comma} +{ ", " * before.all 'output.state := +} + + +FUNCTION {date.block} +{ + new.block +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} +FUNCTION {emphasize} +{ duplicate$ empty$ + { pop$ "" } + { "\emph{" swap$ * "}" * } + if$ +} +FUNCTION {tie.or.space.prefix} +{ duplicate$ text.length$ #3 < + { "~" } + { " " } + if$ + swap$ +} + +FUNCTION {capitalize} +{ "u" change.case$ "t" change.case$ } + +FUNCTION {space.word} +{ " " swap$ * " " * } + +FUNCTION {bbl.and} +{ "\&"} + +FUNCTION {bbl.etal} +{ "et~al." } + +FUNCTION {bbl.editors} +{ "eds." } + +FUNCTION {bbl.editor} +{ "ed." } + +FUNCTION {bbl.edby} +{ "edited by" } + +FUNCTION {bbl.edition} +{ "edn." } + +FUNCTION {bbl.volume} +{ "vol." } + +FUNCTION {bbl.of} +{ "of" } + +FUNCTION {bbl.number} +{ "no." } + +FUNCTION {bbl.nr} +{ "no." } + +FUNCTION {bbl.in} +{ "in" } + +FUNCTION {bbl.pages} +{ "" } + +FUNCTION {bbl.page} +{ "" } + +FUNCTION {bbl.chapter} +{ "chap." } + +FUNCTION {bbl.techrep} +{ "Tech. Rep." } + +FUNCTION {bbl.mthesis} +{ "MA thesis" } + +FUNCTION {bbl.phdthesis} +{ "dissertation" } + +FUNCTION {bbl.first} +{ "1st" } + +FUNCTION {bbl.second} +{ "2nd" } + +FUNCTION {bbl.third} +{ "3rd" } + +FUNCTION {bbl.fourth} +{ "4th" } + +FUNCTION {bbl.fifth} +{ "5th" } + +FUNCTION {bbl.st} +{ "st" } + +FUNCTION {bbl.nd} +{ "nd" } + +FUNCTION {bbl.rd} +{ "rd" } + +FUNCTION {bbl.th} +{ "th" } + +MACRO {jan} {"Jan."} + +MACRO {feb} {"Feb."} + +MACRO {mar} {"Mar."} + +MACRO {apr} {"Apr."} + +MACRO {may} {"May"} + +MACRO {jun} {"Jun."} + +MACRO {jul} {"Jul."} + +MACRO {aug} {"Aug."} + +MACRO {sep} {"Sep."} + +MACRO {oct} {"Oct."} + +MACRO {nov} {"Nov."} + +MACRO {dec} {"Dec."} + +FUNCTION {eng.ord} +{ duplicate$ "1" swap$ * + #-2 #1 substring$ "1" = + { bbl.th * } + { duplicate$ #-1 #1 substring$ + duplicate$ "1" = + { pop$ bbl.st * } + { duplicate$ "2" = + { pop$ bbl.nd * } + { "3" = + { bbl.rd * } + { bbl.th * } + if$ + } + if$ + } + if$ + } + if$ +} + +FUNCTION {bibinfo.check} +{ swap$ + duplicate$ missing$ + { + pop$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ pop$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {bibinfo.warn} +{ swap$ + duplicate$ missing$ + { + swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ + "" + } + { duplicate$ empty$ + { + swap$ "empty " swap$ * " in " * cite$ * warning$ + } + { swap$ + pop$ + } + if$ + } + if$ +} +FUNCTION {format.url} +{ url empty$ + { "" } + { "\urlprefix\url{" url * "}" * } + if$ +} + +INTEGERS { nameptr namesleft numnames } + + +STRINGS { bibinfo} + +FUNCTION {format.names} +{ 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + duplicate$ #1 > + { "{ff~}{vv~}{ll}{, jj}" } + { "{vv~}{ll}{, ff}{, jj}" } + if$ + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + " " * bbl.etal * + } + { + bbl.and + space.word * t * + } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.names.ed} +{ + 'bibinfo := + duplicate$ empty$ 'skip$ { + 's := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{ff~}{vv~}{ll}{, jj}" + format.name$ + bibinfo bibinfo.check + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + + " " * bbl.etal * + } + { + bbl.and + space.word * t * + } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ + } if$ +} +FUNCTION {format.key} +{ empty$ + { key field.or.null } + { "" } + if$ +} + +FUNCTION {format.authors} +{ author "author" format.names +} +FUNCTION {get.bbl.editor} +{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } + +FUNCTION {format.editors} +{ editor "editor" format.names duplicate$ empty$ 'skip$ + { + " " * + get.bbl.editor + "(" swap$ * ")" * + * + } + if$ +} +FUNCTION {format.doi} +{ doi "doi" bibinfo.check + duplicate$ empty$ 'skip$ + { + new.block + "\doi{" swap$ * "}" * + } + if$ +} +FUNCTION {format.note} +{ + note empty$ + { "" } + { note #1 #1 substring$ + duplicate$ "{" = + 'skip$ + { output.state mid.sentence = + { "l" } + { "u" } + if$ + change.case$ + } + if$ + note #2 global.max$ substring$ * "note" bibinfo.check + } + if$ +} + +FUNCTION {format.title} +{ title + duplicate$ empty$ 'skip$ + { "t" change.case$ } + if$ + "title" bibinfo.check +} +FUNCTION {format.full.names} +{'s := + "" 't := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}" format.name$ + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + " " * bbl.etal * + } + { + bbl.and + space.word * t * + } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {author.editor.key.full} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.full.names } + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {author.key.full} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {editor.key.full} +{ editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.full.names } + if$ +} + +FUNCTION {make.full.names} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.full + { type$ "proceedings" = + 'editor.key.full + 'author.key.full + if$ + } + if$ +} + +FUNCTION {output.bibitem} +{ newline$ + "\bibitem[{" write$ + label write$ + ")" make.full.names duplicate$ short.list = + { pop$ } + { * } + if$ + "}]{" * write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {n.dashify} +{ + 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { t #1 #2 substring$ "--" = not + { "--" * + t #2 global.max$ substring$ 't := + } + { { t #1 #1 substring$ "-" = } + { "-" * + t #2 global.max$ substring$ 't := + } + while$ + } + if$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {word.in} +{ bbl.in capitalize + " " * } + +FUNCTION {format.date} +{ year "year" bibinfo.check duplicate$ empty$ + { + "empty year in " cite$ * "; set to ????" * warning$ + pop$ "????" + } + 'skip$ + if$ + extra.label * + before.all 'output.state := + after.sentence 'output.state := +} +FUNCTION {format.btitle} +{ title "title" bibinfo.check + duplicate$ empty$ 'skip$ + { + "t" change.case$ + emphasize + } + if$ +} +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} +FUNCTION {format.bvolume} +{ volume empty$ + { "" } + { add.comma bbl.volume volume tie.or.space.prefix + "volume" bibinfo.check * * + } + if$ +} +FUNCTION {format.number.series} + { number empty$ + %{ series field.or.null } + { series empty$ % version with brackets: Stefan Müller, 06.07.2014 + { "" } + { " (" series * ")" * } + if$ } + { series empty$ + { number "number" bibinfo.check } + { add.blank "(" * + series "series" bibinfo.check * + number tie.or.space.prefix "number" bibinfo.check * + ")" * + } + if$ + } + if$ + } +FUNCTION {is.num} +{ chr.to.int$ + duplicate$ "0" chr.to.int$ < not + swap$ "9" chr.to.int$ > not and +} + +FUNCTION {extract.num} +{ duplicate$ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ + t #2 global.max$ substring$ 't := + duplicate$ is.num + { s swap$ * 's := } + { pop$ "" 't := } + if$ + } + while$ + s empty$ + 'skip$ + { pop$ s } + if$ +} + +FUNCTION {convert.edition} +{ extract.num "l" change.case$ 's := + s "first" = s "1" = or + { bbl.first 't := } + { s "second" = s "2" = or + { bbl.second 't := } + { s "third" = s "3" = or + { bbl.third 't := } + { s "fourth" = s "4" = or + { bbl.fourth 't := } + { s "fifth" = s "5" = or + { bbl.fifth 't := } + { s #1 #1 substring$ is.num + { s eng.ord 't := } + { edition 't := } + if$ + } + if$ + } + if$ + } + if$ + } + if$ + } + if$ + t +} + +FUNCTION {format.edition} +{ edition duplicate$ empty$ 'skip$ + { + convert.edition + output.state mid.sentence = + { "l" } + { "t" } + if$ change.case$ + "edition" bibinfo.check + " " * bbl.edition * + } + if$ +} +INTEGERS { multiresult } +FUNCTION {multi.page.check} +{ 't := + #0 'multiresult := + { multiresult not + t empty$ not + and + } + { t #1 #1 substring$ + duplicate$ "-" = + swap$ duplicate$ "," = + swap$ "+" = + or or + { #1 'multiresult := } + { t #2 global.max$ substring$ 't := } + if$ + } + while$ + multiresult +} +FUNCTION {format.pages} +{ pages duplicate$ empty$ 'skip$ + { duplicate$ multi.page.check + { + n.dashify + } + { + } + if$ + "pages" bibinfo.check + } + if$ +} +FUNCTION {format.journal.pages} +{ pages duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ + { pop$ pop$ format.pages } + { + ". " * + swap$ + n.dashify + "pages" bibinfo.check + * + } + if$ + } + if$ +} +FUNCTION {format.journal.eid} +{ eid "eid" bibinfo.check + duplicate$ empty$ 'pop$ + { swap$ duplicate$ empty$ 'skip$ + { + ". " * + } + if$ + swap$ * + } + if$ +} +FUNCTION {format.vol.num.pages} +{ volume field.or.null + duplicate$ empty$ 'skip$ + { + "volume" bibinfo.check + } + if$ + number "number" bibinfo.check duplicate$ empty$ 'skip$ + { + swap$ duplicate$ empty$ + { "there's a number but no volume in " cite$ * warning$ } + 'skip$ + if$ + swap$ + "(" swap$ * ")" * + } + if$ * + eid empty$ + { format.journal.pages } + { format.journal.eid } + if$ +} + +FUNCTION {format.chapter.pages} +{ chapter empty$ + 'format.pages + { type empty$ + { bbl.chapter } + { type "l" change.case$ + "type" bibinfo.check + } + if$ + chapter tie.or.space.prefix + "chapter" bibinfo.check + * * + pages empty$ + 'skip$ + { ", " * format.pages * } + if$ + } + if$ +} + +FUNCTION {format.booktitle} +{ + booktitle "booktitle" bibinfo.check + "t" change.case$ + emphasize +} +FUNCTION {format.in.ed.booktitle} +{ format.booktitle duplicate$ empty$ 'skip$ + { + editor "editor" format.names.ed duplicate$ empty$ 'pop$ + { + " " * + get.bbl.editor + "(" swap$ * "), " * + * swap$ + * } + if$ + word.in swap$ * + } + if$ +} +FUNCTION {format.thesis.type} +{ type duplicate$ empty$ + 'pop$ + { swap$ pop$ + "t" change.case$ "type" bibinfo.check + } + if$ +} +FUNCTION {format.tr.number} +{ number "number" bibinfo.check + type duplicate$ empty$ + { pop$ bbl.techrep } + 'skip$ + if$ + "type" bibinfo.check + swap$ duplicate$ empty$ + { pop$ "t" change.case$ } + { tie.or.space.prefix * * } + if$ +} +FUNCTION {format.article.crossref} +{ + word.in + " \cite{" * crossref * "}" * +} +FUNCTION {format.book.crossref} +{ volume duplicate$ empty$ + { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ + pop$ word.in + } + { bbl.volume + capitalize + swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * + } + if$ + " \cite{" * crossref * "}" * +} +FUNCTION {format.incoll.inproc.crossref} +{ + word.in + " \cite{" * crossref * "}" * +} +FUNCTION {format.org.or.pub} +{ 't := + "" + address empty$ t empty$ and + 'skip$ + { + address "address" bibinfo.check * + t empty$ + 'skip$ + { address empty$ + 'skip$ + { ": " * } + if$ + t * + } + if$ + } + if$ +} +FUNCTION {format.publisher.address} +{ publisher "publisher" bibinfo.warn format.org.or.pub +} + +FUNCTION {format.organization.address} +{ organization "organization" bibinfo.check format.org.or.pub +} + +FUNCTION {article} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.title "title" output.check + new.block + crossref missing$ + { + journal + "journal" bibinfo.check + emphasize + "journal" output.check + add.blank + format.vol.num.pages output + } + { format.article.crossref output.nonnull + format.pages output + } + if$ + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} +FUNCTION {periodical} +{ std.status.using.comma + start.entry + if.url.alt.interword.spacing + format.editors output + name.or.dash + format.book.title "title" output.warn + format.series output + format.volume output + format.number output + format.organization "organization" bibinfo.check output + format.date "year" output.warn + format.note output + format.url output + fin.entry + if.url.std.interword.spacing +} +FUNCTION {book} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output + } + { format.authors output.nonnull + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + format.date "year" output.check + date.block + format.btitle "title" output.check + crossref missing$ + { format.bvolume output + format.number.series output + new.block + new.sentence + format.publisher.address output + } + { + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} +FUNCTION {booklet} +{ output.bibitem + format.authors output + author format.key output + format.date "year" output.check + date.block + format.title "title" output.check + new.block + howpublished "howpublished" bibinfo.check output + address "address" bibinfo.check output + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {inbook} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output + } + { format.authors output.nonnull + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + format.date "year" output.check + date.block + format.btitle "title" output.check + crossref missing$ + { + format.bvolume output + format.chapter.pages "chapter and pages" output.check + new.block + new.sentence + format.number.series output + format.publisher.address output + } + { + format.chapter.pages "chapter and pages" output.check + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.number.series output + add.comma + format.chapter.pages output + new.sentence + format.publisher.address output + format.edition output + } + { format.incoll.inproc.crossref output.nonnull + format.chapter.pages output + } + if$ + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} +FUNCTION {inproceedings} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.number.series output + add.comma + format.pages output + new.sentence + publisher empty$ + { format.organization.address output } + { organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + } + { format.incoll.inproc.crossref output.nonnull + format.pages output + } + if$ + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} +FUNCTION {conference} { inproceedings } +FUNCTION {manual} +{ output.bibitem + format.authors output + author format.key output + format.date "year" output.check + date.block + format.btitle "title" output.check + organization address new.block.checkb + organization "organization" bibinfo.check output + address "address" bibinfo.check output + format.edition output + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {mastersthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.btitle + "title" output.check + new.block + address "address" bibinfo.check output + school "school" bibinfo.warn output + bbl.mthesis format.thesis.type output.nonnull + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {misc} +{ output.bibitem + format.authors output + author format.key output + format.date "year" output.check + date.block + format.title output + new.block + howpublished "howpublished" bibinfo.check output + format.doi output + new.block + format.note output + new.block + format.url output + fin.entry +} +FUNCTION {phdthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.btitle + "title" output.check + new.block + address "address" bibinfo.check output + add.colon + school "school" bibinfo.warn output + bbl.phdthesis format.thesis.type output.nonnull + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {proceedings} +{ output.bibitem + format.editors output + editor format.key output + format.date "year" output.check + date.block + format.btitle "title" output.check + format.bvolume output + new.sentence + format.number.series output + publisher empty$ + { format.organization.address output } + { organization "organization" bibinfo.check output + format.publisher.address output + } + if$ + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {techreport} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.title + "title" output.check + new.block + format.tr.number output.nonnull + institution "institution" bibinfo.warn output + address "address" bibinfo.check output + format.doi output + new.block + format.url output + new.block + format.note output + fin.entry +} + +FUNCTION {unpublished} +{ output.bibitem + format.authors "author" output.check + author format.key output + format.date "year" output.check + date.block + format.title "title" output.check + format.doi output + new.block + format.note "note" output.check + new.block + format.url output + fin.entry +} + +FUNCTION {default.type} { misc } +READ +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} +INTEGERS { len } +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} +FUNCTION {format.lab.names} +{ 's := + "" 't := + s #1 "{vv~}{ll}" format.name$ + s num.names$ duplicate$ + #2 > + { pop$ + " " * bbl.etal * + } + { #2 < + 'skip$ + { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = + { + " " * bbl.etal * + } + { bbl.and space.word * s #2 "{vv~}{ll}" format.name$ + * } + if$ + } + if$ + } + if$ +} + +FUNCTION {author.key.label} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.editor.key.label} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {editor.key.label} +{ editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ +} + +FUNCTION {calc.short.authors} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.label + { type$ "proceedings" = + 'editor.key.label + 'author.key.label + if$ + } + if$ + 'short.list := +} + +FUNCTION {calc.label} +{ calc.short.authors + short.list + "(" + * + year duplicate$ empty$ + short.list key field.or.null = or + { pop$ "" } + 'skip$ + if$ + * + 'label := +} + +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{ll{ }}{ ff{ }}{ jj{ }}" + format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { t sortify * } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} +FUNCTION {author.sort} +{ author empty$ + { key empty$ + { "to sort, need author or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {author.editor.sort} +{ author empty$ + { editor empty$ + { key empty$ + { "to sort, need author, editor, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ +} +FUNCTION {editor.sort} +{ editor empty$ + { key empty$ + { "to sort, need editor or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ +} +FUNCTION {presort} +{ calc.label + label sortify + " " + * + type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "proceedings" = + 'editor.sort + 'author.sort + if$ + } + if$ + #1 entry.max$ substring$ + 'sort.label := + sort.label + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} + +ITERATE {presort} +SORT +STRINGS { last.label next.extra } +INTEGERS { last.extra.num number.label } +FUNCTION {initialize.extra.label.stuff} +{ #0 int.to.chr$ 'last.label := + "" 'next.extra := + #0 'last.extra.num := + #0 'number.label := +} +FUNCTION {forward.pass} +{ last.label label = + { last.extra.num #1 + 'last.extra.num := + last.extra.num int.to.chr$ 'extra.label := + } + { "a" chr.to.int$ 'last.extra.num := + "" 'extra.label := + label 'last.label := + } + if$ + number.label #1 + 'number.label := +} +FUNCTION {reverse.pass} +{ next.extra "b" = + { "a" 'extra.label := } + 'skip$ + if$ + extra.label 'next.extra := + extra.label + duplicate$ empty$ + 'skip$ + { year field.or.null #-1 #1 substring$ chr.to.int$ #65 < + { "{\natexlab{" swap$ * "}}" * } + { "{(\natexlab{" swap$ * "})}" * } + if$ } + if$ + 'extra.label := + label extra.label * 'label := +} +EXECUTE {initialize.extra.label.stuff} +ITERATE {forward.pass} +REVERSE {reverse.pass} +FUNCTION {bib.sort.order} +{ sort.label + " " + * + year field.or.null sortify + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} +ITERATE {bib.sort.order} +SORT +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" number.label int.to.str$ * "}" * + write$ newline$ + "\providecommand{\natexlab}[1]{#1}" + write$ newline$ + "\providecommand{\url}[1]{#1}" + write$ newline$ + "\providecommand{\urlprefix}{}" + write$ newline$ + "\expandafter\ifx\csname urlstyle\endcsname\relax" + write$ newline$ + " \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else" + write$ newline$ + " \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi" + write$ newline$ +} +EXECUTE {begin.bib} +EXECUTE {init.state.consts} +ITERATE {call.type$} +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} +EXECUTE {end.bib} diff --git a/Master/texmf-dist/doc/xelatex/langsci/README.md b/Master/texmf-dist/doc/xelatex/langsci/README.md new file mode 100644 index 00000000000..760232543dd --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/README.md @@ -0,0 +1,62 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Project: langsci +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-05-09 11:11:11 UTC +%% Purpose: publishing boks with Language Science Press. +%% Languages: LaTeX, tikz, eps +%% Copyright 2012- Language Science Press +%% Licence: 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 Sebastian Nordhoff. +%% +%% This work consists of the files +%% - langscibook.cls: class file +%% - 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-sp-unified.bbx, sp-authoryear-comp.cbx +%% - files for the logos used in the textbook series Textbooks in Language Sciences: book.eps bulb.eps glass.eps 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 +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +Here you find files to produce books for Language Science Press + +The main file is the file langscibook.cls. This defines the basic structure of the book. It makes reference to the following auxiliary files: +- `langsci-series.def`: metadata for series +- `langsci-colors.def`: colors used by the series +- `langsci-basic.sty` for commands required by the standard template +- bib style definitions +- eps files for the logos used in the textbook series Textbooks in Language Sciences +- a file for an advertisement added to the very last page in tikz + +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-forest-setup.sty`: definitions for linguistic trees +- `langsci-bidi.sty`: bidirectional text +- `langsci-tbls.sty`: macros for the textbook series Textbooks in Language Sciences + +Documentation is found in the folder `documentation/`. + +The folder `examples/` contains sample projects for the three use cases monograph, edited volume, and paper in edited volume. + +For more information, visit \url{http://www.langsci-press.org}. + + diff --git a/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex b/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex new file mode 100644 index 00000000000..cd0090f84a5 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/documentation/langsci-doc.tex @@ -0,0 +1,255 @@ +\documentclass[% +modfonts, +output=guidelines, +guidelines]{langscibook} +\author{Sebastian Nordhoff} +\title{The \texttt{langscibook} {\LaTeX} class} +\subtitle{} +\renewcommand{\lsSeries}{guidelines} +\renewcommand{\lsSeriesNumber}{~} +\renewcommand{\lsAdvertisement}{} +% \BackTitle{} +% \BackBody{} +% \dedication{} +% \typesetter{} +% \proofreader{} +% \renewcommand{\lsISBNdigital}{000-0-000000-00-0} +% \renewcommand{\lsISBNhardcover}{000-0-000000-00-0} +% \renewcommand{\lsISBNsoftcover}{000-0-000000-00-0} +% \renewcommand{\lsISBNsoftcoverus}{000-0-000000-00-0} +% \BookDOI{} +% \renewcommand{\lsURL}{http://langsci-press.org/catalog/book/000} + +\bibliography{localbibliography} + +\newcommand{\option}[3]{\subsection{\texttt{#1}}{#2}\\Default value: {\texttt{#3}}} +\begin{document} +\maketitle + +\frontmatter +\currentpdfbookmark{Contents}{name} % adds a PDF bookmark +\tableofcontents +% \include{chapters/preface} +% \include{chapters/acknowledgments} +% \include{chapters/abbreviations} + +\mainmatter +\chapter{Introduction} +This document describes the {\LaTeX} class langscibook.cls. This class is used for typesetting books with Language Science Press. Language Science Press publish open access monographs and edited volumes in linguistics. + + +\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}). + +The class provides for the following: +\begin{itemize} + \item front cover + \item frontispiece + \item inside title + \item colophon + \item table of contents + \item chapters + \item list of references (per chapter or global) + \item name index, subject index, language index + \item advertisement + \item back title + \item ISBN + \item DOI (per book and per chapter) +\end{itemize} + +When used to create dust jackets, the class will produce a large pdf with a collation of backcover, spine and frontcover, from left to right, surrounded by bleed. + + +\chapter{Requirements} +\section{Fonts} +The class uses the fonts Libertine, Arimo and Dejavu. These have to be present on the system. + +\section{Styles} +A couple of additional style files come with the class. Documents using this class will compile without them, but in order to typeset books for Language Science Press, these packages should be loaded as well. These packages are + +\begin{itemize} + \item \texttt{langsci-basic.sty}: Commands used in all Language Science Press books + \item \texttt{langsci-optional.sty}: Further commands useful for some typical books + \item \texttt{langsci-gb4e.sty}: Package for linguistic examples + \item \texttt{langsci-cgloss.sty}: Helper package for \texttt{langsci-gb4e} + \item \texttt{langsci-forest-setup.sty}: Set up the forest package for linguistic trees +% \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 +\end{itemize} + +\section{Colors and series definitions} +The metadata for Language Science Press book series are stored in the file \texttt{series.def}. This file loads the file \texttt{colors.def} to set the colors for the cover and title font. Both files should be safe to use for all books of well-established series. For new series, the ISSN field of \texttt{series.def} might have to be updated. + +\chapter{Creating a book} +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}: + +\begin{itemize} + \item author + \item title + \item series + \item series number + \item all ISBNs + \item BookDOI + \item URL + \item blurb (back body) +\end{itemize} + +Provide the following additional information if necessary: +\begin{itemize} + \item subtitle + \item backtitle + \item spine title + \item spine author + \item dedication + \item list of proofreaders + \item list of typesetters + \item list of illustrators + \item license other than CC-BY +\end{itemize} + + +\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. + + +\section{Creating a paper for an edited volume} +Use the output option \texttt{paper}. Provide the following metadata in the preamble: +\begin{itemize} + \item \verb+\author+ with (\verb+\affiliation+) + \item \verb+\title+ + \item \verb+\abstract+ (optional) +\end{itemize} + +You might want to redefine \verb+\rohead+ 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. + +\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}. + +\section{Flag options} +% \option{blackandwhite} +% Remove all colors} +% {false +% \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{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{covercreatespace}: Create a two-page wide cover (back-spine-front) for use with CreateSpace +\end{itemize} +\option{copyright}{The license chosen}{"CC-BY"} +\option{biblatexbackend}{The backend of BibLaTeX}{"bibtex"} +Alternative: \texttt{biber} +% \backmatter +% \phantomsection%this allows hyperlink in ToC to work +% \printbibliography[heading=references] +% \cleardoublepage +% \phantomsection +% \addcontentsline{toc}{chapter}{Index} +% \addcontentsline{toc}{section}{Name index} +% \ohead{Name index} +% \printindex +% \cleardoublepage +% \phantomsection +% \addcontentsline{toc}{section}{Language index} +% \ohead{Language index} +% \printindex[lan] +% \cleardoublepage +% \phantomsection +% \addcontentsline{toc}{section}{Subject index} +% \ohead{Subject index} +% \printindex[sbj] +% \ohead{} + + + + +\section{Metadata commands}\label{sec:metadatacommands} +The following commands are used to indicated metadata. These commands can override the options passed to the class. + +\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.} +\option{$\backslash$BackTitle}{Title on back cover}{\textrm{same as on front cover}} +\option{$\backslash$BookDOI}{DOI for the book}{??} +\option{$\backslash$ChapterDOI}{DOI for a chapter}{??} +\option{$\backslash$dedication}{A dedication}{\textrm{void}} +\option{$\backslash$ISBNdigital}{ISBN for the digital version}{000-0-000000-00-0} +\option{$\backslash$ISBNhardcover}{ISBN for the hardcover version}{000-0-000000-00-0} +\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$URL}{The URL where this title can be downloaded}{http://langsci-press.org/catalog} + + +\section{Overrides} +The following commands allow to override further default settings: + +\option{$\backslash$SpineAuthor}{Custom author on spine. Useful for long lists of authors/editors}{\textrm{same as on cover}} +\option{$\backslash$SpineTitle}{Custom title on spine. Useful for long titles}{\textrm{same as on cover}} + +\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$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$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}{??} +\option{$\backslash$lsLanguageIndexTitle}{The title of the language index. Change this for non-English works}{Language index} +\option{$\backslash$lsNameIndexTitle}{The title of the name index. Change this for non-English works}{Name index} +\option{$\backslash$lsSpineAuthorFont}{Font for the author on the spine}{$\backslash$fontsize\{16pt\}\{14pt\}$\backslash$selectfont} +\option{$\backslash$lsSpineTitleFont}{Font for the title on the spine}{$\backslash$sffamily$\backslash$fontsize\{18pt\}\{14pt\}$\backslash$selectfont} +\option{$\backslash$lsSubjectIndexTitle}{The title of the subject index. Change this for non-English works}{Subject index} +\section{Additions} +\option{$\backslash$lsAdditionalFontsImprint}{Add additional fonts to the list of fonts in the colophon}{\textrm{void}} + + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/langsci/eotms-info.tex b/Master/texmf-dist/doc/xelatex/langsci/eotms-info.tex new file mode 100644 index 00000000000..92acb97bdb3 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/eotms-info.tex @@ -0,0 +1,19 @@ +%% -*- coding:utf-8 -*- +{\large Empirically Oriented Theoretical Morphology and Syntax} + +\bigskip + +Chief Editor: Stefan Müller \\ +Consulting Editors: Berthold Crysmann, Laura Kallmeyer + +\bigskip + +In this series: + +\begin{enumerate} +\item Lichte, Timm. Syntax und Valenz: Zur Modellierung kohärenter und elliptischer Strukturen mit Baumadjunktionsgrammatiken +%\item Bîlbîie, Gabriela. Grammaire des constructions elliptiques: Une étude comparative des phrases sans verbe en roumain et en français +\end{enumerate} + + + diff --git a/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex b/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex new file mode 100644 index 00000000000..5cc60836589 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/examples/samplemonograph.tex @@ -0,0 +1,62 @@ +\documentclass{langscibook} +\author{Pat Jaeung} +\title{Sample monograph} +\Series{cfls} +\SeriesNumber{99} + +\renewcommand{\lsISBNdigital}{000-0-000000-00-0} +\renewcommand{\lsISBNhardcover}{000-0-000000-00-0} +\renewcommand{\lsISBNsoftcover}{000-0-000000-00-0} +\renewcommand{\lsURL}{http://langsci-press.org/catalog/book/000} +% \BookDOI{}%ask coordinator for DOI + +\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} + +\bibliography{localbibliography} +\begin{document} +\maketitle +\frontmatter +\currentpdfbookmark{Contents}{name} % adds a PDF bookmark +\tableofcontents +% \include{chapters/preface} +% \include{chapters/acknowledgments} +% \include{chapters/abbreviations} +\mainmatter +\chapter{Introduction} +This is the introduction. +\chapter{New research} +This is the main argument. +\chapter{Conclusion} +This is the conclusion. + +\backmatter +\phantomsection%this allows hyperlink in ToC to work +\printbibliography[heading=references] +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{chapter}{Index} +\addcontentsline{toc}{section}{Name index} +\ohead{Name index} +\printindex +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{section}{Language index} +\ohead{Language index} +\printindex[lan] +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{section}{Subject index} +\ohead{Subject index} +\printindex[sbj] +\ohead{} + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/langsci/examples/samplepaper.tex b/Master/texmf-dist/doc/xelatex/langsci/examples/samplepaper.tex new file mode 100644 index 00000000000..153bd5c6303 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/examples/samplepaper.tex @@ -0,0 +1,50 @@ +\documentclass[output=paper]{langscibook} +\title{Introduction} +\author{% + Chap ter Author\affiliation{University of Eden} + \and + Noam Chimpsky\affiliation{University of Pluto} + \lastand + Jane Wilson\affiliation{National Institute for Language} +} +% \chapterDOI{} %will be filled in at production + +% \epigram{} + +\abstract{ +Abstract goes here +} + +\begin{document} + +\maketitle +\section{Introduction} +Phasellus maximus erat ligula, accumsan rutrum augue facilisis in. Proin sit amet pharetra nunc, sed maximus erat. Duis egestas mi eget purus venenatis vulputate vel quis nunc. Nullam volutpat facilisis tortor, vitae semper ligula dapibus sit amet. Suspendisse fringilla, quam sed laoreet maximus, ex ex placerat ipsum, porta ultrices mi risus et lectus. Maecenas vitae mauris condimentum justo fringilla sollicitudin. Fusce nec interdum ante. Curabitur tempus dui et orci convallis molestie \citep{Chomsky1957}. + + + +Sed nisi urna, dignissim sit amet posuere ut, luctus ac lectus. Fusce vel ornare nibh. Nullam non sapien in tortor hendrerit suscipit. Etiam sollicitudin nibh ligula. Praesent dictum gravida est eget maximus. Integer in felis id diam sodales accumsan at at turpis. Maecenas dignissim purus non libero scelerisque porttitor. Integer porttitor mauris ac nisi iaculis molestie. Sed nec imperdiet orci. Suspendisse sed fringilla elit, non varius elit. Sed varius nisi magna, at efficitur orci consectetur a. Cras consequat mi dui, et cursus lacus vehicula vitae. Pellentesque sit amet justo sed lectus luctus vehicula. Suspendisse placerat augue eget felis sagittis placerat. + + +\begin{table} +\caption{Frequencies of word classes} +\label{tab:1:frequencies} + \begin{tabular}{lllll} + \lsptoprule + & nouns & verbs & adjectives & adverbs\\ + \midrule + absolute & 12 & 34 & 23 & 13\\ + relative & 3.1 & 8.9 & 5.7 & 3.2\\ + \lspbottomrule + \end{tabular} +\end{table} + + +Sed cursus eros condimentum mi consectetur, ac consectetur sapien pulvinar. Sed consequat, magna eu scelerisque laoreet, ante erat tristique justo, nec cursus eros diam eu nisl. Vestibulum non arcu tellus. Nunc dignissim tristique massa ut gravida. Nullam auctor orci gravida tellus egestas, vitae pharetra nisl porttitor. Pellentesque turpis nulla, venenatis id porttitor non, volutpat ut leo. Etiam hendrerit scelerisque luctus. Nam sed egestas est. Suspendisse potenti. Nunc vestibulum nec odio non laoreet. Proin lacinia nulla lectus, eu vehicula erat vehicula sed. + +\section*{Abbreviations} +\section*{Acknowledgements} + +\printbibliography[heading=subbibliography,notkeyword=this] + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex b/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex new file mode 100644 index 00000000000..e912be8bcad --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/examples/samplevolume.tex @@ -0,0 +1,63 @@ +\documentclass[output=book + ,collection + ,collectionchapter + ,collectiontoclongg + ,biblatex + ]{langscibook} + +\author{Jane Doe} +\title{Sample edited volume} +\subtitle{Including sample chapter} +\Series{cfls} +\SeriesNumber{42} + +\renewcommand{\lsISBNdigital}{000-0-000000-00-0} +\renewcommand{\lsISBNhardcover}{000-0-000000-00-0} +\renewcommand{\lsISBNsoftcover}{000-0-000000-00-0} +% \BookDOI{}%ask coordinator for DOI +\renewcommand{\lsURL}{http://langsci-press.org/catalog/book/000} + +\dedication{For Mom and Dad} +\typesetter{Jane Doe} +\proofreader{John Doe} +\BackBody{What everyone should know about edited volumes: it's here} + + +\setlength{\csspine}{25.0559784mm} +\setlength{\bodspine}{20mm} + +\bibliography{localbibliography} +\begin{document} +\maketitle +\frontmatter +\currentpdfbookmark{Contents}{name} % adds a PDF bookmark +\tableofcontents +% \include{preface} +% \include{acknowledgments} + +\mainmatter +\includepaper{samplepaper} + +\backmatter +\phantomsection%this allows hyperlink in ToC to work +\addcontentsline{toc}{chapter}{Indexes} + +\phantomsection%this allows hyperlink in ToC to work +\addcontentsline{toc}{section}{Name index} +\ohead{Name index} +\printindex +\cleardoublepage + +\phantomsection%this allows hyperlink in ToC to work +\addcontentsline{toc}{section}{Language index} +\ohead{Language index} +\printindex[lan] +\cleardoublepage + +\phantomsection%this allows hyperlink in ToC to work +\addcontentsline{toc}{section}{Subject index} +\ohead{Subject index} +\printindex[sbj] +\cleardoublepage + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/langsci/localbibliography.bib b/Master/texmf-dist/doc/xelatex/langsci/localbibliography.bib new file mode 100644 index 00000000000..9768f5d7952 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/localbibliography.bib @@ -0,0 +1,35 @@ + +@BOOK{Comrie1981, + author = {Bernard Comrie}, + year = {1981}, + title = {Language Universals and Spanish Linguistic Typology}, + address = {Oxford}, + publisher = {Basil Blackwell} +} + +@BOOK{Chomsky1957, + author = {Noam Chomsky}, + year = {1957}, + title = {Syntactic structures}, + address = {The Hague}, + publisher = {Mouton} +} + + +@BOOK{Circov1900, + author = {Ćircov, Boban}, + sortname={Circov}, + year = {1957}, + title = {Test book}, + address = {The Hague}, + publisher = {Mouton} +} + +@BOOK{MeierCircovac1900, + author = {Meier, Hans and Ćircovac, Damir}, + year = {1957}, + title = {Toastbrot}, + address = {The Hague}, + publisher = {Mouton} +} + diff --git a/Master/texmf-dist/doc/xelatex/langsci/main.tex b/Master/texmf-dist/doc/xelatex/langsci/main.tex new file mode 100644 index 00000000000..3552192196c --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/langsci/main.tex @@ -0,0 +1,57 @@ +\documentclass{langscibook} +\author{Jane Doe} +\title{New findings in linguistics} +\subtitle{What everyone should know} +% \renewcommand{\lsSeries}{silp} +% \renewcommand{\lsSeriesNumber}{99} +% \BackTitle{} +% \BackBody{} +% \dedication{} +% \typesetter{} +% \proofreader{} +% \renewcommand{\lsISBNdigital}{000-0-000000-00-0} +% \renewcommand{\lsISBNhardcover}{000-0-000000-00-0} +% \renewcommand{\lsISBNsoftcover}{000-0-000000-00-0} +% \renewcommand{\lsISBNsoftcoverus}{000-0-000000-00-0} +% \BookDOI{} +% \renewcommand{\lsURL}{http://langsci-press.org/catalog/book/000} + +\bibliography{localbibliography} +\begin{document} +\maketitle + +\frontmatter +\currentpdfbookmark{Contents}{name} % adds a PDF bookmark +\tableofcontents +% \include{chapters/preface} +% \include{chapters/acknowledgments} +% \include{chapters/abbreviations} + +\mainmatter +\chapter{Introduction} + + + + + +\backmatter +\phantomsection%this allows hyperlink in ToC to work +\printbibliography[heading=references] +\cleardoublepage +\phantomsection +\addcontentsline{toc}{chapter}{Index} +\addcontentsline{toc}{section}{Name index} +\ohead{Name index} +\printindex +\cleardoublepage +\phantomsection +\addcontentsline{toc}{section}{Language index} +\ohead{Language index} +\printindex[lan] +\cleardoublepage +\phantomsection +\addcontentsline{toc}{section}{Subject index} +\ohead{Subject index} +\printindex[sbj] +\ohead{} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/langsci/biblatex-sp-unified.bbx b/Master/texmf-dist/tex/xelatex/langsci/biblatex-sp-unified.bbx new file mode 100644 index 00000000000..84d10be4588 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/biblatex-sp-unified.bbx @@ -0,0 +1,562 @@ +% Modified by LSP, Thu Jul 31 22:36:02 CEST 2014 +\ProvidesFile{sp-biblatex.bbx} + +% NB: The Unified Style Sheet wants abbreviated "ed(s)", "edn". But using the abbreviate option also abbreviates the names of months. But then dateabbrev=false restores the long names of months +% biblatex has a "useprefix" option, which makes "von" count for alphabetization; the Unified Stylesheet does not want that, so it is important that this option be disabled (even if an author tries to set it to true) + +\ExecuteBibliographyOptions{labeldate,sorting=nyt,abbreviate,dateabbrev=false,useprefix=false} + +% biblatex by default calls biblatex.def, we add to this authoryear.bbx, which in turn loads standard.bbx. So, sp-biblatex.bbx is built on top of those styles; once authoryear.bbx is loaded, we tell it not to put in dashes for repeated authors (in accordance with the Unified Stylesheet) + +\RequireBibliographyStyle{authoryear} +\ExecuteBibliographyOptions{dashed=false} + +% Formatting directives for name lists +% ------------------------------------------------------------------ +% +% In biblatex.def, there are name formats defined: first-last, last-first, last-first/first-last. They could be simplified (we don't need provisions for using initials only, since the Unified Style doesn't do that), but since biblatex.def is loaded automatically, there's no point. The name formats call bibmacros that figure out how to order the internal of name components. These are re-defined here to make sure that "von" is treated as part of the last name (it still doesn't count for sorting -- which is controlled by the \useprefix package option) +% name:last is used to produce citation labels +% name:last-first is used to produce the first author's name listing in the alphabetical bibliography + +% Also moved the Jr part to after the first name and inserted another comma, because the Unified Stylesheet disagrees with standard.bbx: it wants "Jr." not to be treated as part of the last name. + +% The macros here get 4 arguments passed to them. They are: #1 last name, #2 first name, #3 von, #4 Jr. + +\renewbibmacro*{name:last}[4]{% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3} + {} + {\ifcapital + {\mkbibnameprefix{\MakeCapital{#3}}\isdot} + {\mkbibnameprefix{#3}\isdot}% + \ifpunctmark{'}{}{\bibnamedelimc}}% + \mkbibnamelast{#1}}% + +\renewbibmacro*{name:last-first}[4]{% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3}{}{% + \mkbibnameprefix{#3}\isdot% + \ifpunctmark{'}{}{\bibnamedelimc}}% + \mkbibnamelast{#1}\isdot + \ifblank{#2}{}{\addcomma\bibnamedelimd\mkbibnamefirst{#2}\isdot}% + \ifblank{#4}{}{\addcomma\bibnamedelimd\mkbibnameaffix{#4}\isdot}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Various bibmacros used in producing the bibliography +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear} + {} + {\printtext{\printdateextralabel}}}% Took out the parentheses around the year + +\renewbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \iffieldundef{authortype} + {\newunit}% period instead of space + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% + \newunit}}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extrayear}} + +\renewbibmacro*{editor}{% + \usebibmacro{bbx:editor}{editorstrg}} +\renewbibmacro*{editor+others}{% + \usebibmacro{bbx:editor}{editor+othersstrg}} +\renewbibmacro*{bbx:editor}[1]{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{editor}% + \setunit{\addspace}% + \usebibmacro{bbx:savehash}}% + \printtext[parens]{\usebibmacro{#1}}% + \clearname{editor}% + \newunit}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extrayear}} + +\renewbibmacro*{translator}{% + \usebibmacro{bbx:translator}{translatorstrg}} +\renewbibmacro*{translator+others}{% + \usebibmacro{bbx:translator}{translator+othersstrg}} +\renewbibmacro*{bbx:translator}[1]{% + \ifboolexpr{ + test \ifusetranslator + and + not test {\ifnameundef{translator}} + } + {\usebibmacro{bbx:dashcheck} + ts {\bibnamedash} + {\printnames{translator}% + \setunit{\addcomma\space}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{translator+othersstrg}% + \clearname{translator}% + \newunit}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extrayear}} + +\renewbibmacro*{journal}{% + \iffieldundef{journaltitle} + {} + {\printtext{% + \printfield{journaltitle}% + \setunit{\subtitlepunct}% + \printfield{journalsubtitle}}}} + +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% +% \setunit*{\adddot}% + \printfield[parens]{number}% parentheses instead of dot before issue number + \setunit{\addcomma\space}% + \printfield{eid}} + +% Because of the weird format "3 May, 2007" specified in the Unified Stylesheet for URL access dates, we need a special way to format the urldate + +\newcommand{\mkbibdateunified}[3]{% Year-Month-Day as input --> xx Month, Year + \iffieldundef{#3} + {} + {\stripzeros{\thefield{#3}}% + \nobreakspace}% + \iffieldundef{#2} + {\iffieldundef{#1}% + {}% + {\stripzeros{\thefield{#1}}}}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}% + {}% + {\iffieldundef{#3}% + {}% + {,}% + \space\stripzeros{\thefield{#1}}}% + }% + }% + +\renewbibmacro*{url+urldate}{% + \printfield{url}% + \iffieldundef{urlyear}% + {}% + {\setunit*{\addspace}% + \printtext[parens]{\mkbibdateunified{urlyear}{urlmonth}{urlday}}}% + } + +\renewbibmacro*{series+number}{% + \iffieldundef{series} + {} + {\printtext[parens]{% + \printfield{series}% + \setunit*{\addspace}% + \printfield{number}}% + }} + +\renewbibmacro*{byeditor+others}{% + \ifnameundef{editor} + {} + {\printnames[byeditor]{editor}% + \setunit{\addspace}% + \printtext[parens]{\usebibmacro{editor+othersstrg}}% putting (ed.) or (eds.) after editors of books + \clearname{editor}% + \newunit}% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}} + +\renewbibmacro*{chapter+pages}{% + \iffieldundef{chapter}% + {}% + {\printfield{chapter}% + \setunit{\addcomma\space}}% + \printfield{pages}% + \newunit} + +\renewbibmacro*{note+pages}{% + \iffieldundef{note}% + {}% + {\printfield{note}% + \setunit{\addcomma\space}}% + \printfield{pages}% + \newunit} + +\newbibmacro*{institution+location+type+date}{% + \printlist{location}% + \iflistundef{institution} + {} + {\setunit*{\addcolon\space}}% + \printlist{institution}% + \setunit{\addspace}% + \printfield{type}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +% The following is a hack to satisfy the Unified Stylesheet's decision to give the edition right after the OED as used as a sortlabel. + +\renewbibmacro*{labeltitle}{% + \iffieldundef{label} + {\iffieldundef{shorttitle} + {\printfield{title}% + \setunit{\addcomma\space}% Here it comes, preparing for the edition + \printfield{edition}% Here's the edition + \clearfield{title}% + \clearfield{edition}}% Clearing the edition field, so it's not printed again below + {\printfield[title]{shorttitle}}} + {\printfield{label}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Punctuation & formatting +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% This gets rid of the Oxford comma in name lists and uses the ampersand rather than "and": + +\renewcommand*{\finalnamedelim}{\addspace\&\addspace} +\renewcommand*{\finallistdelim}{\addspace\&\addspace} + +% no colon after "In" in incollection entries (overriding biblatex.def): + +\renewcommand{\intitlepunct}{\addspace} + +\renewcommand{\subtitlepunct}{\addcolon\space} +\renewcommand*{\bibpagespunct}{\newunitpunct} % No comma before pages, just the usual new unit period + +\DefineBibliographyStrings{english}{% + edition = {edn\adddot}, +} + +% basically everything is in sentence case, other than journals and book series (recurring titles) +\DeclareFieldFormat[article,periodical,book,thesis,incollection,unpublished,inproceedings]{titlecase}{\MakeSentenceCase*{#1}}% + +% No quotes around titles +\DeclareFieldFormat[article,periodical,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1} + +% Just like book titles, thesis titles are in italics +\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} + +\DeclareFieldFormat{pages}{#1} % no pp. prefix, took \mkpageprefix out [kvf] +\DeclareFieldFormat{doi}{\doi{#1}} +\DeclareFieldFormat{url}{\url{#1}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% The bibliography drivers, specifying the formats of each type of entry in the bibliography +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%% First, the entry types used in the Unified Test Bibliography. Could rely on standard.bbx for all others as a fallback. + +% For the article type, the only departure from standard.bbx is that +% we don't use a literal "In: " before the journal title; other formatting +% departures are done in the format specs and bibmacros + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock +% \usebibmacro{in:}% We don't use "In: " before journal titles + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \newunit\newblock% \newblock ensures period before pages + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{periodical}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +\usebibmacro{author/editor+others/translator+others}% +\setunit{\labelnamepunct}\newblock +\usebibmacro{title}% +\newunit +\printlist{language}% +\newunit\newblock +\usebibmacro{byauthor}% +\newunit\newblock +\usebibmacro{bytranslator+others}% +\newunit\newblock +\printfield{version}% +\newunit\newblock +% \usebibmacro{in:}% We don't use "In: " before journal titles +\usebibmacro{journal+issuetitle}% +\newunit +\usebibmacro{byeditor+others}% +\newunit\newblock% \newblock ensures period before pages +\usebibmacro{note+pages}% +\newunit\newblock +\iftoggle{bbx:isbn} +{\printfield{issn}} +{}% +\newunit\newblock +\usebibmacro{doi+eprint+url}% +\newunit\newblock +\usebibmacro{addendum+pubstate}% +\setunit{\bibpagerefpunct}\newblock +\usebibmacro{pageref}% +\newunit\newblock +\iftoggle{bbx:related} +{\usebibmacro{related:init}% +\usebibmacro{related}} +{}% +\usebibmacro{finentry}} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{maintitle+title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \setunit{\addspace}% crucial difference from standard.bbx: space and then (Series + number) + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + % \newunit\newblock commented by LSP + % \usebibmacro{chapter+pages}% + % \newunit + % \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + + \DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \ifnameundef{editor} + {\setunit{\addspace}} + {\usebibmacro{byeditor+others}\setunit{\addcomma\space}} + \usebibmacro{maintitle+booktitle}% + \setunit{\addcomma\space} + \printfield{edition}% + \setunit{\addcomma\space} + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \setunit{\addcomma\space} + \printfield{volumes}% + \setunit{\addspace}% + \usebibmacro{series+number}% + \setunit{\addcomma\space} + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \ifnameundef{editor} + {\setunit{\addspace}} + {\usebibmacro{byeditor+others}\setunit{\addcomma\space}} + \usebibmacro{maintitle+booktitle}% + \setunit{\addcomma\space} + \printfield{edition}% + \setunit{\addcomma\space} + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \setunit{\addcomma\space} + \printfield{volumes}% + \setunit{\addspace}% + \usebibmacro{series+number}% + \setunit{\addcomma\space} + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{institution+location+type+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{location+date}% + \newunit\newblock + \iftoggle{bbx:url} + {\usebibmacro{url+urldate}} + {}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-advertisement.tex b/Master/texmf-dist/tex/xelatex/langsci/langsci-advertisement.tex new file mode 100644 index 00000000000..d1adca90a34 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-advertisement.tex @@ -0,0 +1,16 @@ +\thispagestyle{empty} +\pgfdeclarelayer{lspadvert_bg} % Please make sure to never use lspadvert_... PGF layers in any document +\pgfsetlayers{lspadvert_bg,main} + +\begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}] + \begin{pgfonlayer}{lspadvert_bg} % background layer + \node at (current page.center) [bg, fill=lsGuidelinesGray, minimum height=22cm, minimum width=15cm] (lspadvert_bg1) {}; % Die können wir noch dynamisch bestimmen + \end{pgfonlayer} + \node [execute at begin node={}, font=\fontsize{52pt}{16.75mm}\selectfont, below right = 10mm and 7.5mm of lspadvert_bg1.north west, text width=13.7cm, align=left] (lspadvert_covertitle) {\color{black}\lsCoverTitleFont{Did you like this book?\par}}; % x = 15mm - 7.5mm ; y = 17.5mm - 7.5mm + + \node [font=\fontsize{25pt}{10mm}\selectfont,below = 8mm of lspadvert_covertitle.south, text width=137mm] (lspadvert_coversubtitle) {\color{black} \lsCoverSubTitleFont \nohyphens{This book was brought to you for free}\par}; + + \node (lspadvert_logo) [above left = 10mm and 7.5mm of lspadvert_bg1.south east] {\color{black}\includegraphics{\logopath langsci_logo_nocolor.pdf}}; + \node [above right = 48.8mm and -.1mm of lspadvert_bg1.south west, rectangle, fill=white, minimum size=17pt] (lspadvert_square) {}; + \path let \p1 = (lspadvert_square.north east), \p2 = (lspadvert_covertitle.west) in node at (\x2,\y1) (lspadvert_seriesinfo) [font=\fontsize{17pt}{7.5mm}\selectfont, right, align=flush left, text width=90mm, anchor=north west] {\color{black}\lsCoverSeriesFont{\nohyphens{Please help us in providing free access to linguistic research worldwide. Visit \url{http://www.langsci-press.org/donate} to provide financial support or register as a community proofreader or typesetter \mbox{at \url{http://www.langsci-press.org/register}.}}\par}}; +\end{tikzpicture}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty new file mode 100644 index 00000000000..520bda606b7 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty @@ -0,0 +1,42 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-basic.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains essential macros and is included +%% into langscibook.cls +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\sectref}[1]{{\S}\ref{#1}} +\newcommand{\chapref}[1]{Chapter~\ref{#1}} +\newcommand{\partref}[1]{Part~\ref{#1}} +\newcommand{\tabref}[1]{Table~\ref{#1}} +\newcommand{\figref}[1]{Figure~\ref{#1}} + +\newcommand{\lsptoprule}{\midrule\toprule} +\newcommand{\lspbottomrule}{\bottomrule\midrule} + +\newcommand{\REF}[1]{(\ref{#1})} + +\newcommand{\isi}[1]{\is{#1}#1} +\newcommand{\iai}[1]{\ia{#1}#1} +\newcommand{\ili}[1]{\il{#1}#1} + +\newcommand{\ob}{{\upshape [}} %opening bracket +\newcommand{\cb}{{\upshape ]}} %closing bracket +\newcommand{\op}{{\upshape (}} %opening paren +\newcommand{\cp}{{\upshape )}} %closing paren +\newcommand{\rmfnm}{{\upshape\footnotemark}} %romanfootnotemark + +\newcommand{\citegen}[2][]{\citeauthor{#2}'s (\citeyear[#1]{#2})} + +\newcommand{\protectedex}[1]{ +\parbox{\textwidth}{#1} +} + +\newcommand{\largerpage}[1][1]{ +\enlargethispage{#1\baselineskip} +} + +\newcommand\shorttitlerunninghead[1]{\rohead{\thechapter\hspace{.5em} #1}} diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-bidi.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-bidi.sty new file mode 100644 index 00000000000..51aafa9f0fc --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-bidi.sty @@ -0,0 +1,17 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-bidi.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains stuff for typesetting bidirectional texts. +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% shamelessly borrowed from the bidi package +% xetex-bidi.def + +\newcommand{\TeXXeTOn}{\TeXXeTstate=1 } +\newcommand{\TeXXeTOff}{\TeXXeTstate=0 } +\TeXXeTOn + +\newcommand{\RL}[1]{\beginR#1\endR} diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-cgloss.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-cgloss.sty new file mode 100644 index 00000000000..60b5c6b8bfe --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-cgloss.sty @@ -0,0 +1,465 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-cgloss.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains an adpated version of the cgloss +%% package for glossing linguistic examples. +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% -*- LaTeX -*- + +% Modified version of cgloss4e.sty. Hacked and renamed cgloss.sty +% by Alexis Dimitriadis (alexis@babel.ling.upenn.edu) + +% Following borrows from Covington's style files inspired by Midnight by M. +% de Groot, adapted to be used with gb4e.sty: examples beginning with \ex can +% contain glosses directly. Default is +% Linguistic Inquiry style with all lines in \rm; to change a line (eg. to +% \it for a particular journal, change the appropriate line: e.g., +% \let\eachwordone=\rm in a copy of this file. Note that it will NOT work +% to put \it before the line as the words are parsed separately. + +% Use \singlegloss to force single-spaced glosses even in double-space +% environments. Works also in footnotes (^M as delimiter replaced by +% \\)---hpk +% + +% Changes by Alexis Dimitriadis +% +% Removed flushleft environment and initial vskip to make macros usable +% on the same line with earlier and/or later text, e.g., +% \item Q: \gll ... \\ +% ... \\ \hfill (Greek) +% \trans Q: `...' +% Note: Text following the gloss will appear on line one of the example; +% To get a line break, insert one manually with \\ or use \trans or \glt. +% (\gln does not end the line, since it was already the +% case in cgloss4e that a translation must be ended with a line break). +% +% Modified \glt to keep translation on the same page as the text. + +% BUGS: does not work very gracefully with double spacing (struts are not +% automatically inserted after the \vboxes used by the macros). +% In double space mode without \nosinglegloss, when a translation +% is not given, the next line of text is single-spaced from the glossed text. +% With \nosinglegloss, the translation is set too close to the bottom line. + + +%%% +%%% Sentences with word-by-word glosses +%%% + +% See covingtn.tex for full documentation. Some examples: +% +% Displayed sentence with gloss and translation: +% +% \gll Dit is een Nederlands voorbeeld.\\ +% This is a Dutch example.\\ +% \glt `This is an example in Dutch.' +% +% Same, using bracketing where words do not correspond one-to-one: +% +% \gll Dit is een voorbeeldje in het Nederlands.\\ +% This is a {little example} in {} Dutch.\\ +% \glt `This is a little example in Dutch.' +% +% If you want to align 3 lines rather than two, use \glll instead of \gll. +% +% Layout is critical between \gll (or \glll) and \glt (or \gln). +% +% Thanks to Marcel R. van der Goot for permission to reproduce code. +\let\@gsingle=1 +\def\singlegloss{\let\@gsingle=1} +\def\nosinglegloss{\let\@gsingle=0} +\@ifundefined{new@fontshape}% + {\def\@selfnt{\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi}} + {\def\@selfnt{\selectfont}} + +\def\gll% % Introduces 2-line text-and-gloss. + {\raggedright% + \bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \twosent +} + +\def\glll% % Introduces 3-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \threesent +} + + +\def\gllll% % Introduces 4-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \foursent +} + + +\def\glllll% % Introduces 5-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \fivesent +} + + +\def\gllllll% % Introduces 6-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \sixsent +} + + +\def\glllllll% % Introduces 7-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \sevensent +} + + +\def\gllllllll% % Introduces 8-line text-and-gloss. + {\bgroup %\begin{flushleft} + \ifx\@gsingle1% conditionally force single spacing (hpk/MC) + \def\baselinestretch{1}\@selfnt\fi +% \vskip\baselineskip\def\baselinestretch{1}% +% \@selfnt\vskip-\baselineskip\fi% + \bgroup + \eightsent +} + +% \def\glt{\vskip.0\baselineskip} + +% redefine \gltoffset to set off translation from ex and gloss +\@ifundefined{gltoffset}{\def\gltoffset{0pt}}{} + +\def\glt{\ifhmode\\*[\gltoffset]\else\nobreak\vskip\gltoffset\nobreak\fi} + + +% Introduces a translation +\let\trans\glt + +\def\gln{\relax} +\def\glend{} % obsolete + % Ends the gloss environment. + +% The following TeX code is adapted, with permission, from: +% gloss.tex: Macros for vertically aligning words in consecutive sentences. +% Version: 1.0 release: 26 November 1990 +% Copyright (c) 1991 Marcel R. van der Goot (marcel@cs.caltech.edu). +% Original Midnight/gloss.tex and Midnight/gloss.doc are available from +% csvax.cs.caltech.edu [131.215.131.131] in pub/tex +% and many other anonymous ftp archives. + +\newbox\lineone % boxes with words from first line +\newbox\linetwo +\newbox\linethree +\newbox\linefour +\newbox\linefive +\newbox\linesix +\newbox\lineseven +\newbox\lineeight +\newbox\wordone % a word from the first line (hbox) +\newbox\wordtwo +\newbox\wordthree +\newbox\wordfour +\newbox\wordfive +\newbox\wordsix +\newbox\wordseven +\newbox\wordeight +\newbox\gline % the constructed double line (hbox) +\newskip\glossglue % extra glue between glossed pairs or tuples +\glossglue = 0pt plus 2pt minus 1pt % allow stretch/shrink between words +%\glossglue = 5pt plus 2pt minus 1pt % allow stretch/shrink between words +\newif\ifnotdone + +\@ifundefined{eachwordone}{\let\eachwordone=\upshape}{\relax} +\@ifundefined{eachwordtwo}{\let\eachwordtwo=\upshape}{\relax} +\@ifundefined{eachwordthree}{\let\eachwordthree=\upshape}{\relax} +\@ifundefined{eachwordfour}{\let\eachwordfour=\upshape}{\relax} +\@ifundefined{eachwordfive}{\let\eachwordfive=\upshape}{\relax} +\@ifundefined{eachwordsix}{\let\eachwordsix=\upshape}{\relax} +\@ifundefined{eachwordseven}{\let\eachwordseven=\upshape}{\relax} +\@ifundefined{eachwordeight}{\let\eachwordeight=\upshape}{\relax} + +\def\lastword#1#2#3% #1 = \each, #2 = line box, #3 = word box + {\setbox#2=\vbox{\unvbox#2% + \global\setbox#3=\lastbox + }% + \ifvoid#3\global\setbox#3=\hbox{#1\strut{} }\fi + % extra space following \strut in case #1 needs a space + } + +\def\testdone + {\ifdim\ht\lineone=0pt + \ifdim\ht\linetwo=0pt \notdonefalse % tricky space after pt + \else\notdonetrue + \fi + \else\notdonetrue + \fi + } + +\gdef\getwords(#1,#2)#3 #4\\% #1=linebox, #2=\each, #3=1st word, #4=remainder + {\setbox#1=\vbox{\hbox{#2\strut#3 }% adds space + \unvbox#1% + }% + \def\more{#4}% + \ifx\more\empty\let\more=\donewords + \else\let\more=\getwords + \fi + \more(#1,#2)#4\\% + } + +\gdef\donewords(#1,#2)\\{}% + +\gdef\twosent#1\\ #2\\{% #1 = first line, #2 = second line + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + +\gdef\threesent#1\\ #2\\ #3\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + + + +\gdef\foursent#1\\ #2\\ #3\\ #4\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \getwords(\linefour,\eachwordfour)#4 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \lastword{\eachwordfour}{\linefour}{\wordfour}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + \nointerlineskip + \box\wordfour + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + + + +\gdef\fivesent#1\\ #2\\ #3\\ #4\\ #5\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \getwords(\linefour,\eachwordfour)#4 \\% + \getwords(\linefive,\eachwordfive)#5 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \lastword{\eachwordfour}{\linefour}{\wordfour}% + \lastword{\eachwordfive}{\linefive}{\wordfive}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + \nointerlineskip + \box\wordfour + \nointerlineskip + \box\wordfive + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + + + +\gdef\sixsent#1\\ #2\\ #3\\ #4\\ #5\\ #6\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \getwords(\linefour,\eachwordfour)#4 \\% + \getwords(\linefive,\eachwordfive)#5 \\% + \getwords(\linesix,\eachwordsix)#6 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \lastword{\eachwordfour}{\linefour}{\wordfour}% + \lastword{\eachwordfive}{\linefive}{\wordfive}% + \lastword{\eachwordsix}{\linesix}{\wordsix}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + \nointerlineskip + \box\wordfour + \nointerlineskip + \box\wordfive + \nointerlineskip + \box\wordsix + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + + + +\gdef\sevensent#1\\ #2\\ #3\\ #4\\ #5\\ #6\\ #7\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \getwords(\linefour,\eachwordfour)#4 \\% + \getwords(\linefive,\eachwordfive)#5 \\% + \getwords(\linesix,\eachwordsix)#6 \\% + \getwords(\lineseven,\eachwordseven)#7 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \lastword{\eachwordfour}{\linefour}{\wordfour}% + \lastword{\eachwordfive}{\linefive}{\wordfive}% + \lastword{\eachwordsix}{\linesix}{\wordsix}% + \lastword{\eachwordseven}{\lineseven}{\wordseven}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + \nointerlineskip + \box\wordfour + \nointerlineskip + \box\wordfive + \nointerlineskip + \box\wordsix + \nointerlineskip + \box\wordseven + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + + + +\gdef\eightsent#1\\ #2\\ #3\\ #4\\ #5\\ #6\\ #7\\ #8\\{% #1 = first line, #2 = second line, #3 = third + \getwords(\lineone,\eachwordone)#1 \\% + \getwords(\linetwo,\eachwordtwo)#2 \\% + \getwords(\linethree,\eachwordthree)#3 \\% + \getwords(\linefour,\eachwordfour)#4 \\% + \getwords(\linefive,\eachwordfive)#5 \\% + \getwords(\linesix,\eachwordsix)#6 \\% + \getwords(\lineseven,\eachwordseven)#7 \\% + \getwords(\lineeight,\eachwordeight)#8 \\% + \loop\lastword{\eachwordone}{\lineone}{\wordone}% + \lastword{\eachwordtwo}{\linetwo}{\wordtwo}% + \lastword{\eachwordthree}{\linethree}{\wordthree}% + \lastword{\eachwordfour}{\linefour}{\wordfour}% + \lastword{\eachwordfive}{\linefive}{\wordfive}% + \lastword{\eachwordsix}{\linesix}{\wordsix}% + \lastword{\eachwordseven}{\lineseven}{\wordseven}% + \lastword{\eachwordeight}{\lineeight}{\wordeight}% + \global\setbox\gline=\hbox{\unhbox\gline + \hskip\glossglue + \vtop{\box\wordone % vtop was vbox + \nointerlineskip + \box\wordtwo + \nointerlineskip + \box\wordthree + \nointerlineskip + \box\wordfour + \nointerlineskip + \box\wordfive + \nointerlineskip + \box\wordsix + \nointerlineskip + \box\wordseven + \nointerlineskip + \box\wordeight + }% + }% + \testdone + \ifnotdone + \repeat + \egroup % matches \bgroup in \gloss + \gl@stop} + +%\def\gl@stop{{\hskip -\glossglue}\unhbox\gline\end{flushleft}} + +% \leavevmode puts us back in horizontal mode, so that a \\ will work +\def\gl@stop{{\hskip -\glossglue}\unhbox\gline\leavevmode \egroup} + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-colors.def b/Master/texmf-dist/tex/xelatex/langsci/langsci-colors.def new file mode 100644 index 00000000000..9ba525da3e8 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-colors.def @@ -0,0 +1,60 @@ + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Color definitions: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\definecolor{lsLightBlue}{cmyk}{0.6,0.05,0.05,0} +\definecolor{lsMidBlue}{cmyk}{0.75,0.15,0,0} +\definecolor{lsMidDarkBlue}{cmyk}{0.9,0.4,0.05,0} +\definecolor{lsDarkBlue}{cmyk}{0.9,0.5,0.15,0.3} +\definecolor{lsNightBlue}{cmyk}{1,0.47,0.22,0.68} +\definecolor{lsYellow}{cmyk}{0,0.25,1,0} +\definecolor{lsLightOrange}{cmyk}{0,0.50,1,0} +\definecolor{lsMidOrange}{cmyk}{0,0.64,1,0} +\definecolor{lsDarkOrange}{cmyk}{0,0.78,1,0} +\definecolor{lsRed}{cmyk}{0.05,1,0.8,0} +\definecolor{lsLightWine}{cmyk}{0.3,1,0.6,0} +\definecolor{lsMidWine}{cmyk}{0.54,1,0.65,0.1} +\definecolor{lsDarkWine}{cmyk}{0.58,1,0.70,0.35} +\definecolor{lsSoftGreen}{cmyk}{0.32,0.02,0.72,0} +\definecolor{lsLightGreen}{cmyk}{0.4,0,1,0} +\definecolor{lsMidGreen}{cmyk}{0.55,0,0.9,0.1} +\definecolor{lsRichGreen}{cmyk}{0.6,0,0.9,0.35} +\definecolor{lsDarkGreen1}{cmyk}{0.85,0.02,0.95,0.38} +\definecolor{lsDarkGreen2}{cmyk}{0.85,0.05,1,0.5} +\definecolor{lsNightGreen}{cmyk}{0.88,0.15,1,0.66} +\definecolor{lsLightGray}{cmyk}{0,0,0,0.17} +\definecolor{lsGuidelinesGray}{cmyk}{0,0.04,0,0.45} + +\definecolor{langscicol1}{cmyk}{0.6,0.05,0.05,0} +\definecolor{langscicol2}{cmyk}{0.75,0.15,0,0} +\definecolor{langscicol3}{cmyk}{0.9,0.4,0.05,0} +\definecolor{langscicol4}{cmyk}{0.9,0.5,0.15,0.3} +\definecolor{langscicol5}{cmyk}{1,0.47,0.22,0.68} +\definecolor{langscicol6}{cmyk}{0,0.25,1,0} +\definecolor{langscicol7}{cmyk}{0,0.50,1,0} +\definecolor{langscicol8}{cmyk}{0,0.64,1,0} +\definecolor{langscicol9}{cmyk}{0,0.78,1,0} +\definecolor{langscicol10}{cmyk}{0.05,1,0.8,0} +\definecolor{langscicol11}{cmyk}{0.3,1,0.6,0} +\definecolor{langscicol12}{cmyk}{0.54,1,0.65,0.1} +\definecolor{langscicol13}{cmyk}{0.58,1,0.70,0.35} +\definecolor{langscicol14}{cmyk}{0.32,0.02,0.72,0} +\definecolor{langscicol15}{cmyk}{0.4,0,1,0} +\definecolor{langscicol16}{cmyk}{0.55,0,0.9,0.1} +\definecolor{langscicol17}{cmyk}{0.6,0,0.9,0.35} +\definecolor{langscicol18}{cmyk}{0.85,0.02,0.95,0.38} +\definecolor{langscicol19}{cmyk}{0.85,0.05,1,0.5} +\definecolor{langscicol20}{cmyk}{0.88,0.15,1,0.66} + + +\newcommand{\lsptable}[2]{ +\resizebox{#1}{!}{ +\begin{tabularx}{\textwidth}{XXXXXXXXXXXXXXXXXXXX} + \cellcolor{langscicol1}&\cellcolor{langscicol2}&\cellcolor{langscicol3}&\cellcolor{langscicol4}&\cellcolor{langscicol5}&\cellcolor{langscicol6}&\cellcolor{langscicol7}&\cellcolor{langscicol8}&\cellcolor{langscicol9}&\cellcolor{langscicol10}&\cellcolor{langscicol11}&\cellcolor{langscicol12}&\cellcolor{langscicol13}&\cellcolor{langscicol14}&\cellcolor{langscicol15}&\cellcolor{langscicol16}&\cellcolor{langscicol17}&\cellcolor{langscicol18}&\cellcolor{langscicol19}&\cellcolor{langscicol20} + \rule{0pt}{#2} +\end{tabularx} +} +} diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-doc.pdf b/Master/texmf-dist/tex/xelatex/langsci/langsci-doc.pdf Binary files differnew file mode 100644 index 00000000000..83dd8d895a0 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-doc.pdf diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-forest-setup.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-forest-setup.sty new file mode 100644 index 00000000000..dc7c887bcbd --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-forest-setup.sty @@ -0,0 +1,186 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-forest-setup.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains optional styles and settings for the +%% forest package. +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% texlive 2015 is broken (in comparison to texlive 2013) +% a workaround is to use a different pgf driver. +% See email from Akira Kakuto to Stefan Müller 15.01.2016 + +%deceive the driver +\def\pdftexversion{140} +%use the old driver for dvipdfm +\def\pgfsysdriver{pgfsys-dvipdfm.def} + +% http://en.wikibooks.org/wiki/LaTeX/Linguistics#Syntactic_trees +\usepackage{tikz-dependency} + +\usetikzlibrary{tikzmark} % saves positions in tikz pictures, allows to connect arbitrary text + + +% http://tex.stackexchange.com/questions/256280/drawing-complex-dependency-diagrams-with-tikz-forest +\usetikzlibrary{arrows.meta} + +\tikzset{deparrow/.style={-Latex}}%,blue}} + + +\usepackage{forest} +% does not work +%\usepackage[external]{forest}\tikzexternalize\usepackage{morewrites} + + +% specification for all trees +\forestset{.style={for tree={parent anchor=south, child anchor=north,align=center,base=top}}} + + +% http://www.texample.net/tikz/examples/borrowers-and-lenders/ +\usetikzlibrary{arrows} %,positioning} +\tikzset{ + %Define standard arrow tip + >=stealth'} + + + +%% \forestset{ +%% sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom,where n children=0{tier=word}{}}}, +%% background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,edge={draw opacity=0.2}}} +%% } + + + +% The following code fixes the size of triangles for examples with translations. The specification +% ",delay=with translation" at the leaves is important to make this work. +% http://tex.stackexchange.com/questions/167978/smaller-roofs-for-forest/205311#205311 +\forestset{ + with translation/.style={ + l sep=0,inner xsep=0, + append translation/.expanded/.wrap pgfmath arg={\gettranslation{##1}}{content}, + content/.expanded/.wrap pgfmath arg={\gettext{##1}}{content}, + }, + append translation/.style={append={[#1,no edge,l=0,inner xsep=0,inner ysep=0,outer ysep=0,before computing xy={l-=2pt}]}} +} + +\def\gettext#1{\gettextA#1;;\endget} +\def\gettextA#1;#2;{\removesep#1;} +\def\gettranslation#1{\gettranslationA#1;;\endget} +\def\gettranslationA#1;#2;{\removesep#2;} +\def\removesep#1;#2\endget{#1} + + +% a specific style that specifies the word tier: all nodes that do not have any children +% to do: make this style default and change all other figures explicitely as is described here: +% http://tex.stackexchange.com/questions/167983/getting-rid-of-a-default-where-specification +\forestset{ +sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=top}, + where n children=0{tier=word,delay=with translation}{} %,delay=with translation + }, +sn edges without translation/.style={for tree={parent anchor=south, child anchor=north,align=center,base=top}, + where n children=0{tier=word}{} + }, +word tier/.style={where n children=0{tier=word}{} + }, +% +% dependency grammar trees, projective trees only, I guess. St. Mü. 29.09.2014 +dg edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom}, + where n children=0{tier=word,edge=dotted,calign with current edge,delay=with translation}{} + }, +% +% Adjunct edges as suggested by Engels, 1977 +% http://tex.stackexchange.com/questions/204770/defining-a-special-edge-style-for-connecting-nodes-in-forest/204819#204819 +dg adjunct/.style={edge path={\noexpand\path[\forestoption{edge}] +(!u.parent anchor)--(.child anchor)-- +(0,#1)\forestoption{edge label};}}, +% +dg adjunct/.default=6pt, +% +% for Tesniere-style translations +dg transfer/.style={edge path={\noexpand\path[\forestoption{edge}, rounded corners=3pt] + % the line downwards + (!u.parent anchor)-- +($(0,-l)-(0,4pt)$)-- +($(12pt,-l)-(0,4pt)$) + % the horizontal line + ($(!p.north west)+(0,l)-(0,20pt)$)--($(.north east)+(0,l)-(0,20pt)$)\forestoption{edge label};},!p.edge'={}}, +% for Tesniere-style junctions +dg junction/.style={no edge, tikz+={\draw (!p.east)--(!.west) (.east)--(!n.west);} }, +% +% +% +% http://tex.stackexchange.com/questions/256280/drawing-complex-dependency-diagrams-with-tikz-forest/256300#256300 +% in the tree draw the highest nodes of the inheritance network. For lower nodes insert empty nodes +% "[]". These will be filled by the same word and the numbers will be provided with bars according +% to remoteness from the word level. +% +% So cool! Thanks Sašo Živanović +% + wg/.style={ + for tree={ + no edge, + draw, + outer ysep=1pt, + }, + copy label/.style={ + for children={ + if content={}{ + content/.pgfmath={content("!u")}, + calign with current, + edge={draw,{-Triangle[open,reversed]}}, + copy label, + !u.content/.pgfmath={content}, + !u.content+=', + }{ + copy label, + } + } + }, + delay={ + copy label, + for tree={name/.pgfmath={content}}, + }, + for tree={content format={\strut\forestoption{content}}}, + where n children={0}{ + tier=word, + }{}, + }, +% +% +% TAG +% http://tex.stackexchange.com/questions/207459/getting-old-school-trees-with-forest +% fit -> fit=band causes all nodes to have nothing below them +tag/.style={for tree={parent anchor=south, child anchor=north,align=center,base=top,fit=rectangle}, + where n children=0{delay=with translation}{}, +% the following breaks the alignments in sets + begin draw/.code={\begin{tikzpicture}[baseline=(current bounding box.center)]} +}, +% +% like the tag style, but without fit rectangle +no word baseline/.style={for tree={parent anchor=south, child anchor=north,align=center,base=top}, + where n children=0{delay=with translation}{}}, +% +% a style that creates an arrow pointing to the substitution node from a tree top node encoded as daughter +substitution/.style={edge={<-,dashed},l+=\baselineskip}, +% +% +% +typehierarchy/.style={for tree={parent anchor=south, child + anchor=north,align=center,base=top,font=\itshape,fit=rectangle}}, +% if there are instances as leaves in the hiarchy +instance/.style={edge=dotted}, +% +% auxiliary nodes without node label +empty nodes/.style={ + delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}}} +} + + + + +% Manual page 52 +\forestset{ +nice empty nodes/.style={ +for tree={calign=fixed edge angles}, +delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}} +}} diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty new file mode 100644 index 00000000000..a2bffda887e --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty @@ -0,0 +1,511 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-gb4e.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains an adapted version of the gb4e package +%% for typetting linguistic examples. +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ProvidesPackage{langsci/styles/langsci-gb4e}[2000/09/05] +\def\gbVersion{4e} + +%%%%%%%%%%%%%%%%%%%%%%%% +% Format of examples: % +%%%%%%%%%%%%%%%%%%%%%%%% +% \begin{exe} or \exbegin +% <examples> (arab.) +% \begin{xlist} or \xlist +% <subexamples> (1st embedding, alph.) +% \begin{xlisti} or \xlisti +% <subsubexamples> (2st embedding, rom.) +% \end{xlisti} or \endxlisti +% <more examples> +% \end{xlist} or \endxlist +% <still more examples> +% \end{exe} or \exend +% +% Other sublist-styles: xlistA (Alph.), xlistI (Rom.), xlistn (arab) +% +% \ex (produces Number) +% \ex <sentence> (numbered example) +% \ex[jdgmt]{sentence} (numbered example with judgement) +% +% \exi{ident} (produces identifier) +% \exi{ident} <sentence> (example numbered with identifier) +% \exi{ident}[jdgmt]{sentence} (dito with judgement) +% (\exr, \exp and \sn are defined in terms of \exi) +% +% \exr{label} (produces cross-referenced Num.) +% \exr{label} <sentence> (cross-referenced example) +% \exr{label}[jdgmt]{sentence} (cross-referenced example with judgement) +% +% \exp{label} (same as +% \exp{label} <sentence> \exr but +% \exp{label}[jdgmt]{sentence} with prime) +% +% \sn <sentence> (unnumbered example) +% \sn[jdgmt]{sentence} (unnumbered example with judgement) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% For my own lazyness (HANDLE WITH CARE---this works only +% in boringly normal cases.... ): +% +% \ea works like \begin{exe}\ex or \begin{xlist}\ex, +% depending on context +% \z works like \end{exe} or \end{xlist}, dep on context +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% auxiliary files +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\input{./langsci/styles/langsci-cgloss.sty} +\input{./langsci/styles/jambox.sty} + + +\@ifundefined{new@fontshape}{\def\reset@font{}\let\mathrm\rm\let\mathit\mit}{} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Font Specifications (Detmar) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Define commands for fonts to be used: +% +% 1) regular +% a. example line +\newcommand{\exfont}{\normalsize\upshape} +% b. glossing line +\newcommand{\glossfont}{\normalsize\upshape} +% c. translation font +\newcommand{\transfont}{\normalsize\upshape} % 08.01.2014 changed small to normalsize (Martin Haspelmath) +% d. example number +\newcommand{\exnrfont}{\exfont\upshape} +% +% 2) in footnote +% a. example line +\newcommand{\fnexfont}{\footnotesize\itshape} +% b. glossing line +\newcommand{\fnglossfont}{\footnotesize\upshape} +% c. translation font +\newcommand{\fntransfont}{\footnotesize\upshape} +% d. example number +\newcommand{\fnexnrfont}{\fnexfont\upshape} + +% new user command for specifying translations: +%\newcommand{\mytrans}[1]{{\trans`#1'}\vskip.6\baselineskip} + +% make examples in footnotes smaller: +\let\beforeExFootnote\footnote +\renewcommand{\footnote}[1]{\begingroup% +\let\exfont\fnexfont% +\let\glossfont\fnglossfont% +\let\transfont\fntransfont% +\let\exnrfont\fnexnrfont% +%\renewcommand{\@@xsi}{\let\@xsi\roman}% set example numbering to roman +\beforeExFootnote{#1}% +\endgroup} + + +\renewcommand{\eachwordone}{\exfont} +\renewcommand{\eachwordtwo}{\glossfont} +\renewcommand{\eachwordthree}{\glossfont} % same font for both gloss lines + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Macros for examples, roughly following Linguistic Inquiry style. %% +%% From here on best not to tamper, else all the examples and cross- %% +%% references will come out scrambled! (see also note below) - CT %% +%% Completely rewritten for more robustness and flexibility. (hpk) %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\qlist{\begin{list}{\Alph{xnum}.}{\usecounter{xnum}% +\setlength{\rightmargin}{\leftmargin}}} +\def\endqlist{\end{list}} + +\newif\if@noftnote\@noftnotetrue +\newif\if@xrec\@xrecfalse +\@definecounter{fnx} + +%%%% adapted from latex.tex to get examples in footnotes right +%% \long\def\@footnotetext#1{% +%% \@noftnotefalse\setcounter{fnx}{0}% +%% \insert\footins{\reset@font\footnotesize +%% \interlinepenalty\interfootnotelinepenalty +%% \splittopskip\footnotesep +%% \splitmaxdepth \dp\strutbox \floatingpenalty \@MM +%% \hsize\columnwidth \@parboxrestore +%% \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext +%% {\rule{\z@}{\footnotesep}\ignorespaces +%% #1\strut}}\@noftnotetrue} + + +% same effect but more compact +\let\oldFootnotetext\@footnotetext + +\renewcommand\@footnotetext[1]{% + \@noftnotefalse\setcounter{fnx}{0}% + \oldFootnotetext{#1}\@noftnotetrue} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% counters % +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\newcount\@xnumdepth \@xnumdepth = 0 + +\@definecounter{xnumi} +\@definecounter{xnumii} +\@definecounter{xnumiii} +\@definecounter{xnumiv} +%\@definecounter{equation} +%\setcounter{equation}{0} + +% book +%\renewcommand\theequation +% {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation} +%\def\thexnumi{\@xsi{xnumi}} +\def\thexnumi +{\if@noftnote% +\@arabic\@xsi{xnumi}% +\else% +\@roman\@xsi{xnumi}% +\fi% +} +\def\thexnumii{\@xsii{xnumii}} +\def\thexnumiii{\@xsiii{xnumiii}} +\def\thexnumiv{\@xsiv{xnumiv}} +\def\p@xnumii{\thexnumi% +\if@noftnote% +\else% +.% +\fi} +\def\p@xnumiii{\thexnumi\thexnumii-} +\def\p@xnumiv{\thexnumi\thexnumii-\thexnumiii-} + +\def\xs@default#1{\csname @@xs#1\endcsname} +\def\@@xsi{\let\@xsi\arabic} +\def\@@xsii{\let\@xsii\alph} +\def\@@xsiii{\let\@xsiii\roman} +\def\@@xsiv{\let\@xsi\arabic} + +\@definecounter{rxnumi} +\@definecounter{rxnumii} +\@definecounter{rxnumiii} +\@definecounter{rxnumiv} + +\def\save@counters{% +\setcounter{rxnumi}{\value{xnumi}}% +\setcounter{rxnumii}{\value{xnumii}}% +\setcounter{rxnumiii}{\value{xnumiii}}% +\setcounter{rxnumiv}{\value{xnumiv}}}% + + +\def\reset@counters{% +\setcounter{xnumi}{\value{rxnumi}}% +\setcounter{xnumii}{\value{rxnumii}}% +\setcounter{xnumiii}{\value{rxnumiii}}% +\setcounter{xnumiv}{\value{rxnumiv}}}% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% widths % +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\exewidth#1{\def\@exwidth{#1}} +%\exewidth{(234)} +\exewidth{(34)} + +%% St. M�. 02.05.2004 +\def\gblabelsep#1{\def\@gblabelsep{#1}} +\gblabelsep{1em} + + + +%% St. M�. 02.05.2004 +\def\subexsep#1{\def\@subexsep{#1}} +\subexsep{1.5ex} + +% set initial sizes of example number and judgement sizes +\exewidth{\exnrfont (35)} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% example lists % +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\exe{% + %\ifnum\value{equation}>9 \exewidth{(23)}\else\fi% inserted by LSP, for large example numbers + \ifnum\value{equation}>99 \exewidth{(235)}\else\fi% inserted by LSP, for large example numbers + \@ifnextchar [{\@exe}{\@exe[\@exwidth]}} +\def\@exe[#1]{\ifnum \@xnumdepth >0% + \if@xrec\@exrecwarn\fi% + \if@noftnote\@exrecwarn\fi% + \@xnumdepth0\@listdepth0\@xrectrue% + \save@counters% + \fi% + \advance\@xnumdepth \@ne \@@xsi% + \if@noftnote% + \begin{list}{(\thexnumi)}% + {\usecounter{xnumi}\@subex{#1}{\@gblabelsep}{0em}% + \setcounter{xnumi}{\value{equation}}}% + \else% + \begin{list}{(\roman{xnumi})}% + % 1em is the indentation of footnotes in koma-script + % if this does not work for everybody, use parameters ... + {\usecounter{xnumi}\@subex{(iiv)}{\@gblabelsep}{1.5em}% + \setcounter{xnumi}{\value{fnx}}}% + \fi} + +% \begin{list}{(\thexnumi)}% +% {\usecounter{xnumi}\@subex{#1}{1em}% +% \if@noftnote% +% \setcounter{xnumi}{\value{equation}}% +% \else% +% \setcounter{xnumi}{\value{fnx}}% +% \fi}} + +\def\endexe{\if@noftnote\setcounter{equation}{\value{xnumi}}% + \else\setcounter{fnx}{\value{xnumi}}% + \reset@counters\@xrecfalse\fi\end{list}} + +\def\@exrecwarn{\typeout{*** Recursion on "exe"---your + example numbering will probably be screwed up!}} + +\def\xlist{\@ifnextchar [{\@xlist{}}{\@xlist{}[iv.]}} +\def\xlista{\@ifnextchar [{\@xlist{\alph}}{\@xlist{\alph}[m.]}} +\def\xlistabr{\@ifnextchar [{\@xlist{(\alph)}}{\@xlist{(\alph)}[m.]}} +\def\xlisti{\@ifnextchar [{\@xlist{\roman}}{\@xlist{\roman}[iv.]}} +\def\xlistn{\@ifnextchar [{\@xlist{\arabic}}{\@xlist{\arabic}[9.]}} +\def\xlistA{\@ifnextchar [{\@xlist{\Alph}}{\@xlist{\Alph}[M.]}} +\def\xlistI{\@ifnextchar [{\@xlist{\Roman}}{\@xlist{\Roman}[IV.]}} + +\def\endxlist{\end{list}} +\def\endxlista{\end{list}} +\def\endxlistabr{\end{list}} +\def\endxlistn{\end{list}} +\def\endxlistA{\end{list}} +\def\endxlistI{\end{list}} +\def\endxlisti{\end{list}} + + + + +%%% a generic sublist-styler +\def\@xlist#1[#2]{\ifnum \@xnumdepth >3 \@toodeep\else% + \advance\@xnumdepth \@ne% + \edef\@xnumctr{xnum\romannumeral\the\@xnumdepth}% + \def\@bla{#1} + \ifx\@bla\empty\xs@default{\romannumeral\the\@xnumdepth}\else% + \expandafter\let\csname @xs\romannumeral\the\@xnumdepth\endcsname#1\fi + \begin{list}{\csname the\@xnumctr\endcsname.}% + {\usecounter{\@xnumctr}\@subex{#2}{\@subexsep}{0em}}\fi} + +%% Added third argument to be able to add some more space to leftmargin +%% for footnotes that have bigger indentation. +%% St. M�. 07.01.2007 +\def\@subex#1#2#3{\settowidth{\labelwidth}{#1}\itemindent\z@\labelsep#2% + \ifnum\the\@xnumdepth=1% + \topsep 7\p@ plus2\p@ minus3\p@\itemsep3\p@ plus2\p@\else% + \topsep1.5\p@ plus\p@\itemsep1.5\p@ plus\p@\fi% + \parsep\p@ plus.5\p@ minus.5\p@% + \leftmargin\labelwidth\advance\leftmargin#2\advance\leftmargin#3\relax} + +%%% the example-items +\def\ex{\@ifnextchar [{\@ex}{\item}} +\def\@ex[#1]#2{\item\@exj[#1]{#2}} +\def\@exj[#1]#2{\@exjbg{#1} #2 \end{list}} +% without understanding anything: +\def\exs#1{\item\begin{samepage}#1\end{samepage}} +%-- end +\def\exi#1{\item[#1]\@ifnextchar [{\@exj}{}} +\def\judgewidth#1{\def\@jwidth{#1}} +\judgewidth{??} +\judgewidth{*} % if wider judgements are needed, enlarge within papers +\def\@exjbg#1{\begin{list}{#1}{\@subex{\@jwidth}{.5ex}{0em}}\item} +\def\exr#1{\exi{{(\ref{#1})}}} +\def\exp#1{\exi{{(\ref{#1}$'$)}}} +\def\sn{\exi{}} +\def\bu{\item[$\bullet$]} + +%%% Lazy abbrevs (HANDLE WITH CARE!) +%\def\ea{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\raggedright\ex} steht unten noch mal +%\def\ea{\ifnum\@xnumdepth=0\begin{exe}[(\theequation)]\else\begin{xlist}[iv.]\fi\raggedright\ex} +\def\easragged{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\raggedright\ex\begin{tabular}[t]{@{}b{\linewidth}@{}}} +\def\eas{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\ex\begin{tabular}[t]{@{}b{\linewidth}@{}}} +\def\eaa{\ifnum\@xnumdepth=0\begin{exe}[(\theequation)]\else\begin{xlist}[iv.]\fi\raggedright\ex} + + +\def\ex{\@ifnextchar [{\exnrfont\@ex}{\exnrfont\item\exfont}} +\def\@ex[#1]#2{\item\@exj[#1]{\exfont#2}} + +\def\@exjbg#1{\begin{list}{{\exnrfont#1}}{\@subex{\@jwidth}{.5ex}{0em}}\item} +\def\exi#1{\item[{\exnrfont#1}]\@ifnextchar [{\exnrfont\@exj}{}} + +\def\ea{\ifnum\@xnumdepth=0\begin{exe}\else\begin{xlist}[iv.]\fi\raggedright\ex} +\def\eal{\begin{exe}\exnrfont\ex\begin{xlist}[iv.]\raggedright} +\def\ealnoraggedright{\begin{exe}\exnrfont\ex\begin{xlist}[iv.]} +\def\eanoraggedright{\ifnum\@xnumdepth=0\begin{exe}\else\begin{xlist}[iv.]\fi\ex} +\def\glt{\nopagebreak\vskip.17\baselineskip\transfont\parindent0ex} + + + +% copied from here: +% http://tex.stackexchange.com/questions/23677/command-for-paragraph-indentation-after-equations + +%% As Barbara Beeton has commented, forcing the first paragraph after an equation environment to +%% indent can be achieved with \aftergroup -- use this command to add a \par after the group +%% established by the environment. + +%% Forcing the first paragraph after an environment not to indent isn't that straightforward. I came +%% up with the following: + +%% I defined a new macro \@doendeq that will redefine \everypar so that it a) removes the +%% indentation from the first paragraph following it b) reverts to its original (empty) +%% definition. (\@doendeq is an abridged version of LaTeX's \@doendpe which is used after +%% paragraph-making environments.) + +%% To change every instance of the equation environment to remove indents after it, one could +%% simply add \aftergroup\@doendeq to the definition of \endequation. As you are looking for a +%% command to modify only some instances of equation, I used \csappto from the etoolbox package +%% to locally add\aftergroup\@doendeq to \end<\@currenvir> (\@currenvir being the name of the +%% current environment). + +%% I suspect that there are more elegant ways to do this. + +%% \newcommand*{\@doendeq}{% +%% \everypar{{\setbox\z@\lastbox}\everypar{}}% +%% } +%% \newcommand*{\eqcntd}{% +%% \csappto{end\@currenvir}{% +%% \aftergroup\@doendeq +%% }% +%% } + + +\def\z{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% completely undocumented code +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% for enforcing samepage we put stuff in a tabular environment +\def\zs{\end{tabular}\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi} +% %\def\zt{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi\end{tabular}} +% % if an example is final in a footnote +% \def\zlast{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi\vspace{-\baselineskip}} +\def\zlast{\z\vspace{-\baselineskip}} +\def\eafirst{\vspace{-1.5\baselineskip}\ea} +% +% % St. Mue. 26.02.00 +% \def\eaf#1{\begin{exe}[(iv)]\exi{(#1)}} +% \def\eal{\begin{exe}[(\theequation)]\ex\begin{xlist}[iv.]} +% \def\eal{\begin{exe}\ex\begin{xlist}[iv.]\raggedright} steht unten noch mal +% \def\eafl#1{\begin{exe}[(iv)]\exi{(#1)}\begin{xlist}[iv.]} +% \def\eaal{\begin{exe}[(\theequation)]\ex\begin{xlist}[iv.]} +\def\zl{\end{xlist}\end{exe}} +% % if an example is final in a footnote +% Hey, Sebastian, why did you comment this out? Please tell me, if you do such things. 22.07.2014 +\def\zllast{\end{xlist}\end{exe}\removelastskip} +% +% +% %%%%%%% \lcomment for breaks in (example-)lists (leaves all counters +% %%%%%%% as they are) (hpk) +% \newlength{\lcommentsep} +% \lcommentsep = 1ex +% +% \long\def\lcomment#1% +% {\vspace{\lcommentsep} +% \item[]\hspace*{-\leftmargin}% +% \@tempskipa=\linewidth% +% \addtolength{\@tempskipa}{\rightmargin}% +% \addtolength{\@tempskipa}{\leftmargin}% +% \parbox{\@tempskipa}{#1}% +% \vspace{\lcommentsep}% +% } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Picture examples +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%% control the alignment of exampleno. and (picture-)example +%%%%%% (by Lex Holt <lex@cogsci.ed.ac.uk>). +\def\attop#1{\leavevmode\vtop{\strut\vskip-\baselineskip\vbox{#1}}} +\def\atcenter#1{$\vcenter{#1}$} +%%%%%% + +% \exewidth{\exnrfont (\theequation)}} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% several examples in one line +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\xbox}[2]{\noindent\parbox[t]{#1}{#2}\noindent} + +%\newcommand{\nobreakbox}[1]{\xbox{\linewidth}{#1}} + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Bars and other superscripts for projections; specifiers +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\let\prmbrs=0 +\def\primebars{\let\prmbrs=1} +\def\obar#1{\ifmmode#1^{0}\else#1$^{0}$\fi} %% FIX +\def\mbar#1{\ifmmode#1^{\mathrm{max}}\else#1\textsuperscript{max}\fi} +\def\ibar#1{\ifx\prmbrs0% + \ifmmode\overline{\mathrm{#1}}\else$\overline{\mbox{#1}}$\fi% + \else\ifmmode#1^{'}\else#1$^{'}$\fi\fi} +\def\iibar#1{\ifx\prmbrs0% + \ifmmode\overline{\overline{\mathrm{#1}}}% + \else$\overline{\overline{\mbox{#1}}}$\fi% + \else #1P\fi} + + +\def\spec#1{[Spec,#1]} %Def. of "Specifier of #1" + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% custom markup +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\ct#1{{\em #1\/}} %Citation of linguistic material with alternative style: +%\def\ct#1{`#1'} +\def\tx{\bf} %Introduction of technical terms with alternative style: +%\def\tx{\em} + + + diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty new file mode 100644 index 00000000000..074d7ddd1b9 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty @@ -0,0 +1,157 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langsci-optional.sty +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-01-16 16:47:43 UTC +%% Purpose: This file contains useful, but not essential, +%% macros for books using langscibook.cls +%% Language: LaTeX +%% Licence: +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% Heiko Oberdiek +% http://tex.stackexchange.com/questions/136644/vertical-space-in-interaction-with-figure-center-environment +\newcommand{\oneline}[1]{% + \begingroup + \sbox0{\ignorespaces#1\unskip}% + \leavevmode + \ifdim\wd0>\linewidth + \hbox to\linewidth{% + \hss\resizebox{\linewidth}{!}{\copy0 }\hss + }% + \else + \copy0 % + \fi + \endgroup +} + +\newcommand{\centerfit}[1]{% + \begingroup + \sbox0{\ignorespaces#1\unskip}% + \leavevmode + \ifdim\wd0>\linewidth + \hbox to\linewidth{% + \hss\resizebox{\linewidth}{!}{\copy0 }\hss + }% + \else + \centerline{\copy0 }% + \fi + \endgroup +} + +% Helps to fit verbatim onto one line: +% http://tex.stackexchange.com/questions/140593/shrinking-verbatim-text/ +\usepackage{fancyvrb} +\newenvironment{fitverb} + {\SaveVerbatim{rlwv}} + {\endSaveVerbatim + \sbox0{\BUseVerbatim{rlwv}} + \begingroup\center % don't add indentation + \ifdim\wd0>\linewidth + \resizebox{\linewidth}{!}{\copy0}% + \else + \copy0 + \fi + \endcenter\endgroup} + +\VerbatimFootnotes + + +% http://tex.stackexchange.com/questions/73464/inserting-rtl-text-in-verbatim-environment?rq=1 +% verbatim with RTL text + +%\DefineVerbatimEnvironment{rtlverbatim}{Verbatim}{commandchars=+\[\]} + + +\newcommand{\ispackage}[1]{\if@noftnote% +\is{package!{\scshape #1}}% +\else% +\is{package!{\scshape #1}|fn{*}}% +\fi% +} + +% breaks the index +%\usepackage{doc} + + +\newcommand{\ispackageb}[1]{ +\is{package!\texttt{#1}|(} +} +\newcommand{\ispackagee}[1]{ +\is{package!\texttt{#1}|)} +} + +\newcommand{\isoption}[1]{\if@noftnote% +\is{option!\texttt{#1}}% +\else% +\is{option!\texttt{#1}|fn{*}}% +\fi% +} + +\newcommand{\iscommand}[1]{\if@noftnote% +\index{#1@{\ttfamily $\backslash$#1}}% +\else% +\is{{#1@\ttfamily $\backslash$#1}|fn{*}}% +\fi% +} + + +\newcommand\displaycmd[2]{% + \DescribeMacro{#2}\centerline{\cmd{#1}}} + +% \mex considered evil, as we need explicit reference to examples in XML +% % The following allows for a quick reference to following or preceeding examples (\mex{1}) or +% % (\mex{0}) but also (\mex{-1}) +% % taken from covington.sty (check) +% \newcounter{lsptempcnt} +% +% \newcommand{\mex}[1]{\setcounter{lsptempcnt}{\value{equation}}% +% \addtocounter{lsptempcnt}{#1}% +% \arabic{lsptempcnt}}% + +\newcommand{\fitpagewidth}[1]{ + \resizebox{\textwidth}{!}{#1} +} + + + +%add intonation bars over morphemes or words +\newcommand{\intline}[2]{\settowidth{\LSPTmp}{#2}\raisebox{#1pt}{\parbox{.1mm}{\rule{\LSPTmp}{.5pt}}}#2} + +%add rising or falling intonation +\newcommand{\dline}[3]{% + \parbox{.1mm}{\begin{picture}(0,0)% + \put(0,#1){\line(#2,-1){#3}}% + \end{picture}% + }% +} + +%% rotated table headers +% create lengths +\newlength{\rotheight} +\newlength{\rotwidth} + +\newcommand{\rotatehead}[2][1cm]{ +%width is the width of the parbox +%height is the buffer space used to vertically stretch the headere +\setlength{\rotwidth}{#1} +\setlength{\rotheight}{.85\rotwidth} + \begin{rotate}{33}~ %nbsp shifts the content away from the line underneath + \parbox{\rotwidth}{\raggedright #2} + \end{rotate}% + \rule{0pt}{\rotheight} %add zero width rule to get the right table height +} + +% example metadata + +\newcommand{\langinfo}[3]{{\upshape #1\il{#1}~(% +\ifx\\#2\\% +\else% +#2; +\fi% +#3)}\nopagebreak[4]\ignorespaces} + + +% \newcommand{\tobi}[3][0]{\parbox{0cm}{\raisebox{1em}[0cm]{\hspace{#1mm}#3}}#2} + + diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-series.def b/Master/texmf-dist/tex/xelatex/langsci/langsci-series.def new file mode 100644 index 00000000000..b97954e3b1f --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-series.def @@ -0,0 +1,110 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Series information: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\input{\seriesinfopath colors.def} % color definitions + +\newcommand{\calseries}{calseries} +\newcommand{\eotms}{eotms} +\newcommand{\eotmsig}{eotmsig} +\newcommand{\sidl}{sidl} +\newcommand{\algad}{algad} +\newcommand{\tmnlp}{tmnlp} +\newcommand{\nc}{nc} %Niger Congo +\newcommand{\tbls}{tbls} %Textbooks in Language Sciences +\newcommand{\silp}{silp} %Studies in Laboratory Phonology +\newcommand{\tdgi}{tdgi} %Topics at the Discourse Grammar Interface +\newcommand{\cmle}{cmle} %Computational Models of Language Evolution +\newcommand{\cfls}{cfls} %Conceptual Foundation of the Language Sciences +\newcommand{\lv}{lv} %Language Variation +\newcommand{\classics}{classics} +\newcommand{\dummyseries}{dummyseries} +\newcommand{\guidelines}{guidelines} +\newcommand{\lsSeriesFontColor}{white} + +\AtBeginDocument{ +\ifx\lsSeries\algad + \newcommand{\lsSeriesTitle}{African Language Grammars \newlineCover and Dictionaries~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsLightOrange} +\fi +\ifx\lsSeries\calseries %\cal is already taken as a command + \newcommand{\lsSeriesTitle}{Contemporary African Linguistics~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsMidWine} +\fi +\ifx\lsSeries\cfls + \newcommand{\lsSeriesTitle}{Conceptual Foundations of \newlineCover Language Science~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsNightGreen} + \renewcommand{\lsISSN}{2363-877X} +\fi +\ifx\lsSeries\classics + \newcommand{\lsSeriesTitle}{Classics in Linguistics~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{black} + \renewcommand{\lsISSN}{2366-374X} +\fi +\ifx\lsSeries\cmle + \newcommand{\lsSeriesTitle}{Computational Models of Language Evolution~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsNightBlue} + \renewcommand{\lsISSN}{2364-7809} +\fi +\ifx\lsSeries\eotms + \newcommand{\lsSeriesTitle}{Empirically Oriented Theoretical \newlineCover Morphology and Syntax~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsMidBlue} + \renewcommand{\lsISSN}{2366-3529} +\fi +\ifx\lsSeries\eotmsig + \newcommand{\lsSeriesTitle}{Implemented Grammars~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsMidBlue} +\fi +\ifx\lsSeries\lv + \newcommand{\lsSeriesTitle}{Language Variation~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsDarkWine} + \renewcommand{\lsISSN}{2366-7818} +\fi +\ifx\lsSeries\nc + \newcommand{\lsSeriesTitle}{Monographs on Comparative Niger-Congo~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsRed} +\fi +\ifx\lsSeries\ogs + \newcommand{\lsSeriesTitle}{Open Generative Syntax~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsDarkGreen1} +\fi +\ifx\lsSeries\scl + \newcommand{\lsSeriesTitle}{Studies in Caribbean Languages~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsDarkOrange} +\fi +\ifx\lsSeries\sidl + \newcommand{\lsSeriesTitle}{Studies in Diversity Linguistics~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsRichGreen} + \renewcommand{\lsISSN}{2363-5568} +\fi +\ifx\lsSeries\silp + \newcommand{\lsSeriesTitle}{Studies in Laboratory Phonology~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsLightWine} + \renewcommand{\lsISSN}{2363-5576} +\fi +\ifx\lsSeries\tbls + \newcommand{\lsSeriesTitle}{Textbooks in Language Sciences~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsYellow} + \renewcommand{\lsISSN}{2364-6209} +\fi +\ifx\lsSeries\tdgi + \newcommand{\lsSeriesTitle}{Topics at the Discourse Grammar Interface~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsMidDarkBlue} +\fi +\ifx\lsSeries\tmnlp + \newcommand{\lsSeriesTitle}{Translation and Multilingual Natural \newlineCover Language Processing~\lsSeriesNumber} + \newcommand{\lsSeriesColor}{lsDarkBlue} + \renewcommand{\lsISSN}{2364-8899} +\fi +\ifx\lsSeries\dummyseries + \newcommand{\lsSeriesTitle}{~} + \newcommand{\lsSeriesColor}{lsNightGreen} +\fi +\ifx\lsSeries\guidelines + \newcommand{\lsSeriesTitle}{Language Science Press Guidelines} + \newcommand{\lsSeriesColor}{lsGuidelinesGray} + \renewcommand{\lsCoverFontColor}{black} +\fi +} diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty new file mode 100644 index 00000000000..2368cd6789c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-tbls.sty @@ -0,0 +1,106 @@ +\newcommand{\tblsbwbox}[4][]{% +\\ + \noindent + \colorbox{#2}{ +\parbox{.97\textwidth}{ +\centering +\parbox{.9\textwidth}{ + + %add logo if requested + \ifthenelse{\equal{#1}{}}{\bigskip}{ + \begin{flushleft} + \hspace*{3.5mm} \raisebox{0mm}[0mm][0mm]{\color{white}\includegraphics[width=10mm]{langsci/graphics/#1.eps}} + \end{flushleft}} + %add header + \boxheader{#3} + \begin{multicols*}{2} + #4 + \end{multicols*} + \bigskip + } +} +} +\\[1em] +} + + + +\newcommand{\tblsbwboxdark}[3][]{% + \noindent + \tblsbwbox[#1]{gray}{#2}{#3} +} + +\newcommand{\tblsbwboxlight}[3][]{% + \noindent + \tblsbwbox[#1]{lightgray}{#2}{#3} +} + +\newcommand{\tblscolboxdark}[3][]{% + \tblsbwboxdark[#1]{#2}{#3} +} + +\newcommand{\tblscolboxlight}[3][]{% + \tblsbwboxlight[#1]{#2}{#3} +} + + +\newcommand{\tblsthinline}{\rule{\textwidth}{.8mm}} +\newcommand{\tblsthickline}{{\color{gray}\rule{\textwidth}{1.5mm}}} +\newcommand{\tblsthickcolorline}{{\color{lsYellow}\rule{\textwidth}{1.5mm}}} + +\newcommand{\tblssandwich}[3]{ +% \\ + +\medskip +\noindent +#1 +\\[2em] +\boxheader{#2} +\\[1em] +\noindent% +#3 +\smallskip +\noindent +#1 +\\[1em] +} + +\newcommand{\tblsbwthinsandwich}[2]{ + \tblssandwich{\tblsthinline}{#1}{#2} +} + +\newcommand{\tblsbwthicksandwich}[2]{ + \tblssandwich{\tblsthickline}{#1}{#2} +} + +\newcommand{\tblscolthicksandwich}[2]{ + \tblssandwich{\tblsthickcolorline}{#1}{#2} +} + +\newcommand{\tblscolthinsandwich}[2]{ + \tblssandwich{\tblsthinline}{#1}{#2} +} + +\newcommand{\tblscolframebox}[3][]{ + \fboxrule.8mm + \noindent + \begin{figure} + \begin{flushleft} + \hspace*{3.5mm} + \raisebox{-10mm}[0mm][0mm]{\ifthenelse{\equal{#1}{}}{}{\includegraphics[width=10mm]{langsci/graphics/#1.eps}}} \\ + \end{flushleft} + \color{lsYellow}\framebox[\textwidth]{% + \color{black} + \parbox{.92\textwidth}{% + \vspace*{.5cm} + \boxheader{#2} + \begin{multicols*}{2} + #3 + \end{multicols*} + } + } + \end{figure} +} + + +\newcommand{\boxheader}[1]{\medskip{\Large\bfseries\sffamily #1}}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci_logo_nocolor.pdf b/Master/texmf-dist/tex/xelatex/langsci/langsci_logo_nocolor.pdf Binary files differnew file mode 100644 index 00000000000..2edf2afc2ca --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci_logo_nocolor.pdf diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci_spinelogo_nocolor.pdf b/Master/texmf-dist/tex/xelatex/langsci/langsci_spinelogo_nocolor.pdf Binary files differnew file mode 100644 index 00000000000..7184c0711f7 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci_spinelogo_nocolor.pdf diff --git a/Master/texmf-dist/tex/xelatex/langsci/langscibook-logo.pdf b/Master/texmf-dist/tex/xelatex/langsci/langscibook-logo.pdf Binary files differnew file mode 100644 index 00000000000..fa30f59cc4f --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langscibook-logo.pdf diff --git a/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls new file mode 100644 index 00000000000..a346fbcf697 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls @@ -0,0 +1,1713 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File: langscibook.cls +%% Author: Language Science Press (http://langsci-press.org) +%% Date: 2016-05-09 11:11:11 UTC +%% Purpose: This file defines the basic document class +%% for books published with Language Science Press. +%% Language: LaTeX +%% Copyright 2012- Language Science Press +%% Licence: 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 Sebastian Nordhoff. +%% +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Structure of this file: +% \- Paths +% \- Default values of variables +% \- Definition of conditionals +% \- Option handling +% \- MAIN CLASS +% \- General packages +% \- Output types (book, draft, cover) +% \- Page geometry +% \- Fonts +% \- Colors +% \- Book cover +% \- Series history +% \- Imprint +% \- Dedication +% \- Header and footer +% \- Sectioning +% \- Epigrams +% \- Footnotes +% \- Quotes +% \- Citations +% \- Floats +% \- Appendices +% \- Indexes +% \- Hyperref +% \- Edited volumes (Collection) +% \_ Miscellaneous +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{langsci/langscibook}[2016/04/20 Language Science Press] + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Paths +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\fontpath}{} +\newcommand{\logopath}{} +\newcommand{\seriesinfopath}{} +\newcommand{\bstpath}{} +\newcommand{\stylepath}{} +% Paths can be overwritten with option "nonflat" + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Default values +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{xspace} +\newcommand{\lsp}{Language Science Press\xspace} +\newcommand{\lsSeriesNumber}{??} +\newcommand{\lsISSN}{??} +\newcommand{\lsISBNdigital}{000-0-000000-00-0} +\newcommand{\lsISBNhardcover}{000-0-000000-00-0} +\newcommand{\lsISBNsoftcover}{000-0-000000-00-0} +\newcommand{\lsISBNsoftcoverus}{000-0-000000-00-0} +\newcommand{\lsBookDOI}{??} +\newcommand{\lsChapterDOI}{??} +\newcommand{\lsURL}{http://langsci-press.org/catalog} +\newcommand{\lsSeries}{eotms} +\newcommand{\lsSpineBreadth}{20mm} +\newcommand{\lsOutput}{book} %"short" makes no sense if "long" is deprecated +\newcommand{\lsFontsize}{11pt} +\newcommand{\lsCopyright}{CC-BY} +\newcommand{\lsBiblatexBackend}{bibtex} +\newcommand{\logotext}{FU-Logo} + +\newcommand{\lsBackBody}{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.} +\newcommand{\lsBackTitle}{Back Title} +\newcommand{\BackTitle}[1]{\renewcommand{\lsBackTitle}{#1}} +\newcommand{\BackBody}[1]{\renewcommand{\lsBackBody}{#1}} + +\newcommand{\newlineCover}{\\} % \newline only on cover +\newcommand{\newlineSpine}{\\} % \newline only on spine +\newcommand{\newlineTOC}{\\} % \newline only in TOC entry + +\newcommand{\lsSpineTitle}{\@title} +\newcommand{\lsSpineAuthor}{\@author} +\newcommand{\SpineTitle}[1]{\renewcommand{\lsSpineTitle}{#1}} +\newcommand{\SpineAuthor}[1]{\renewcommand{\lsSpineAuthor}{#1}} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Conditionals +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newif\iflsDraft \lsDraftfalse +\newif\iflsOpenReview \lsOpenReviewfalse +\newif\iflsShowIndex \lsShowIndexfalse +\newif\iflsBiblatex \lsBiblatextrue +\newif\iflsCollection \lsCollectionfalse +\newif\iflsCollectionChapter \lsCollectionChapterfalse +\newif\iflsCollectionTOCLong \lsCollectionTOCLongfalse +\newif\iflsNewtxmath \lsNewtxmathtrue +\newif\iflsCover \lsCoverfalse %output format is cover +\newif\iflsUscover \lsUscoverfalse +\newif\iflsModfonts \lsModfontsfalse + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Option handling +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\RequirePackage{kvoptions} % for key-value options +\SetupKeyvalOptions{ + family=langscibook, + prefix=langscibook@ } +\DeclareStringOption{number}[??] + \define@key{langscibook}{number}{% + \renewcommand{\lsSeriesNumber}{#1}} +\DeclareStringOption{issn}[??] + \define@key{langscibook}{issn}{% + \renewcommand{\lsISSN}{#1}} +\DeclareStringOption{isbndigital}[000-0-000000-00-0] + \define@key{langscibook}{isbndigital}{% + \renewcommand{\lsISBNdigital}{#1}} +\DeclareStringOption{isbnsoftcover}[000-0-000000-00-0] + \define@key{langscibook}{isbnsoftcover}{% + \renewcommand{\lsISBNsoftcover}{#1}} +\DeclareStringOption{isbnhardcover}[000-0-000000-00-0] + \define@key{langscibook}{isbnhardcover}{% + \renewcommand{\lsISBNhardcover}{#1}} +\DeclareStringOption{url}[http://langsci-press.org/catalog] + \define@key{langscibook}{url}{% + \renewcommand{\lsURL}{#1}} +\DeclareStringOption{series}[eotms] + \define@key{langscibook}{series}{% + \renewcommand{\lsSeries}{#1}} +\DeclareStringOption{output}[book] + \define@key{langscibook}{output}{% + \renewcommand{\lsOutput}{#1}} +\DeclareStringOption{copyright}[CC-BY] + \define@key{langscibook}{copyright}{% + \renewcommand{\lsCopyright}{#1}} +\DeclareStringOption{biblatexbackend}[bibtex] + \define@key{langscibook}{biblatexbackend}{% + \renewcommand{\lsBiblatexBackend}{#1}} +% \DeclareVoidOption{long}{ +% \renewcommand{\lsOutput}{long}} +\DeclareVoidOption{smallfont}{ + \renewcommand{\lsFontsize}{10pt}} +\DeclareVoidOption{draftmode}{ % 'draftmode' instead of 'draft' due to undesirable side efects + \lsDrafttrue + \overfullrule=5pt } % to indicate overfull hboxes +\DeclareVoidOption{openreview}{ + \lsOpenReviewtrue% + \AtBeginDocument{\renewcommand{\lsISBNdigital}{000-0-000000-00-0}}} +\DeclareVoidOption{nonflat}{ + \renewcommand{\fontpath}{./langsci/fonts/} + \renewcommand{\logopath}{./langsci/graphics/} + \renewcommand{\seriesinfopath}{./langsci/seriesinfo/} + \renewcommand{\bstpath}{./langsci/bst/} + \renewcommand{\stylepath}{./langsci/styles/} +} +\DeclareVoidOption{modfonts}{ + \lsModfontstrue} +\DeclareVoidOption{showindex}{ + \lsShowIndextrue} +\DeclareVoidOption{biblatex}{ + \lsBiblatextrue} +\DeclareVoidOption{bibtex}{ + \lsBiblatexfalse} +\DeclareVoidOption{nonewtxmath}{ + \lsNewtxmathfalse} +\DeclareVoidOption{collection}{ + \lsCollectiontrue} +\DeclareVoidOption{collectionchapter}{ + \lsCollectiontrue% + \lsCollectionChaptertrue} +\DeclareVoidOption{collectiontoclong}{ + \lsCollectiontrue% + \lsCollectionTOCLongtrue} +\DeclareVoidOption{coverus}{ + \lsUscovertrue} +\ProcessKeyvalOptions{langscibook} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Class +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\LoadClass[ + fontsize=\lsFontsize, % default is 11pt + footnotes=multiple, + numbers=noenddot, % no point after last number of chapters/sections + toc=bibliography, + index=totoc, + %chapterprefix=true, + %draft=yes, + %appendixprefix + ]{scrbook} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Packages +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{etex} +\reserveinserts{18} +\usepackage{xstring} +\usepackage{graphicx} +\usepackage{hyphenat} + +\usepackage{tikz} % Needed for covers and advert page + \usetikzlibrary{positioning} + \usetikzlibrary{calc} + +\usepackage{pbox} % boxes with maximum width +\usepackage[hyphens]{url} +\urlstyle{same} + + +%% standard commands +\usepackage{\stylepath langsci-basic} +%% useful commands for glossings: +% \usepackage{\stylepath langsci-lgr} #FIXME this should probably be replaced by \usepackage{leipzig} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Output types +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% \newcommand{\lsOutputLong}{long} +\newcommand{\lsOutputBook}{book} % standard book +\newcommand{\lsOutputShort}{short} % standard book, old key name +\newcommand{\lsOutputInprep}{inprep} % marks manuscript as in preparation +\newcommand{\lsOutputPaper}{paper} % paper in edited volume +\newcommand{\lsOutputGuidelines}{guidelines} % guidelines +\newcommand{\lsOutputCover}{cover} % FIXME remove this? +\newcommand{\lsOutputCoverBOD}{coverbod} % cover with BoD measurements +\newcommand{\lsOutputCoverDOB}{coverdob} % FIXME remove this? +\newcommand{\lsOutputCoverCS}{covercreatespace} % cover with CreateSpace measurements + + + +%% Output types are defined with \newcommand above so they can be used with geometry. + +\AtBeginDocument{ +\ifx\lsOutput\lsOutputPaper % only if output=paper + \usepackage{chngcntr} + \counterwithout{figure}{chapter} + \counterwithout{table}{chapter} + \lsPaper +\else % only if output!=paper +\renewcommand{\maketitle}{ +\begin{titlepage} +\thispagestyle{empty} + +% \ifx\lsOutput\lsOutputLong % only if output=long +% \setcounter{page}{-3} +% %% First titlepage: +% {\lsFrontPage} +% %%%%%%%%%%%%%%%%%%% +% \newpage\thispagestyle{empty} +% \null\newpage\thispagestyle{empty} +% %% Back page: +% {\lsBackPage} +% %%%%%%%%%%%%%%%%%%% +% \newpage\thispagestyle{empty} +% \null\newpage\thispagestyle{empty} +% %% Book spine: +% {\lsSpine} +% %%%%%%%%%%%%%%%% +% \newpage\thispagestyle{empty} +% \null\newpage\thispagestyle{empty} +% %% Series information: +% {\lsSeriesHistory} +% %%%%%%%%%%%%%%%%%%%%% +% \newpage\thispagestyle{empty} +% %% Schmutztitel: +% {\renewcommand{\lsCoverBlockColor}{white} +% \renewcommand{\lsCoverFontColor}{\lsSeriesColor} +% \lsSchmutztitel} +% %%%%%%%%%%%%%%%%%%%% +% \AtEndDocument{ +% \lsPageStyleEmpty +% \null\newpage\thispagestyle{empty} +% %% Advertisement: +% {\lsAdvertisement} +% } +% \fi + +\ifx\lsOutput\lsOutputBook % only if output=book + \setcounter{page}{-1} + %% First titlepage: + {\lsFrontPage} + %%%%%%%%%%%%%%%%%%% + \newpage\thispagestyle{empty} + \null\newpage\thispagestyle{empty} + %% Series information: + {\lsSeriesHistory} + %%%%%%%%%%%%%%%%%%%%% + \newpage\thispagestyle{empty} + %% Schmutztitel: + {\renewcommand{\lsCoverBlockColor}{white} + \renewcommand{\lsCoverFontColor}{\lsSeriesColor} + \lsSchmutztitel} + %%%%%%%%%%%%%%%%%%%% + \AtEndDocument{ + \lsPageStyleEmpty + \null\newpage\thispagestyle{empty} + %% Advertisement: + {\lsAdvertisement} + \null\newpage\thispagestyle{empty} + %% Back page: + {\lsBackPage} + \null\newpage\thispagestyle{empty} + } +\fi + + +\ifx\lsOutput\lsOutputShort %repeated from \lsOutputBook above for backward compatibility + \setcounter{page}{-1} + %% First titlepage: + {\lsFrontPage} + %%%%%%%%%%%%%%%%%%% + \newpage\thispagestyle{empty} + \null\newpage\thispagestyle{empty} + %% Series information: + {\lsSeriesHistory} + %%%%%%%%%%%%%%%%%%%%% + \newpage\thispagestyle{empty} + %% Schmutztitel: + {\renewcommand{\lsCoverBlockColor}{white} + \renewcommand{\lsCoverFontColor}{\lsSeriesColor} + \lsSchmutztitel} + %%%%%%%%%%%%%%%%%%%% + \AtEndDocument{ + \lsPageStyleEmpty + \null\newpage\thispagestyle{empty} + %% Advertisement: + {\lsAdvertisement} + \null\newpage\thispagestyle{empty} + %% Back page: + {\lsBackPage} + \null\newpage\thispagestyle{empty} + } +\fi + +\ifx\lsOutput\lsOutputInprep % only if output=inprep + {\renewcommand{\lsCoverBlockColor}{white} + \renewcommand{\lsCoverFontColor}{black} + \lsCoverBlock + \lsCoverTitleAuthor} +\fi + +\ifx\lsOutput\lsOutputGuidelines % only if output=guidelines + {\setcounter{page}{-1} + \renewcommand{\lsAdvertisement}{} + %% First titlepage: + {\lsFrontPage} + } + +\fi + +\ifx\lsOutput\lsOutputCoverBOD % only if output=cover + \lsCovertrue + \renewcommand{\maketitle}{} %no need for this + \StrLen{\@subtitle}[\subtitleStrLen] % check if a subtitle exists + \pagestyle{empty} + \pgfdeclarelayer{lspcls_bg} % Please make sure to never use lspcls_... PGF layers in any document + \pgfsetlayers{lspcls_bg,main} + \iflsCollection% Check for Collection option + \IfSubStr{\@author}{\&} % if \@author contains \& + {\renewcommand{\lsEditorSuffix}{\xspace(eds.)}} + {\IfSubStr{\@author}{,} % if \@author contains , + {\renewcommand{\lsEditorSuffix}{\xspace(eds.)}} + {\renewcommand{\lsEditorSuffix}{\xspace(ed.)}}} + \renewcommand{\lsEditorPrefix}{{\LARGE Edited by}\\} + \else + \renewcommand{\lsEditorPrefix}{} + \fi + \begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}] + \begin{pgfonlayer}{lspcls_bg} % background layer + \node [bg, left = 24.5mm of current page.east, fill=\lsSeriesColor, minimum height=23.1cm, minimum width=15.2cm] (lspcls_bg1) {}; % Die können wir noch dynamisch bestimmen + \node [bg, right = 24.5mm of current page.west, fill=\lsSeriesColor, minimum height=23.1cm, minimum width=15.2cm] (lspcls_bg2) {}; + \node at (current page.center) [bg, minimum height=24.6cm, minimum width=\totalspine,dashed] (lspcls_bgspline) {}; % add draw option for preview mode + \end{pgfonlayer} + + %% Text and Graphics Layer + + %% Spine + \renewcommand{\newlineCover}{} + \node [above = 7.5mm of lspcls_bgspline.south] (lspcls_splinelogo) {\color{\lsSeriesColor}\includegraphics{\logopath langsci_spinelogo_nocolor.pdf}}; + \node [font=\fontsize{18pt}{14pt}\selectfont, above left = 15mm and 4mm of lspcls_splinelogo.north, rotate=270] (lspcls_splinetitle) {\color{\lsSeriesColor} \lsSpineAuthorFont{\lsSpineAuthor\lsEditorSuffix} \hspace{13mm} \lsSpineTitleFont{\@title}}; + \renewcommand{\newlineCover}{\\} + + %% Book Cover + + \newcommand{\lsCoverFontColour}{white} + + \node [execute at begin node={}, font=\fontsize{52pt}{16.75mm}\selectfont, below right = 10mm and 7.5mm of lspcls_bg1.north west, text width=13.7cm, align=left] (lspcls_covertitle) {\color{\lsCoverFontColour}\lsCoverTitleFont{\@title\par}}; % x = 15mm - 7.5mm ; y = 17.5mm - 7.5mm + + \ifnum\subtitleStrLen=0 % Is there a subtitle? + \node [font=\fontsize{25pt}{12.5mm}\selectfont, right, below = 11.2mm of lspcls_covertitle.south, text width=137mm] {\color{\lsCoverFontColour}\lsCoverAuthorFont\nohyphens{\lsEditorPrefix\@author\par}}; % If not, just print the author + \else + \node [font=\fontsize{25pt}{10mm}\selectfont,below = 8mm of lspcls_covertitle.south, text width=137mm] (lspcls_coversubtitle) {\color{\lsCoverFontColour} \lsCoverSubTitleFont \nohyphens{\@subtitle}\par}; + \node [font=\fontsize{25pt}{12.5mm}\selectfont, right, below = 11.2mm of lspcls_coversubtitle.south, text width=137mm] {\color{\lsCoverFontColour}\lsCoverAuthorFont{\nohyphens{\lsEditorPrefix\@author\par}}}; + \fi + + \node [above left = 10mm and 7.5mm of lspcls_bg1.south east] {\color{\lsCoverFontColour}\includegraphics{\logopath langsci_logo_nocolor.pdf}}; + \node [above right = 18.5mm and -.1mm of lspcls_bg1.south west, rectangle, fill=white, minimum size=17pt] (lspcls_square) {}; % 2 + \path let \p1 = (lspcls_square.north east), \p2 = (lspcls_covertitle.west) in node at (\x2,\y1) (lspcls_seriesinfo) [font=\fontsize{17pt}{7.5mm}\selectfont, right, text width=95mm, anchor=north west] {\color{\lsCoverFontColour}\lsCoverSeriesFont{\lsSeriesTitle\par}}; + + %% Book Back Cover + \node [font=\fontsize{25pt}{10mm}\selectfont, right, below right = 16.5mm and 7.5mm of lspcls_bg2.north west, text width=11.5cm] (lspcls_backtitle) {\color{\lsCoverFontColour}\lsBackTitleFont{\lsBackTitle\par}}; + \node [below = 10mm of lspcls_backtitle, text width=11.5cm, align=justify] {\color{\lsCoverFontColour}\lsBackBodyFont{\parindent=15pt\lsBackBody}}; + %\node [below right = 192.5mm and 97.5mm of lspcls_bg2.north west] {\color{\lsCoverFontColour}ISBN \lsBackBodyFont{\lsISBN}}; + \node [below right = 192.5mm and 97.5mm of lspcls_bg2.north west, text width=4cm] { + \colorbox{white}{ + \begin{pspicture}(0,0)(4.1,1in) + \psbarcode[transx=.4,transy=.3]{\lsISBNhardcover}{includetext height=.7}{isbn}% + \end{pspicture}}}; + + %% Guiding Lines + %\draw [red, thick, dashed] (lspcls_covertitle.west) -- (lspcls_seriesinfo.west); + + % \node [below right=17mm and 17mm of current page.north west] (GL1) {}; + % \node [above left=17mm and 17mm of current page.south east] (GL2) {}; + % \draw [dashed, orange, thick] (GL1) -| (GL2) -| (GL1); + % + + \end{tikzpicture} + \end{titlepage} + \end{document} % the cover and nothing else. + \fi + + \ifx\lsOutput\lsOutputCoverCS % only if output=covercs + \lsCovertrue + \renewcommand{\maketitle}{} % no need for this + \StrLen{\@subtitle}[\subtitleStrLen] % check if a subtitle exists + \pagestyle{empty} + \pgfdeclarelayer{lspcls_bg} % Please make sure to never use lspcls_... PGF layers in any document + \pgfsetlayers{lspcls_bg,main} + \iflsCollection% Check for Collection option + \IfSubStr{\@author}{\&} % if \@author contains \& + {\renewcommand{\lsEditorSuffix}{\xspace(eds.)}} + {\IfSubStr{\@author}{,} % if \@author contains , + {\renewcommand{\lsEditorSuffix}{\xspace(eds.)}} + {\renewcommand{\lsEditorSuffix}{\xspace(ed.)}}} + \renewcommand{\lsEditorPrefix}{{\LARGE Edited by}\\} + \else + \renewcommand{\lsEditorPrefix}{} + \fi + \begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}] + \begin{pgfonlayer}{lspcls_bg} % background layer + \node [bg, left = 10.675mm of current page.east, fill=\lsSeriesColor, minimum height=22.5cm, minimum width=15.5cm] (lspcls_bg1) {}; % Die können wir noch dynamisch bestimmen % 7.5mm -> 10.675mm for bleed + \node [bg, right = 10.675mm of current page.west, fill=\lsSeriesColor, minimum height=22.5cm, minimum width=15.5cm] (lspcls_bg2) {}; + \node at (current page.center) [bg, minimum height=24cm, minimum width=\spinewidth,dashed] (lspcls_bgspline) {}; % add [draw] option for preview mode + \end{pgfonlayer} + %% Text and Graphics Layer + + %% Spine + \renewcommand{\newlineCover}{} + \node [above = 10.675mm of lspcls_bgspline.south] (lspcls_splinelogo) {\color{\lsSeriesColor}\includegraphics{\logopath langsci_spinelogo_nocolor.pdf}}; + \node [font=\fontsize{18pt}{14pt}\selectfont, above left = 15mm and 4mm of lspcls_splinelogo.north, rotate=270] (lspcls_splinetitle) {\color{\lsSeriesColor} \lsSpineAuthorFont{\lsSpineAuthor\lsEditorSuffix} \hspace{13mm} \lsSpineTitleFont{\@title}}; + \renewcommand{\newlineCover}{\\} + + %% Book Cover + \newcommand{\lsCoverFontColour}{white} + + \node [execute at begin node={}, font=\fontsize{52pt}{16.75mm}\selectfont, below right = 10mm and 7.5mm of lspcls_bg1.north west, text width=140mm, align=left] (lspcls_covertitle) {\color{\lsCoverFontColour}\lsCoverTitleFont{\@title\par}}; % x = 15mm - 7.5mm ; y = 17.5mm - 7.5mm + + \ifnum\subtitleStrLen=0 % Is there a subtitle? + {\color{\lsCoverFontColour}\lsCoverAuthorFont\nohyphens{\lsEditorPrefix\@author\par}}; % If not, just print the author + \else + \node [font=\fontsize{25pt}{10mm}\selectfont, right, below = 8mm of lspcls_covertitle.south, text width=140mm] (lspcls_coversubtitle) {\color{\lsCoverFontColour} \lsCoverSubTitleFont \nohyphens{\@subtitle\par}}; + \node [font=\fontsize{25pt}{12.5mm}\selectfont, right, below = 11.2mm of lspcls_coversubtitle.south, text width=140mm] {\color{\lsCoverFontColour}\lsCoverAuthorFont\nohyphens{\lsEditorPrefix\@author\par}}; + \fi + + \node [below right = 197.5mm and 117.1mm of lspcls_bg1.north west] {\color{\lsCoverFontColour}\includegraphics{\logopath langsci_logo_nocolor.pdf}}; + \node [above right = 18.5mm and -.1mm of lspcls_bg1.south west, rectangle, fill=white, minimum size=17pt] (lspcls_square) {}; % 2 + \path let \p1 = (lspcls_square.north east), \p2 = (lspcls_covertitle.west) in node at (\x2,\y1) (lspcls_seriesinfo) [font=\fontsize{17pt}{7.5mm}\selectfont, right, text width=95mm, anchor=north west] {\color{\lsCoverFontColour}\lsCoverSeriesFont{\lsSeriesTitle\par}}; + + %% Book Back Cover + \node [font=\fontsize{25pt}{10mm}\selectfont, right, below right = 16.5mm and 7.5mm of lspcls_bg2.north west, text width=11.5cm] (lspcls_backtitle) {\color{\lsCoverFontColour}\lsBackTitleFont{\lsBackTitle\par}}; + \node [below = 10mm of lspcls_backtitle, text width=11.5cm, align=justify] {\color{\lsCoverFontColour}\lsBackBodyFont{\parindent=15pt\lsBackBody}}; + %\node [below right = 192.5mm and 97.5mm of lspcls_bg2.north west] {\color{\lsCoverFontColour}ISBN \lsBackBodyFont{\lsISBN}}; + \node [below right = 192.5mm and 97.5mm of lspcls_bg2.north west, text width=4cm] { + \colorbox{white}{ + \begin{pspicture}(0,0)(4.1,1in) + \psbarcode[transx=.4,transy=.3]{% + \iflsUscover\lsISBNsoftcoverus\else\lsISBNsoftcover\fi + }{includetext height=.7}{isbn}% + \end{pspicture}} + }; + \end{tikzpicture} + \end{titlepage} + \end{document} % the cover and nothing else. + \fi + +\end{titlepage} + +\frontmatter +\renewcommand{\frontmatter}{} + +\null\newpage\thispagestyle{empty} +\hypersetup{colorlinks=false, pdfborder={0 0 0}} % for hyperref +\color{black} +\lsInsideFont + +%% Imprint: +\ifx\lsOutput\lsOutputInprep{} +\else{ + \ifx\lsOutput\lsOutputGuidelines{} + \else{\lsImpressum} + \fi} +\fi +%%%%%%%%%%%%% + +\null\newpage\thispagestyle{plain} +%\pagenumbering{roman} % or \frontmatter + +%% Dedication: +\ifx\@dedication\empty{} +\else{\lsDedication} +\fi +%%%%%%%%%%%%%%%% + +} %% \maketitle +\fi + +%% for those who like the example in numbered example sentences to be typeset in italics +%% this is possible for a complete series only. +\ifx\lsSeries\sidl + %\def\exfont{\normalsize\itshape} + \renewcommand{\eachwordone}{\itshape} % only \gll + + \let\oldtable\table % footnotes in tables without horizontal line + \let\endoldtable\endtable + \renewenvironment{table}{\setfootnoterule{0pt}\oldtable}{\endoldtable} +\fi + +} %% \AtBeginDocument + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Geometry +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% For output type cover +\newlength{\csspine} +\newlength{\bodspine} +\newlength{\bleed} +\newlength{\seitenbreite} +\newlength{\seitenhoehe} +\newlength{\spinewidth} +\newlength{\totalwidth} +\newlength{\totalheight} +\setlength{\csspine}{20mm} +\setlength{\bodspine}{20mm} +\setlength{\bleed}{3.175mm} + + + \ifx\lsOutput\lsOutputCoverCS % if output = cover; This is the CreateSpace Version +% \input{./lengths.tex} + \lsCovertrue + \setlength{\bleed}{3.175mm} + \setlength{\seitenbreite}{169.9mm} + \setlength{\seitenhoehe}{244.1mm} + \setlength{\spinewidth}{\csspine} % Create Space Version + + \usepackage{calc} + + \setlength{\totalwidth}{\spinewidth+\seitenbreite+\seitenbreite+\bleed+\bleed} + \setlength{\totalheight}{\seitenhoehe+\bleed+\bleed} + \usepackage[paperheight=\totalheight, paperwidth=\totalwidth]{geometry} + \hyphenpenalty 750 +\fi + +\ifx\lsOutput\lsOutputCoverBOD + \lsCovertrue + \usepackage{calc} +% \input{./lengths.tex} + \newlength{\bodfold} + \newlength{\totalspine} + \setlength{\bodfold}{8mm} + \setlength{\seitenbreite}{192mm} + \setlength{\seitenhoehe}{280mm} % For BOD: Hardcover, Gerader Rücken, Kaschiert, papier 80g/m², weiß + \setlength{\spinewidth}{\bodspine} + \setlength{\totalspine}{\spinewidth+\bodfold+\bodfold} + \setlength{\totalwidth}{\spinewidth+\seitenbreite+\seitenbreite} + \setlength{\totalheight}{\seitenhoehe} + \usepackage[paperheight=\seitenhoehe, paperwidth=\totalwidth]{geometry} + \hyphenpenalty 750 +\fi + +%Page size and text area if not cover + +\iflsCover +%output types cover have already been handled +\else % output != cover + \usepackage[ + papersize={170mm,240mm} + ,top=27.4mm % TODO nachgemessen, nach Vermassung eigentlich 30mm-16pt = 25.8mm + ,inner=20.5mm, + ,outer=24.5mm + %,showframe,pass + ,marginparwidth=50pt + ]{geometry} +\fi + +\usepackage[ + absolute % for absolute positioning in titlepage + %,showboxes + ]{textpos} +\setlength{\TPHorizModule}{1mm} +\setlength{\TPVertModule}{\TPHorizModule} +\textblockorigin{0mm}{0mm} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Fonts +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{ifxetex} +\ifxetex\else\ClassError{langsci/langscibook}{Please use XeLaTeX!}{}\fi +\usepackage{amssymb} % has to be loaded before other stuff +\PassOptionsToPackage{no-math}{fontspec} % must appear before metalogo or any fontspec stuff; deactivates fontspec's math settings, which is necessary to let newtxmath do the job +\usepackage{metalogo}\newcommand{\xelatex}{\XeLaTeX\xspace} +\usepackage{dejavu} +\usepackage{libertine} + +\setmonofont[ + Ligatures={TeX},Scale=MatchLowercase, + BoldFont = DejaVuSansMono-Bold.ttf , + SlantedFont = DejaVuSansMono-Oblique.ttf , + BoldSlantedFont = DejaVuSansMono-BoldOblique.ttf + ]{DejaVuSansMono.ttf} + +\iflsModfonts{% use Langsci fonts + \setsansfont[ + %Ligatures={TeX,Common}, % not supported by ttf + Scale=MatchLowercase, + Path=\fontpath, + BoldFont = Arimo-Bold_B.ttf , + ItalicFont = Arimo-Italic_B.ttf , + BoldItalicFont = Arimo-BoldItalic_B.ttf + ]{Arimo_B.ttf} + + + \setmainfont[ + Ligatures={TeX,Common}, + Path=\fontpath, + PunctuationSpace=0, + Numbers={Proportional}, + BoldFont = LinLibertine_RZ_B.otf , + ItalicFont = LinLibertine_RI_B.otf , + BoldItalicFont = LinLibertine_RZI_B.otf, + BoldSlantedFont = LinLibertine_RZ_B.otf, + SlantedFont = LinLibertine_R_B.otf, + SlantedFeatures = {FakeSlant=0.25}, + BoldSlantedFeatures = {FakeSlant=0.25}, + SmallCapsFeatures = {FakeSlant=0}, + ]{LinLibertine_R_B.otf} +\else % use standard fonts + \setsansfont[ + %Ligatures={TeX,Common}, % not supported by ttf + Scale=MatchLowercase, + Path=\fontpath, + BoldFont = Arimo-Bold.ttf , + ItalicFont = Arimo-Italic.ttf , + BoldItalicFont = Arimo-BoldItalic.ttf + ]{Arimo-Regular.ttf} + + + \setmainfont[ + Ligatures={TeX,Common}, + Path=\fontpath, + PunctuationSpace=0, + Numbers={Proportional}, + BoldFont = LinLibertine_RZ.otf , + ItalicFont = LinLibertine_RI.otf , + BoldItalicFont = LinLibertine_RZI.otf, + BoldSlantedFont = LinLibertine_RZ.otf, + SlantedFont = LinLibertine_R.otf, + SlantedFeatures = {FakeSlant=0.25}, + BoldSlantedFeatures = {FakeSlant=0.25}, + SmallCapsFeatures = {FakeSlant=0}, + ]{LinLibertine_R.otf} + +\fi + +\iflsNewtxmath % some users have problems when installing newtxmath + \usepackage[libertine]{newtxmath} + + %% following http://tex.stackexchange.com/questions/297328/xelatex-does-not-load-newtxmath-with-linuxlibertine-sometimes + %% due to a bug in XeTeX; unfortunately this is NOT extensively tested! + \usepackage{xpatch} + \xpretocmd{\textsuperscript} + {{\sbox0{$\textstyle x$}}} + {}{} + \AtBeginDocument{% + \DeclareSymbolFont{operators}{\encodingdefault}{\familydefault}{m}{n}% + \SetSymbolFont{operators}{bold}{\encodingdefault}{\familydefault}{b}{n}% + } +\fi + +\let\oldtabular\tabular % number in tabulars +\let\endoldtabular\endtabular +\renewenvironment{tabular}{\normalfont\addfontfeatures{Numbers=Lining}\selectfont\oldtabular}{\endoldtabular} + +%\frenchspacing +\usepackage[final]{microtype} + +\newcommand{\lsCoverTitleFont}[1]{\sffamily\addfontfeatures{Scale=MatchUppercase}\fontsize{52pt}{16.75mm}\selectfont #1} +\newcommand{\lsCoverSubTitleFont}{\sffamily\addfontfeatures{Scale=MatchUppercase}\fontsize{25pt}{10mm}\selectfont} +\newcommand{\lsCoverAuthorFont}{\fontsize{25pt}{12.5mm}\selectfont} +\newcommand{\lsCoverSeriesFont}{\sffamily\fontsize{17pt}{7.5mm}\selectfont} % fontsize? +\newcommand{\lsCoverSeriesHistoryFont}{\sffamily\fontsize{10pt}{5mm}\selectfont} +\newcommand{\lsInsideFont}{} % obsolete, see \setmainfont +\newcommand{\lsDedicationFont}{\fontsize{15pt}{10mm}\selectfont} +\newcommand{\lsBackTitleFont}{\sffamily\addfontfeatures{Scale=MatchUppercase}\fontsize{25pt}{10mm}\selectfont} +\newcommand{\lsBackBodyFont}{\lsInsideFont} +\newcommand{\lsSpineAuthorFont}{\fontsize{16pt}{14pt}\selectfont} +\newcommand{\lsSpineTitleFont}{\sffamily\fontsize{18pt}{14pt}\selectfont} + +\setkomafont{sectioning}{\normalcolor\bfseries} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Colors: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{xcolor} +\input{\seriesinfopath series.def} % \lsSeriesColor, \lsSeriesTitle, \lsISSN and colors are defined here + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Cover: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{pst-barcode} % for generating bar codes +\newcommand{\lsCoverFontColor}{white} +\newcommand{\lsCoverBlockColor}{\lsSeriesColor} +\newcommand{\lsEditorPrefix}{} +\newcommand{\lsEditorSuffix}{} + +\iflsCollection % for collections: set \lsEditorSuffix depending on \@author +\AtBeginDocument{ + \onlyAuthor + \renewcommand{\newlineCover}{} + \renewcommand{\newlineSpine}{} + \IfSubStr{\@author}{\&} % if \@author contains \& + {\renewcommand{\lsEditorSuffix}{(eds.)}} + {\IfSubStr{\@author}{,} % if \@author contains , + {\renewcommand{\lsEditorSuffix}{(eds.)}} + {\renewcommand{\lsEditorSuffix}{(ed.)}}} +} +\else +\fi + +\newcommand{\lsCoverBlock}{ + \begin{textblock}{155}(7.6,7.5) + \color{\lsCoverBlockColor} + \raggedright\rule{155mm}{225mm} + \end{textblock} + \iflsDraft + \begin{textblock}{155}(30,80) + \color{lsLightGray} + \rotatebox{40}{ + \begin{tabular}{c} + \scalebox{10}{DRAFT}\\ + of \today, \currenttime + \end{tabular}} + \end{textblock} + \fi + \iflsOpenReview + \iflsDraft + \ClassError{langsci/langscibook}{Open review mode not compatible with draft mode. Please disable one of them}{} + \fi + \begin{textblock}{170}(-20,75) + \rotatebox{30}{ + \colorbox{red}{ + \parbox[c][15ex][c]{220mm}{\centering\lsCoverTitleFont\color{white}Open Review\\[-0.1ex]} + % \begin{tabular}{c} + % ~\\ + % \scalebox{6}{\color{red}Open Review}\\[-0.5ex] + % ~%version of \today, \currenttime + % \end{tabular} + } + } + \end{textblock} + \fi} + +\newcommand{\lsCoverTitleAuthor}{ + \renewcommand{\and}{} + \renewcommand{\lastand}{} + \renewcommand{\newlineCover}{\\} + \renewcommand{\newlineSpine}{} + \lsCoverBlock + + \begin{textblock}{140}(15,17.5) + \color{\lsCoverFontColor} + \raggedright + {\lsCoverTitleFont{\@title\\}} + + \ifx\@subtitle\empty + \else \vspace{8mm} {\lsCoverSubTitleFont \@subtitle\\} + \fi + + \vspace{11.2mm} % 20mm - 25pt + + \raggedright + {\lsCoverAuthorFont + \lsEditorPrefix\@author\\} + \end{textblock}} + +\newcommand{\lsCoverSeries}{ + \begin{textblock}{95}(7.4,209) + \color{white} + \raggedright\rule{3.6mm}{3.5mm} + \color{\lsCoverFontColor} + \hspace{3mm}\parbox[t]{85mm}{\raggedright\lsCoverSeriesFont + \lsSeriesTitle\\} + \end{textblock}} + +\newcommand{\lsCoverLogo}{ + \begin{textblock}{33}(124.6,205) + \raggedright\IfFileExists{\logopath langsci_logo_nocolor.pdf}{\includegraphics{\logopath langsci_logo_nocolor.pdf}}{langsci logo} + \end{textblock}} + +\newcommand{\lsFrontPage}{ % Front page + \lsCoverBlock + \lsCoverTitleAuthor + \lsCoverSeries + \lsCoverLogo} + +\newcommand{\lsSchmutztitel}{ % Schmutztitel + \lsCoverBlock + \lsCoverTitleAuthor + \lsCoverLogo} + +%\usepackage{pdfpages} +\newcommand{\lsAdvertisement}{ + \include{\logopath langsci-advertisement} +} + +\newcommand{\lsBackPage}{ % Back page + \lsCoverBlock + + \begin{textblock}{115}(15,24) % 30mm-6mm + \color{white} + {\raggedright + \lsBackTitleFont + \lsBackTitle \\ \null} + + \lsBackBodyFont + + \noindent + \lsBackBody + \end{textblock} + + \begin{textblock}{40}(105,200) + \lsBackBodyFont\sffamily + \colorbox{white}{% + \begin{pspicture}(0,0)(4.1,1in) + \psbarcode[transx=0.4,transy=0.3]{\lsISBNdigital}{includetext height=0.7}{isbn} + \end{pspicture} + }% + \end{textblock}} + +% \newcommand{\lsSpine}{ % Book spine +% \renewcommand{\newlineSpine}{\\} +% \renewcommand{\newlineCover}{} +% \begin{textblock}{40}(65,0) +% \rotatebox{90}{\color{black}\begin{minipage}[c][\lsSpineBreadth][c]{\paperheight} +% \color{\lsSeriesColor} +% \hspace{7.5mm} +% \IfFileExists{\logopath langsci_spinelogo_nocolor.pdf}{$\vcenter{\hbox{\includegraphics[angle=-90,origin=c]{\logopath langsci_spinelogo_nocolor.pdf}}}$}{logo} +% \hspace{15mm} +% {\lsSpineTitleFont +% \rotatebox[origin=c]{180}{\pbox[c]{150mm}{\lsSpineTitle}}} +% \hspace{13mm} +% {\lsSpineAuthorFont +% \rotatebox[origin=c]{180}{\pbox[c]{100mm}{\lsSpineAuthor\if\lsEditorSuffix\empty\else\ \lsEditorSuffix\fi}}} +% \end{minipage}} +% \end{textblock}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Series history: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\lsSeriesHistory}{ +\color{black} +\raggedright\lsCoverSeriesHistoryFont + +\IfFileExists{\seriesinfopath \lsSeries-info.tex}{\input{\seriesinfopath\lsSeries-info}}{ + Series information: \seriesinfopath \lsSeries-info.tex not found!} + +\IfStrEq{\lsISSN}{??} % \IfStrEq from xstring + {} + {\vfill\hfill ISSN: \lsISSN} + +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Imprint: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% for imprint: +\def\translator#1{\gdef\@translator{#1}} +\translator{} + +\def\typesetter#1{\gdef\@typesetter{#1}} +\typesetter{} + +\def\proofreader#1{\gdef\@proofreader{#1}} +\proofreader{} + +\def\openreviewer#1{\gdef\@openreviewer{#1}} +\openreviewer{} + +\def\illustrator#1{\gdef\@illustrator{#1}} +\illustrator{} + +\newcommand{\lsAdditionalFontsImprint}{} +\newcommand{\AdditionalFontImprint}[1]{ + \edef\fontstemp{\lsAdditionalFontsImprint} + \renewcommand{\lsAdditionalFontsImprint}{\fontstemp, #1} +} + +%\def\@author{\@latex@warning@no@line{No \noexpand\author given}} +\newcommand{\ISBNdigital}[1]{\renewcommand{\lsISBNdigital}{#1}} +\newcommand{\ISBNsoftcover}[1]{\renewcommand{\lsISBNsoftcover}{#1}} +\newcommand{\ISBNhardcover}[1]{\renewcommand{\lsISBNhardcover}{#1}} + +\newcommand{\URL}[1]{\renewcommand{\lsURL}{#1}} +\newcommand{\Series}[1]{\renewcommand{\lsSeries}{#1}} +\newcommand{\SeriesNumber}[1]{\renewcommand{\lsSeriesNumber}{#1}} +\newcommand{\BookDOI}[1]{\renewcommand{\lsBookDOI}{#1}} + +\newcommand{\lsImpressumCitationText}{ + \onlyAuthor + \renewcommand{\newlineCover}{} + \renewcommand{\newlineSpine}{} + {\@author}\if\lsEditorSuffix\empty\else\ \lsEditorSuffix\fi. % + {\the\year}. % + \textit{\@title}\if\@subtitle\empty\else: \textit{\@subtitle}\fi\ % + (\lsSeriesTitle). % + Berlin: Language Science Press. +} + +\newcommand{\lsImpressum}{ +\raggedright + +\lsImpressumCitationText + +\vfill + +This title can be downloaded at:\\ +\url{\lsURL} + +© \the\year, \iflsCollection the authors\else\@author\fi + +\newcommand{\ccby}{CC-BY} +\ifx\lsCopyright\ccby +Published under the Creative Commons Attribution 4.0 Licence (CC BY 4.0): +http://creativecommons.org/licenses/by/4.0/ +\else +Published under the Creative Commons Attribution-NoDerivatives 4.0 Licence (CC BY-ND 4.0): +http://creativecommons.org/licenses/by-nd/4.0/ +\fi + +\begin{tabular}{@{}l@{~}l} +ISBN: & \lsISBNdigital~(Digital) \\ + & \lsISBNhardcover~(Hardcover)\\ + & \lsISBNsoftcover~(Softcover)\\ + & \lsISBNsoftcoverus~(Softcover US)\\ +\end{tabular} + +\IfStrEq{\lsISSN}{??} % \IfStrEq from xstring + {} + {ISSN: \lsISSN} + +\IfStrEq{\lsBookDOI}{??} % \IfStrEq from xstring + {} + {\doi{\lsBookDOI}} + + +\bigskip + +Cover and concept of design: +Ulrike Harbort \\ +\if\@translator\empty\else +Translator: +\@translator \\ +\fi +\if\@typesetter\empty\else +Typesetting: +\@typesetter \\ +\fi +\if\@illustrator\empty\else +Illustration: +\@illustrator \\ +\fi +\if\@proofreader\empty\else +Proofreading: +\@proofreader \\ +\fi +\if\@openreviewer\empty\else +Open reviewing: +\@openreviewer \\ +\fi +Fonts: Linux Libertine, Arimo, DejaVu Sans Mono\lsAdditionalFontsImprint\\ +Typesetting software: \XeLaTeX + +\bigskip + +Language Science Press\\ +Habelschwerdter Allee 45\\ +14195 Berlin, Germany\\ +\href{http://langsci-press.org}{langsci-press.org} + +\vfill + +Storage and cataloguing done by FU Berlin \\[3ex] + +\IfFileExists{\logopath logo.pdf}{\includegraphics[width=5cm]{\logopath logo.pdf}}{\logotext} \\[3ex] + + +\vfill + + + +\noindent +\lsp has no responsibility for the persistence or accuracy of URLs for +external or third-party Internet websites referred to in this +publication, and does not guarantee that any content on such websites +is, or will remain, accurate or appropriate. +%Information regarding prices, travel timetables and other factual information given in this work are correct at the time of first publication but \lsp does not guarantee the accuracy of such information thereafter. +} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Dedication: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newcommand{\lsDedication}{ + \vspace*{.2\textheight} + \begin{center} + {\lsDedicationFont + \@dedication } + \end{center} + \vfill + \clearpage} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Header and footer: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{datetime} +\usepackage{scrpage2} +\ohead{\headmark} +\ihead{} +\cfoot{} +\ofoot[]{\pagemark} +\iflsDraft + \ifoot{Draft of \today, \currenttime} +\fi +\iflsOpenReview + \ifoot{{\color{lsRed}Open review version}. Final version at \url{\lsURL}.} +\fi + +\newcommand{\lsPageStyleEmpty}{ + \ohead{} + \ihead{} + \cfoot{} + \ofoot[]{} +} + +\renewcommand*{\partpagestyle}{empty} + +\pagestyle{scrheadings} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Sectioning +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\setcounter{secnumdepth}{4} + +\def\subsubsubsection{\@startsection{paragraph}{3}{\z@}{-3.25ex plus +-1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize}} + +\let\subsubsubsectionmark\@gobble% + +\def\subsubsubsubsection{\@startsection{subparagraph}{3}{\z@}{-3.25ex plus +-1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize}} + +\let\subsubsubsubsectionmark\@gobble + +%% needed for hyperref +\def\toclevel@subsubsubsection{4} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Epigrams: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\epigram#1{\gdef\@epigram{#1}} % needs to be defined this way to check emptiness +\epigram{} +\def\epigramsource#1{\gdef\@epigramsource{#1}} +\epigramsource{} + + +%%% epigraph configuration +\usepackage{epigraph} +\setlength{\epigraphrule}{0pt} +\renewcommand{\textflush}{flushepinormal} +%\setlength{\epigraphwidth}{.2\textwidth} +\setlength{\afterepigraphskip}{0\baselineskip} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Footnotes: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ifxetex +\addtokomafont{footnote}{\addfontfeatures{Numbers=Lining}} % numbers in footnotes +%\addtokomafont{footnotelabel}{\addfontfeatures{Numbers=Lining}} % numbers in footnote labels +%\addtokomafont{footnotereference}{\addfontfeatures{Numbers=Lining}} % numbers in footnote references +\fi + +\raggedbottom +\deffootnote[1.5em]{1.5em}{\normalparindent}{\textsuperscript{\thefootnotemark}\ } +\newlength{\normalparindent} +\AtBeginDocument{\setlength{\normalparindent}{\parindent}} + +\KOMAoptions{footnotes=multiple} + +%% http://tex.stackexchange.com/questions/28465/multiple-footnotes-at-one-point/71015#71015 +\let\oldFootnote\footnote +\newcommand\nextToken\relax + +\renewcommand\footnote[1]{% +\oldFootnote{#1}\futurelet\nextToken\isFootnote} + +\newcommand\isFootnote{% +\ifx\footnote\nextToken\textsuperscript{,}\fi} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Quotes: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% quotes are indented at one side only. +\renewenvironment{quote}{\list{}{\rightmargin0pt\leftmargin8mm}%{\rightmargin\leftmargin}% +\item\relax} +{\endlist} + +%% quotations are indented at one side only +%% there is no indentation at the beginning of the quote +\renewenvironment{quotation} +{\list{}{\listparindent 1.5em% +%\itemindent \listparindent +%\rightmargin \leftmargin +\parsep \z@ \@plus\p@}% +\item\relax} +{\endlist} + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Citations: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\iflsBiblatex % BibLaTeX + \usepackage[ + natbib=true, + style=\bstpath biblatex-sp-unified, + citestyle=\bstpath sp-authoryear-comp, + %refsection=chapter, + maxbibnames=99, + isbn=false, + doi=false, + url=false, + eprint=false, + backend=\lsBiblatexBackend, + indexing=cite, + \iflsCollection\else + toc=bib % make bibliography appear in toc + \fi + ]{biblatex} + \renewcommand{\postnotedelim}{: }% + \renewcommand{\multicitedelim}{\addsemicolon\space}% + \renewcommand{\compcitedelim}{\multicitedelim} + \DeclareFieldFormat{postnote}{#1}% + %\renewcommand{\nameyeardelim}{ }% + \defbibheading{references}{\chapter{References}} +\else %BibTeX + \usepackage{natbib} + \setlength{\bibsep}{0mm} + %% unified style sheet for linguistics journals + %% http://celxj.org/downloads/unified.bst + \bibliographystyle{./langsci/bst/unified} + %% This does not work ... + % \setcitestyle{ + % notesep={: }, % 2002: 125 + % aysep={~} % Gazdar 2002 + % } + + %% check what the unified people have to say on this. + \bibpunct[: ]{(}{)}{;}{a}{}{,} + %% They do not say anything about citations in the running text. + %% As was sown in \citew{Meier2002} -> As was shown in Meier (2002), ... + %% This is what De Gruyter does: + \let\citew=\citet + %% This is what Stefan did: + %\let\citew=\citealt +\fi + +\let\cite=\citet % in order to prevent inconsistencies between \cite and \citet + +%% penalties against widows and orphans in bibliography +%% http://tex.stackexchange.com/questions/297705/atbeginenvironment-does-not-work-with-natbib/297721#297721 +\usepackage{etoolbox} +\apptocmd{\thebibliography}{% +\clubpenalty\@M +\@clubpenalty\clubpenalty +\widowpenalty\@M +} +{}{} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Floats: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{floatrow} % For adjusting the position of the caption (default is below). +\floatsetup[table]{capposition=top} % As for tables, the caption appears above. +%% This sets the default for the positioning of floats +\renewcommand{\fps@figure}{htbp} +\renewcommand{\fps@table}{htbp} + +\usepackage{booktabs} % for nicer lines + +%% floats +%% http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html +%% Alter some LaTeX defaults for better treatment of figures: + +%% See p.105 of "TeX Unbound" for suggested values. +%% See pp. 199-200 of Lamport's "LaTeX" book for details. +%% General parameters, for ALL pages: +\renewcommand{\topfraction}{0.9} % max fraction of floats at top +\renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom +%% Parameters for TEXT pages (not float pages): +\setcounter{topnumber}{2} +\setcounter{bottomnumber}{2} +\setcounter{totalnumber}{4} % 2 may work better +\setcounter{dbltopnumber}{2} % for 2-column pages +\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text +\renewcommand{\textfraction}{0.07} % allow minimal text w. figs +%% Parameters for FLOAT pages (not text pages): +\renewcommand{\floatpagefraction}{0.7} % require fuller float pages + %% N.B.: floatpagefraction MUST be less than topfraction !! +\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Appendices: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\appto\appendix{% + %% format of the appendix title page + \renewcommand*{\chapterformat}{% + \mbox{\chapapp~\thechapter\autodot:\enskip}% + } + %% format of the TOC entry + \renewcommand{\addchaptertocentry}[2]{ + \ifstr{#1}{}{% + \addtocentrydefault{chapter}{}{#2}% + }{% + \addtocentrydefault{chapter}{}{\chapapp~#1: #2}% + }% + } +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Indexes: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage{index} +%% Wie im Stylefile, aber ohne \MakeUppercase +\renewenvironment{theindex}{% + \edef\indexname{\the\@nameuse{idxtitle@\@indextype}}% + \if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \columnseprule \z@ + \columnsep 35\p@ + \twocolumn[% + \@makeschapterhead{\indexname}% + \ifx\index@prologue\@empty\else + \index@prologue + \bigskip + \fi + ]% +% \@mkboth{\MakeUppercase\indexname}% +% {\MakeUppercase\indexname}% + \@mkboth{\indexname}% + {\indexname}% + \thispagestyle{plain}% + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \let\item\@idxitem + \providecommand*\seealso[2]{\emph{see also} ##1} +}{% + \if@restonecol + \onecolumn + \else + \clearpage + \fi +} + +\newcommand{\lsLanguageIndexTitle}{Language index} % This can be changed according to the language. +\newcommand{\lsSubjectIndexTitle}{Subject index} +\newcommand{\lsNameIndexTitle}{Name index} + +\AtBeginDocument{ + \makeindex + \newindex{lan}{ldx}{lnd}{\lsLanguageIndexTitle} + % \newindex{aut}{adx}{and}{Name index} + \newindex{sbj}{sdx}{snd}{\lsSubjectIndexTitle} + \renewindex{default}{adx}{and}{\lsNameIndexTitle} %biblatex can only deal with the default index + \newindex{wrd}{wdx}{wnd}{Expression index} + \newindex{rwrd}{rdx}{rnd}{Reverse expression index} +} + +\indexproofstyle{\setlength{\overfullrule}{0pt}\raggedright\footnotesize} + +%% \index inside footnote +\def\infn#1#2{% + \hyperpage{#2}n#1% +}% +\newcommand{\footnoteindex}[2]{\index{#2|infn{#1}}} +\newcommand{\footnoteindex@sbj}[2]{\index[sbj]{#2|infn{#1}}} +\newcommand{\footnoteindex@lan}[2]{\index[lan]{#2|infn{#1}}} +\newcommand{\footnoteindex@wrd}[2]{\index[wrd]{#2|infn{#1}}} + + +% Author index +\newcommand{\ia}[1]{% + \if@noftnote% + \index{#1}% + \else% + \edef\tempnumber{\thefootnote}% + \expandafter\footnoteindex\expandafter{\tempnumber}{#1}% + % \index{#1|fn{\thefootnote}}% + \fi% +} + +% Subject index +\newcommand{\is}[1]{% + \if@noftnote% + \index[sbj]{#1}% + \else% + \edef\tempnumber{\thefootnote}% + \expandafter\footnoteindex@sbj\expandafter{\tempnumber}{#1}% + %\indexftn{#1}{\value{footnotemark}}% + \fi% +} + +% Language index +\newcommand{\il}[1]{% + \if@noftnote + \index[lan]{#1}% + \else% + \edef\tempnumber{\thefootnote}% + \expandafter\footnoteindex@lan\expandafter{\tempnumber}{#1}% + \fi% +} + +% \iflsDraft +% \usepackage{showidx} % Doesn't work with multiple indexes? +% \fi + +%% this is required by authorindex +\newif\ifshowindex \showindexfalse +\usepackage{authorindex} + +\iflsShowIndex % shows index commands in text + \RequirePackage{soul} + \RequirePackage{todonotes} + \RequirePackage[noadjust]{marginnote} + \renewcommand{\marginpar}{\marginnote} + \let\isold\is + \renewcommand{\isi}[1]{\sethlcolor{green}\hl{#1}\isold{#1}} + \renewcommand{\is}[1]{{\tikzstyle{notestyleraw} += [text width=1.5cm]\todo[color=green,size=\scriptsize]{\tiny#1}\isold{#1}}} +\fi + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Hyperref: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[ + bookmarks=true,bookmarksopen=true,bookmarksopenlevel=1,% + bookmarksdepth=5, + bookmarksnumbered=true, + hyperindex=true,% + breaklinks=true, + draft=false, + plainpages=false, + pdfusetitle=true, % puts author and title in automatically, maybe only in final mode? + pdfkeywords={}, + pdfpagelayout=TwoPageRight, % first page is separate + %ps2pdf=true + ]{hyperref} + +%% gets rid of the warnings: +%% Failed to convert input string to UTF16 +%% http://tex.stackexchange.com/questions/66722/tex-live-2012-xelatex-moderncv-error-failed-to-convert-input-string-to-utf1 +\hypersetup{unicode,pdfencoding=auto,bookmarksopenlevel=0} + +%% add hyperlinks for DOIs in bibliography; must appear after hyperref +\usepackage{doi} +\renewcommand{\doitext}{DOI:} +\iflsBiblatex +\renewbibmacro*{finentry}{\finentry + \iffieldundef{doi} + {} + { {\color{lsGuidelinesGray}\doi{\thefield{doi}}}} +} +%\DeclareFieldFormat{doi}{{\color{lsGuidelinesGray}\doi{#1}}} +\fi + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Collection (edited volume): +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% for papers of collections: +\newcommand{\lsCollectionPaperAbstract}{Put abstract here with \string\abstract.} +\newcommand{\abstract}[1]{\renewcommand{\lsCollectionPaperAbstract}{#1}} +\newcommand{\ChapterDOI}[1]{\renewcommand{\lsChapterDOI}{#1}} + + +%% inside \author: +\renewcommand{\and}{} +\newcommand{\lastand}{} +\newcommand{\affiliation}[1]{} + +%% to be used below chapter titles +\newcommand{\chaptersubtitle}[1]{ + \vspace*{-2ex} + {\Large #1} + \chapterheadendvskip + \@afterindentfalse + \@afterheading + } + + +\iflsCollection + \iflsBiblatex\else + \ClassError{langsci/langscibook}{Collection option not compatible with plain BibTeX. Please use biblatex option}{} + \fi + +\renewcommand{\lsEditorPrefix}{{\LARGE Edited by}\\} +\AtBeginDocument{ % for the citation in the footer + \onlyAuthor + \renewcommand{\newlineCover}{} + \renewcommand{\newlineSpine}{} + \edef\lsCollectionTitle{\@title} % \edef immediately expands \@title + \edef\lsCollectionEditor{\@author} + \addbibresource{collection_tmp.bib} + \newwrite\tempfile % open temporary bib file + \immediate\openout\tempfile=collection_tmp.bib +} +\AtEndDocument{\immediate\closeout\tempfile}% close temporary bib file + +%% customize \tableofcontents +\renewcommand{\@dotsep}{2.5} % space between dots +\renewcommand{\@tocrmarg}{1.5em} % right margin for leader +\renewcommand{\@pnumwidth}{1.5em} % width of page numbers +\usepackage{tocstyle} +\usetocstyle{standard} %\usetocstyle{allwithdot} +\iflsCollectionTOCLong\else + \setcounter{tocdepth}{0}\fi % show only parts and chapters +\settocstylefeature[-1]{pagenumberbox}{\csname @gobble\endcsname} % parts without page number +\settocstylefeature[-1]{leaders}{\hfill} % parts without dots# + +\usepackage{chngcntr} +\counterwithout{figure}{chapter} +\counterwithout{table}{chapter} + +%% Modified code from: +%% http://pastcounts.wordpress.com/2010/12/20/how-to-construct-a-collection-of-articles-with-latex/ +\newenvironment{collectionpaper}{ + \renewcommand{\documentclass}[2][]{}% + \renewcommand{\usepackage}[2][]{}% + \renewenvironment{document}{\begingroup}{\endgroup}% + + \renewcommand{\title}[1]{\renewcommand{\@title}{##1}} + \renewcommand{\author}[1]{\renewcommand{\@author}{##1}} + %\renewcommand{\thanks}[1]{\symbolfootnote[1]{##1}} + \lsPaper + } + {} + +\newcommand{\includepaper}[1]{ + \begin{collectionpaper} + \begin{refsection} + + \DeclareCiteCommand{\fullciteFooter} + {\defcounter{maxnames}{\blx@maxbibnames}% + \usebibmacro{prenote}} + {\usedriver + {\DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\usebibmacro{postnote}} + \renewcommand{\lsCollectionPaperCitationText}{\fullciteFooter{#1}} + + \include{#1}% + \edef\lsCollectionPaperLastPage{\thepage} % \lsCollectionPaperFirstPage is defined in \lsPaper + + %%% for citation in footer + %% preprocessing of author/editor names + \onlyAuthor + \renewcommand{\newlineCover}{} + \renewcommand{\newlineSpine}{} + \renewcommand{\newlineTOC}{} + \StrSubstitute{\@author}{,}{ and }[\authorTemp] + \StrSubstitute{\authorTemp}{\&}{ and }[\authorTemp] + \StrSubstitute{\lsCollectionEditor}{,}{ and }[\editorTemp] + \StrSubstitute{\editorTemp}{\&}{ and }[\editorTemp] + + %% write bib entry to file + %% FIXME: the publisher field needs a final period, since this is not provided by \fullciteFooter together with DOIs. + \immediate\write\tempfile{@incollection{#1,author={\authorTemp},title={{\@title}},booktitle={{\lsCollectionTitle}},editor={\editorTemp},publisher={Language Science Press.},Address={Berlin},year=\the\year,pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},options={skipbib=true}}} + + \end{refsection} + \end{collectionpaper}} +\fi + + + +\newcommand{\onlyAuthor}{% % collection paper + \renewcommand{\and}{, }% + \renewcommand{\lastand}{ \& }% + \renewcommand{\affiliation}[1]{}} + +\newcommand{\AuthorAffiliation}{ + \renewcommand{\and}{\newline\newline} + \renewcommand{\lastand}{\newline\newline} + \renewcommand{\affiliation}[1]{\\[0.5ex]{\normalsize ##1}}} + +\newcommand{\lsCollectionPaperHeaderAuthor}{{% + \renewcommand{\newlineCover}{}% + \renewcommand{\newlineTOC}{}% + \onlyAuthor\@author}} + +\newcommand{\lsCollectionPaperHeaderTitle}{% + \renewcommand{\newlineCover}{} + \renewcommand{\newlineTOC}{} + \iflsCollectionChapter% + \thechapter\hspace{0.5em}\fi + \@title} + +\newcommand{\lsCollectionPaperTOC}{{% + \iflsCollectionChapter% + \protect\numberline{\thechapter}\fi + \@title\newline{\normalfont\@author}}} + +\newcommand{\lsCollectionPaperTitle}{{% + \renewcommand{\newlineTOC}{} + \renewcommand{\newlineCover}{\\} + \iflsCollectionChapter + \vspace*{-2\baselineskip} + {\LARGE Chapter \thechapter}\newline\newline\fi + \@title}} + +\newcommand{\lsCollectionPaperAuthor}{{% + \renewcommand{\newlineTOC}{} + \renewcommand{\newlineCover}{\\[0.5ex]} + \AuthorAffiliation\Large\@author}} + +\newcommand{\lsCollectionPaperCitation}{\scalebox{1.2}{ + \includegraphics{\logopath langsci_spinelogo_nocolor.pdf}}% + \hspace{0.8em}% + \parbox[b]{.85\textwidth}{\linespread{0.8}\small\normalfont\lsCollectionPaperCitationText}} + +\newcommand{\lsCollectionPaperCitationText}{\string\lsCollectionPaperCitationText.} + +\newcommand{\lsPaper}{ + \renewcommand{\maketitle}{ + \addtocounter{chapter}{1} + \addchap*{\lsCollectionPaperTitle} + \global\edef\lsCollectionPaperFirstPage{\thepage} % for citation in footer + \onlyAuthor + \renewcommand{\newlineCover}{} + \renewcommand{\newlineTOC}{\\} + \addcontentsline{toc}{chapter}{\lsCollectionPaperTOC}% + \ifoot[\lsCollectionPaperCitation]{\iflsDraft Draft of \today, \currenttime \fi} + \vspace*{-2ex} + \lsCollectionPaperAuthor% + \vspace*{\baselineskip}% + \ifx\@epigram\empty% + \else {\epigraph{\@epigram\\[-5ex]}{\@epigramsource}% + \epigram{}\epigramsource{}}% + \fi% + \begin{quote} + \small\lsCollectionPaperAbstract + \end{quote} + } + + \renewcommand*{\thesection}{\arabic{section}} + \setcounter{section}{0} + \setcounter{footnote}{0} + \setcounter{figure}{0} + \setcounter{table}{0} + \setcounter{equation}{0} % for examples + \ohead{} + \lehead{\lsCollectionPaperHeaderAuthor} + \rohead{\lsCollectionPaperHeaderTitle} +} + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Miscellaneous: +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\usepackage[figuresright]{rotating} + +%% hspace over width of something without showing it +\newlength{\LSPTmp} +\newcommand*{\hspaceThis}[1]{\settowidth{\LSPTmp}{#1}\hspace*{\LSPTmp}} + + + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/langsci/sp-authoryear-comp.cbx b/Master/texmf-dist/tex/xelatex/langsci/sp-authoryear-comp.cbx new file mode 100644 index 00000000000..12638193071 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/sp-authoryear-comp.cbx @@ -0,0 +1,289 @@ +\ProvidesFile{sp-authoryear-comp.cbx} + +\ExecuteBibliographyOptions{labeldate,uniquename,uniquelist,autocite=inline} +% disabled sortcites option, since it was sorting by name, instead of +% year, and we often want to keep citations in the order chosen by the +% author +\newbool{cbx:parens} + +\newbibmacro*{cite:init}{% + \ifnumless{\value{multicitecount}}{2} + {\global\boolfalse{cbx:parens}% + \global\undef\cbx@lasthash + \global\undef\cbx@lastyear} + {\iffieldundef{prenote} + {} + {\global\undef\cbx@lasthash + \global\undef\cbx@lastyear}}} + +\newbibmacro*{cite:reinit}{% + \global\undef\cbx@lasthash + \global\undef\cbx@lastyear} + +\newbibmacro*{cite}{% Based on cite bib macro from authoryear-comp.cbx + \iffieldundef{shorthand} + {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} + {\printtext[bibhyperref]{% Include labelname in hyperlink + \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks + \usebibmacro{cite:label}% + \setunit{\addspace}% + \usebibmacro{cite:labelyear+extrayear}}% + \usebibmacro{cite:reinit}} + {\iffieldequals{namehash}{\cbx@lasthash} + {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND + \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} + {\setunit{\addcomma}% + \usebibmacro{cite:extrayear}} + {\setunit{\compcitedelim}% + \usebibmacro{cite:labelyear+extrayear}% + \savefield{labelyear}{\cbx@lastyear}}} + {\printtext[bibhyperref]{% Include labelname in hyperlink + \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks + \printnames{labelname}% + \setunit{\nameyeardelim}% + \usebibmacro{cite:labelyear+extrayear}}% + \savefield{namehash}{\cbx@lasthash}% + \savefield{labelyear}{\cbx@lastyear}}}} + {\usebibmacro{cite:shorthand}% + \usebibmacro{cite:reinit}}% + \setunit{\multicitedelim}} + +\newbibmacro*{citeyear}{% + \iffieldundef{shorthand} + {\iffieldundef{labelyear} + {\usebibmacro{cite:label}% + \usebibmacro{cite:reinit}} + {\iffieldequals{namehash}{\cbx@lasthash} + {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND + \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} + {\setunit{\addcomma}% + \usebibmacro{cite:extrayear}} + {\setunit{\compcitedelim}% + \usebibmacro{cite:labelyear+extrayear}% + \savefield{labelyear}{\cbx@lastyear}}} + {\usebibmacro{cite:labelyear+extrayear}% + \savefield{namehash}{\cbx@lasthash}% + \savefield{labelyear}{\cbx@lastyear}}}} + {\usebibmacro{cite:shorthand}% + \usebibmacro{cite:reinit}}% + \setunit{\multicitedelim}} + +\renewbibmacro*{textcite}{% Based on textcite bib macro from authoryear-comp.cbx + \iffieldequals{namehash}{\cbx@lasthash} + {\iffieldundef{shorthand} + {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND + \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} + {\setunit{\addcomma}% + \usebibmacro{cite:extrayear}} + {\setunit{\compcitedelim}% + \usebibmacro{cite:labelyear+extrayear}% + \savefield{labelyear}{\cbx@lastyear}}} + {\setunit{\compcitedelim}% + \usebibmacro{cite:shorthand}% + \global\undef\cbx@lastyear}} + {\ifnameundef{labelname} + {\printtext[bibhyperref]{% Include labelname in hyperlink + \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks + \iffieldundef{shorthand} + {\usebibmacro{cite:label}% + \setunit{% + \global\booltrue{cbx:parens}% + \addspace\bibopenparen}% + \ifnumequal{\value{citecount}}{1} + {\usebibmacro{prenote}} + {}% + \usebibmacro{cite:labelyear+extrayear}} + {\usebibmacro{cite:shorthand}}% + \ifthenelse{\iffieldundef{postnote}\AND + \(\value{multicitetotal}=0\AND\value{citetotal}=1\)} + {\bibcloseparen% Include closing parenthesis in hyperlink + \global\boolfalse{cbx:parens}} + {}}} + {\printtext[bibhyperref]{% Include labelname in hyperlink + \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks + \printnames{labelname}% + \setunit{% + \global\booltrue{cbx:parens}% + \addspace\bibopenparen}% + \ifnumequal{\value{citecount}}{1} + {\usebibmacro{prenote}} + {}% + \iffieldundef{shorthand} + {\iffieldundef{labelyear} + {\usebibmacro{cite:label}} + {\usebibmacro{cite:labelyear+extrayear}}% + \savefield{labelyear}{\cbx@lastyear}} + {\usebibmacro{cite:shorthand}% + \global\undef\cbx@lastyear}% + \ifthenelse{\iffieldundef{postnote}\AND + \(\value{multicitetotal}=0\AND\value{citetotal}=1\)} + {\bibcloseparen% Include closing parenthesis in hyperlink + \global\boolfalse{cbx:parens}} + {}}% + \savefield{namehash}{\cbx@lasthash}}}% + \setunit{% + \ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}% + \multicitedelim}} + +\newbibmacro*{cite:shorthand}{% + \printtext[bibhyperref]{\printfield{shorthand}}} + +\newbibmacro*{cite:label}{% + \iffieldundef{label} + {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} + {\printtext[bibhyperref]{\printfield{label}}}} + +\newbibmacro*{cite:labelyear+extrayear}{% + \iffieldundef{labelyear} + {} + {\printtext[bibhyperref]{% + \printfield{labelyear}% + \printfield{extrayear}}}} + +\newbibmacro*{cite:extrayear}{% + \iffieldundef{extrayear} + {} + {\printtext[bibhyperref]{\printfield{extrayear}}}} + +\newbibmacro*{textcite:postnote}{% + \usebibmacro{postnote}% + \ifthenelse{\value{multicitecount}=\value{multicitetotal}} + {\setunit{}% + \printtext{% + \ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}}} + {\setunit{% + \ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}% + \multicitedelim}}} + +\DeclareCiteCommand{\cite} + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\cite} + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{citeyear}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\parencite}[\mkbibparens] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\parencite}[\mkbibparens] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{citeyear}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\textcite} + {\usebibmacro{cite:init}} + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {} + {\usebibmacro{textcite:postnote}} + +\DeclareMultiCiteCommand{\cites}{\cite}{\setunit{\multicitedelim}} +\DeclareMultiCiteCommand{\parencites}[\mkbibparens]{\parencite}{\setunit{\multicitedelim}} +\DeclareMultiCiteCommand{\footcites}[\mkbibfootnote]{\footcite}{\setunit{\multicitedelim}} +\DeclareMultiCiteCommand{\footcitetexts}[\mkbibfootnotetext]{\footcitetext}{\setunit{\multicitedelim}} +\DeclareMultiCiteCommand{\smartcites}[\iffootnote\mkbibparens\mkbibfootnote]{\smartcite} + {\setunit{\multicitedelim}} +\DeclareMultiCiteCommand{\textcites}{\textcite}{} + +\renewcommand*{\nameyeardelim}{\addspace} + +\let\citealt\cite +\let\citet\textcite +\let\Citet\Textcite +\newcommand{\pgcitep}[2]{(\cite{#1}:~#2)} +\newcommand{\pgcitealt}[2]{\cite{#1}:~#2} +\newcommand{\pgcitet}[2]{\citeauthor{#1} (\citeyear{#1}:~#2)} +\newcommand{\pgposscitet}[2]{\citeauthor{#1}'s (\citeyear{#1}:~#2)} +\let\citep\parencite + +\DeclareCiteCommand{\citeauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\ifciteindex + {\indexnames{labelname}} + {}% + \printtext[bibhyperref]{\printnames{labelname}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citeyear} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\printfield[bibhyperref]{year}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citeyearpar}[\mkbibparens] + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\printfield[bibhyperref]{year}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\posscitet} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}} + {\printtext[bibhyperref]{\printnames{labelname}'s \printfield[parens]{year}}} + {} + {} + +\DeclareCiteCommand{\possciteauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}} + {\printtext[bibhyperref]{\printnames{labelname}'s}} + {} + {} + +\renewcommand*{\multicitedelim}{\addcomma\space} + + \endinput diff --git a/Master/texmf-dist/tex/xelatex/langsci/tbls-book.eps b/Master/texmf-dist/tex/xelatex/langsci/tbls-book.eps Binary files differnew file mode 100644 index 00000000000..570488dded7 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/tbls-book.eps diff --git a/Master/texmf-dist/tex/xelatex/langsci/tbls-bulb.eps b/Master/texmf-dist/tex/xelatex/langsci/tbls-bulb.eps Binary files differnew file mode 100644 index 00000000000..c953a0031e2 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/tbls-bulb.eps diff --git a/Master/texmf-dist/tex/xelatex/langsci/tbls-glass.eps b/Master/texmf-dist/tex/xelatex/langsci/tbls-glass.eps Binary files differnew file mode 100644 index 00000000000..d694a32f152 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/tbls-glass.eps diff --git a/Master/texmf-dist/tex/xelatex/langsci/tbls-law.eps b/Master/texmf-dist/tex/xelatex/langsci/tbls-law.eps Binary files differnew file mode 100644 index 00000000000..e7a7e623a54 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/langsci/tbls-law.eps |