Change the pagestyle of specific page in LaTex - latex

in my document I have a figure which I want to display on a whole page.
As it is also placed above the header, I want to remove the header for that specific page.
\thispagestyle{plain}
\begin{sidewaysfigure}
\centering
\hspace*{-4cm}
\includegraphics[width=1.35\textwidth]{VSM1MPAnlieferung}
\caption{CAPTION}
\end{sidewaysfigure}
I dont find any way to change the pagestyle of only the page on which my image is displayed.
When I place \thispagestyle in front of my figure, within the figure or after the figure, only the page before my image is changed.
If I speify it to be a new page with \newpage in front, it also changes the page prior to my figure.

Related

(DOORS DXL) Creating title page in Word with different size/color text

I currently have a script that creates an HTML page that shows the differences in scripts that were made since the previous baseline and then saves it as a Word document. Now, what I'd like to do is add a title page with text that is of a different color and size than the main document. This text will also need to be centered to make it look more like the other documents our company makes. Luckily, the title of the document will be the same for all versions, so I'm adding this part of the script to before it adds the differences. However, I'm not sure how to make the text display as a different color and size before adding a "new page" break for the rest of the document. Can somebody help me out with how to add the text and new page to the front of the current document?
Chris

Fix Table Width

I'm trying to create my project report which needs me to write in a two column style on each page. I have a table on the last page whose width is a lot more than half the page width so I want to allow it to extend to the full page width. However, Latex overwrites on the extended part.
I tried a few things like using \begin{table*} instead of \begin{table} - but that makes the table go to the next page. (I don't like this because it's the last page of my report)
I also tried \includegraphics[width=0.8\linewidth], but that causes a compilation error.
Any ideas on this. Stuck for a while now.
I am not sure if I completely understand your problem. IMO, you have a documentclass that defines that your text is going to be in two columns format, something like this:
\documentclass[a4paper, 11pt, twocolumn]{report}
You have a bunch of text that is your report, in this two-column format and you need to insert a table that will only use one-column format. For me, that is achieved by adding the \onecolumn command before the \begin{table} command.
When you finish with the table, you can use the \twocolumn command to return to your previous format.
However, using this approach I am giving you, it will move the table to the top of the next page, since AFAIK you cannot have \onecolumn and \twocolumn on the same page in Latex.
You can also use the float package to allow you to place the table where you want it with the h option in the table; something like this: `\begin{table}[ht]. However, this will not override what I wrote above, it will still begin in the next page if you are changing the columns' style.
For big tables, I know there is a package for working with them. I have not used it myself, but give it a try. Take a look at this post: https://tex.stackexchange.com/questions/136212/how-to-use-longtable-package.

Statsoc style package giving table positioning problems

I am formating a paper in statsoc style. I inserted a table. But it moves to the top of the page even though it should be placed in the middle of the page after some text.
I tried using float package with table options [H],[H!], [h]. But that results in printing [H] (or whatever the option i type) before caption like this:
[H] Table 1: table_caption
Please help. Really appreciate it.
Within the statsoc.cls, you need to change def\fps#table{tbp} to \def\fps#table{htbp}.

moving page number anywhere on a page in Latex

I want to print the current page number inside the defined textheight, textwidth frame on a Latex document, rather than at the page bottom.
How can I retrieve the current page number somehow for each page and then print it inside my text region? Can I call the page number up somehow on any given page? And insert it. Not as a \label or a \cite job ?
After long fumbling along trying to get that page number to show under \pagenumber or the like, I finally hit upon \thepage. If one is on p. 48, say, and wants to display that number anywhere in the text of p. 48, one simply types \thepage to have 48 appear where it is set in the text. So simple, but it stumped me.
Why did I want that? I made the page height and page width the exact dimensions of an 8.5 by 11 page. Then - unfortunately - page numbers are automatically set below the bottom edge of the printed window of every page. And become invisible!
Now I learnt how to print the current page number inside the visible page. Why did I use the full size of the paper? Because I was building a pdf file for a book and I wanted a seamless edges to edges picture on its front cover. Therefore the full size page width and page height ... Thanks!
\thepage, \thechapter etc was the answer. Sorry I asked.

One page website: Rewrite URL in address-bar when clicking an anchor-link

I have set up a one-page, horizontal scrolling website with several anchors combined with DIV-id's. The website has five pages side-by-side that automatically render full-page based on the visitors browser-window.
The menu contains seven hyperlinks that address different anchors (div-id's) on the page (for example: http://www.url.com/#partsix). When they are clicked, the visitor will automatically be scrolled to the anchor part of the page. This works fine and really smooth.
The problem i'm dealing with is that, since the page is not being reloaded, the address-bar is not updated. So if a visitor wants to link to a page, or, for example, like the URL with a facebook button, it will be very difficult.
Is there a way to rewrite the address bar with the anchorlink without reloading the page?
EDIT: I have found out that i can user the action onclick="window.location.hash = hash;" on the hyperlinks. This will return the hash of the anchor it is scrolling to in the address bar. Works like a charm. But: my menu plugin does not let me add this action to the hyperlinks. So i wanted to check if i can use javascript to apply this action to all hyperlinks in the same li class. Does anyone know how?
The li class that contains all menu links is 'mc_menu mc_depth_2'

Resources