Could anyone tell me how examples can be italicised automatically using linguex? The first line of examples with glosses is already discussed here and works fine. I need italic font for the examples in the other environments, too (\ex. and \exi.), and for all lines of the \a., \b. sublists, etc).

  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – Skillmon
    Feb 20, 2018 at 20:15

1 Answer 1


This is quite difficult to do without digging into the code, as linguex is not set up for this. Here's one way that works. I've made a new macro \examplefont to set the style of the examples (so that the code doesn't hard-code italics. I've also set \eachwordone (the first line of a glossed example) to use the same font, but the gloss line (\eachwordtwo) is set to the upright font. To make sure the free translation of glossed items is also upright, you need to use the \glt macro


\newcommand*{\examplefont}{\itshape} % change this as needed
\renewcommand{\eachwordone}{\examplefont} % make \eachwordone match
\renewcommand{\eachwordtwo}{\normalfont}  % make gloss line upright
\renewcommand{\glt}{\normalfont} % use \glt for free translation

        \ifnum\theExDepth=0 \unembeddedtrue
     \stepcounter{ExDepth}%refstepcounter replaced 
         \ifnum\theExDepth=1 \SubExLBr\Exalph{ABC}\SubExRBr%
           \ifnum\theExDepth=2 %
              \llap{\hbox to \alignSubExnegindent{\ifunembedded%
             \ifnum\theExDepth=3 %
     \ifnum\theExDepth=2\topsep .3\Extopsep\else\topsep 0pt\fi 
     \ifnum\theExDepth=1 %
      \ifnum\theExDepth=2 %
            \ifnum\theExDepth=3 \usecounter{SubSubExNo}\fi
    \ifnum\theExDepth=1 \setlength{\Exlabelwidth}{4em}\fi%
    %previous line added 2000/12/22

\a.This is an example.
\b.Another example.
\a. Another one.
\b. Another other one.

This is a glossed example\\
This is the gloss line\\
\glt`This is the translation'

\exi. This is an example.


output of code


You must log in to answer this question.

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