Download your favorite Linux distribution at LQ ISO.
 LinuxQuestions.org The positioning of figures
 User Name Remember Me? Password
 Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

 02-05-2008, 11:19 AM #1 Rosenlind LQ Newbie   Registered: Feb 2008 Posts: 2 Rep: The positioning of figures Hi, I'm becoming quite desperate! I am writing this report which includes figures. However, in the final document they end up at positions totally different from where I want them to be. I have tried different positions, like [ht] and [h], and \pagebreak or \newpage... but nothing seem to work. Can someone help me? Please!
 02-05-2008, 11:20 AM #2 acid_kewpie Moderator   Registered: Jun 2001 Location: UK Distribution: Gentoo, RHEL, Fedora, Centos Posts: 43,417 Rep: Do you feel like telling us what you're writing this in?
02-05-2008, 11:27 AM   #3
b0uncer
LQ Guru

Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep:
I take it it's TeX [+ some package(s)].

If you add a figure the way you usually do, it's usually put in the beginning of a new page if possible - something like that. That's what the whole TeX'ing is about - you making content, system deciding how it's best displayed (the original point was that; word processors like MS Word or OO.org Writer is for those who want to play with the outfit rather than content). However you can affect how the figure is placed; you just need to tell it in the TeX engine. If you wrap the figure in an "environment" that TeX wants to put in some place other than you thought, you've got two choices - either tell that the whole thing should be in some special place, if possible, or then don't wrap the figure in that "environment" you originally put it in, but do something else.

Quoted from www.dd.chalmers.se/latex/tips_e.html#figurer (as an example that you could have searched):

Quote:
 How to place figures where you want them The package here has been removed from CTAN. Instead you should use a ! in front of the positioning parameter. I.e: \documentclass{article} \usepackage[latin1]{inputenc} % Fixa åäö \usepackage{here} \usepackage{graphicx} \begin{document} \begin{figure}[!h] % Will not be floating. \begin{center} \includegraphics{graph.eps} \caption{Exciting graph} \end{center} \end{figure} \end{document}
Not sure if that is available in the TeX package you're using, or about anything such at all, but I quoted that just to show that the internet actually has a wide storage of help and examples when it comes to TeX things. Just search for your problem, for example "LaTeX figure positioning", and see what you get.

I thought it was TeX from the "\pagebreak" and such things. I could be wrong - in that case ignore me.

Note that the various commands might easily depend on what packages you have installed to your TeX system, and that your system very probably has the means to position the figure just the way you like it, so you should search trough the documentation and examples of the TeX system you use.

I'll repeat what I wrote earlier: MS Word and such word processors are meant for people who want to type some little content or copypaste it, and then either not care about what (=how ugly) it looks or spend hours or days tweaking the outlook of the document just to find out that when they're finished, the beginning has been automatically trashed by the program. TeX then is meant for people who are more interested in the content, want a "static" outlook troughout the document, and are ok with giving TeX the freedom to make the outlook 'good'. There are some basics about what is easy on the eye and what is not (for example how long lines a human usually can read easily, what is too long, what is too short, ...), and TeX tries to live by those observations. They're not perfect (nothing is), but I've come to see it's far better than trying to use MS Word to make something sensible. You can actually make anything look and position just the way you want it with TeX, but it sure does mean a lot of work most of the time. It's easier if you just first set the general "rules" about how you want the document look, then just type in the content and have it ready. A figure that is at the beginning of the page rather than between the two paragraphs where you mention it does not kill anybody - and if you give it a caption, maybe with a numbering like you should, you can then easily refer to it using TeX commands, and have it look sane even if you modify the content later - no need to care about the previous content, as TeX manages it automatically (add a new figure before the older one, and the reference numbering is updated, for example).

Don't try to make TeX something it is not, like MS Word. If you want exact outlook instead of easy working, head over to OO.org Writer or even Scribus. There you've got your measuring tools and pinpoint properties.

There is actually a document on the web telling you what TeX is and what it is not. You should read trough the "what TeX is not" part, to know what it is not and what you shouldn't try to make it be.

Last edited by b0uncer; 02-05-2008 at 11:40 AM.

 02-06-2008, 04:37 AM #4 Rosenlind LQ Newbie   Registered: Feb 2008 Posts: 2 Original Poster Rep: You are right, I use Tex. I have my reasons for wanting the figures at specific positions. I apologize for the inconvenience. However, I am thankful for your help!

 Thread Tools Search this Thread Search this Thread: Advanced Search

 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 Off HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post lquser Linux - Software 2 08-13-2007 01:44 PM Hockeyfan Programming 1 01-24-2006 11:52 AM kurrupt Linux - Software 2 10-27-2004 04:50 AM neophile Linux - Software 0 10-07-2003 10:55 AM neophile Linux - Games 0 10-07-2003 09:12 AM

LinuxQuestions.org

All times are GMT -5. The time now is 03:44 AM.

 Advertisement
 My LQ
 Write for LQ LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
 Syndicate Latest Threads   LQ News Twitter: @linuxquestions Facebook: linuxquestions Google+: linuxquestions