gb4e 예에서 괄호 제거(및 마침표 추가)

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변수 데이터를 둘러싼 괄호가 포함된 유일한 위치입니다 .

관련 정보