TeX Live and MacTeXwhat is this error message?

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

what is this error message?

Post by man2011 »

Hi guys,
I am using a template for my linguistic stuff. one of my friends sent me an example of how to do some syntactic stuff. the code is this

Code: Select all

\documentclass[pdf,a4paper,11pt]{article}
%\usepackage{abbrev}
%\usepackage{lingmacros}
%\usepackage{latexsym}
 \usepackage{agrclassmacros} %for fd
\usepackage{trees}
\usepackage{combine.sty}

%\usepackage{natbib}

%\bibliographystyle{cslipubs-natbib}

%\usepackage{pstricks}
%\usepackage{trees} %circlenode seems to need this


%\input{rgb} %these are the colour definitions

\usepackage{cgloss4e}

%%%for the handout version
%%use the following page settings
\setlength{\textheight}{9in}
\setlength{\textwidth}{6.4in}

\setlength{\oddsidemargin}{0in}
\setlength{\topmargin}{-.4in}
\setlength{\parindent}{0pt}
%\makeatletter
%\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus%
%-.2ex}{2.3ex plus .2ex}{\normalsize\bf}}
%\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus%
%-.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
%\makeatother

\begin{document}

To draw this feature structures all you need is the macros {\em agrclassmacros.sty}



\fdand{
\feat{\pred}{\sc `man'}
\feat{\sc spec}{\fdand{
\feat{\pred}{`a'}
}}
\feat{\sc adj}{\fdand{   
\feat{\pred}{\sc `dislike$<$(subj) (obj)$>$'}
\feat{\sc subj}{\fdand{\feat{\pred}{\sc `sam'}}}
\feat{\sc topic}{\fdand{\feat{\pred}{`pro'}}}
\feat{\sc obj}{\fdand{\feat{\pred}{`pro'}}}}} }
\\



To draw this one you additionally need {\em trees.sty}.  It is also necessary to select the compilation option (under the Typeset menu)  TeX and DVI  (otherwise the lines do not get drawn)



\fdand{
\feat{\pred}{\sc `man'}
\feat{\sc spec}{\fdand{
\feat{\pred}{`a'}
}}
\feat{\sc adj}{\fdand{   
\feat{\pred}{\sc `dislike$<$(subj) (obj)$>$'}
\feat{\sc subj}{\fdand{\feat{\pred}{\sc `sam'}}}
\feat{\sc topic}{\rnode{a}{\fdand{\feat{\pred}{`pro'}
\feat{\sc pntype}{\sc rel}}} }
\feat{\sc relpro}{\rnode{b}{\strut} }
\feat{\sc obj}{\rnode{c}{\strut} }
}}}
\tightrtor[.9]{a}{b}
\tightrtor[.9]{b}{c}
\\


There are several different glossing environments but the one which I use is {\em cgloss4e.sty}

\gll Mae 'r ferch yn fyr ei thymer.\\
is the girl.{\sc f.sg} {\sc pred} short.({\sc m.sg}) {\sc poss.3sg.f} temper.{\sc f.sg}\\
`The girl is short-tempered.'\\


For IPA symbols use {\em tipa.sty}



All of these except {\em agrclassmacros.sty} will already be available in any standard distribution of latex.  

\end{document}



But I have a problem with it. the message says:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
(./avmex.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, farsi, finnish, french,
 galician, german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic
, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panja
bi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji, lao, lati
n, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portu
guese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedis
h, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo))
(/Users/muhammadalzaidi/Library/texmf/tex/latex/agrclassmacros/agrclassmacros.s
ty) (/Users/muhammadalzaidi/Library/texmf/tex/latex/avm/trees.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/pst-node/pst-node.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.15  <2010/11/25> (tvz)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pstricks/pstricks.con))
 v1.14, 2010/12/28)
! Undefined control sequence.
l.54 \avmhskip
              {3pt}
? 
I am using mactex 2010 on my imac


Please,, I need your help :mrgreen:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

what is this error message?

Post by frabjous »

It means just what it says, the "\avmhskip" command is not defined. Apparently, some command you're using is defined in terms of that command, but the package that defines that command is not loaded. (I can't tell which command is defined in terms of it, since you cut it off just before it shows where that error is coming in. Probably that means that one of the packages you're using is poorly made, since it should make use of the \RequirePackage command to make it clear that relies on another package.)

That command is defined by the avm package which you installed yesterday, but you're not loading it in this document, so put in \usepackage{avm} somewhere, and see if that helps.

I don't know if that will fix the problem or not, since I cannot compile your code. You make use of bunch of custom packages like agrclassmacros, etc., which are not on CTAN, and without them, your source code is useless. Please read the Post on Avoidable Mistakes and these instructions on creating a minimal working example.
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

Re: what is this error message?

Post by man2011 »

to be honest, it is not working. it seems to be I will get rid of this template start building my own one..

thank you so much for your help
Post Reply