I'd like to use (or define) an If-statement for pagestyle.
I have no idea :(
Update:
I'm using in my document about 4 pagestyles. Just as a little example I wish to have at the border of my document informations about jobname, date, time, lastsheet and sheetsequence AND size of the actual page. The size of the actual page is not everytime the same. That is why I thought, if I could define easy an if statement, it could be a great solution.
What I mean:
\ifthenelse{\equal{pagestyle}{numberone}}{size: $210 \times 297 $}{size: $420 \times 297$}
I hope it is clear now
\pagestylereveals that the page style isn't stored explicitly. The\thispagestylestores its argument in\@specialstyle, but this isn't very useful in general. Maybe if you are telling us what exactly you want to achieve we might be better able to help you. Every page style is defined by a\ps@<style>macro, e.g.\ps@plainforplain. Depending on your application you could add code to these macros instead of detecting the style. – Martin Scharrer May 09 '11 at 10:09