How to create a style within OpenDocument/LibreOffice Writer to get titles on their own page? - openoffice.org

I would like to make a style within a LibreOffice text document that formats all my top-level headlines to appear alone on a dedicated page. Actually, I would like to have quite the same as the chapters title pages of the LibreOffice Writer documentation but I don't know how to do it.
Any idea how?

Maybe you can have a look at the odt document you cite as example and see how it is done there?
Go to the title page. Select the title - then press F11 to bring up the 'Styles' box.
A special style for these chapter headings has been created called 'OOoHeading 0'. There is a page break before and a page layout style called 'OOoPageStyle'.
See example 'chapters; (around page 185)
A possible scenario: You are writing a book that is divided into chapters. Each chapter starts with a page style called New Chapter. The following pages use the Default page style. At the end of each (except the last) chapter, we return to the New Chapter page style for the first page of the next chapter.
Implement that in your document.

Related

Generate a dynamic table of contents based on (already) rendered headings with Rails

Many Wikis have it, a table of contents based on the headings from the displayed page. I'm looking for an easy possibility to realize that with Rails.
I have different kinds of pages, like dynamically generated ones, processed markdown pages as well as static pages. All these pages have HTML headings on different levels. How can I generate a Wiki like table of contents, which links to the headings with anchors?
I already searched for a post render callback or another entry point in the life cycle, which is happening after rendering, but I didn't found really one. What would you suggest to do? .. implementing a middle ware or what would be your direction?
If you decide to stick with markdown for all your content, you can do this with the Redcarpet gem. Passing with_toc_data: true to the renderer will add anchors to header tags. And re-rendering with Redcarpet::Render::HTML_TOC will generate a list of links linking to those header tags.

How to give link to Second (Particular) page from all pages in MS Word?

I have Table of Contents on Page number two and want to give link to same page from all pages of my document, If I created link in footer, it is not click-able.
So what should be done?
The following seems to work here:
Insert a bookmark on the page you want to link to (or use a bookmark that is already there). Let's say it is called "xyz"
Insert a text box in the footer.
Insert the following field code
{ PAGEREF xyz \h }
where the { } are the special field code braces that you can insert using ctrl-F9 on Windows Word.
Strange!
Only checked in Word 2010.

how do I force a page break in Rave Reports, Delphi 7?

I am new to Rave and I'm having a ridiculous amount of difficulty forcing page breaks between sections of my report. It's a master-detail report, with various types of detail sections (master = patient; detail 1 = visit history; detail 2 = medications etc.). I've got the detail sections working ok but need to: a) force a page header to carry over on every page and b) force each detail section to start on a new page. In other words, I want every page of the report to include a header with the patient name, ID etc., and I want each type of data (visits, meds, etc.) to appear as its own section.
I've tried the different Band styles and checkboxes for having the bands appear on every new page, etc., but I can't get a header or a page break for the life of me.
Can anyone provide the settings I should use for the page header band and the bands that should begin a new page with each section? Many thanks!
Clicking "New Page (P)" in Band Style Editor should force it to be printed on each page. If not, maybe verify that the Header band style (Group/Body etc) has the ControllerBand set to the Detail databand of your DataView.

RAILS: Tracking content with /#foo in the address bar

Just like in Gmail, I want to create a div which when loaded with ajax would output a #foo in the address bar to track what content would be loaded.
If you go to https://mail.google.com/mail/?shva=1#sent gmail, if signed in, will take you straight to your sent box.
I want to do the same. For example. I have a div that loads a list of recipes. Once a recipe on the list has been clicked content gets loaded from db in the same div and the address bar would say http://site.com/#recipe-permalink. If this link gets passed to a friend and the friend goes to http://site.com/#recipe-permalink the div would load appropriate content with that recipe.
Also is there a way to control more than one div? For example if url is http://site.com/#recipe-permalink#blue app would load recipe in one div and appropriate content in another div for #blue (what ever it may be).
Is there a way to make cells or apotomo have this functionality?
Are there any SEO concerns with doing this as well? Would the crawlers be able to pick up content through #foo links?
Probably not a full answer to your question but I believe this episode of railscasts would be interesting to you.
http://railscasts.com/episodes/246-ajax-history-state

How can I remove body from a Page in OrchardCMS?

I currently have 2 page types in my Orchard CMS setup. One is for the front page, one for a detail page. On the front page, I have removed the body from being displayed, so that it just shows 2 HTML widgets.
Is there a way so that when someone edits this page, they don't get a body section?
A placement file might also do the trick: placement also works for the admin ui... That could enable you to make it show or not without requiring two different content types.
You can remove the Body Part from the page content type you use for the front page. This way people who edit this page won't see the editor for body content and the body won't be rendered at all.
HTH

Resources