Issue with book cover on Ascii-doc pdf - asciidoc

I've just completed my first ascii-doc book and added a picture as cover. The issue is that, when generating the PDF file, the first Heading found in the book, is printed in the middle of the image cover:
:title-logo-image: image:images/cover.jpg[]
= Title of the book
I've tried adding page breaks ("<<<") after the :title-logo-image but then the picture is not included at all in the final PDF file.
Any help?
Thanks

Solved using:
:front-cover-image: image:images/cover.jpg[]

Related

Page Break Issue in pdf output

I am using BIRT Designer, I am having an issue of page break when generating the report as PDF.
After generating the PDF report, What happen is since the note from the input file is too long for the description column to accommodate some of the string is being pushed down to next line or being wrap to ensure that the note fits in the description column area which cause for the trailer details to be push to the next page.
I have tried many page break options like avoid before and after for tables/grid but nothing is working.
Please find the attachment of sample pdf for getting page break issue and rptdesign file and xml file.
So Please give some suggestion to solve as soon as possible.
Thanks and Regards,
Sharath.
I had similar issues in the past and found these answers a long time ago.
Set the page break interval to zero and see if this works for you. The page break before, inside and after settings should be set to Auto as setting something to avoid will always try to avoid page breaks when displaying your selection. Auto will use page breaks where necessary.
Check to see if this works for you.
You can also try entering this code in the beforeFactory section:
if( reportContext.getOutputFormat() == "pdf" ){
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement(
"mytable").setProperty("pageBreakInterval",
0);
}
Go to the script tab and then change the name "mytable" to the name you have given your table under Properties > General > Name

How can I the image start from a new line when using dita-ot-3.0 pdf plug outputting PDF?

hope someone to help me, thanks!
When I use dita-ot-3.0 to output pdf, I find in many places, the images are displayed in the same line with text.
I try two plugins:
- default pdf2 plugin
- a customization pdf plugin using PDF Plugin Generator at https://github.com/jelovirt/dita-generator (I didnot find any place to set image attribute)
So here is my question, I write xml like this:
source xml file
When I output pdf, I get this:
image is shown in the same line with text
there are many other images showing like that. How can I make the image show starting from a new line? Am I misusing the element? Is the difference between inline element or block?
You should be able to do this by setting the attribute placement="break" to the <image> element. This is explained in the spec.

How to set title tag in magento2.1

As suggested by our SEO guys, they wanted to show title tag on product detail page's thumb images. I am able to manage other image's title tags on the same page but not able to set title tag here. Here is screenshot for more idea. http://nimb.ws/hX74Fr
Following files I have modified and added title but no luck.
/vendor/magento/module-catalog/Block/Product/View/Gallery.php
getGalleryImagesJson() function, added title tag
/vendor/magento/module-configurable-product/Helper/Data.php
getOptions($currentProduct, $allowedProducts) function, added title tag.
I assume above files and willing to override if these are the files only. Any help will be highly appreciated.
Thanks in advance.

different post-thumbnail in wordpress

The scenario:
I'm on the Startpage of my Blog, and there is an Article with its post-thumbnail. When I click on the Header or the "…read more-link I get to the post.
My question:
Is it possible to set the image bigger when you're on the single-post-page? Furthermore I would like to understand how to set this post-thumbnail-difference up.
I hope you've understood my bad english :) I'm looking forward in receiving help from you guys.
Best regards
Morten
Update:
Here two Screenshots of the Scenario:
Startpage > http://s1.directupload.net/images/130517/ltxuxyj6.png
Singlepost > http://s1.directupload.net/images/130517/lap5re2j.png
The images belongs to me (© Morten Sassi)
I think it depends on the theme you're using : on mine, thumbnail isn't used for the startpage but it use the "featured image", and once on the page of the article I just add the image directly in the body of the article with the size I want.
Maybe you can have a look to your template code and either edit it (but if you're using a theme you didn't create and you update it later your modifications will be deleted) or create a child theme (better solution) to edit only the files you want.
Hope this will help ^^
The best & easy tricky way is uplod your image from media, copy the path and paste this on your post or page editor from backend..and you will get what you want.
Thanks
anand

Lightbox: On my page the first image loads the following ones don't

page being worked on
Hello all I hope this will be a simple fix I just don't know what is holding up the program.
So here is the scenario, I have just installed lightbox I test just the first image and in worked great no problem. So then I proceeded to group all the images on the page and none of them would open. You will see on the page now I just have two pictures the rest are commented out.
Any help would be great thanks!
From what I am seeing, your second image is not appearing because the file you are pointing to has not been uploaded to the site.
For your first image, the "A" tag is referencing 1small.jpg, which is the same as the image.
For your second image, the "A" tag is referencing 125large.jpg, which is different from the image (125small.jpg).
Either upload the missing image, or correct the "A" tag.

Resources