Hiding/remove headers and footers

Get help using and writing Nisus Writer Pro macros.
Post Reply
vwnisus
Posts: 10
Joined: 2016-04-24 00:13:31

Hiding/remove headers and footers

Post by vwnisus » 2018-04-13 06:46:45

Nisus Writer Pro 2.1.8 / macOS 10.13.4

In the simple formatting macro I am creating I would like to include a command that hides any/all headers/footers. (I can see how to manually hide them.)

My search through the macro reference guide does not appear to provide a command for this.

I understand it is not possible to delete them.

Any help would be gratefully received.

Þorvarður
Posts: 234
Joined: 2012-12-19 05:02:52

Re: Hiding/remove headers and footers

Post by Þorvarður » 2018-04-13 07:16:18

vwnisus wrote:
2018-04-13 06:46:45
In the simple formatting macro I am creating I would like to include a command that hides any/all headers/footers.
How about View:Draft View ?

You may have to adjust the zoom factor for the new view. For example:
View:Draft View
Set Zoom 180 # or whatever zoom factor you use

vwnisus
Posts: 10
Joined: 2016-04-24 00:13:31

Re: Hiding/remove headers and footers

Post by vwnisus » 2018-04-13 08:00:08

Thank you for the reply.

I should have added to my original post, is that I wish to print the document (either to a printer, or to a PDF) and do not wish to have the headers/footers showing at all. Something which draft view will not help with.

Is it simply not possible to achieve with macro commands in Nisus?

User avatar
phspaelti
Posts: 889
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Hiding/remove headers and footers

Post by phspaelti » 2018-04-13 17:57:44

Hi vw. You mean the "Hidden Headers" and "Hidden Footers" boxes in the "Header/Footer palette". Nah. Currently Nisus doesn't have any macro access to any of the features in the "Section" palette dock (margins, sections, column settings, etc.), in particular also because none of these things have menu commands either.

Here's hoping Nisus will add "Section" and/or "Header" &"Footer" objects with suitable properties and commands in some not too distant future…

If you want to print out without the headers/footers it would be possible to write a macro that deletes the content of all headers and footers, prints out, and then restores the headers and footers. This would be a kludge, but it's what's possible at the moment.
philip

adryan
Posts: 171
Joined: 2014-02-08 12:57:03
Location: Australia

Re: Hiding/remove headers and footers

Post by adryan » 2018-04-15 21:37:34

G’day, vwnisus et al

A couple of other possible solutions occur to me.

One is to make the header and footer text the same color as the background.

Another is to overlay the header and the footer with opaque rectangular shapes of the same color as the background and then toggle the “Draw behind text” option in the Shape Wrap Palette. While I can find no obvious object-related command in the Macro Language to do this toggling, one could just access the desired command via the hierarchical menu:–

Tools > Shapes > Text Wrapping > Text Behind Shape (or Shape Behind Text)

I hope this helps.

Cheers,
Adrian
MacBook Pro (mid-2014)
macOS Sierra 10.12.6
Nisus Writer user since 1996

vwnisus
Posts: 10
Joined: 2016-04-24 00:13:31

Re: Hiding/remove headers and footers

Post by vwnisus » 2018-04-16 03:39:59

Thank you for the replies and suggestions.

It is unfortunate that there are these 'holes' in the macro language as they prevent creating a macro to automate some formatting changes.

Post Reply