latex

Resize matrix in LaTeX beamer

谁说我不能喝 提交于 2019-12-05 17:08:08
Hi I was wondering how to resize matrices in a beamer environment. Currently I am writing the following code: \begin{align*} \left( \begin{array}{ccccccc} 0 & 1 & & & & & \\ -1 & 0 & & & & & \\ & & 0 & 1 & & & \\ & & -1 & 0 & & & \\ & & & & \ddots & & \\ & & & & & 0 & 1 \\ & & & & & -1 & 0 \end{array} \right) \end{align*} and the matrix takes up almost a whole page. I would like it to be about half a page in height. Benjamin Bannier See this answer for how to change font dimensions in LaTeX's math mode. Edit Specifying font sizes in beamer is no different from specifying them in other LaTeX

Putting $$s in the middle of an `equation` environment: why doesn't Latex complain?

空扰寡人 提交于 2019-12-05 16:43:20
I was surprised that the Latex code from a recent question didn't throw up any errors, and even more surprised on further investigation, that Crowley's explanation seems to be true. My intuition about the \begin{equation} ... \end{equation} code is clearly off, what's really going on? Consider this, slightly adapted code: \begin{equation} 1: e^{i\pi}+1=0 $$ 2: B\"ob $$ 3: e=mc^2 \end{equation} This seems to prove that Crowley's explanation of such code, namely that "What that code says to LaTeX is begin equation, end it, begin it again, typeset definition of tangens and end the equation" is

how to add grid to table with pander?

梦想与她 提交于 2019-12-05 16:37:27
I am working with R, knitr and pander, and I can't find the option that would allow me to print a grid on a table with pander. I tried : pander(tableToPrint, style='grid') but it doesn't do anything, neither with this option or with 'multiline', 'rmarkdown'... I always get an horizontal line, then the column names, another horizontal line, all my data and an horizontal line. I would like to have an horizontal line between every line. Another option would be to alternate row colors. scoa There is an old answer that gives the trick to do that in latex, but in needs a bit of adaptation to pandoc.

remove italics in latex subscript in matplotlib

一曲冷凌霜 提交于 2019-12-05 16:21:25
问题 I would like to remove the italics font that appears when I use subscripts in labels. For example, the "Teff" in the x-label has "eff" in italics. I would like latex not render it in such a way. Generally, in latex this can be achieved with the \rm{} command. However, that does not work in matplotlib. Please help. import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = x plt.plot(x,y,'ro') plt.xlabel('Primary T$_{eff}$') 回答1: I have encountered this problem many times and it

How do I generate LaTeX from Isabelle/HOL? [closed]

一笑奈何 提交于 2019-12-05 15:51:03
问题 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 . How can I use Isabelle/HOL to automatically generate LaTeX from my source theory files? Isabelle/HOL's tutorial.pdf is very beautiful. I'm going to write a paper in LaTeX with a lot of Isabelle code in it. 回答1: You should first have a look at the existing documentation and come back with more specific questions

File Level Tracking In Git (Files from multiple branches in same directory)

巧了我就是萌 提交于 2019-12-05 15:13:51
Is there any script that lets one remember branch/commit seperatly for files in some directory so that one can simultaneously work on file1 on branch1 and file2 on branch2 in the same directory and have them commit appropriately. If not I'll implement it myself. My plan is to have hidden checkout directories for various branches/repos and populating the apparent checkout with links to these files so that commits simply committed their respective hidden branches but advice would be appreciated. Thus one could do something like mgit checkout branch1 filename/filegroup mgit add filename

Preserve line breaks in title using pandoc

北战南征 提交于 2019-12-05 15:09:13
问题 Consider the following title block in pandoc-flavored Markdown: % Higgelty Pigglety Pop! or There Must Be More to Life % Maurice Sendak Here, line breaks are part of the title. It is possible to reformat the title in order to insert it into regular text flow, e.g. "Higgelty Pigglety Pop! Or, There Must Be More to Life", but when not talked about but used on the title page of a document, preserving the line breaks is crucial. Depending on the style, it might look like this: Higgelty Pigglety

LaTeX+TexStudio安装与使用

天大地大妈咪最大 提交于 2019-12-05 14:49:15
(很多杂志期刊接受LaTeX电子版时会提供自己的模板,只要使用他们的模板即可完美地展现在对应的刊物中) 0x00. 优点 丰富易用的数学公式和特殊符号; 容易生成图表编号、引用、交叉引用、目录; 可以输出PostScript、PDF、HTML等格式; Tex和LaTeX完全免费,支持中文,支持各种操作系统。 0x01. 安装 (主流的LaTeX有CTeX和MiKTex,作者使用的是MiKTex,因为MiKTex可以在使用时下载所需要的包,这样可以减少安装是的存储空间,但有一个弊端是没网的情况下无法在需要时下载相应的包) 下载 MiKTex下载地址: https://miktex.org/download (不同操作系统都支持) TexStudio 下载地址: http://texstudio.sourceforge.net (根据自己的操作系统选择选择相应的版本下载) 安装 (本次安装以Windows 10为例,其他操作系统类似, 注:先安装MiKTex,再安装TexStudio ) MiKTex安装 双击安装包一路“下一步”即可 选择安装给当前用户还是所有用户,如果PC上只有一个用户时,选哪个都无所谓 选择需要安装到哪里,此处作者选择默认位置 一直“下一步”到安装结束,安装完成之后会在“所有程序”中生成一个MiKTex 2.9的文件夹

Associate .Rnw with vim latex suite

我与影子孤独终老i 提交于 2019-12-05 14:26:40
This I am sure is really basic stuff. I am just beginning using gvim and latex-suite. However I would like latex-suite to load when I edit a sweavefile with.Rnw extension. my .vimrc looks like this " These settings are needed for latex-suite filetype indent on filetype plugin on filetype on let g:tex_flavor='latex' set grepprg=grep\ -nH\ $* "let g:Tex_Folding=0 "I don't like folding. set iskeyword+=: and I guess there is some option I can set here that makes vim treat Rnw as .tex? Put a file in /usr/share/vim/vimfiles/ftdetect (for global) or .vim/ftdetect (for local) called Rnw.vim that looks

Scaling plotly figures in knitr Latex document

喜你入骨 提交于 2019-12-05 13:58:16
I'm trying to include a plotly chart into a Latex document with knitr. Since knitr includes the webshot package this works well. But if I want to resize my figure for the latex output, the figure environment gets bigger but the plotly chart is not scalled to the manually set figure width and height. Specifing the webshot options like recommend here , did not work neither. Scaling a ggplot chart works well, but how can I get the same results for the plotly chart? \documentclass{article} \usepackage{cleveref} <<setup, echo=FALSE, message = FALSE, warning = FALSE>>= library(ggplot2) library