gb4e の例から括弧を削除 (およびピリオドを追加)

gb4e の例から括弧を削除 (およびピリオドを追加)

私は翻訳言語の例に番号を付けるパッケージについては、以下の例を参照してください。

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

ここに画像の説明を入力してください

私が従っているスタイルシートでは、数字を1.ではなくとして表示する必要があります(1)が、gb4e ドキュメンテーションそれは、これを適切に再定義する方法を理解するのに役立ちます。

答え1

残念ながら、それを変更するためのインターフェースはありません。

\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}

ここに画像の説明を入力してください

注記。 (\thexnumi)gb4e.sty変数データを囲む括弧が含まれる唯一の場所です。

関連情報