summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/langsci/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/xetex/latex/langsci/examples
Initial commit
Diffstat (limited to 'macros/xetex/latex/langsci/examples')
-rw-r--r--macros/xetex/latex/langsci/examples/langsci-test.bib7
-rw-r--r--macros/xetex/latex/langsci/examples/samplemonograph.tex60
-rw-r--r--macros/xetex/latex/langsci/examples/samplepaper.tex57
-rw-r--r--macros/xetex/latex/langsci/examples/samplevolume.tex66
4 files changed, 190 insertions, 0 deletions
diff --git a/macros/xetex/latex/langsci/examples/langsci-test.bib b/macros/xetex/latex/langsci/examples/langsci-test.bib
new file mode 100644
index 0000000000..d3d50c7d0f
--- /dev/null
+++ b/macros/xetex/latex/langsci/examples/langsci-test.bib
@@ -0,0 +1,7 @@
+@BOOK{Chomsky1957,
+ author = {Noam Chomsky},
+ year = {1957},
+ title = {Syntactic structures},
+ address = {The Hague},
+ publisher = {Mouton}
+}
diff --git a/macros/xetex/latex/langsci/examples/samplemonograph.tex b/macros/xetex/latex/langsci/examples/samplemonograph.tex
new file mode 100644
index 0000000000..19d39e976c
--- /dev/null
+++ b/macros/xetex/latex/langsci/examples/samplemonograph.tex
@@ -0,0 +1,60 @@
+\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}
+
+\bibliography{langsci-test}
+\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 \citep{Chomsky1957}.
+\chapter{Conclusion}
+This is the conclusion.
+
+\backmatter
+\sloppy
+\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/macros/xetex/latex/langsci/examples/samplepaper.tex b/macros/xetex/latex/langsci/examples/samplepaper.tex
new file mode 100644
index 0000000000..669d7ff12e
--- /dev/null
+++ b/macros/xetex/latex/langsci/examples/samplepaper.tex
@@ -0,0 +1,57 @@
+\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}
+}
+\abstract{
+Abstract goes here
+}
+% \bibliography{langsci-test}
+
+\IfFileExists{../samplevolume.tex}{%adjust to name of your master file
+ \papernote{\scriptsize\normalfont
+ To appear in:
+ Change Volume Editor.
+ Change volume title.
+ Berlin: Language Science Press. [preliminary page numbering]
+ }
+ \pagenumbering{roman}
+ \setcounter{chapter}{23}%adjust the chapter number
+ \addtocounter{chapter}{-1}
+}{}
+
+\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}{lrrrr}
+ \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/macros/xetex/latex/langsci/examples/samplevolume.tex b/macros/xetex/latex/langsci/examples/samplevolume.tex
new file mode 100644
index 0000000000..2671867c28
--- /dev/null
+++ b/macros/xetex/latex/langsci/examples/samplevolume.tex
@@ -0,0 +1,66 @@
+\documentclass[output=book
+ ,collection
+ ,collectionchapter
+ ]{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{\lsID}{000}
+
+\dedication{For Mom and Dad}
+\typesetter{Jane Doe}
+\proofreader{John Doe}
+\BackBody{What everyone should know about edited volumes: it's here}
+
+
+\bibliography{langsci-test}
+\begin{document}
+\maketitle
+\frontmatter
+\currentpdfbookmark{Contents}{name} % adds a PDF bookmark
+\tableofcontents
+% \include{preface}
+% \include{acknowledgments}
+
+% %% Additional prefaces and/or introductions that also have authors
+% \lsCollectionPaperFrontmatterMode % Enter the Frontmatter Mode.
+% \includepaper{chapters/prefaceEd}
+% \lsCollectionPaperMainmatterMode % Leave the Frontmatter Mode
+% \setcounter{chapter}{0} % Reset the chapter counter so that preceding prefaces are not counted
+
+\mainmatter
+
+\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