-
Notifications
You must be signed in to change notification settings - Fork 61
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
Tabs items shouldn't be rendered as they are in LaTeX output #218
Comments
@dbitouze I did not investigate where the edited to do |
I tried with % Support **experimental** pour les tab-set de sphinx-design
% cf https://github.com/executablebooks/sphinx-design/issues/218
% ATTENTION C'EST FRAGILE CAR IL NE FAUT PAS QUE LE MARK-UP LATEX DE
% sphinx-design CHANGE (surtout pour sd-tab-item)
\newenvironment{sphinxclasssd-tab-set}{\begin{description}}{\end{description}}
\newenvironment{sphinxclasssd-tab-item}[3]{\item[#3]\leavevmode}{}
% pas besoin pour le moment de définir sphinxsd-tab-content in the preamble and it gives an acceptable result. The above has been tested with success on a big project, now it may not be at all a sufficient test as that project might have been using |
@dbitouze I should probably have proposed \newenvironment{sphinxclasssd-tab-item}[3]{\sphinxlineitem{#3}}{} following more closely your initial advice with I think Term
::
hello which gives \begin{description}
\sphinxlineitem{Term}
\begin{sphinxVerbatim}[commandchars=\\\{\}]
\PYG{n}{hello}
\end{sphinxVerbatim}
\end{description} and renders correctly. You could use |
Context
Currently, tabs such as:
are converted for the PDF's LaTeX output into the following
.tex
code: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:
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: