平均能量损失

平均能量损失

我想注释掉两个表中“版本 B”的所有内容。使用 comment-package 提供的常规注释环境可以实现吗?

平均能量损失

\documentclass[
parskip=false,
11pt,
]{scrartcl}

\usepackage{
setspace,
blindtext,
comment,
booktabs
}
\usepackage[english]{babel}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{longtable}
\excludecomment{versionB}
\includecomment{versionA}

\listfiles

\begin{document}
\section{Something}
Here are some words to form some random text.
1: The quick brown fox jumps over the lazy dog.
2: The quick brown fox jumps over the lazy dog.
3: And more words. Not really making sense.
4: Again the thing with the quick brown fox.

\begin{versionB}
Asdf.
\end{versionB}

\begin{longtable}[c]{rl}
\toprule
Words & More words\\
\midrule
\begin{versionB}
Not & Wanted\\
\end{versionB}
\begin{versionA}
The good & stuff\\
\end{versionA}
\bottomrule
\end{longtable}\\

{\centering
\begin{tabular}{rl}
\toprule
Words & More words\\
\midrule
\begin{versionB}
Not & Wanted\\
\end{versionB}
\begin{versionA}
The good & stuff\\
\end{versionA}
\bottomrule
\end{tabular}}

\end{document}

相关内容