MWE 生成表格,然而,我打算执行以下操作:我尝试在第 3 列和第 4 列添加文本,但如果我在第 3 列添加文本,它也会增加第 2 列单元格的大小,有人可以指导我如何遇到该问题。
\begin{table*}
\centering
\caption{A model}
\setcellgapes{3pt}
\makegapedcells
\footnotesize
\setlength\tabcolsep{2pt}
\begin{tabularx}{\textwidth}{|p{12mm}|>{\hsize=0.9\hsize}X|
>{\hsize=1.2\hsize}X|
>{\hsize=0.9\hsize}X|}
\hline
\thead{Ref. no(s)} & \thead{Used} & \thead{adjective} & \thead{yield} \\
\hline
\cite{9}
&Reduces the required computational cost
& \multirow{5}{=}{This pricing scheme refers to a list of price plans for different products or services, which come along with differentiated
quantities or qualities [17]. It can ensure that the pricing entity
(LSE in this paper) can lead the formulation of price, while
providing consumers with more flexible price plans. As shown
in Fig. 2, the main procedure includes:
1) LSE notifies the required load adjustment signals.
2) The i-th CL voluntarily provides information at time t
including price bids (price asked for) θ+
di,t
, θ−
di,t
, upper bounds
of load adjustment P¯ +
di,t
, P¯ −
di,t and elasticity coefficient εdi.
Here + denotes load increase, − denotes load decrease. The
load adjustment at time t is related to not only the price at
time t, but also the price at other times [18]. The elasticity coefficient εdi is a vector including the self-elasticity and
cross-elasticity, i.e.,} &Research and development in flywheel, compressed air, thermal (molten salts), and hydrogen storage systems are making great progress. In addition to physical storage devices, great potential lies in the exploitation of end-use side energy storage for the grid. For example, energy-demand management of water heaters and air-conditioning cycling utilizes the thermal energy stored in water tanks and buildings at consumer premises in exchange for electricity. Smart vehicle charging and discharging (or vehicle-to-grid, V2G) technology utilizes electrochemical energy stored in the batteries of EVs/PHEVs to act as energy storage for the grid. These “virtual energy-storage systems,” when properly managed in the future grid, can provide a large quantity of cost-efficient power in both directions to the grid. \\
\cline{1-2}
\cite{03} & Minimizes the computational cost and time period
& & \\
\cline{1-2}
\cite{14,15} & Achieving least value to scale up the solution
& & \\
\hline
Designed model & In this paper, a relatively new yet superior clustering algorithm based on density peak, proposed by Rodriguez and Laio,
is introduced and employed & \multirow{5}{=}{According to the clustering features of the CLs’ historical information, LSE can divide CLs into K+ types of load
increase and K− types of load decrease. Moreover, when the
market for DR participants is immature, not all of consumers
will bid voluntarily. In that case, LSE has to forecast the cost
function of load adjustment of consumers based on the historical data. Alternatively, the cost function could be reflected
by other market signals such as reserve service (or frequency
regulation) prices or value of customer reliability.
3)} & From Smart Grid to Internet of Energy covers novel and emerging metering and monitoring technologies, communication systems, and technologies in smart grid areas to present a valuable reference for readers from various engineering backgrounds. Considering relevant topics on the essentials of smart grids and emerging wireless communication systems, such as IEEE 802.15.4 based novel technologies, cognitive radio networks and Internet of Energy, this book offers a discussion on the emerging trends and research direction for communication technologies. The book includes research concepts and visualization of smart grids and related communication technologies, making it a useful book for practicing network engineers. \\ \hline
\end{tabularx}
\end{table*}
[1]: https://i.stack.imgur.com/aGikt.png
答案1
- 要实现单元格中文本的自动换行,
multirow
您必须定义multirow
单元格的宽度。在这种情况下,您可以使用列说明符超越定义的列的宽度X
:
\multirow{12}{=}{...}
- 您的实际表格外观仍然未知,因此以下解决方案可能无法提供所需的结果。在其中,我假设第二列文本平均每个单元格有三行:
\documentclass[twocolumn]{article}
\usepackage[margin=25mm]{geometry}
\usepackage{ragged2e}
\usepackage{makecell, multirow, tabularx}
\renewcommand\thead{\bfseries\footnotesize}
\begin{document}
\begin{table*}
\centering
\caption{A model}
\setcellgapes{3pt}
\makegapedcells
\footnotesize
\setlength\tabcolsep{2pt}
\begin{tabularx}{\textwidth}{|p{16mm}|>{\hsize=0.9\hsize}X|
>{\hsize=1.2\hsize}X|
>{\hsize=0.9\hsize}X|}
\hline
\thead{Ref. no(s)} & \thead{Used} & \thead{adjective} & \thead{yield} \\
\hline
\cite{9}
& ------------------------------------------
------------------------------------------
------------------------------------------
& \multirow{10}{=}{The CLs’ cost function is formulated accordingto reference [16], i.e., bid information is comprised of price,boundary of load adjustment and price elasticity. If the bidsof consumers are not determined by the three parameters usedin this paper, the prices on the plan can still be calculated bythe clustering and classification method in Section IV and thepricing approach in Section V.}
& \\
\cline{1-2}
\cite{03} & ------------------------------------------
------------------------------------------
------------------------------------------
& & \\
\cline{1-2}
\cite{14,15} & ------------------------------------------
------------------------------------------
------------------------------------------
& & \\
\hline
Designed model & & & \\ \hline
\end{tabularx}
\end{table*}
\end{document}
这使: