@Andrew

>  [..] alternative to Latex, which I've been using for years.

As a experienced user you probably know that LaTeX has been designed around
the concept of 10pt, 11pt or 12pt base font size. So get something like
15pt, you could install [1]. Then in addition you need to convince dblatex
to generate

..
\documentclass[15pt]{extarticlex}
..

You would do that by specifying an XSL script that would look similar like

$ cat xsl/lorem.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:m="http://www.w3.org/1998/Math/MathML";
                version="1.0">
<xsl:param name="latex.class.article">extarticle</xsl:param>
<xsl:param name="latex.class.options">17pt</xsl:param>
</xsl:stylesheet>


[1] http://ctan.mackichan.com/macros/latex/contrib/extsizes/extsizes.pdf

On Mon, Jan 19, 2015 at 10:31 PM, wolfgang häfelinger <
[email protected]> wrote:

> @Andrew
> I downloaded dblatex-0.3.2 and searched for 'body.font.size' like
>
> $ find dblatex-0.3.2 -type f -print0 | xargs -0 fgrep -i 'body.font.size'
>
> There is no output, i.e. there is no body.font.size. Neither in the source
> nor in the documentation.
>
> This answers your question 2)
>
>
> On Mon, Jan 19, 2015 at 6:20 PM, wolfgang häfelinger <
> [email protected]> wrote:
>
>> ​> ​
>> An alternative to
>> ​
>> dblatex see
>> ​ [..]
>> ​
>>
>> ​I​
>> gnorance is bliss
>> ​!​
>>
>>
>> On Wed, Jan 14, 2015 at 12:47 AM, Lex Trotman <[email protected]> wrote:
>>
>>> On 14 January 2015 at 01:23, Andrew Myers <[email protected]> wrote:
>>> > Hi Lex, thanks for your response.  I will look at the dblatex manual,
>>> for my
>>> > edification would you mind explaining this?
>>> >
>>> >> This is used when generating xsl:fo for rendering by the FOP
>>> >> toolchain, not dblatex, thats why it didn't work.
>>> >
>>> > What is the FOP toolchain and what do you mean by generating xsl:fo
>>> for it?
>>>
>>> An alternative to dblatex see
>>> http://www.methods.co.nz/asciidoc/userguide.html#X14
>>>
>>> Cheers
>>> Lex
>>>
>>> >
>>> > Thanks,
>>> > Andrew Myers
>>> >
>>> > On Monday, January 12, 2015 at 6:56:08 PM UTC-5, Lex Trotman wrote:
>>> >>
>>> >> 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.
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> Wolfgang Häfelinger
>>
>>
>
>
> --
> Wolfgang Häfelinger
>
>


-- 
Wolfgang Häfelinger

-- 
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