latex

extract text from tex, remove latex tags

帅比萌擦擦* 提交于 2019-12-18 12:57:06
问题 I have some .tex files from which I want to receive the plain text without any latex tags such as \section{...} or \newpage. Does anybody have any idea on how to achieve this? I also have the .pdf file but when I just copy the code from there, some words get concatenated which is real bad. Is there any tool you know? 回答1: detex(1): Please see the OpenDetex GitHub page for the latest version of OpenDetex. It is a more modern, derivative version of my original DeTeX. My legacy DeTeX home page

Is it possible to show `print` output as LaTeX in jupyter notebook?

眉间皱痕 提交于 2019-12-18 12:00:54
问题 I was writing a very simple script to count ellipsoid area and volume and some other things. I was presenting my output printing it out like this: print('Dims: {}x{}m\nArea: {}m^2\nVolume: {}m^3'.format(a, round(b,2), P, V)) What, of course, gave this output (with sample data): Dims: 13.49x2.25m Area: 302.99m^2 Volume: 90.92m^3 As I wrote earlier, I am using jupyter notebook, so I can use $ operators in markdown cells to create LaTeX formulas. My question is, is it possible to generate output

Tips for collaboratively editing a LaTeX document

随声附和 提交于 2019-12-18 11:56:44
问题 My default setup is to put the tex source in a subversion repository and insert notes to each other as comments in the source when making changes to other people's content. It all feels pretty sub-optimal, especially when there are subversion conflicts where all it tells you is "these two versions of this huge paragraph are in conflict." I've come up with a few tricks but I'm sure there are much better ideas (or better versions of my ideas) out there. For collaborating on code, see this

Is there any LaTeX package for drawing Gantt diagrams?

你。 提交于 2019-12-18 11:47:19
问题 Are there LaTeX packages for (more or less) easily drawing Gantt diagrams? Thanks. 回答1: The pgfgantt package is quite easy to use and does linking. 回答2: I have not used myself, but it looks like PSTricks offers some Gantt chart drawing capabilities. Main PSTricks site: http://tug.org/PSTricks/main.cgi Example of Gantt chart using PSTricks: http://tug.org/PSTricks/main.cgi?file=Examples/Charts/gantt 回答3: There is the pst-gantt package. The bad news is, that you have to draw dependencies

pandas dataframe as latex or html table nbconvert

淺唱寂寞╮ 提交于 2019-12-18 11:44:25
问题 Is it possible to get a nicely formatted table from a pandas dataframe in ipython notebook when using nbconvert to latex & PDF? The default seems to be just a left-aligned block of numbers in a shoddy looking font. I would like to have something more like the html display of dataframes in the notebook, or a latex table. Saving and displaying a .png image of an HTML rendered dataframe would also be fine, but how exactly to do that has proved elusive. Minimally, I would just like a simple

Making a small modification to a LaTeX environment

南笙酒味 提交于 2019-12-18 11:18:45
问题 I've been using \begin{figure} ... \end{figure} throughout my LaTeX document, but the default styling is ugly; namely, the figures are all left-aligned. Is there a way to redefine the "figure" environment so it automatically inserts some centering commands such as like this?: \begin{figure} \begin{center} \end{center} \end{figure} Sure, I could use \newenvironment to define a "cfigure" environment, but that's undesirable. I don't want to go through and change all my "figures" to "cfigures"

Side by side Xtables in Rmarkdown

浪子不回头ぞ 提交于 2019-12-18 11:09:59
问题 I have seen answers to creating side by side xtables in RMarkdown-HTML knitr, R Markdown, and xtable: xtable tables within HTML table and how to create side by side xtables in Sweave directly R: Print two tables with xtable () But how about side by side xtables in Rmarkdown/Pandoc? In my *Rmd file I have ```{r , results='asis', message=FALSE, echo=FALSE} female.bmi <- lm(bmi ~ AGEGROUP + RACE + GEO_SPA + FPL_FIN + as.factor(year), data=lach[lach$GENDER=='Female',] ) xtable(female.bmi, comment

Latex fonts in matlab

风格不统一 提交于 2019-12-18 10:44:40
问题 Is it possible to convert the font of a matlab plot to be the same of latex fonts. For example I can modify the font of a plot by: x = -pi:.1:pi; y = sin(x); plot(x,y) set(gca,'FontName','Helvetica'); Is it possible to do the same but for latex fonts (I say latex fonts as I am not sure of the actual name of the font latex uses as its basic font). 回答1: For any text object you just need to set the 'Interpreter' property to 'latex'. So, for example you could do xlabel('$$\int_0^x\!\int_y dF(u,v)

sphinx customization of latexpdf output?

送分小仙女□ 提交于 2019-12-18 10:36:14
问题 Just curious if anyone knows how to customize the sphinx output when using the latexpdf target? I've seen lots of custom stuff for html output, but cant seem to find any example of custom pdf output. Specifically, I'd be interested in customizing the title page, headers, footers, and possibly adding a few pages of front matter before the contents. Has anyone seen any examples of this kind of customization, or do people pretty much just use the "stock" sphinx output when generating pdfs?

Hiding the presentation controls in LaTeX beamer presentation [closed]

放肆的年华 提交于 2019-12-18 10:18:13
问题 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 5 years ago . I am currently building a presentation using LaTeX beamer. Is there a way to hide the presentation controls on the bottom of the slides? I don't use those controls, and they sometimes collide with the slide's text. 回答1: Yes, from p.223 of the Beamer guide: To remove navigation symbols,