Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 31, 2006 Generating Latex from DDoc | ||||
---|---|---|---|---|
| ||||
Is it possible to generate latex files with dmd and macro definitions? The main problem I see, is that dmd escapes characters for html and this behavior cannot be customized. Has someone ever done that? |
August 01, 2006 Re: Generating Latex from DDoc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit wrote:
> Is it possible to generate latex files with dmd and macro definitions?
> The main problem I see, is that dmd escapes characters for html and this
> behavior cannot be customized.
> Has someone ever done that?
I'd love to support Latex with Ddoc. If you can give it a try with the macros to see how close we can come, I can see about closing the gap.
|
August 07, 2006 Re: Generating Latex from DDoc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright schrieb:
> Frank Benoit wrote:
>> Is it possible to generate latex files with dmd and macro definitions?
>> The main problem I see, is that dmd escapes characters for html and this
>> behavior cannot be customized.
>> Has someone ever done that?
>
> I'd love to support Latex with Ddoc. If you can give it a try with the macros to see how close we can come, I can see about closing the gap.
If you could generate proper XML with Ddoc, you could - perhaps - write an XSLT program yielding latex output...
One of the problems here is that Ddoc allows the use of html tags in documentation comments - there were some more, minor problems which may not even exist anymore. It's been some time since i tried to write an XML generator.
|
August 07, 2006 Re: Generating Latex from DDoc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Markus Dangl | For that, you'd probably end up requiring the use of XHTML in comments. That, or CDATA'ing it.
Last time I tried, there were some issues with things just not being semantic (e.g. B is not semantic, and moreso many others are not) and so there's no way to fit it properly into a semantic xml structure that's easy to parse.
But I know things changed a bit since I last had time to mess with it.
-[Unknown]
> Walter Bright schrieb:
>> Frank Benoit wrote:
>>> Is it possible to generate latex files with dmd and macro definitions?
>>> The main problem I see, is that dmd escapes characters for html and this
>>> behavior cannot be customized.
>>> Has someone ever done that?
>>
>> I'd love to support Latex with Ddoc. If you can give it a try with the macros to see how close we can come, I can see about closing the gap.
>
> If you could generate proper XML with Ddoc, you could - perhaps - write an XSLT program yielding latex output...
> One of the problems here is that Ddoc allows the use of html tags in documentation comments - there were some more, minor problems which may not even exist anymore. It's been some time since i tried to write an XML generator.
|
August 07, 2006 Re: Generating Latex from DDoc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Markus Dangl | > If you could generate proper XML with Ddoc, you could - perhaps - write
> an XSLT program yielding latex output...
> One of the problems here is that Ddoc allows the use of html tags in
> documentation comments - there were some more, minor problems which may
> not even exist anymore. It's been some time since i tried to write an
> XML generator.
Yes I think you are right, that would be the best approach.
|
Copyright © 1999-2021 by the D Language Foundation