Giter VIP home page Giter VIP logo

latex-tutorial's Introduction

latex 学习

package下载地址

package 这里面包含各种各样的package,直接下载后放入Style文件夹中进行引用。

ps:先在本地已经有个了这个仓库,需要把这个仓库上传。然后在github上新建了一个仓库,写了.gitignoreLicense,需要将这两个项目合并。

  1. 关联远程仓库 git remote add origin [email protected]:zuisixian/latex-tutorial.git

  2. git pull是遇到问题Please specify which branch you want to merge with

  3. 指定本地master分支与远程origin/master分支的链接,根据提示,设置masterorigin/master的链接:git branch --set-upstream-to=origin/master master

  4. git pull还是遇到问题fatal: refusing to merge unrelated histories

  5. 解决方法:git pull origin master --allow-unrelated-histories,原因:两个不同的项目合并。

添加图片

  \begin{figure}
    \includegraphics[width=\linewidth]{image/qwe.jpg}
    \caption{A CAT.}
    \label{fig:cat1}
  \end{figure}

使用 \ref{fig:cat1}来进行引用, \ref\label成对出现。

##设置目录显示深度

在document之前 \setcounter{tocdepth}{2} % Show sections

\tableofcontents % 显示目录

在section之中 \addtocontents{toc}{\setcounter{tocdepth}{1}} % Set depth to 1

添加参考文献

  1. 新增 *.bib文件,在这个文件里面添加参考文献。
@BOOK{melissa:1,
AUTHOR="melissa Yang",
TITLE="THE REFERENCE ARTICLE",
PUBLISHER="NONE",
YEAR="2018",
}

  1. 在正文中进行引用,\cite{melissa:1}

生成PDF命令

pdflatex first.tex
bibtex first
pdflatex first.tex
pdflatex first.tex

使用问题

Latex错误:The remote package repository is not registered. You have to choose another repository.

解决办法:

  1. MikTex Package manager => Repository => Change Package Repository => Package shall be installed from the Internet => 下一步 => 完成,这样就连接上网络了。
  2. 然后再MikTex Package manager => Repository => Synchronize 就完成同步了。
  3. 然后再找到需要安装的宏包,选中,+号,即可。

latex-tutorial's People

Contributors

zuisixian avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.