Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lout improvements: links, crosslinks, style and others #44

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 2 comments
Open

Lout improvements: links, crosslinks, style and others #44

GoogleCodeExporter opened this issue Apr 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Jonatan Liljedahl wrote me:

• lout can do links:

 "http://snark.ptc.spbu.ru/~uwe/lout/lout.html" @ExternalLink { Lout
Home Page }

• lout can do crosslinks:

 @PageMark foo

or in the section titles:

 @Section @Title { Foo what? }
 @Tag { foo }
 @Begin

and then

 see foo @CrossLink { this page } for more info

• citation marks: "foo" should be converted to ``foo''

• ability to specify custom header, needed to tweak the output. perhaps
when given a %!style, replace the header with:

 @Include { style }
 @Document
 //

• auto-convert images to EPS with imagemagicks 'convert' ?

• lout can do tables

• special chars in titles are not escaped, so a title like 'GNU/Linux'
gives errors.

Original issue reported on code.google.com by aureliojargas@gmail.com on 4 Aug 2010 at 11:56

@GoogleCodeExporter
Copy link
Author

Jonatan Liljedahl wrote:

PS. footnote support would also be cool :) lout can do them
automatically (@FootNote {this is the footnote}) but xhtml/html targets
could simply put them numbered at the end of the document.



Original comment by aureliojargas@gmail.com on 5 Aug 2010 at 12:03

@GoogleCodeExporter
Copy link
Author

Jonatan Liljedahl wrote more on the style topic:

BTW, regarding the %!style and custom header stuff for lout, I'm not
sure how it should be done to "just work" and also provide user with
full flexibility to adjust the lout document appearance.
I did a python GUI app once that functioned as a frontend to asciidoc
(didn't know about txt2tags then! ;) and lout, where I wrote options out
to a "lout_setup" file which was then included in the main lout file,
and I also had some custom macros for nice front sheet and doc title,
etc.. I'll attach such a lout_setup file. The header in the lout output
file then looks like this:

@SysInclude { tbl }
@SysInclude { eq }
@Include { lout_setup }
@Document
//
@Text @Begin
@Display { Bold 2f } @Font { AlgoScore users guide }
@Display @I { Copyright 2008, Jonatan Liljedahl }

The included lout_setup is simply a stripped down version of
/usr/lib/lout/include/doc. (The original includes "mydefs" by default,
but unfortunately one can't use stuff like @Use { @BasicSetup ... in
more than one place so you can't use "mydefs" for document settings!)

So txt2tags could make a similar simple @Document header as it does now
uf %!style is not given. But if %!style was given, do an @Include {
style } and remove the options between @Document and // in the header.
That should work.

Original comment by aureliojargas@gmail.com on 5 Aug 2010 at 12:05

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant