Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
警告中的TABLARCOLUMNS指令未在latex中显示_Latex_Python Sphinx_Directive - Fatal编程技术网

警告中的TABLARCOLUMNS指令未在latex中显示

警告中的TABLARCOLUMNS指令未在latex中显示,latex,python-sphinx,directive,Latex,Python Sphinx,Directive,我正在使用sphinx作为我的文档。 我有一个注释警告,我想在其中添加一个表。因为我想让表格分布在注释的整个宽度上,所以我想使用tablercolumns指令。 但是,添加此指令时,表不会呈现为latex格式,因此也不会呈现为pdf或html格式 这是我的重组文本片段: .. note:: Reserve the necessary amount of time to install your environment. The following table gives approxi

我正在使用sphinx作为我的文档。 我有一个注释警告,我想在其中添加一个表。因为我想让表格分布在注释的整个宽度上,所以我想使用tablercolumns指令。 但是,添加此指令时,表不会呈现为latex格式,因此也不会呈现为pdf或html格式

这是我的重组文本片段:

.. note:: 

   Reserve the necessary amount of time to install your environment. The following table gives approximate values for installation of the Operating System (OS) and for the initialization of the nodes.

   .. tabularcolumns:: |p{5cm}|p{5cm}|p{5cm}|

   +-------------------------+-----------------------+---------------------+
   | Node                    | Install OS (parallel) | Initialize (serial) |
   +=========================+=======================+=====================+
   | AS20/AS30 Storage Node  | 12 minutes            | 10 minutes          |
   +-------------------------+-----------------------+---------------------+
   | AS36 Storage Node       | 8 minutes             | 15 minutes          |
   +-------------------------+-----------------------+---------------------+
   | AC1/AC2 Controller Node | 8 minutes             | 15 minutes          |
   +-------------------------+-----------------------+---------------------+

当我省略该指令时,表被正确处理

如果缩进表3的空格,它应该可以工作。像这样:

.. note:: 

   Reserve the necessary amount of time to install your environment. The
   following table gives approximate values for installation of the 
   Operating System (OS) and for the initialization of the nodes.

   .. tabularcolumns:: |p{5cm}|p{5cm}|p{5cm}|

      +-------------------------+-----------------------+---------------------+
      | Node                    | Install OS (parallel) | Initialize (serial) |
      +=========================+=======================+=====================+
      | AS20/AS30 Storage Node  | 12 minutes            | 10 minutes          |
      +-------------------------+-----------------------+---------------------+
      | AS36 Storage Node       | 8 minutes             | 15 minutes          |
      +-------------------------+-----------------------+---------------------+
      | AC1/AC2 Controller Node | 8 minutes             | 15 minutes          |
      +-------------------------+-----------------------+---------------------+