On 15 November 2011 00:00, Lex Trotman <[email protected]> wrote:
> 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?
Correct.
>> 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.
As far as I'm aware, this is not meant to be CSS? Instead I adapted
it from an example I found distribuied as part of the AsciiDoc Debian
package.
>> *[+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.)
It isn't any more. (:
>> 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.
After some trial and error I presumed that to be the case.
>> 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.
Okay, thank you for confirming this. Thanks to your comments I now
have a better understanding of how the [header] section should look.
However, I'm still a little confused about the contents of the
[docinfo] section. Perhaps now you have a better understanding of
what I am trying to achieve you are able to offer me an example?
Thanks again for your time,
Leslie
--
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.