in All availableThis forumThis topic
 I need some help with LaTeX!
Author Message
Aquous
l33t

Joined: 08 Jan 2011
Posts: 619

Posted: Sun Apr 29, 2012 11:48 am    Post subject: I need some help with LaTeX!

I'm very new to LaTeX, but as a linguist I am becoming more dependent on it every day. However, my only very basic knowledge of LaTeX is preventing me from solving this simple problem.

My editor, app-office/lyx, has an option for including modules. Of course, I included the Linguistics module. Now I have these new 'Example' options in the top-left drop-down box, that I use for selecting the style of a particular line. However, this 'Example' option (which I need to use at this moment) isn't working!

When I add an example, LaTeX gives me the following error when I try to preview the file:
 Code: ! LaTeX Error: Command \example already defined.                Or name \end... illegal, see p.192 of the manual.

followed by a bunch more.

I can export the LyX-generated LaTeX into an ordinary .tex file, which reads:
 Code: %% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[dutch]{paper} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{covington} \usepackage{babel} \begin{document} \begin{example} test\end{example} \end{document}

which is rejected by latex with the same error.

Can anyone help me with this problem?

FYI. The 'Example' options are a part of a package called 'covington.sty', which can be found in the dev-texlive/texlive-humanities package.
albright
Veteran

Joined: 16 Nov 2003
Posts: 1898
Location: Near Toronto

 Posted: Sun Apr 29, 2012 12:46 pm    Post subject: I can't answer your question, but have you tried getting help at the lyx mailing list? It's very active and helpful in my experience. http://www.lyx.org/MailingLists_________________.... there is nothing - absolutely nothing - half so much worth doing as simply messing about with Linux ... (apologies to Kenneth Graeme)
Aquous
l33t

Joined: 08 Jan 2011
Posts: 619

 Posted: Mon Apr 30, 2012 3:32 pm    Post subject: I've solved the problem For posterity: it was a problem with the document class. Selecting a different document class remedied the problem.
dmpogo

Joined: 02 Sep 2004
Posts: 2166

Posted: Mon Apr 30, 2012 5:17 pm    Post subject:

 Aquous wrote: I've solved the problem For posterity: it was a problem with the document class. Selecting a different document class remedied the problem.

Well, the error was the example was defined multiple times. I guess it was also defined in the document class you used before.

One point of advice. Latex is a markup language (like html) and while LyX makes it convenient for people who came from WYSWYG background,
it is useful to try Latex manually a bit, to learn how it works. In the simplest text document there is practically no markup needed throughout the text,

Also when you start using Latex professionally, you find that many journals come with there own document classes, so that the standard ones are actually used
not that frequently (in physics/mathematics it is the rule, parctically every publshing house provides its own document class that generates output according to their requirements). So in this sense conflict between different classes/modules is something always to watched for.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT Page 1 of 1

 Jump to: Select a forum Assistance----------------News & AnnouncementsFrequently Asked QuestionsInstalling GentooMultimediaDesktop EnvironmentsNetworking & SecurityKernel & HardwarePortage & ProgrammingGamers & PlayersOther Things GentooUnsupported Software Discussion & Documentation----------------Documentation, Tips & TricksGentoo ChatGentoo Forums FeedbackOff the WallDuplicate Threads International Gentoo Users----------------中文 (Chinese)DutchFinnishFrenchDeutsches Forum (German)  Diskussionsforum  Deutsche DokumentationGreekForum italiano (Italian)  Forum di discussione italiano  Risorse italiane (documentazione e tools)Polskie forum (Polish)  Instalacja i sprzęt  Polish OTWPortuguese  Documentação, Ferramentas e DicasRussianScandinavianSpanishOther Languages Architectures & Platforms----------------Gentoo on AMD64Gentoo on PPCGentoo on SparcGentoo on Alternative ArchitecturesGentoo for Mac OS X (Portage for Mac OS X)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum