Making caption portrait in landscape table in overleaf latex - landscape

I have a long table in landscape format. So used longtable and landscape. I need to have caption portrait in top of the page in overleaf latex. how to make caption portraitt?
used below code inside long table, but not working
\begin{minipage}{.95\textwidth} \rotatebox{270}{ \begin{minipage}{\textwidth}
\caption{~~{Tablecaption}}\label{T:LR}\ \end{minipage}} \end{minipage}
Also, tried slideways.....Plz suggest a way to make caption portrait.

Related

Create iOS 7 UIButton With Text And Image Using Autolayout

Using Autolayout and Interface Builder with the target device being iOS 7 iPhones, how do I create three of these kind of UIButtons that have an image, a divider line and text? The 3 images for each of the buttons all have the same size. The lines and text in one button must line up with the other buttons' line and text (left align the text). Things can't go crazy if the phone is turned to landscape. All buttons are the same constant size.
The buttons are part of a home screen layout which has a logo at the top and so on. When one taps one of the buttons, the app does something.
One thought was to create a button with no text, put a label on top, a thin view for the line on top, and the uiimageview on top. Maybe explicit layout constraints are not even needed? Maybe a containing view is needed for the "button" contents to keep the "button" pieces together?
Image+text can be achieved using UIButton only without adding any autolayout constraints. You set both image and text using -setImage:forState and -setTitle:forState:, and then adjust button insets using *Insets properties. To set the insets properly, play with this great test project: https://github.com/jrturton/ButtonInsets (it's not quite clear from the docs how to use them simultaneously, and this test app should give you the idea).
As for the separator, I'd recommend adding it directly to your images.
But if you don't want to stick to the UIButton and its insets, you can subclass UIView, add 2 UIImageViews (the actual image and the separator), a UILabel, and throw in a couple of constraints. To make the view clickable, you attach a UITapGestureRecognizer to it.

Chaning the background color around a PDF in a UIWebView on Device

I'm using a webview to display a PDF.
The webview displays the PDF at it's actual size which is a little smaller than the size of the webvieww itself, revealing the scroll view underneath it.
I've tried setting the Webview to opaque and setting it's background color to another color, which works fine and dandy in the simulator, but fails to change the color on the device. On the device it changes the color of the background of the view behind the scroll view, this can be seen when the PDF is pulled all the way down.
I've also tried setting all the UIView's backgrounds, by iterating through the subviews but to no avail.
I've updated a diagram to help illustrate which area I'd like to color.
Uploaded Diagram
You really shouldn't mess around with UIWebView's internals.
They can change anytime and your code might just crash on the next version of iOS.
If you need more control about pdf display, you might wanna take a look at other possibilities to show pdf, like using the CGPDFDrawPage* functions. Of course they are pretty low-level and it's a lot of work required until you can get fast page display, zooming, etc all right.

How to get a pdf printout in landscape format?

This is with reference to this thread How to make a pdf printout occupy the entire A4 page.
I am able to bring all the content into a single page, but even if I set the printer preferences to landscape format, it doesn't print it.
What could be the problem?
Are you setting the orientation attribute of the tag? That attribute controls the orientation of the page, and you should set it to landscape.
From the Seam documentation
orientation — The orientation of the
page. Valid values are portrait and
landscape. In landscape mode, the
height and width page size values are
reversed.

Loading PDF's to an iPad split view

I'm working on a split view application that is used to view PDF files in a webView. Right now I am able to get three PDF's loaded to the app, and have their titles displayed in the table in the RootView. I'm able to select them and have them displayed to the DetailView, however the sizing the of PDF isn't what I want it to be.
My hope is that the PDF will take up the whole screen and will resize itself to fit the screen if it is too large or too small. One PDF I have is too large and I have to scroll left or right to view the sides of the file, another I have is too small, it isn't centered and instead pushed to the left side of the screen and the empty side on right is filled in with black.
How do I make it so that the PDF's size themselves correctly to fit the whole screen and have even margins on the sides?
Thanks in advance!
Lots of PDF questions on SO today. Sounds like you may have to abandon the webview and go to a tiledlayer CGPDFDocument route. Check out the answer I just posted at Reading text and images from a pdf document in iOS

SQL Server Reporting Services Change report layout to Portrait

Im writing a report with Reporting services that is almost always only going to be used as exported to PDF, but the PDFs i get are always in Landscape mode and i want them in Portrait (but only for this report)
Is there a way to change it between these pages layouts?
To change my reports to landscape, I simply swap the "PageSize" property's Height and Width values on the report itself. If I make the width 29.7cm and the height 21cm, I get a landscape report. The other way around is portrait.
Reports are portrait by default though - if yours are showing up as landscape and nobody has changed the height and width of the page, then I'm not sure what's happening.