Pagination


#1

I thought I had addressed this before, but I can’t locate where. Please forgive me if I am going over something I already mentioned but …

I know I have mentioned that TaskPaper could use some pagination code. Things like setting a page break and a footer and a header with page xx of xx would be nice.

But, this post is not about that. This is about how when I print out a dozen pages I have been working on, the bottom line on a page only prints half the line and runs off the lower margin of the page. The same thing happens at the top of the next page, getting only half of the first line printed with the other half disappearing in the upper print margin.

For some odd reason, yesterday I was no longer having the problem with the first and last lines truncating as I had in the past. Today, the problem has returned. I am not sure why but, if this could be looked at it would certainly be appreciated.

Just to mention it, my writing style is to work hard on the Mac writing and editing my document. Then from time to time I like to print a paper draft and use this for editing. I guess it’s the editor in me that still likes proofreading actual copy. Then, I return to the Mac and make the paper corrections. Rinse and repeat.

This is a different process than making a final version in Nisus. This use of TaskPaper needs to print without truncating lines in order to be useful. Yesterday I could do this in TaskPaper. Today with the truncated lines, I have to go to Nisus to print.

With TaskPaper I normally have to go to my word processor (Nisus) and print that way. This helps as I check formatting in a final version. But it would be very nice if I could print drafts from TaskPaper - so long as the margins stop cutting off sentences halfway.

Thanks


#2

Hum, yeah I remember something about this. It seems to be working (ie text not getting clipped in half) for me in my initial testing.

Can you include:

  • An example document the reproduces this problem
  • The stylesheet you are using
  • Your print settings (is it all default, or custom page size, etc)

#3

Well, shucks. Or, yay … it isn’t doing it now. I had a whole bunch of old unused code in my print.less document. Cleaned that up and it is now working.

OTO I was using the same file the other day when I posted this so … not sure where the glitch is coming from.

I can’t send you what I am working on and I don’t want to stop and create several pages of lorem ipsum just to test what is working again.

If you want I can do this. But, it is working for now so … onward and upward.

Thanks.

My print.less file:

// -----------------------------------------
// – Sets Document Basics.
// -----------------------------------------

@text-color: mix(black, white, 90%);
@background-color: mix(white, white, 2%);
@invisibles-color: mix(@tint-color, @background-color, 10%);
@selection-color: mix(@tint-color, @background-color, 50%);
@tint-color: mix(white,white, 50%);

// -----------------------------------------
// – Sets Document Appearance.
// -----------------------------------------

window {
appearance: NSAppearanceNameVibrantLight;
}
editor {
guide-line-color: mix(white, white, 45%);
}
item {
handle-color: mix(white, white, .1%);
}
item[filtered] {
handle-color: mix(black, green, 80%);
}

// -----------------------------------------
// – Changes the Project Title Font.
// -----------------------------------------

item[data-type=project]{
color: mix(black,black, 50%);
paragraph-spacing-before: 5;
paragraph-spacing-after: 5;
font-size: 13;
}

// -----------------------------------------
// – Changes the Project Task Font.
// -----------------------------------------

item[data-type= task]{
color: mix(black,black, 50%);
paragraph-spacing-after: 5;
font-size: 13;
}

// -----------------------------------------
// – Changes the Project Note Font.
// -----------------------------------------

item[data-type=note] {
font-style: regular;
line-height-multiple: 1.2;
color: mix(black,black, 50%);
font-size: 12;
paragraph-spacing-after: 12;
}

// -----------------------------------------
// Describes Tags:
// First part, sets font for the tag itself,
// Second part, sets styles for the line the tag is on
// -----------------------------------------

// Changes the text preceding the tag to italics: “@i
item[data-i] {
color: mix(white,black, 30%);
font-style: italic;
}
// Changes the text of the tag “@i”.
run[tag=data-i] {
color: mix(black, white, 30%);
}

// -----------------------------------------

// Changes the text preceding the tag to bold: “@b
item[data-b] {
font-weight: bold;
}
// Changes the text of the tag “@b”.
run[tag=data-b] {
color: mix(black, white, 30%);
}

// -----------------------------------------

// Changes the text preceding the tag to underline: “@u
item[data-u] {
text-decoration: underline;
}
// Changes the text of the tag “@u”.
run[tag=data-u] {
color: mix(black, white, 30%);
}

// ----------------------------------------

item[data-done] {
color: mix(black, white, 40%);
paragraph-spacing-before: 1;
paragraph-spacing-after: 1;
font-size: 13;

run[content] {
text-strikethrough: NSUnderlineStyleSingle;
text-strikethrough- color: mix(black, lightblue, 25%);
}
}