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

Tabular formatting should be specified as a style parameter #29

Closed
darioteixeira opened this issue Feb 22, 2015 · 2 comments
Closed

Tabular formatting should be specified as a style parameter #29

darioteixeira opened this issue Feb 22, 2015 · 2 comments

Comments

@darioteixeira
Copy link
Owner

@darioteixeira darioteixeira commented Feb 22, 2015

In Lambtex, the formatting/alignment for tabular environments is specified à la LaTeX, ie, \begin{tabular}{ccc} (for example). This syntax was chosen for LaTeX compatibility, but is anomalous within Lambtex. For the sake of language consistency, the column formatting/alignment should be specified as a style parameter, ie, \begin<format=ccc>{tabular}.

Unfortunately this will break existing docs out there, though the migration should be a simple matter of search & replace. What do you think @edwintorok?

@edwintorok
Copy link

@edwintorok edwintorok commented Feb 22, 2015

Are you going to change the advanced cell syntax too? Previously the {2c_} was consistent with {ccc}, not sure how that should look after using style parameters.
Perhaps \col<format=2c_>{ ... contents of multicolumn span ..}?

@darioteixeira
Copy link
Owner Author

@darioteixeira darioteixeira commented Feb 23, 2015

Yes, for consistency sake the cell syntax would need to to change too. Since the angle brackets < > are the universal syntax for style/formatting, |{2c_} would be changed to |<f=2c_>. Note that the cell formatting would be specified as a key/value pair with f as the key (the name for the key is open for discussion, of course). This would allow for specifying classname styles also for individual cells. For instance: |<fancy>.

This revised syntax has the disadvantage of being slightly more verbose. Nevertheless, I think it's worth considering because it makes the style syntax uniform across the entire Lambtex language.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.