latex

How to define two ispell dictionaries in Emacs for LaTeX mode?

ⅰ亾dé卋堺 提交于 2020-01-23 08:55:14
问题 I have a document with many quotations in a second language. How can I define this second language to Ispell? I have this in file top: %% Local IspellDict: brasileiro I tried this, but it didn't work: %% Local IspellDict: brasileiro, english 回答1: I have a way to toggle between two languages: ;; You should have aspell-ru and aspell-en packages installed (let ((langs '("english" "russian"))) (setq lang-ring (make-ring (length langs))) (dolist (elem langs) (ring-insert lang-ring elem))) (defun

Getting Stargazer Column labels to print on two or three lines?

橙三吉。 提交于 2020-01-23 07:11:53
问题 I have some models that have long titles to be fully explanatory. It would be helpful to have them print their descriptors or titles on two lines. This reads the line break character, but the resulting latex output doesn't recognize it. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, column.labels='my models\nneed long titles') Thanks. 回答1: One option: You can insert latex codes for newline ( \\ ) and table column alignment ( &

Getting Stargazer Column labels to print on two or three lines?

北城余情 提交于 2020-01-23 07:11:20
问题 I have some models that have long titles to be fully explanatory. It would be helpful to have them print their descriptors or titles on two lines. This reads the line break character, but the resulting latex output doesn't recognize it. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, column.labels='my models\nneed long titles') Thanks. 回答1: One option: You can insert latex codes for newline ( \\ ) and table column alignment ( &

LaTeX快速入门(简易模板)

梦想的初衷 提交于 2020-01-23 07:03:27
LaTeX 基于 TeX,主要目的是为了方便排版。在学术界的论文,尤其是数学、计算机等学科论文都是由 LaTeX 编写, 因为用它写数学公式非常漂亮。 如果还没有安装LaTeX,这里有完整的安装教程。 LaTeX快速入门(Texlive+Texstudio软件安装) 首先直接展示一个简易模板: \ documentclass { article } \ usepackage { ctex } \ usepackage { graphicx } \ usepackage { float } \ usepackage { datetime } \ title { LaTeX快速入门 } \ author { xxx } \ date { \ today } \ begin { document } \ maketitle hello!LaTeX \ part { part标题 } \ section { section标题 } \ subsection { subsection标题 } \ subsubsection { subsubsection标题 } \ paragraph { paragraph标题 } \ subparagraph { subparagraph标题 } \ begin { thebibliography } { 99 } \ bibitem { 1 }

Advanced LaTeX Tutorial/Book [closed]

点点圈 提交于 2020-01-22 12:32:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I've been using LaTeX for about 3-4 years now. In that time I've picked up what I've needed as I've needed it, most often by Googling. However, I'd like to learn some more advanced features of LaTeX such as editing or even creating my own class files and bibtex styles. I've worked with some fairly powerful class

Using minted (source code LaTeX package) with emacs/auctex

一曲冷凌霜 提交于 2020-01-22 12:04:29
问题 As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use pdflatex -shell-escape SOURCE , but Q1 : How can I modify the AucTeX to insert the -shell-escape ? I mean, how to change the action for C - c + C - c ? Q2 : Do I need special key other than C - c + C - c for -shell-escape option? Or, is it just OK to use it without any problem? Q3 : What is the -shell-escape for? 回答1: Q1:

Using minted (source code LaTeX package) with emacs/auctex

喜欢而已 提交于 2020-01-22 12:03:51
问题 As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use pdflatex -shell-escape SOURCE , but Q1 : How can I modify the AucTeX to insert the -shell-escape ? I mean, how to change the action for C - c + C - c ? Q2 : Do I need special key other than C - c + C - c for -shell-escape option? Or, is it just OK to use it without any problem? Q3 : What is the -shell-escape for? 回答1: Q1:

How to change font size of “cvname” of “twentysecondcv” class in LaTex

百般思念 提交于 2020-01-22 03:39:05
问题 I am creating a cv using "twentysecondcv" class. I am using predefined "cvname" element to write name but its a little bit larger and crossing the profile region(left side region). I am using like this. \cvname{MY Name Here} I want to make font size small so that it can fit into profile region. I tried to create new command (cvfname) like this. \newcommand{\cvfname}[1]{\renewcommand{\cvfname}{#1}} \patchcmd{\makeprofile}% {%search \ifthenelse{\equal{\cvfname}{}}{}{\fontsize{} & \cvfname\\}% }

Compile two versions of a document from the same latex source

ぐ巨炮叔叔 提交于 2020-01-21 19:39:28
问题 How to automatically compile two versions of the same document, for example version without answers for the students and another version with answers for myself? 回答1: There are several packages that allow to conditionally exclude certain parts of the document, for example the exercise package. With TeXstudio, the following magic comment can be used to automatically compile both versions at once (including repeated compilation for cross-references, bibliographies, indices etc.): % !TeX program

How can I create this figure title in MATLAB?

£可爱£侵袭症+ 提交于 2020-01-21 16:13:10
问题 I want to combine Latex, numbers, and Tex into the title of a figure using the following ( beta_b and lambda are defined variables): title(['$\overline{\beta}=$' num2str(beta_b) 'TE0 , \lambda=' num2str(lambda*1e6) ' \mum'], 'interpreter','latex'); But it doesn't display properly. What's the problem? 回答1: You can't combine Latex and Tex in a title. You have to use one or the other (i.e. whichever one you set for the 'Interpreter' property). The following will work: title(['$\overline{\beta}=$