LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-16-2008, 01:37 AM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 329
Blog Entries: 1

Rep: Reputation: 35
wrong figure number in latex


Found a common bug in LateX that is so persistent that even the Fedora 9 /CentOS5.2 shipped latex still has this problem. I have not checked if Fedora 10 fixes this already.

Simply put it, to get a correct figure number,
type \caption first and then followed by \label. (in other words,
Label should come Last).

The figure number is wrong if you put \label before \caption.

LateX claims to be a high quality scientific software that I don't
it should fail on such trivial thing.

I noticed the problem but was not able to solve it.
Only

http://www.terminally-incoherent.com...igure-numbers/

tells me what to do. But I guess since linux distros ship LateX, can someone
out there please fix this once and for all. Don't make science harder than it already is.
 
Old 12-17-2008, 03:31 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Doesn't seem to be a big problem to me, just part of the syntax. When I did a google search for

latex figure caption label

This was the first hit

http://en.wikibooks.org/wiki/LaTeX/F...ss-referencing
 
Old 12-17-2008, 11:19 PM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 329
Blog Entries: 1

Original Poster
Rep: Reputation: 35
Should everyone go through this ordeal? It is just a mistake too easy to make, especially if you got it right on day one since you follow the syntax religiously. On day two, when you are busy typing your notes, concentrating on all other non-LaTeX issues (content, deadline, etc), and you manage to remember the keywords of label and caption, and then you have 50% of screwing up something easily. It is not a big deal after all, once you know that it is a rather stupid and simple rule to follow. If this caption-label rule is imposed by the intrinsic LaTeX rules, then I see there is no way out but to conclude that this is a "feature" of LaTeX. But if it can be fixed by the LaTeX developers, then do it to save millions of google searches.
 
Old 08-18-2011, 08:22 AM   #4
pradnica
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
This is sick. Telling that "it's just a syntax" is not normal, come on. I trusted Latex for many years but this ENORMOUS BUG leaded me to really big problems. Sincerely, I expected Latex to be the best editing system over these years, now I'm thinking after I discovered this ENORMOUS BUG - unfortunately I can't fix my PDF file now - that maybe I should change back my habits to M$ Word... Really this it is silly to reduce this huge error to syntax errors!! No, this is not a SYNTAX ERROR in my tex files: THIS IS JUST A HUGE ERROR IN LATEX!!

Last edited by pradnica; 08-18-2011 at 08:24 AM.
 
Old 08-18-2011, 08:24 PM   #5
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
If you think this is a bug, you can submit a bug report here:

http://www.latex-project.org/bugs-upload.html
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex, put \begin{figure*} on own page hedpe Programming 4 11-30-2009 05:16 PM
how to not display the page number in latex naihe2010 General 1 10-31-2006 04:32 AM
Figure placement in LaTeX style sheet. eamesj Linux - Software 1 08-18-2006 02:43 PM
Trying to figure out the number of characters in a std::string, using length. RHLinuxGUY Programming 4 05-23-2006 09:39 AM
[LaTeX] Centreing a xymatrix in figure environment solarize Linux - Software 3 06-13-2005 01:44 AM


All times are GMT -5. The time now is 09:59 PM.

Main Menu
 
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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration