latex

Save a pandas dataframe as table in Image or pdf document with nice multi index display

岁酱吖の 提交于 2019-12-10 19:47:41
问题 I'm trying to include a data frame with multi-index in a report in pdf. I would like to have a nice table output. I have found these 2 solutions: pandas.df -> HTML -> pdf import pandas as pd from IPython.display import HTML import pdfkit # df generation df = pd.read_csv(path_to_csv, sep =',') groupeddf = df.groupby('Cluster') res = groupeddf.describe([0.05, 0.5, 0.95]) res.index.rename(['Cluster', 'stats'], inplace=True) res['Cluster'] = res.index.get_level_values('Cluster') res['stats'] =

LaTeX report chapter styles

拟墨画扇 提交于 2019-12-10 19:28:46
问题 How do I change chapter styles in LaTeX report class? I have found something about \makechapterstyle , but it doesn't seem to work on reports (or at least it doesn't work on my report :-) ) I'm prety sure there must be some way to change this. I know that LaTeX is not much of programming, but i dont't know any better place to ask this. 回答1: The package fncychap (pdf) seems to be what you're looking for. With it you should be able to format your chapters quite flexibly without the memoir class

Two abstracts with different names in LateX

有些话、适合烂在心里 提交于 2019-12-10 18:51:32
问题 I am using a LateX template for my PhD thesis which is available via this link: https://github.com/kks32/phd-thesis-template/blob/master/Classes/PhDThesisPSnPDF.cls I wish to include two abstracts for the request of the University. One with the name "Abstract" and one with the name "Lay Summary". But I am having trouble changing the title in the second abstract. The abstract is a tex file starting with the following lines: \begin{abstract} .... \end{abstract} The documentclass is a custom

Rmarkdown Beamer presentation, option clash clash for xcolor

梦想的初衷 提交于 2019-12-10 18:44:14
问题 I am trying to build a beamer presentation using rmarkdown. In my presentation I want to include tables using the kable , and kableExtra packages. I am having issues with this because one of the LaTex packages that kableExtra requires is already loaded by the beamer presentation with different options. This is the error message that I receive. ! LaTeX Error: Option clash for package xcolor. I have been searching for a fix for this but have not had any luck. I have found solutions on the LaTex

Search all keywords with tlmgr

徘徊边缘 提交于 2019-12-10 17:52:17
问题 I want to know how to find all TeX Live keywords. I'm using Windows 10 and TeX Live 2019. I have tried this command tlmgr search ­­--list --keyword but I did not receive the except result. 回答1: This syntax is no longer possible. Looking at https://tug.org/texlive/tlmgr-news.html it says tlmgr revision 35841 (released 24dec14): remove taxonomy searching, since upstream data is no longer maintained. An archived version of the taxonomy list is available from https://web.archive.org/web

Is there a way to use results of r code in embedded LaTeX equations in R Markdown

心已入冬 提交于 2019-12-10 17:48:54
问题 Is there a command like \Sexpr that can be used inside embedded LaTeX equations in R Markdown documents? I would like to form the equation of a simple linear regression using something like this: $\hat{Y}= \Sexpr{coef(model)[[1]]} + \Sexpr{coef(model)[[2]]} \cdot Length$ 回答1: You can use r R_code_here : $$ \hat{Y}= `r coef(model)[[1]]` + `r coef(model)[[2]]` \cdot Length$$ This should produce something like: But I think it is better to define your coefficients in a separate R chunk and keep

Create an ePub file from markdown with math

倾然丶 夕夏残阳落幕 提交于 2019-12-10 17:11:02
问题 I've spent a considerable about of time trying to figure out how I can take a markdown file, which contains TeX math and convert it into an ePub file where the math is rendered properly. For example: This is a markdown file. Here is a [link](www.example.com). Here is some inline math: $\sigma_{i=1}^n \frac{\mu}{100}$ Here is an equation: $$ y = mx + b $$ How can I convert a markdown file with the above text into an ePub file? I've experimented with different methods of conversion using Pandoc

Using latex packages in MATLAB markup publish

别说谁变了你拦得住时间么 提交于 2019-12-10 16:28:48
问题 I'm on Mac OSX 10.10.5 and MATLAB 2015b, and have now spent hours trying to follow various googled instructions for how to import LaTeX packages and use them in within MATLAB's markup 'functionality'. The most concise instructions I've found are contained here: How do you use the LaTeX blackboard font in MATLAB? http://mathforum.org/kb/message.jspa?messageID=7574110 However, nothing has so far worked. I've tried: copying .cls files to /Applications/MATLAB_R2015b.app/sys/tex/latex/base/ (and

Replace all “\” characters which are *not* inside “<code>” tags

二次信任 提交于 2019-12-10 16:25:52
问题 First things first: Neither this, this, this nor this answered my question. So I'll open a new one. Please read Okay okay. I know that regexes are not the way to parse general HTML. Please take note that the created documents are written using a limited, controlled HTML subset. And people writing the docs know what they're doing. They are all IT professionals! Given the controlled syntax it is possible to parse the documents I have here using regexes. I am not trying to download arbitrary

Is there a way of rendering LaTeX equations in Crystal Reports?

巧了我就是萌 提交于 2019-12-10 16:18:07
问题 I'm developing a report in Crystal Reports and need to render some math formulas and equations in it. The formulas and equations are stored in a SQL Server database in plain text (using LaTeX markup). Getting them to render in HTML is not a problem, because I'm using MathJax to do the work at browser level (in either HTML/CSS or MathML). The real problem is: how can I get these equations rendered in the report? I've searched throught the web and found nothing about it. Doing some more search