前言

这两个下载mactex花了不少时间,参考了不少文章,有的推荐texstudio、texpad等等,最终还是比较喜欢mactex+sublime text3+skim,环境配置方面并不算麻烦,只要一步一步来就ok!
本文主要分为如下几个部分,帮助大家迅速安装Mac版的latex,成为论文高产者!

安装Mactex

如果在官网下载mactex,速度非常慢,这里推荐使用mac的必备终端插件homebrew,不用担心学习成本,很简单几步就可以完成可以参考网站:

  1. 打开mac终端(在实用工具里面)
  2. 输入:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. 更改为国内中科大镜像资源:
    在访达中搜索: brew_install,用文本编辑器打开:

将下方内容用#注释:

BREW_REPO = “https://github.com/Homebrew/brew“.freeze

并在下面一行添加:

BREW_REPO = "git://mirrors.ustc.edu.cn/brew.git".freeze
  1. 安装brew:
/usr/bin/ruby ~/brew_install
  1. 用brew安装 mactex
brew cask install mactex

等待几十分钟(有进度条),中间不要断网息屏,matex最终安装成功!!

下载&配置sublime

此处我是直接在公众号找链接下载的,很多公众号都可以下载(微信搜索mac软件会有一堆),找到sublime text3的资源并下载安装即可,很简单!可以设置中文

再配置

  1. 进入Package Control 官网,复制灰色区块的代码(记得对应好版本);
  2. 打开下载好的 Sublime Text;
    使用快捷键“control+”(就在Esc键的下方)打开 Console,这时,会在底部看到弹出一个白色窗口;然后,将刚才复制的代码粘贴到控制面板;按下“Enter”回车键。待 install 完成后, 退出并重启软件;
  3. Sublime Text重启后,按下 ’ Command+Shift+P ‘ 打开 Command pallet,输入命令“Install Package”,按下Enter回车建。
  4. 完成之后,再输入“LaTeX Tools”,找到这一项并安装;
  5. 安装完成后,退出并重启Sublime Text。
    从而完成了Mac LaTeX 的配置了。

安装pdf预览器skim

为了方便左边编译,右边实时更新pdf,这里需要调用skim软件:
下载地址

在左上角skim中选项一栏进行设置:将预设编译器改为sublime,打钩检查文件变化,
好了,到这里基本上就完成了
好了,现在新建一个sublime文件就可以了,由于很生成很多文件,所以一定在新建文件夹里面新建一个.tex的文件(这一步很重要,否则编译不出来),编译的快捷键为:command+B
下面给两个大家来测试一下:

  1. 包含中文的代码:
%!TEX program = xelatex
\documentclass{article}
\usepackage{xeCJK, fontspec, xunicode, xltxtra}
\begin{document}
hello world!
成功
\end{document}
  1. IEEE官方提供的会议论文模板
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08emT\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}\title{Real-vessel trajectory data-based in crowed inland waterway\\
{\footnotesize \textsuperscript{*}Note: Sub-titles are not captured in Xplore and
should not be used}
\thanks{Identify applicable funding agency here. If none, delete this.}
}\author{\IEEEauthorblockN{1\textsuperscript{st} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
\and
\IEEEauthorblockN{2\textsuperscript{nd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
\and
\IEEEauthorblockN{3\textsuperscript{rd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
\and
\IEEEauthorblockN{4\textsuperscript{th} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
\and
\IEEEauthorblockN{5\textsuperscript{th} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
\and
\IEEEauthorblockN{6\textsuperscript{th} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address}
}\maketitle\begin{abstract}
This document is a model and instructions for \LaTeX.
This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes,
or Math in Paper Title or Abstract.
\end{abstract}\begin{IEEEkeywords}
component, formatting, style, styling, insert
\end{IEEEkeywords}\section{Introduction}
This document is a model and instructions for \LaTeX.
Please observe the conference page limits. \section{Ease of Use}\subsection{Maintaining the Integrity of the Specifications}The IEEEtran class file is used to format your paper and style the text. All margins,
column widths, line spaces, and text fonts are prescribed; please do not
alter them. You may note peculiarities. For example, the head margin
measures proportionately more than is customary. This measurement
and others are deliberate, using specifications that anticipate your paper
as one part of the entire proceedings, and not as an independent document.
Please do not revise any of the current designations.\section{Prepare Your Paper Before Styling}
Before you begin to format your paper, first write and save the content as a
separate text file. Complete all content and organizational editing before
formatting. Please note sections \ref{AA}--\ref{SCM} below for more information on
proofreading, spelling and grammar.Keep your text and graphic files separate until after the text has been
formatted and styled. Do not number text heads---{\LaTeX} will do that
for you.\subsection{Abbreviations and Acronyms}\label{AA}
Define abbreviations and acronyms the first time they are used in the text,
even after they have been defined in the abstract. Abbreviations such as
IEEE, SI, MKS, CGS, ac, dc, and rms do not have to be defined. Do not use
abbreviations in the title or heads unless they are unavoidable.\subsection{Units}
\begin{itemize}
\item Use either SI (MKS) or CGS as primary units. (SI units are encouraged.) English units may be used as secondary units (in parentheses). An exception would be the use of English units as identifiers in trade, such as ``3.5-inch disk drive''.
\item Avoid combining SI and CGS units, such as current in amperes and magnetic field in oersteds. This often leads to confusion because equations do not balance dimensionally. If you must use mixed units, clearly state the units for each quantity that you use in an equation.
\item Do not mix complete spellings and abbreviations of units: ``Wb/m\textsuperscript{2}'' or ``webers per square meter'', not ``webers/m\textsuperscript{2}''. Spell out units when they appear in text: ``. . . a few henries'', not ``. . . a few H''.
\item Use a zero before decimal points: ``0.25'', not ``.25''. Use ``cm\textsuperscript{3}'', not ``cc''.)
\end{itemize}\subsection{Equations}
Number equations consecutively. To make your
equations more compact, you may use the solidus (~/~), the exp function, or
appropriate exponents. Italicize Roman symbols for quantities and variables,
but not Greek symbols. Use a long dash rather than a hyphen for a minus
sign. Punctuate equations with commas or periods when they are part of a
sentence, as in:
\begin{equation}
a+b=\gamma\label{eq}
\end{equation}Be sure that the
symbols in your equation have been defined before or immediately following
the equation. Use ``\eqref{eq}'', not ``Eq.~\eqref{eq}'' or ``equation \eqref{eq}'', except at
the beginning of a sentence: ``Equation \eqref{eq} is . . .''\subsection{\LaTeX-Specific Advice}Please use ``soft'' (e.g., \verb|\eqref{Eq}|) cross references instead
of ``hard'' references (e.g., \verb|(1)|). That will make it possible
to combine sections, add equations, or change the order of figures or
citations without having to go through the file line by line.Please don't use the \verb|{eqnarray}| equation environment. Use
\verb|{align}| or \verb|{IEEEeqnarray}| instead. The \verb|{eqnarray}|
environment leaves unsightly spaces around relation symbols.Please note that the \verb|{subequations}| environment in {\LaTeX}
will increment the main equation counter even when there are no
equation numbers displayed. If you forget that, you might write an
article in which the equation numbers skip from (17) to (20), causing
the copy editors to wonder if you've discovered a new method of
counting.{\BibTeX} does not work by magic. It doesn't get the bibliographic
data from thin air but from .bib files. If you use {\BibTeX} to produce a
bibliography you must send the .bib files. {\LaTeX} can't read your mind. If you assign the same label to a
subsubsection and a table, you might find that Table I has been cross
referenced as Table IV-B3. {\LaTeX} does not have precognitive abilities. If you put a
\verb|\label| command before the command that updates the counter it's
supposed to be using, the label will pick up the last counter to be
cross referenced instead. In particular, a \verb|\label| command
should not go before the caption of a figure or a table.Do not use \verb|\nonumber| inside the \verb|{array}| environment. It
will not stop equation numbers inside \verb|{array}| (there won't be
any anyway) and it might stop a wanted equation number in the
surrounding equation.\subsection{Some Common Mistakes}\label{SCM}
\begin{itemize}
\item The word ``data'' is plural, not singular.
\item The subscript for the permeability of vacuum $\mu_{0}$, and other common scientific constants, is zero with subscript formatting, not a lowercase letter ``o''.
\item In American English, commas, semicolons, periods, question and exclamation marks are located within quotation marks only when a complete thought or name is cited, such as a title or full quotation. When quotation marks are used, instead of a bold or italic typeface, to highlight a word or phrase, punctuation should appear outside of the quotation marks. A parenthetical phrase or statement at the end of a sentence is punctuated outside of the closing parenthesis (like this). (A parenthetical sentence is punctuated within the parentheses.)
\item A graph within a graph is an ``inset'', not an ``insert''. The word alternatively is preferred to the word ``alternately'' (unless you really mean something that alternates).
\item Do not use the word ``essentially'' to mean ``approximately'' or ``effectively''.
\item In your paper title, if the words ``that uses'' can accurately replace the word ``using'', capitalize the ``u''; if not, keep using lower-cased.
\item Be aware of the different meanings of the homophones ``affect'' and ``effect'', ``complement'' and ``compliment'', ``discreet'' and ``discrete'', ``principal'' and ``principle''.
\item Do not confuse ``imply'' and ``infer''.
\item The prefix ``non'' is not a word; it should be joined to the word it modifies, usually without a hyphen.
\item There is no period after the ``et'' in the Latin abbreviation ``et al.''.
\item The abbreviation ``i.e.'' means ``that is'', and the abbreviation ``e.g.'' means ``for example''.
\end{itemize}
An excellent style manual for science writers is \cite{b7}.\subsection{Authors and Affiliations}
\textbf{The class file is designed for, but not limited to, six authors.} A
minimum of one author is required for all conference articles. Author names
should be listed starting from left to right and then moving down to the
next line. This is the author sequence that will be used in future citations
and by indexing services. Names should not be listed in columns nor group by
affiliation. Please keep your affiliations as succinct as possible (for
example, do not differentiate among departments of the same organization).\subsection{Identify the Headings}
Headings, or heads, are organizational devices that guide the reader through
your paper. There are two types: component heads and text heads.Component heads identify the different components of your paper and are not
topically subordinate to each other. Examples include Acknowledgments and
References and, for these, the correct style to use is ``Heading 5''. Use
``figure caption'' for your Figure captions, and ``table head'' for your
table title. Run-in heads, such as ``Abstract'', will require you to apply a
style (in this case, italic) in addition to the style provided by the drop
down menu to differentiate the head from the text.Text heads organize the topics on a relational, hierarchical basis. For
example, the paper title is the primary text head because all subsequent
material relates and elaborates on this one topic. If there are two or more
sub-topics, the next level head (uppercase Roman numerals) should be used
and, conversely, if there are not at least two sub-topics, then no subheads
should be introduced.\subsection{Figures and Tables}
\paragraph{Positioning Figures and Tables} Place figures and tables at the top and
bottom of columns. Avoid placing them in the middle of columns. Large
figures and tables may span across both columns. Figure captions should be
below the figures; table heads should appear above the tables. Insert
figures and tables after they are cited in the text. Use the abbreviation
``Fig.~\ref{fig}'', even at the beginning of a sentence.\begin{table}[htbp]
\caption{Table Type Styles}
\begin{center}
\begin{tabular}{|c|c|c|c|}
\hline
\textbf{Table}&\multicolumn{3}{|c|}{\textbf{Table Column Head}} \\
\cline{2-4}
\textbf{Head} & \textbf{\textit{Table column subhead}}& \textbf{\textit{Subhead}}& \textbf{\textit{Subhead}} \\
\hline
copy& More table copy$^{\mathrm{a}}$& &  \\
\hline
\multicolumn{4}{l}{$^{\mathrm{a}}$Sample of a Table footnote.}
\end{tabular}
\label{tab1}
\end{center}
\end{table}\begin{figure}[htbp]
%\centerline{\includegraphics{fig1.png}}
\caption{Example of a figure caption.}
\label{fig}
\end{figure}Figure Labels: Use 8 point Times New Roman for Figure labels. Use words
rather than symbols or abbreviations when writing Figure axis labels to
avoid confusing the reader. As an example, write the quantity
``Magnetization'', or ``Magnetization, M'', not just ``M''. If including
units in the label, present them within parentheses. Do not label axes only
with units. In the example, write ``Magnetization (A/m)'' or ``Magnetization
\{A[m(1)]\}'', not just ``A/m''. Do not label axes with a ratio of
quantities and units. For example, write ``Temperature (K)'', not
``Temperature/K''.\section*{Acknowledgment}The preferred spelling of the word ``acknowledgment'' in America is without
an ``e'' after the ``g''. Avoid the stilted expression ``one of us (R. B.
G.) thanks $\ldots$''. Instead, try ``R. B. G. thanks$\ldots$''. Put sponsor
acknowledgments in the unnumbered footnote on the first page.\section*{References}Please number citations consecutively within brackets \cite{IEEEhowto:IEEEtranpage}. The
sentence punctuation follows the bracket \cite{b2}. Refer simply to the reference
number, as in \cite{b3}---do not use ``Ref. \cite{b3}'' or ``reference \cite{b3}'' except at
the beginning of a sentence: ``Reference \cite{b3} was the first $\ldots$''Number footnotes separately in superscripts. Place the actual footnote at
the bottom of the column in which it was cited. Do not put footnotes in the
abstract or reference list. Use letters for table footnotes.Unless there are six authors or more give all authors' names; do not use
``et al.''. Papers that have not been published, even if they have been
submitted for publication, should be cited as ``unpublished'' \cite{b4}. Papers
that have been accepted for publication should be cited as ``in press'' \cite{b5}.
Capitalize only the first word in a paper title, except for proper nouns and
element symbols.For papers published in translation journals, please give the English
citation first, followed by the original foreign-language citation \cite{b6}.\bibliographystyle{./bibliography/IEEEtran}
\bibliography{./bibliography/IEEEabrv,./bibliography/IEEEexample}\vspace{12pt}
\color{red}
IEEE conference templates contain guidance text for composing and formatting conference papers. Please ensure that all template text is removed from your conference paper prior to submission to the conference. Failure to remove the template text from your paper may result in your paper not being published.\end{document}

按下command+B,就会自动调出skim的pdf啦!英文期刊、会议的模板,都可以在overleaf在线latex网站下载,要注册账号(如果登不了就用梯),然后就可以替换对应的文字部分生成论文了,当然,公式还是要一点点语句功底的,可以对照latex公式手册来进行就好!遇到不会的地方直接百度即可!


参考博客:
https://www.jianshu.com/p/b1e3b029ded5
https://zhuanlan.zhihu.com/p/59805070

Mac 安装Mactex教程相关推荐

  1. 苹果电脑mac安装nginx教程

    苹果电脑MAC安装nginx教程 使用homebrew安装,提醒需要翻墙,最后面介绍的源码安装方式不需要翻墙,只需要在墙内搞到源码即可,建议先确认一下自己能否翻墙,如果可以翻墙就用第一种方法,如果不能 ...

  2. Mac 安装LaTeX教程 mactex+sublime+skim

    Mac安装LaTeX 安装mactex 安装sublime 安装skim 安装mactex LaTeX是一种语言,在Mac中安装mactex语言 首先安装homebrew homebrew是一款软件包 ...

  3. mac安装anaconda教程

    随数据分析的发展,大多数企业对数据分析师要求已经不局限与Excel.SQL等工具了,为快速对数据进行处理和可视化,python成了数据分析的一项必备技能.作为入门简单的一个编程语言,不仅能够实现自动化 ...

  4. mac 安装 docker教程

    mac 安装 docker,使用 Homebrew Cask 来进行安装: brew cask install docker 随后桌面会多一个docker,如图: 双击并打开: 之后点 next–&g ...

  5. Mac安装Netcat教程

    Netcat可以用于测试通信连接 Mac安装Netcat方式: 打开终端输入: brew install netcat 安装好以后测试,输入: nc 可以看到是这样的: itzhuzhu@itzhuz ...

  6. mac 查看mysql是否安装_[简明核心系列] 三分钟Mac安装MySQL教程

    作者: @向三 高质量学习 QQ 群: 1021386120 自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0 文章结构: 前言 安装 HomeBre ...

  7. Mac 安装 nvm 教程

    在安装 nvm 之前我们首先需要确保电脑上没有安装 node 版本,如果安装了 node 版本,可以使用以下命令卸载已安装的node,然后再进行安装. 卸载全局的 node 与 npm 参考文章:Ma ...

  8. mac 安装selenium 教程

    一.下载与安装 命令: pip install selenium 安装成功后会显示如下图: 二.安装chrome驱动 1.驱动的下载 驱动下载地址:http://docs.seleniumhq.org ...

  9. mac 安装 Homebrew教程

    作为mac的用户,如果你还没安装Homebrew那真的就太遗憾了,应为其真的很好用,然后安装Homebrew有时候有不是那么简单,会出现很多奇奇怪怪的错误,如下是我本人第一次安装就成功,其重要用的是中 ...

最新文章

  1. HTML5 Canvas 学习日志(三)
  2. Linux下Redis-3.0.7版本的安装以及Redis主备的部署(二)
  3. Hibernate Annotation中英文文档链接下载 (Hibernate 注解)
  4. 单片机 架构 程序 经验总结_单片机“死机”了怎么办?看看一个资深工程师的经验总结...
  5. 转载:JAVA获取时间戳,哪个更快
  6. 用java实现页面搜索功能_关于如何利用矩阵实现搜索功能
  7. 移动应用后端应该使用 AWS 还是 Firebase?
  8. .Net File类的操作
  9. 【html、CSS、javascript-9】jquery-选择器及过滤器
  10. python使用scrapy爬取百度地图POI数据
  11. MOEA/D算法原理及应用方向
  12. IntelliJ IDEA 2017 破解
  13. python计算圆环的面积_圆环的面积计算公式
  14. python识别图形形状
  15. TMUX Cheat Table:和那些妖艳贱货不一样的 TMUX 教程
  16. 详细讲解BM字符串搜索算法
  17. matlab计算光场斯托克斯参量来表征偏振态
  18. 设置暴风影音缓存文件夹位置的方法
  19. 在服务器上跑 Java Selenium 的教程
  20. PhD Debate-8 | 迈向常识知识的高级语义理解

热门文章

  1. SAP ABAP EXCEL导出多个SHEET页签
  2. c语言百变图形,百变图标app官方版-百变图标更换图标app下载v1.0.0-西西软件下载...
  3. 2020微信设置2小时到账或24小时到账
  4. 未婚同居能白头偕老吗
  5. P1688 餐厅点餐
  6. 那些不能在一起吃的水果搭配
  7. angularjs常见错误_AngularJS开发人员应避免的7大错误
  8. 与MySQL相识的第二天
  9. 仿照Windows的计算器,编写一个简易的计算器程序,实现加、减、乘、除等运算。
  10. 【机器视觉】圆形测量