4

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.

4

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.