Also try with {title} attribute:

<mediaobject role="cover">
  <imageobject>
   <imagedata fileref="images/logo.png" format="PNG"/>
  </imageobject>
  <textobject>
*    <phrase>{title}</phrase>*
  </textobject>
</mediaobject> 



Em sexta-feira, 23 de janeiro de 2015 11:05:12 UTC-3, Marco Ciampa escreveu:
>
> I would like to add these in the docbook FAQ: John Beard kindly found a 
> solution for the cover page image that was easy enough for me. 
>
> For pdf: 
>
> a2x -f pdf --dblatex-opts "-P latex.output.revhistory=0 -P 
> doc.publisher.show=0 -s pdf-cover-dblatex.sty" document.adoc 
>
> where the content of pdf-cover-dblatex.sty is: 
>
> \NeedsTeXFormat{LaTeX2e} 
> \ProvidesPackage{asciidoc-dblatex}[2012/10/24 AsciiDoc DocBook Style] 
>
> %% Just use the original package and pass the options. 
> \RequirePackageWithOptions{docbook} 
>
> % custom cover page 
> \def\DBKcover{ 
>   \thispagestyle{empty} 
>   \begin{center} 
>   \includegraphics[width=1\textwidth]{images/logo.png} \\ 
>   \vspace*{1in} 
>   \bfseries 
>   \sffamily 
>   {\Huge \DBKtitle \\[1ex]\large ~~~ \\} 
>   \vspace*{2.1in} 
>   {\color{blue} \Huge ~~~ \\ \huge ~~~ \\} 
>   \vspace*{2.1in} 
>   {\Large\DBKdate \\} 
>   \end{center} 
>   \vfill 
> } 
>
> For epub: 
>
> a2x -f epub -a docinfo document.adoc 
>
> where the content of document-docinfo.xml is: 
>
> <mediaobject role="cover"> 
>   <imageobject> 
>    <imagedata fileref="images/logo.png" format="PNG"/> 
>   </imageobject> 
>   <textobject> 
>     <phrase>DOCTITLE</phrase> 
>   </textobject> 
> </mediaobject> 
>
> DOCTITLE should and could be substituted with a simple sed script like 
> this: 
>
> sed -e 's/DOCTITLE/Real title/' document-docinfo.xml 
>
> Hope someone will find this useful. 
>
> bye 
>
> -- 
>
>
> Marco Ciampa 
>
> I know a joke about UDP, but you might not get it. 
>
> +--------------------+ 
> | Linux User  #78271 | 
> | FSFE fellow   #364 | 
> +--------------------+ 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to