Text FormattingParts of Source Code disappeared

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
math8
Posts: 9
Joined: Fri Oct 05, 2012 11:19 pm

Parts of Source Code disappeared

Post by math8 »

In my document, I think I clicked on something by error, and all of sudden, 5 of the line numbering have disappeared!

I have something like this.

Code: Select all

...
229  stufff
230  stufff
235  stufff
236  stuff
...
Notice that the lines between 230 and 235 are not there. I had a piece of code on these lines, and it was compiling just fine. Now that those lines are gone, (and the piece of code with them), when I compile, it gives me an error: caption outside float, even when I retype the missing piece of code.

Any idea on how to get back the missing lines and the missing numbering?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Parts of Source Code disappeared

Post by Stefan Kottwitz »

This sounds like an editor issue. Which editor are you using?

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Parts of Source Code disappeared

Post by cgnieder »

This is really quite vague... sounds like something related to your editor (*), some functionality you activated by mistake or something like that. What happens if you open the file in a different editor?

Regards

(*) Ah, Stefan beat me again :)
site moderator & package author
math8
Posts: 9
Joined: Fri Oct 05, 2012 11:19 pm

Re: Parts of Source Code disappeared

Post by math8 »

I use Tex maker. I used the undo button until I got back to where I thought I clicked on something by mistake, then I clicked in the column where the numbers are. Apparently, there is a minus/plus sign that appears to be able to show/hide an equation, figure,...code. I clicked on the plus sign, and everything went back to normal.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Parts of Source Code disappeared

Post by cgnieder »

Ah yes, that's called code folding.

Regards
site moderator & package author
Post Reply