LaTeX插入图表方法 Lists of tables and figures

Lists of tables and figures

A list of the tables and figures keep the information organized and provide easy access to a specific element. This article explains how to create a list of figures, a list of tables and how to change the default title in both of them.

Introduction

Below is a really simple example: 0000

0

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{ {figures/} }
\usepackage{array}
 
\begin{document}
 
\thispagestyle{empty}
 
\listoffigures
 
\listoftables
 
\newpage
 
\pagenumbering{arabic}
 
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit.  Etiam lobortisfacilisis...
\end{document}

The commands \listoffigures and \listoftables are self explanatory, the first one generates the list of figures and the second one the list of tables. In this example there are two more relevant commands:

\thispagestyle{empty}
Removes the page numbering.
\pagenumbering{arabic}
Re-start the page numbering with arabic style.

Open an example in ShareLaTeX

Changing the names

The default titles, "List of Tables" and "List of Figures", can be changed to any other text

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{array}
\graphicspath{ {figures/} }
 
\renewcommand{\listfigurename}{List of plots}
 
\renewcommand{\listtablename}{Tables}
 
\begin{document}
 
\thispagestyle{empty}
 
\listoffigures
 
\listoftables
 
\clearpage
 
\pagenumbering{arabic}
 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Etiam lobortisfacilisis...
\end{document}

The commands that re-write the titles are:

  • \renewcommand{\listfigurename}{List of plots} will write "List of plots" instead of "List of Figures".
  • \renewcommand{\listtablename}{Tables} will write "Tables" instead of "List of Tables".

If you use the babel package in your document and you need to use any of the previous commands, put it inside the braces of \addto\captionsenglish{ }. Instead of english in \captionenglish write the name of the language you set in babel.

Note: your document may need to be compiled twice for the lists to be properly generated

Open an example in ShareLaTeX

from: https://www.sharelatex.com/learn/Lists_of_tables_and_figures

时间: 2024-10-24 13:14:41

LaTeX插入图表方法 Lists of tables and figures的相关文章

LaTeX插入图片方法 Inserting Images

Inserting Images Images are essential elements in most of the scientific documents. LATEX provides several options to handle images and make them look exactly what you need. In this article is explained how to include images in the most common format

MySql避免重复插入记录方法(ignore,Replace,ON DUPLICATE KEY UPDATE)

本文章来给大家提供三种在mysql中避免重复插入记录方法,主要是讲到了ignore,Replace,ON DUPLICATE KEY UPDATE三种方法,各位同学可尝试参考. 案一:使用ignore关键字 如果是用主键primary或者唯一索引unique区分了记录的唯一性,避免重复插入记录可以使用:  代码如下 复制代码 1 INSERT IGNORE INTO `table_name` (`email`, `phone`, `user_id`) VALUES ('[email protec

LaTex插入超链接

LaTex插入超链接用的包是\usepackage[colorlinks,linkcolor=red]{hyperref} 在正文中实现超链接有两种方式: 直接插入地址,在正文中也显示为地址:\url{http://www.cnblogs.com/Rambler1995/} 引用地址,在正文中显示为其他字样,但是点开的是地址链接:\href{http://www.cnblogs.com/Rambler1995/}{冯瑾亓-博客园} 效果截图如下:

主键唯一键重复插入解决方法

[MySQL日记]主键唯一键重复插入解决方法 我们插入数据的时候,有可能碰到重复数据插入的问题,但是这些数据又是不被允许有重复值: ? 1 CREATE TABLE stuInfo ( id INT NOT NULL COMMENT '序号', name VARCHAR(20) NOT NULL DEFAULT '' COMMENT '姓名', age INT NOT NULL DEFAULT 0 COMMENT '年龄', PRIMARY KEY (id), UNIQUE KEY uniq_n

django model 插入数据方法

需要插入的数据表结构如下: class UserInfo(models.Model): user_id =models.AutoField(primary_key=True) user_name=models.CharField(max_length=20,unique=True) depart=models.ForeignKey(DepartmentInfo) role=models.ManyToManyField(Role) *注:从上述类中可以看出UserInfo除了一般的表项外,还有有一

使用Free Spire.XLS插入图表

使用Free Spire.XLS插入图表 前言 最近在研究Office中间件,上网搜索了下,比较出名的有两个:Aspose和Spire,两者功能齐全,对Office的支持趋近完善,但售价不菲.仔细搜索下,发现Spire系列还有免费版的产品,相对商业版本,在性能和文件转换功能上有缩水.通过一段时间的使用后,我发现免费版本能够满足我的大部分需求.所以写下这篇文章,和大家分享一下我的使用心得,这里我使用的是Free Spire.XLS,根据文中中的数据插入图表并保存. 准备 首先从CodePlex(h

C# 批量插入数据方法

批量插入数据方法 void InsertTwo(List<CourseArrangeInfo> dtF) { Stopwatch watch = new Stopwatch(); watch.Start(); DataTable dt = new DataTable();//准备存放数据的临时表 //构造表的列 dt.Columns.Add("ShoppingCartID"); dt.Columns.Add("Produce_ID"); dt.Colum

LaTeX:Figures, Tables, and Equations 插入图表和公式

Figures To insert a figure in a LaTeX document, you write lines like this: \begin{figure} \centering \includegraphics[width=3.0in]{imagefile1} \caption{Caption for figure} \label{fig:sample_figure} \end{figure} The whole block is enclosed between \be

latex插入python代码

1.缘由:最近在用latex写本科生毕业论文,在附录部分需要插入python代码,准确来讲是ipython的代码,用的是python的科学计算库anaconda.百度了好多解决方法,发现总有一些错误,比如improper alphabetic constant, undefined control sequence等等. 2. 解决方法: 下载地址https://github.com/olivierverdier/python-latex-highlighting 下载文件pythonhighl