美文网首页
LaTeX命令

LaTeX命令

作者: upup果 | 来源:发表于2020-11-14 14:03 被阅读0次
    • 下划线
      引入包:\usepackage{ulem}
      不换行下划线:\underline{}
      换行下划线:\uline{} 这种会导致参考文献也加上下划线,需要在最后的引用参考文献的前面也就是 类似 \bibliographystyle{IEEEtran}
      \bibliography{IEEEabrv,IEEEexample} 加上\normalem

    • 文字高亮
      引入包:\usepackage{soul}
      文字高亮(默认黄色):\hl{}
      但是遇到\cite、\ref等命令时该方式就容易出错。解决方法是对这些命令进行注册:
      \soulregister\cite7 % 针对\cite命令
      \soulregister\citep7 % 针对\citep命令
      \soulregister\citet7 % 针对\citet命令
      \soulregister\ref7 % 针对\ref命令
      \soulregister\pageref7 % 针对\pageref命令

    • 引用图片
      \ref{}

    • 引用参考文献
      \cite{}

    • 斜体
      \textit{}

    • 加粗
      \textbf{}

    • 插入单张图片
      \begin{figure}[htb]
      \vspace{-0.1in}
      \centering
      \includegraphics[scale = 0.38]{figs/rocketmq.png}
      \caption{RocketMQ architecture }
      \label{fig:rocketmq}
      \vspace{-0.2in}
      \end{figure}

    • 插入多个图片
      \begin{figure}
      \centering
      \subfloat[Kafka]{
      \includegraphics[width=0.45\linewidth]{figs/kafkaRadar.png}}
      \label{1a}\hfill
      \subfloat[RabbitMQ]{
      \includegraphics[width=0.45\linewidth]{figs/rabbitmqRadar.png}}
      \label{1b}\
      \subfloat[RocketMQ]{
      \includegraphics[width=0.45\linewidth]{figs/rocketmqRadar.png}}
      \label{1c}\hfill
      \subfloat[ActiveMQ]{
      \includegraphics[width=0.45\linewidth]{figs/activemqRadar.png}}
      \label{1d}
      \subfloat[Pulsar]{
      \includegraphics[width=0.45\linewidth]{figs/pulsarRadar.png}}
      \label{1d}
      \caption{System comparison}
      \label{fig:Radar}
      \end{figure}

    • 插入三线表格
      \begin{table}[htb]
      %\vspace{-0.1in}
      \caption{Message queuing systems comparison}
      %\vspace{0.05in}
      \label{tab:summary}
      \centering
      \small
      %\setlength{\leftskip}{-30pt}
      {\begin{tabular}{c c c c c c}
      \toprule[1pt]
      \textbf{System} &
      \textbf{Kafka} &
      \textbf{RabbitMQ} &
      \textbf{RocketMQ}&
      \textbf{ActiveMQ}&
      \textbf{Pulsar} \
      \toprule[0.5pt]
      {Community} & Active & Active & Medium & Medium & Medium \
      {Develop language} & Scala & Erlang & Java & Java & Java \
      \makecell{Comm. protocol} & TCP & AMQP & \makecell{Customized}
      & \makecell {Multiple} & TCP \
      {Cluster manager} & Zookeeper & Erlang & NameServer & Zookeeper & Zookeeper \
      {Architecture} & P2P & master-slave & \makecell{master-slave}
      & \makecell {master-slave} & P2P \
      {Queuing model} & Pub-Sub & P2P & \makecell{Pub-Sub}
      & \makecell {Pub-Sub&P2P} & Pub-Sub \
      {Consume Mode} & Pull & Push/Pull & Push/Pull & Pull & Push \
      \makecell{Persistence} & \makecell{Disk} & \makecell{Mem/Disk} & \makecell{Mem/Disk/DB} &\makecell {Mem/Disk/DB} & \makecell{Mem/Disk} \
      \toprule[0.5pt]
      \makecell{Deliver guarantee} & \makecell{ALL} & \makecell{at-least/most-once}
      & \makecell{at-least-once} &\makecell {at-least-once} & \makecell{ALL} \
      \makecell{Order guarantee} & \makecell{Partition-order} & \makecell{No-order}
      & \makecell{Queue-order} &\makecell {Queue-order} & \makecell{Global-order} \
      \makecell{Reliability} & \makecell{High} & \makecell{High} & \makecell{High} & \makecell {High} & \makecell{High} \
      \makecell{Scalability} & \makecell{Good} & \makecell{Poor} & \makecell{Good} &\makecell {Good} & \makecell{Excellent} \
      \makecell{Transactions} & \makecell{Yes} & \makecell{Yes}
      & \makecell{Yes} &\makecell {Yes} & \makecell{No} \
      \toprule[0.5pt]
      \makecell{Batching} & \makecell{Yes} & \makecell{Yes}
      & \makecell{Yes} &\makecell {Yes} & \makecell{Yes} \
      \makecell{Delay queuing} & \makecell{No} & \makecell{Yes}
      & \makecell{Yes} &\makecell {No} & \makecell{Yes.} \
      \makecell{Priority queuing} & \makecell{No} & \makecell{Yes}
      & \makecell{No} &\makecell {Yes} & \makecell{Yes} \
      \toprule[1pt]
      \end{tabular}
      }
      %\vspace{-0.1in}
      \end{table
      }

    相关文章

      网友评论

          本文标题:LaTeX命令

          本文链接:https://www.haomeiwen.com/subject/dtfwbktx.html