On Tue, Nov 15, 2011 at 8:46 AM, Leslie I'Anson <[email protected]> wrote:
> Hi Lex,
>
> The head of my AsciiDoc file looks like this:
>
> Assignment Title
> ============
> :Course: Course Name
> :Tutor: Tutor's Name
> :Student: Leslie I'Anson
> :Date: November 2011
>
> I also have a config file, named asciidoc.conf, in my working
I presume you mean source file directory?
> directory that contains the following:
>
> *[+docinfo]
> {'course':''}
> {'tutor':''}
> {'student':''}
This should place this content at the end of the <head> entity, but it
must produce valid html, which this doesn't. If this is meant to be
CSS it needs to be in a style tag and doesn't look correct to me.
>
> *[+header]
> <span id="course">{course}</span>
> <span id="tutor">{tutor}</span>
> <span id="student">{student}</span>
>
(I'm assuming the leading * isn't in your file.)
> As you can see, I've tried only to include the differences so as not
> to have to reproduce the entire header section, which of course is
> incorrect because there is no positioning information, i.e. AsciiDoc
> does not know where to insert these lines, so it simply appends them
> to the header section.
Well, thats the definition of the [+header] syntax, to append.
There is no way to put anything inside another section, you have to
copy the whole [header] section and add these lines in the right
place, presumably after the "author", "email" etc spans.
>
> Therefore my question is, am I going about this correct way and is the
> solution simply to reproduce the entire header section, including the
> three additional lines above, in my config file?
Yep, afraid so.
Cheers
Lex
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.