5

I'm using the gb4e package to number my linguistic examples, cf. the example below.

\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{exe}
    \ex
    \gll Dies ist ein Beispiel\\
    This is an example\\
\end{exe}
\end{document}

enter image description here

A style sheet I am following requires the numbers to appear as 1. rather than (1), but I'm not able to find anything the gb4e documentation that helps me figuring out how to properly redefine this.

1 Answer 1

6

There's no interface for changing it, unfortunately.

\documentclass{article}
\usepackage{gb4e}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@exe
  {(\thexnumi)}
  {\thexnumi.}
  {}{}
\makeatother
\begin{document}
\begin{exe}
    \ex
    \gll Dies ist ein Beispiel\\
    This is an example\\
\end{exe}
\end{document}

enter image description here

Note. (\thexnumi) is the only place in gb4e.sty that contains parentheses surrounding variable data.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .