Latex: avoid that page text stretches over whole page with "twoside" option - latex

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 ?

Related

angular material md-tab label upper/lower case

I apologize if this question has been asked before but I have a really stupid problem and I cannot find an answer.
Using angular-material's the label is always rendered upper case. I tried using a div to wrap the text inside with no luck.
Does anyone have a suggestion? Why did they choose this behavior? (and nobody seems upset)
I have the feeling I am doing something incredibly stupid! :)
Thanks
The pitfall of using components that other people design and build is they get to make the aesthetic decisions.
If you're ever wondering what is causing some behavior, the best first step is to view the source and inspect the elements.
Looking at .md-tab, the text-transform style property on .md-tab is set to uppercase. Set it to none in your style section to get rid of any text-transformation:
.md-tab{text-transform: none}

Custom UITextView caret in wrong place

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

Is it possible to use Monotouch.Dialog to create a custom list like this?

I just discovered Xamarin Studio and Monotouch.Dialog, and I've been doing a lot of research on custom table cells. So far I've been pretty successful experimenting with some of the features, but I'm having trouble figuring out how to create something like this:
All of the samples I have seen still look like a standard iOS table view, with maybe a few colors changed here and there. My goal is to create truly customized cells, with customized spacing and what not. I'm not sure if this is even possible, so I figured I would ask you guys.
Thanks in advance.
Yes, you can create an OwnerDrawnElement. There's an explanation of this in the Owner-Drawn Element section of this doc:
http://docs.xamarin.com/guides/ios/user_interface/monotouch.dialog
There's also a sample here:
https://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Elements/OwnerDrawnElement.cs

sIFR works, except for one word in my navigation bar

My website uses sIFR and it all seems to work great, except for one word in my navigation bar. The navigation links all work, but the word "Zoeken" (= Search) in front of the search form doesn't get changed to the desired font type.
I have checked the header.php of my site, as well as the CSS, but any of the changes that I made, don't seem to work.
Could anyone help me out? I am hoping it's just a "piece of cake", but my knowledge of sIFR is close to non-existent.
Many thanks!
Jasper
Try adding a class to this element Zoeken and then target that span specifically with cufon to see if it works, maybe? As cufon is really simple and if it's not converting it the only thing I can think of is that it's not being targetted. If the above doesn't work it'll also give you a better idea of what the problem is.

Resetting page formats?

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.

Resources