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

Need to have a math style in lout output so tagged areas can pass math to formulas #123

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. In a lout file produced by txt2tags, the only system include at the top of 
the file is '@SysInclude{ doc }'

2.This means that if you use a tagged area like this to insert lout math tags:
'''
@CentredDisplay @Math { int from {0} to {1} dx 
over sqrt {1 - x sup 2} = pi over 2 }
'''

Then Lout does not recognize the @Math tag.  
It needs @SysInclude{ math } at the top of the file as well.

3. There *is* a workaround. You can put
%!postproc(lout) : "@SysInclude { doc }" "@SysInclude { math } @SysInclude { 
doc }"

in the config area and it will work.

But it would be nice to have something like
%!style(lout) : math
and also
%!style(lout) : tbl
(I think Lout has a good table facility as well.)

Thanks for your wonderful software. I am just learning Lout as well, but I like 
the very simple syntax of t2t.  I am a very experience LaTeX user as well.

-David (USA)
jblxdwc@gmail.com



What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by jblx...@gmail.com on 30 Jun 2011 at 3:32

@GoogleCodeExporter
Copy link
Author

Hello David,

So @SysInclude in Lout is the equivalent of \usepackage in LaTeX? If yes, sure 
%!style can be used, just like we use it today in tex target.

About tables, currently txt2tags doesn't generate them in Lout. This tbl module 
is universal in Lout? It would be easier to compose the table codes using it? 
The last I saw Lout table code it was WAY complex to add.

        # lout tables are *way* complicated, no support for now
        #'tableOpen'            : '~A~@Tbl~B~\naformat{ @Cell A | @Cell B } {',
        #'tableClose'           : '}'     ,
        #'tableRowOpen'         : '@Rowa\n'       ,
        #'tableTitleRowOpen'    : '@HeaderRowa'       ,
        #'tableCenterAlign'     : '@CentredDisplay '         ,
        #'tableCellOpen'        : '\a {'                     ,  # A, B, ...
        #'tableCellClose'       : '}'                        ,
        #'_tableBorder'         : '\nrule {yes}'             ,

Original comment by aureliojargas@gmail.com on 21 Dec 2011 at 7:55

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

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