I am currently using latex, with the book document class, for a big CS project. It's about 150 pages right now, but I noticed something very odd.
Randomly about half way through the document, the page formatting breaks. When I do a
\chapter{newchapter}
about half way through this, it creates about a page of space between it and all of the sections. E.g.:
GOOD:
PAGEHEADER
CHAPTER
SECTION #1
Text goes here
This works fine up until about half way through the document, when this starts to happen on all following chapters/sections:
BAD:
PAGEHEADER
CHAPTER 2
SECTION #1
Text goes here.
I do not know why this happens, but no amount of \newpage, page breaking, will fix this. The section directly before it has a lot of embedded PNGs, but I don't see why that would cause a formatting issue.
When playing with some of the random \setlength commands, I managed to make a bit of a difference but not really.
Is there a way to force a document to reset its formatting?
EDIT
So I figured it out, I did a \newpage after the Section1 text and fixed the issues, seems that latex was trying to group both the first section and the following section with the image. I don't know why, but it works.
My first suspect would be the png's. To confirm, comment out the image inclusion lines and check the formatting. Images have always been the weak point of using latex.
Related
This is one of the rare cases where I don't care how or where, I just want to be able to do this. By that I mean it can be either on Google Sheets or Online Excel (because I don't have the MS Suite, I would prefer GSheets since every time I search for help on Excel, I get solutions for the Program version that uses features not in the Online one)
Basically, I want to re-create the web page of a forum... but on a spreadsheet. The reason for that is because I want to create a catalog of sorts that is related to that forum, without being restricted to the forum and to be more organized. Since I only care about the body, I just took a screenshot and essential cut a hole where the "body text" is (ideally I would like all the buttons to be images you can click and would take you the actual forum, but I'm not concerned now).
Right now, what I want to do is to preferable create a button that can hide/show text like a Spoiler button. And I don't mean the type that changes the text color to be the same as the background making it unreadable, I mean the ability to collapse/expand the text.
My current solution is using Google Sheets and I'm grouping rows and using the +/- button on the left side. That has worked pretty well so far but it has 2 glaring issues:
#1 The +/- button is all the way to the left side
#2 And that button is inaccessible to people that have "viewing only" rights to the sheet, making this kind of a pain to use for people.
For #1 I have created a "drawing" that's just a straight line going all the way to the button to the side.
And for #2, because I want to make this sheet as dumbproof as possible, I'll have to write that they'll have to duplicate the sheet in order to use it. Which is going to take me a couple of days until I make a dumbproof "guide" on how to do that.
Ultimately, currently the best solution would be to create "buttons" where each one can collapse/expand a specific grouping of rows. But even just to create buttons I have to learn scripts, which I don't know how to... I don't even know where you're supposed to write the scripts to begin with.
Currently I'm pretty satisfied with what I've made so I'm not too pressed if I don't find a better solution. No you can't look at it because it's pretty sensitive.
I'm using spyder with two panels (in column format), and currently, I'm working with a bunch of scripts simultaneously. Unfortunately, the file tabs in the tab bar are squeezed together and I cannot see their names properly. It makes it hard to switch back and forth between scripts effectively. Having the file tabs in two rows would solve this issue, but I couldn't locate where to set this up. Makes me wonder if it's possible in the first place. Does anyone know if it's possible and if yes, where I can find it?
I know about cmd+P/ctrl+P which brings up a list of open files, but this is a lot slower. It would be nice if I could see what the tabs actually say so I can just switch with a single click.
(Spyder maintainer here) No, it's not possible to have two or more rows of tabs in the editor and it's not something we plan to add in the future, sorry.
From my testing this is specific to Safari iOs issue.
The bug is on this page.
Basically on iOS, when expanding the last content item, the browsers doesn't always scroll the content but scrolls the page.
It's inconsistent behavior which happens to the last section item no matter what I do. I've tried adding in another section element to the DOM as a hack to make it work properly but it still behaves the same.
The height is expanded based of max-height parameters so that dynamic content cant be expanded correctly by the js.
Been spending hours looking at this and it's at a point where I need some other eyes to take a look. Thanks for any help you can offer!
Of course it's after asking a question you find the answer.... I was able to fix this by removing a css height rule on a parent container that was using the new vh rule. I changed it to use 100% vs 80vh and it's behaving as expected. Hope this helps someone else.
I have implemented the syntax text highlighting as given in the question here (UITextView w/ Syntax Highlighting) - it's a great utility and works well when compared to some non-regex versions (such as the example documented here: http://www.a-coding.com/2012/03/syntax-highlighting-in-ios.html).\
Both implementations, however, give me the same issue. When text in the UITextView is automatically wraps (i.e. is longer than the current view allows) the placement of the caret when editing is incorrect - you attempt to start an edit and the caret appears in the wrong place and when you type the text you enter appears further up the text view than you would expect.
Can anyone give me any pointers as to where the issue might be occurring and how I might be able to begin fixing it? Thanks in advance to any input / suggestions.
You can see here that I have typed XXX at the caret but it has appeared further back along the line incorrectly http://i.stack.imgur.com/zUIhd.png
UPDATE: The issue seems to be firmly within the fact that the custom UITextView wraps (line breaks) in a different place than the standard Apple UITextView - I'm not sure why this is happening or what to do about it though.
Not a super answer but with the release of iOS7 this probably isn't how you'd do this now anyway, see a tutorial such as this one: http://www.raywenderlich.com/50151/text-kit-tutorial
I recently had a problem when writing a Latex document which I posted here. The solution of adding the "twoside" option worked fine for me, except that when I have a page, say the conclusion, where I have just two paragraphs, so maybe half of the page filled and I then add a "\pagebreak" for having the "reference" part on a new page, it stretches the whole content of the conclusion page s.t. it fills up the whole page. This leads to the ugly thing that the spacing between the lines and paragraphs becomes huge.
I googled a bit, but didn't found any option to avoid this.
Add \raggedbottom to the latex preamble that will solve it.
Not quite sure whether this will solve your problem, but try \clearpage instead of \pagebreak .
How about:
\vfill\clearpage
I believe I was able to fix a similar problem with the multicol package, which provides a rather more powerful multi-column environment that the one built into the standard classes.
I just thought: are you using \raggedbottom? That would be worth a shot before bringing in a new package.
Can you use the \newpage in this case ?