LaTeX 中圖和表如何併排?

時間 2021-05-29 23:29:37

1樓:

借用 @劉海洋 的例子。floatrow 可以讓圖和表居中對齊,在這裡是大材小用了。

\documentclass

\usepackage

\usepackage

\floatsetup

\newfloatcommand

[\nocapbeside][\dimexpr(\textwidth-\columnsep)/2\relax]

\newfloatcommand

[\nocapbeside][\dimexpr(\textwidth-\columnsep)/2\relax]

\begin

\begin

[htbp]

\begin

[2]\figurebox}}%

\tablebox

}\hline

aa & bb \\

\hline

cc & dd \\

\hline

\end

}\end

\end

\end

2樓:

\documentclass

\usepackage

\usepackage

\begin

\begin

\begin

[b]\centering

\includegraphics

[width=3cm]

\caption

\end

%\begin

[b]\centering

\begin

\hline

aa & bb \\

\hline

cc & dd \\

\hline

\end

\captionof

\end

\end

\end

3樓:

倒是不難,但是,跟我學:

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX LaTeX

\documentclass

\usepackage

\usepackage

\newfloat

\makeatletter

\newcommand\figcaption

\caption

}\newcommand\tabcaption

\caption

}\makeatother

\begin

\begin

\begin

[b]\centering

\includegraphics

[width = \linewidth]

\figcaption

\end

\quad

\begin

[b]\centering

\tabcaption

\begin

Hello & world

\end

\end

\end

\end

請問下面這種圖如何用latex實現?

誘宵美9 遇事不決 tikz 並不 你還可以用gathered begin M nearrow qquad searrow M qquad M nearrow qquad searrow qquad nearrow qquad searrow M qquad M qquad M cdot dot q...

如何在LaTeX中新增網格背景,以及如何使用Segoe print字型?

張馳昊的回答 1 中提到 美中不足的是,pagegrid 似乎只允許更改每一大格的線條顏色,具體說明以及一些引數設定還請參考官方文件orz 這裡給乙個對 pagegrid 的補丁,增加選項 helpcolor,用於設定小格的線條顏色。documentclass usepackage usepacka...

LaTeX中如何輸入男魂符號等漢字特殊符號?

使用 xelatex 編譯 documentclass usepackage begin Boy mars Next mars DoorFa mars Q!花 female Q!哲 male 學乖乖 mars 站好 male mars male male mars mars end 效果如下圖 注意...