On 13 January 2015 at 07:14, Andrew Myers <[email protected]> wrote: > Hello, I'm experimenting with asciidoc as an alternative to Latex, which > I've been using for years. I like the > idea of a simpler more portable format but I'm having trouble customizing > it. > I'm trying to change the default body font size in a document. I'm on > Ubuntu and I dug around a bit and found > /etc/asciidoc/docbook-xsl/fo.xsl which seems to contain all the docbook font > settings.
This is used when generating xsl:fo for rendering by the FOP toolchain, not dblatex, thats why it didn't work. > > I copied this into my local asciidoc-dblatex.xsl file and updated the > settings > > <xsl:param name="body.font.master">15</xsl:param> > <xsl:param name="body.font.size"> > <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text> > </xsl:param> > > This had no effect, I tried a variety of things, including replacing the > content of 'body.font.size' with the literal text '15pt'. > After this didn't work I tried editing the file > /etc/asciidoc/docbook-xsl/fo.xsl directly, which also made no changes to the > document. > > I'm invoking a2x like this: > > a2x -L -f pdf --dblatex-opts "-p asciidoc-dblatex.xsl" file.adoc > > My two questions are > > 1) Is this the expected way of passing the custom xsl file? I tried using > the --xsl-file option but this didn't seem to work. > It feels a bit odd to need to pass the file inside another options > block. Yes thats how you pass options to the dblatex command. > > 2) How do I change the font size? More generally, why did what I tried not > work? > I think dblatex uses latex styles to control rendering, see http://dblatex.sourceforge.net/doc/manual/index.html. Cheers Lex > Thanks, > Andrew Myers > > -- > 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. -- 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.
