Skip to content

Tabs items shouldn't be rendered as they are in LaTeX output #218

Description

@dbitouze

Context

Currently, tabs such as:

.. tab-set::

    .. tab-item:: Label1

                  Content 1

    .. tab-item:: Label2

                  Content 2

are converted for the PDF's LaTeX output into the following .tex code:

\begin{sphinxuseclass}{sd-tab-set}
\begin{sphinxuseclass}{sd-tab-item}\subsubsection*{Label1}

\begin{sphinxuseclass}{sd-tab-content}
\sphinxAtStartPar
Content 1

\end{sphinxuseclass}
\end{sphinxuseclass}
\begin{sphinxuseclass}{sd-tab-item}\subsubsection*{Label2}

\begin{sphinxuseclass}{sd-tab-content}
\sphinxAtStartPar
Content 2

\end{sphinxuseclass}
\end{sphinxuseclass}
\end{sphinxuseclass}

This solution is sub-optimal because it introduces a level of structure (sub-sub-section) that may not be consistent with the context.

Proposal

Something such as what results from a definition list would be much better:

\begin{description}
\sphinxlineitem{Label1}
\sphinxAtStartPar
Content 1

\sphinxlineitem{Label2}
\sphinxAtStartPar
Content 2

\end{description}

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions