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

注册于 4年前

回答
489
文章
302
关注者
208

excel?还是 tikz?tikz 可以用 pgfplots 宏包:

\documentclass[border=3mm]{standalone}
    \usepackage{pgfplots}

\begin{document}
    \begin{tikzpicture}
\begin{axis}[
    title=Title,
    width=7.8cm,
    enlargelimits=0.15,
    legend style={at={(0.5,-0.15)},
      anchor=north,legend columns=-1},
    ylabel={Pages},
    bar width=7mm, y=4mm,
    symbolic x coords={Firm 1, Firm 2, Firm 3, Firm 4, Firm 5},
    xtick=data,
    x tick label style={rotate=45,anchor=east},
    nodes near coords align={vertical},
    ]
\addplot[ybar, nodes near coords, fill=black!10] 
    coordinates {(Firm 1,3) (Firm 2,7) (Firm 3,8) (Firm 4,13) (Firm 5,16)};
\addplot[draw=blue,ultra thick,smooth] 
    coordinates {(Firm 1,3) (Firm 2,7) (Firm 3,8) (Firm 4,13) (Firm 5,16)};
\end{axis}
    \end{tikzpicture}
\end{document}

image.png

正确代码如下:

\documentclass{beamer}

\usepackage[export]{adjustbox}
\begin{document}

\begin{frame}[t]
\frametitle{Introduction}
\centering
{  \textbf{Quantum Information Processing}}

\begin{itemize}[<+->]

    \item \includegraphics<1->[width=0.9cm,valign=c]{example-image-duck} University of Oxford
    \item \includegraphics<2->[width=2.5cm,valign=c]{example-image-duck} Université de Montréal
    \item \includegraphics<3->[width=2cm,valign=c]{example-image-duck} Université du Quebec

\end{itemize}
\end{frame}

\end{document}

效果如下:
Z95Xc.gif

这种只能自己造轮子了。
看看下面的代码:

\documentclass[preview]{standalone}
\usepackage{unicode-math}
\usepackage{amsmath}
\makeatletter
\newcommand{\simedot}{\mathbin{\mathpalette\simedot@\relax}}
\newcommand{\simedot@}[2]{%
  \ooalign{$\m@th#1\simeq$\cr\hidewidth\raise-.1em\hbox{$\m@th#1.$}\hidewidth\cr}%
}
\makeatother
\begin{document}
    \[A \simedot B\]
\end{document}

image.png

可以尝试其他的公式字体,中英文比较协调的字体,我觉得还是 TeX Gyre Pagella 比如:
image.png

参看这里:https://www.latexstudio.net/index/details/index/mid/389.html

代码呢?可以考虑使用 minipage 来进行排版,column 默认是平分版面,可以自己指定下宽度。

这样使用应该是不行的, 可以考虑 empheq 实现

\documentclass{ctexart}
\usepackage{amsmath}
\usepackage{cases}
\begin{document}

\begin{numcases}{x=}
   aa\tag{t1}\label{c1}\\
   aa\tag{t2}\label{c2}\\
   aa\tag{t3}\label{c3}
\end{numcases}

\eqref{c1} \eqref{c2}

\end{document}

image.png

安装的时候选择为所有用户安装,才可以找到。

主要因为 revtex 给 tabcolsep 增加了额外的间距,可以通过下面的代码修复:

\documentclass{revtex4-1}
\usepackage{colortbl}

\makeatletter

    \def\CT@@do@color{%
      \global\let\CT@do@color\relax
            \@tempdima\wd\z@
            \advance\@tempdima\@tempdimb
            \advance\@tempdima\@tempdimc
    \advance\@tempdimb\tabcolsep
    \advance\@tempdimc\tabcolsep
    \advance\@tempdima2\tabcolsep
            \kern-\@tempdimb
            \leaders\vrule
    %^^A                     \@height\p@\@depth\p@
                    \hskip\@tempdima\@plus  1fill
            \kern-\@tempdimc
            \hskip-\wd\z@ \@plus -1fill }
    \makeatother
    \begin{document}

    \begin{tabular}{ |c|l|l| } \hline
    \rowcolor{red} A    & B     & C     \\ \hline
    Hello World         & other     & \cellcolor{blue}stuff\\ \hline
    \end{tabular}
    \end{document}

image.png

选自:https://tex.stackexchange.com/questions/102665/revtex4-1-and-colortbl-doesnt-fill-cells

看看下面的代码:

\documentclass{article}
\usepackage{mathtools}
\usepackage{eqparbox}
\usepackage[showframe]{geometry}

\begin{document}

  \begin{flalign}
  & & a &= bbbbbb &\nonumber \\
 & & cccc & = dd & \text{(using Eq. 1)} & \nonumber \\
 & & e &= f & \text{(using Thm. 2)}
  \end{flalign}

  \begin{flalign}
  & & a &= bbbbbb \nonumber \\
 & & cccc & = dd & \eqparbox{C}{(using Eq. 1)} & \nonumber \\
 & & e &= f & \eqparbox{C}{(using Thm. 2)}
 \end{flalign}

\end{document} 

image.png

发布
问题