Creating a sample preview document - latex

Is it possible to create a sample preview document easily using final document by replacing, hiding or replacing some of the pages by blank pages?
What I want to do is to create a preview document (very similar to the way google books or amazon show few pages of the entire book and hide many pages). Is this possible to generate such a document using some tricks, commands in latex?

The pagesel package allows you to select only certain pages to be output:
\documentclass{article}
\usepackage[-4,3,even,7-8]{pagesel}% Keep only pages 2, 4, 8
\usepackage{eso-pic,graphicx,multido}
\AddToShipoutPictureFG{%
\AtPageCenter{%
\makebox[0pt]{%
\raisebox{-.5\height}[0pt][0pt]{%
\resizebox{.8\paperwidth}{.8\paperheight}{\thepage}}}}}
\pagestyle{empty}% No headers/footers
\begin{document}
\multido{\i=1+1}{10}{\mbox{}\clearpage}% Create 10 pages
\end{document}
Using blank pages might be awkward from the end-user's perspective.

Related

How Do We Create One PDF Page Per Slide (Not Per Fragment)?

It used to be that reveal.js would generate one PDF page per slide. Now, as of this issue, it generates one PDF page per fragment. I would like to generate a PDF in the old one-page-per-slide format, though.
This comment on that issue suggests that there is a configuration option for this, but it's not obvious what it is from the project documentation.
Which configuration option controls this? Or, is there another way to get reveal.js PDF export to do one page per slide?
From reveal.js' README.md, under PDF Export > Separate pages for fragments:
Fragments are printed on separate slides by default. Meaning if you have a slide with three fragment steps, it will generate three separate slides where the fragments appear incrementally.
If you prefer printing all fragments in their visible states on the same slide you can set the pdfSeparateFragments config option to false.
So, it seems you can export multiple fragments per page via:
Reveal.configure({ pdfSeparateFragments: false });

XPages form in A4 format

I would like to create a XPages form to print it out. I am not sure which is the best way to do this. I mean I need to create a panel or table or any other design elements then put all my staff in it?
I need advise:)
Regards
Cumhur Ata
Speak after me: browsers don't print.
If you need precision layout a browser is your worst enemy. Each one renders slightly different, so don't bother.
Your best bet is to create a PDF file for printing. There you have pixel-perfect rendering as you deem fit.
You can use iText, PDFBox or XSL:FO to generate PDF. There are code samples on OpenNTF or you read my blog entries about it.

Not Showing Rich Snippet Rating

Snippet test link: http://www.google.com/webmasters/tools/richsnippets?q=www.oyuntc.com/hay-day.html
In the example turns out the stars but the stars do not appear in google search. What could cause a've tried all the codes I could not get any results.
I think it might be content-related issue: mark-up is fine, but google don't like your content. Mark-up is just recommendation, Google makes decision on its own. Try to make your entire page mark-up make more structured.
Also, try to make structure as Product - Review: Google Search with Rating Stars (schema.org)

how to view epub documents as pages according to printed counterpart?

In popular desktop ebook viewers like calibre, FBreader or Cool Reader, I'm missing a feature to show ebooks in the same pagination as their printed counterparts. Some people (here, too) claim that epub does not have a page concept (e.g. at how to implement 'page break' in epub reader).
But this is not true. From http://www.idpf.org/accessibility/guidelines/content/xhtml/pagenum.php:
"If an ebook is produced from the same workflow as a print document, print pagination markers should be retained in the document. These markers benefit readers in mixed print/digital environments, such as a classroom, as the page numbers allow a common point of reference between the two editions." and from its FAQ-section: "Do page numbers really matter anymore? - Yes. Despite the assertions of the futurists and technophiles, print still reigns supreme. As a result, anyone in a mixed print/digital environment — using an assistive technology or not — needs a way synchronize electronic and print content."
I tested several ebook viewers with two different documents that contain page break tags, but they did not break up into pages (or I'm missing a preference option). Any help, infos are highly appreciated.
You can force page break with CSS and the property page-break-after=always but is not the best page layout for an ebook. For example add a class to your epub:type="pagebreak" label with that style.
<span epub:type="pagebreak" id="page23" class="pagenumber">23</span>
.pagenumber { /* other styles*/ page-break-after=always !important; }

How do I remove blank pages coming between two chapters in Appendix?

Is there a way to remove blank pages appearing between two chapters, in Appendix?
Your problem is that all chapters, whether they're in the appendix or not, default to starting on an odd-numbered page when you're in two-sided layout mode. A few possible solutions:
The simplest solution is to use the openany option to your document class, which makes chapters start on the next page, irrespective of whether it's an odd or even numbered page. This is supported in the standard book documentclass, eg \documentclass[openany]{book}. (memoir also supports using this as a declaration \openany which can be used in the middle of a document to change the behavior for subsequent pages.)
Another option is to try the \let\cleardoublepage\clearpage command before your appendices to avoid the behavior.
Or, if you don't care using a two-sided layout, using the option oneside to your documentclass (eg \documentclass[oneside]{book}) will switch to using a one-sided layout.
it is very easy:
add \documentclass[oneside]{book}
and youre fine ;)
I tried Noah's suggestion which leads to the best solution up to now.
Just insert \let\cleardoublepage\clearpage before all the parts with the blank pages
Especially when you use \documentclass[12pt,a4paper]{book}
frederic snyers's advice \documentclass[oneside]{book} is also very good and solves the problem, but if we just want to use the book.cls or article.cls, the one would make a big difference presenting your particles.
Hence, Big support to \let\cleardoublepage\clearpage for the people who will ask the same question in the future.
If you specify the option 'openany' in the \documentclass declaration each chapter in the book (I'm guessing you're using the book class as chapters open on the next page in reports and articles don't have chapters) will open on a new page, not necessarily the next odd-numbered page.
Of course, that's not quite what you want. I think you want to set openany for chapters in the appendix. 'fraid I don't know how to do that, I suspect that you need to roll up your sleeves and wrestle with TeX itself
In my case, I still wanted the open on odd pages option but this would produce a blank page with the chapter name in the header. I didn't want the header. And so to avoid this I used this at the end of the chapter:
\clearpage
\thispagestyle{plain}
This let's you keep the blank page on the last even page of the chapter but without the header.
I put the \let\cleardoublepage\clearpage before \makeindex. Else, your content page will display page number based on the page number before you clear the blank page.
One thing I discovered is that using the \include command will often insert and extra blank page. Riffing on the previous trick with the \let command, I inserted \let\include\input near the beginning of the document, and that got rid of most of the excessive blank pages.
You can also use \openany, \openright and \openleft commands:
\documentclass{memoir}
\begin{document}
\openany
\appendix
\openright
\appendixpage
This is the appendix.
\end{document}

Resources