啸行
啸行
这家伙很懒,什么也没写!

注册于 4年前

回答
103
文章
4
关注者
17

The optional argument inner-pos controls the placement of content inside the parbox.

Its default is the value of position.

Its possible values are: t to put the content at the top of the box, c to put it in the vertical center, b to put it at the bottom of the box, and s to stretch it out vertically (for this, the text must contain vertically stretchable space).

我觉得这段话的描述应该是准确的。

把目录清空之后,用命令行来安装

嗯……尝试用纯粹的命令行安装吧。install-latex-guide-zh-cn有方法

查了一下,在 cas-comman.sty 中,有这样的代码

\cs_new:Npn \__make_tbl_caption:nn #1#2
{
  \l_tbl_align_tl
  \skip_vertical:N \l_tbl_abovecap_skip 
  {\parbox{ \dimexpr(\l_tbl_width_dim)}
    {\rightskip=0pt\sffamily\small\textbf{\color{scolor}#1}\par#2\par\vskip4pt }}
  \skip_vertical:N \l_tbl_belowcap_skip
}

这大约就是对表格 caption 的设置。你如果有这样的需求,可以用 caption 包把 longtable 的 caption 样式改成类似的

默认安装 TeX Live 的话,应该可以直接用。另外,你在命令行中执行

tlmgr info array

系统会回复

tlmgr.pl: cannot find package array

由此可见,array 并不是单独的包

首先,我默认你用了 pdflatex 来编译。
其次,我觉得投稿模板不等于刊行模板,所以经常会有不一样的事情发生。
最后,希望提供最小工作示例。

\documentclass[UTF8]{ctexbook}
\ctexset{
  chapter = {
    titleformat = \huge\raggedright,
    nameformat = \Large\raggedright,
    aftername = \linebreak,
    number = \Roman{chapter}
  }
}
\begin{document}

\chapter{岳阳楼记}
庆历四年春,滕子京谪守巴陵郡。越明年,政通人和,百废具兴,乃重修岳阳楼,增其旧制,刻唐贤今人诗赋于其上,属予作文以记之。

予观夫巴陵胜状,在洞庭一湖。衔远山,吞长江,浩浩汤汤,横无际涯,朝晖夕阴,气象万千,此则岳阳楼之大观也,前人之述备矣。然则北通巫峡,南极潇湘,迁客骚人,多会于此,览物之情,得无异乎?

若夫淫雨霏霏,连月不开,阴风怒号,浊浪排空,日星隐曜,山岳潜形,商旅不行,樯倾楫摧,薄暮冥冥,虎啸猿啼。登斯楼也,则有去国怀乡,忧谗畏讥,满目萧然,感极而悲者矣。

至若春和景明,波澜不惊,上下天光,一碧万顷,沙鸥翔集,锦鳞游泳,岸芷汀兰,郁郁青青。而或长烟一空,皓月千里,浮光跃金,静影沉璧,渔歌互答,此乐何极!登斯楼也,则有心旷神怡,宠辱偕忘,把酒临风,其喜洋洋者矣。

嗟夫!予尝求古仁人之心,或异二者之为,何哉?不以物喜,不以己悲,居庙堂之高则忧其民,处江湖之远则忧其君。是进亦忧,退亦忧。然则何时而乐耶?其必曰“先天下之忧而忧,后天下之乐而乐”乎!噫!微斯人,吾谁与归?

时六年九月十五日。 
\end{document} 

image.png

你将 metropolisstructure 对等起来是为什么?metropolis 不是 colorthememetropolis 手册里讲了它有哪些 colortheme

\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}
\pagestyle{empty}

\begin{document}
\begin{tabular}{cS}
\hline\hline
{Carbon atoms}  &   {Magnetic moments ($\mu_{\mathrm{B}}$)} \\ \hline
    C1        & -0.002 \\
    C2        & -0.002 \\
    C3        &  0.004 \\
    C4        &  0.002 \\
    C5        &  0.000 \\
    C6        &  0.000 \\
\hline\hline
\end{tabular}
\end{document}

image.png

\documentclass{ctexart}
\makeatletter
\renewcommand{\@makefnmark}{\textsuperscript{\makebox{\normalfont(\@thefnmark)\quad}}}
\makeatother
\renewcommand\thefootnote{注\chinese{footnote}}
\usepackage{zhlipsum}
\begin{document}
\zhlipsum*[1]\footnote{这是一段乱文}
\end{document}

试试这个

\documentclass[12pt,twoside]{ctexbook}
\usepackage{array}
\usepackage{zhlipsum}
\usepackage{color}
\usepackage{enumitem}
\setlist[trivlist, 1]{topsep=0pt,partopsep=0pt,parsep=0pt}
\begin{document}
  \zhlipsum[1]
  \begin{center}
    \begin{tabular}{p{0.9\textwidth}}
      \hline
      \textcolor{red}{这里center环境会和上下文有一定的额外间距,不知该如何减小或消除。尝试过用enumitem宏包,设置trivlist,并未成功}\\
      \hline
    \end{tabular}
  \end{center}
  \zhlipsum[1]
\end{document}

image.png

\documentclass{ctexart}
\usepackage{pdflscape}
\usepackage{multirow}
\usepackage{zhlipsum}
\begin{document}
\zhlipsum[name=zhufu]
\begin{landscape}
    \begin{tabular}{|*{10}{c|}}
        \hline
        \multirow{2}{*}{实验条件} & \multirow{2}{*}{次序} & \multirow{2}{*}{水箱液面} & \multirow{2}{*}{测压管液面} & \multicolumn{4}{c|}{压强水头} & \multicolumn{2}{c|}{测压管水头} \\
        \cline{5-10}
        & & & & 公式 & 公式 & 公式 & 公式 & 公式 & 公式 \\
        \hline
    \end{tabular}
\end{landscape}
\end{document}

试试这个例子,编译命令

latexmk -pdfxe filename

会发现表格那页横置了

发布
问题