Code Monkey home page Code Monkey logo

Comments (8)

shimizukawa avatar shimizukawa commented on May 18, 2024

From Anonymous on 2009-03-19 19:54:04+00:00

How about just making this something specified with a directive, similar to the tabularcolumns directive?

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Anonymous on 2009-03-19 19:54:08+00:00

Bump!

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Anonymous on 2009-04-14 05:22:20+00:00

Yeah, it should be fine to switch it on like with adjusting the columns through tabularcolumns.

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Christophe de Vienne on 2009-05-08 11:45:36+00:00

I agree on this : switching to longtable should be explicit.
It would be great to see this solved soon.

I will try to provide a patch, so any pointer on how to do it is more than welcome.

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Christophe de Vienne on 2009-05-12 13:02:16+00:00

Hi,

I made a patch that add a "longtable" option to the "tabularcolumns" directive.
You can pull it from https://bitbucket.org/cdevienne/sphinx-longtable/ (Note that it is a fork of sphinx-06)

I chose this approach over adding a new directive because the resulting code is much simpler. This suggest that tabularcolumns is a generic directive for the latex writer for holding all the table-related options.
This imply that a renaming of this directive might be a good idea. Let's say "latextableoptions" for example, or "tableoptions".

Example :
{{{

.. tabularcolumns:: |l|l|r|
:longtable:

.. table::

.. some content...

}}}

I welcome any feedback, and of course a merge into sphinx would be great.

Regards,

Christophe

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Anonymous on 2009-05-12 14:36:54+00:00

Using a "recognized class argument" ensures compatibility with Docutils as class arguments can be savely ignored.

Example:
{{{
.. class:: longtable

.. table::

.. some content ....

}}}

(This would need the cssclass -> class renaming first.)

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Christophe de Vienne on 2009-05-12 15:20:30+00:00

Thanks for the suggestion. You are making a good point.
I updated my repo (https://bitbucket.org/cdevienne/sphinx-longtable/) with it.
Now you can write :

{{{
.. cssclass:: longtable

.. table::

.. some content...

}}}

Please try and see if the behavior is correct.

Christophe

from sphinx.

shimizukawa avatar shimizukawa commented on May 18, 2024

From Georg Brandl on 2009-05-17 10:45:03+00:00

Merged into the 0.6 repo, thanks!

from sphinx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.