Science Forums
User Name
Password
Science Social Network
home    members    help/rules    who is online    contact   

Go Back   Science Forums > Physical Sciences Forums > Computer Science
Become a science forums sponsor today
Reply
 
LinkBack Thread Tools
Old 05-13-2007   #1 (permalink)
Mercedes Benzene's Avatar
Medicinal Chemist

Hypography Staff Member
Moderator
Editor

 



Help: trying to get latex on my PC

Today, I tried downloading MikTex so I can use LaTeX on my PC. Computers aren't my strong point, so I wanted some help.
I downloaded (what I thought was) MikTeX 2.5 today from the website (miktex.org), installed all the files... and I don't know where to go from here. Here's a screenshot of the program from the start menu.



I can see the viewer... but what do I do now?? I don't know how to set up text files so they can be compiled, and I don't know where I go to compile them.
Please help. Where do I go from here? Do I have to download something else??
I apologize for my incompetence.


----------------
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
Old 05-13-2007   #2 (permalink)
Erasmus00's Avatar
Creating

Hypography Staff Member
Moderator

 



Re: Help: trying to get latex on my PC

In general, you'll need two things to run latex. The first is a nice text editor, the second is the actual latex files/compilers. If you run windows, I think winedt is a pretty nice editor that you can find freeware. You'll type up your actual documents within this text editor. This is the component you'll need, as I think Miktex is simply the compiler and some packages for it.

Then, you have to pass it to the latex compiler. This can be as simple as typing latex (filename) at the command prompt, but several text editors can be set up to run the compiler at the click of a button.
-Will
Reply With Quote
Old 05-14-2007   #3 (permalink)
Mercedes Benzene's Avatar
Medicinal Chemist

Hypography Staff Member
Moderator
Editor

 



Re: Help: trying to get latex on my PC

Thank you! I got it to work!

Now I just need to figure out how to work things. I know the basics, but I'll probably be asking a few questions as I go along so (hopefully) the LaTeX veterans can help me.

Question #1: When I compile my code and view it with WinEdt, I notice that the text is in the middle of the page. Is there any way to make the margins normal. ALl I could find searching around is using \documentstyle[fullpage], but it doesn't make much of a difference. Ideas?


----------------
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
Old 05-14-2007   #4 (permalink)
Erasmus00's Avatar
Creating

Hypography Staff Member
Moderator

 



Re: Help: trying to get latex on my PC

Quote:
Originally Posted by Mercedes Benzene View Post
Question #1: When I compile my code and view it with WinEdt, I notice that the text is in the middle of the page. Is there any way to make the margins normal. ALl I could find searching around is using \documentstyle[fullpage], but it doesn't make much of a difference. Ideas?
What did the beginning of your file look like? Did you assign it a document class? You should start your file with something like

\documentclass{article}

For fun and profit, you should consider googling latex document class. There are all kinds of latex packages out there with different classes. Various journals have their own classes so that the articles have a common formatting/look to them.

After assigning a class, many classes have sub-sections, such as abstracts so before you can start typing in the body of your project you'll need something like
\begin{document}
-Will
Reply With Quote
Old 05-14-2007   #5 (permalink)
Mercedes Benzene's Avatar
Medicinal Chemist

Hypography Staff Member
Moderator
Editor

 



Re: Help: trying to get latex on my PC

Quote:
\documentclass{article}

For fun and profit, you should consider googling latex document class. There are all kinds of latex packages out there with different classes. Various journals have their own classes so that the articles have a common formatting/look to them.

After assigning a class, many classes have sub-sections, such as abstracts so before you can start typing in the body of your project you'll need something like
\begin{document}
Yeah... I did all that, and I used the {article} format, but I'm still getting strangely large margins.


----------------
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
Old 05-14-2007   #6 (permalink)
Mercedes Benzene's Avatar
Medicinal Chemist

Hypography Staff Member
Moderator
Editor

 



Re: Help: trying to get latex on my PC

I've got it.
It seems that I can use /setlength{} to change the individual sizes of the margins.


----------------
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
Old 05-14-2007   #7 (permalink)
Erasmus00's Avatar
Creating

Hypography Staff Member
Moderator

 



Re: Help: trying to get latex on my PC

I recommend developing a standard format you like. After declaring what packages I'm going to use, I always use these standards

\textwidth = 6.5 in
\textheight = 9 in
\oddsidemargin = 0.0 in
\evensidemargin = 0.0 in
\topmargin = 0.0 in
\headheight = 0.0 in
\headsep = 0.0 in
\parskip = 0.2in
\parindent = 0.0in
-Will
Reply With Quote
Old 05-15-2007   #8 (permalink)
sanctus's Avatar
Resident Diabolist

Hypography Staff Member
Administrator

 



Re: Help: trying to get latex on my PC

There is a great guide which helps you getting started, I use whenever I get stuck. It has a gret title "The not so short introduction to latex" and below something like "readable in 139 minutes".
Anyway it is almost complete, unless some ams math package details, what is very useful if you have to write long equation as it gives the \begin{align} comand which allows you to say that for example on every line of your equation(s) the = signs have to be aligned...

http://www.ctan.org/tex-archive/info...ish/lshort.pdf


----------------
Administrator

A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!


I don't believe in god, but I do believe in what others call utopies.
Reply With Quote
Old 05-17-2007   #9 (permalink)
Mercedes Benzene's Avatar
Medicinal Chemist

Hypography Staff Member
Moderator
Editor

 



Re: Help: trying to get latex on my PC

Thanks for that link sanctus! It's been quite helpful.

One thing I have not been able to find however, is a way to box in text. Let's say I wanted to put a box around some text (like you would an answer to a math problem). How would I go about doing that?


----------------
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
Old 05-17-2007   #10 (permalink)
Erasmus00's Avatar
Creating

Hypography Staff Member
Moderator

 



Re: Help: trying to get latex on my PC

Get the package framed or fancy box. Then use something like

\begin{framed}
Text you want framed
\end{framed}

Is that along the lines of what you are looking for?
-Will
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: use LaTeX for equations Tormod Tutorials and How To's 20 04-23-2008 06:24 AM
LaTeX bug? CraigD User feedback 5 02-24-2007 09:20 PM


All times are GMT -8. The time now is 01:10 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network