emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Richard Lawrence <richard.lawrence@berkeley.edu>, emacs-orgmode@gnu.org
Subject: Re: Any linguists (or other gb4e/linguex users) on this list?
Date: Mon, 24 Feb 2014 23:37:41 -0500	[thread overview]
Message-ID: <87r46rn6y2.fsf@gmail.com> (raw)
In-Reply-To: <87lhx4gsab.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me>

[-- Attachment #1: Type: text/plain, Size: 127 bytes --]

Hi Richard,

This looks very interesting.  I have created some code that uses tables
for glossed examples.  So it turns this:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-org, Size: 265 bytes --]

#+name: ex:ilurdotz
#+header: :gloss yes
#+header: :trans You carried me in the car.
#+header: :cite /MVAV/ Southern High Navarre, p.\space{}160
| zuek    | ekarri | n-ai-zue        | neri    | kotxe-an |
| 2PL.ERG | bring  | 1SG-AUX-2PL.ERG | 1SG.DAT | car-LOC  |

[-- Attachment #3: Type: text/plain, Size: 8 bytes --]


into:


[-- Attachment #4: Type: text/x-tex, Size: 290 bytes --]

\ex
\begingl
\gla[] zuek ekarri n-ai-zue neri kotxe-an//
\glb[] \textsc{2pl.erg} bring \textsc{1sg-aux-2pl.erg} \textsc{1sg.dat} car-\textsc{loc}//
\glft ‘You carried me in the car.’ \trailingcitation{\emph{MVAV} Southern High Navarre, p.\ 160}//
\endgl
\label{ex:ilurdotz}
\xe

[-- Attachment #5: Type: text/plain, Size: 919 bytes --]


This uses the expex glossing package <http://www.ctan.org/pkg/expex>,
which I find to be the most flexible (despite also having some annoying
quirks, such as being targeted towards plain TeX use and thus not being
fully integrated with LaTeX conventions).

I also have some code for embedding syntax trees, which basically just
passes them through to LaTeX (with some niceties such as translating
#+caption to \caption{}).  I’ve been meaning to rewrite this for some
time so that it compiles the trees to SVG to enable embedding into html.

2014ko otsailak 21an, Richard Lawrence-ek idatzi zuen:

[...]


> 
> \begin{exe}
> \ex[ ]{This is an example sentence.} \label{s:example}
> \ex[*]{This ungrammatical sentence!} \label{s:ungrammatical}
> \end{exe}

Does this work correctly when the \label is outside the brackets of the
\ex?  I guess it must, but I was surprised...

-- 
Aaron Ecay

  reply	other threads:[~2014-02-25  4:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 19:49 Any linguists (or other gb4e/linguex users) on this list? Richard Lawrence
2014-02-25  4:37 ` Aaron Ecay [this message]
2014-02-25  6:16   ` Richard Lawrence

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r46rn6y2.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=richard.lawrence@berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).