summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty40
1 files changed, 13 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty
index a0b97ab945d..23d718f9f94 100644
--- a/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty
+++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-gb4e.sty
@@ -8,7 +8,7 @@
%% Licence:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{langsci/styles/langsci-gb4e}[2000/09/05]
+\ProvidesPackage{langsci-gb4e}[2000/09/05]
\def\gbVersion{4e}
%%%%%%%%%%%%%%%%%%%%%%%%
@@ -65,8 +65,8 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\input{\stylepath langsci-cgloss.sty}
-\input{\stylepath jambox.sty}
+\usepackage{langsci-cgloss}
+% \input{jambox.sty}
\@ifundefined{new@fontshape}{\def\reset@font{}\let\mathrm\rm\let\mathit\mit}{}
@@ -103,16 +103,6 @@
% 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}
@@ -137,25 +127,21 @@
\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
+% set a flag that we are in footnotes now and change the size of example fonts
\let\oldFootnotetext\@footnotetext
\renewcommand\@footnotetext[1]{%
\@noftnotefalse\setcounter{fnx}{0}%
- \oldFootnotetext{#1}\@noftnotetrue}
+\begingroup%
+\let\exfont\fnexfont%
+\let\glossfont\fnglossfont%
+\let\transfont\fntransfont%
+\let\exnrfont\fnexnrfont%
+ \oldFootnotetext{#1}%
+\endgroup%
+\@noftnotetrue}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -251,7 +237,7 @@
\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
+ \ifnum\value{equation}>98 \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%