LaTeX forum ⇒ MiKTeX and proTeXtInstalling packages

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
eranweiner
Posts: 2
Joined: Tue Apr 08, 2014 9:45 am

Installing packages

Postby eranweiner » Tue Apr 08, 2014 9:51 am

Hi, i"m using Lyx with Miktex and I'm interested in using the qtree package. I've installed it through the Miktex package manager, but I'm missing the next step to activate it in Lyx. I read somewhere that you need to add \usepackage{qtree} in the lyx preamble. Right now I am using a standard document style not a template, so my preamble is empty, and just adding \usepackage{qtree} and "apply" doesn't do the trick.

What should I do next?

Any help will be much appreciated

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Apr 08, 2014 9:59 am

What do you mean by »doesn't do the trick«?

This just loads the package along with all the macros which you can use as tex-code. I don't think there will be any special menus or something like that. But then again, i am not a LyX user.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

eranweiner
Posts: 2
Joined: Tue Apr 08, 2014 9:45 am

Postby eranweiner » Tue Apr 08, 2014 10:05 am

I'm new to using Lyx and Miktex so maybe I'm missing something here. I meant that after installing the package through the manager and adding \usepackage{qtree} in the preamble, Lyx doesn't recognize the commands associated with the package when I try to add the code on the document.

Also, what exactly is the preamble? Is it ok to have just one line there saying \usepackage{qtree} without document class, or begin and end commands?

Thanks

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Apr 08, 2014 5:15 pm

The preambel ist the part, where all the general ang global stuff is happening. Loading packages (to get more functionality), setting margins, ...

I am not quite sure how LyX handles all this, but you can work with an empty (or almost empty) preamble. LyX does the rest for you (but its hidden).

If you are trying to use qtree, test on a very minimal example file first, to check if it works. No use in trying it on a large document first.

Advantage, you can post this minimal lyx-file and it is limited to just one problem. You can read mor at the LyX Wiki about it.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 1 guest