latex

“Error Producing PDF” when markdown contains a horizontal rule: — or ***

十年热恋 提交于 2019-12-11 06:19:08
问题 When my Markdown file contains a horizontal rule --- or *** I receive an error regarding \Linethickness -> \Protect I understand there have been issues with MiKTeX recently, however I am unsure whether they apply here. I have been experiencing this issue since yesterday morning, when I was playing around trying to get the Lato font package to work with a set of Markdown files I need to convert to PDF. It had been working fine (asides from the font issue). This could have happened when I

Getting Latex on C# WinForms

假装没事ソ 提交于 2019-12-11 06:15:10
问题 Background: Beginner, just started with C# I'm making a C# WinForms application, on which I'd like to display well laid out mathematical expressions. To me, I would guess using latex would be the best way to do this. The issue I'm having is finding how latex can be rendered inside a winforms application. Searching around, I found FMath, however I can't get a simple working example of it functioning. I've installed the library and the new control (MathMLFormulaControl) and added a control to

A Kableextra table and a ggplot plot on same row in Rmarkdown (PDF - not Flexdashboard)

心已入冬 提交于 2019-12-11 05:57:13
问题 I have been experimenting with R Markdown to create some PDF reports. I am having difficulty in getting the layout right. Basically, I need to have a KableExtra created table (dataframe) and a ggplot plot on the same row. I have explored some grid packages, but couldn't get it to work. Here is my code: --- title: "Untitled" author: "" date: "14 June 2018" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) library(knitr) library(reshape2) library(dplyr)

How do I add a page background image in pylatex?

若如初见. 提交于 2019-12-11 05:47:34
问题 I have written the following code, and have given the latex commands for drawing background, by using the NoEscape module. I have an image reportbg.png in the same directory as the program. Now, I want this image to appear as a background in all pages of the report. types = ('../Faults/*.png', '../Faults/*.jpg') imgnames = [] for files in types: imgnames.extend(natsort.natsorted(glob.glob(files))) geometry_options = { "head": "30pt", "margin": "0.3in", "top": "0.2in", "bottom": "0.4in",

Consistent math equation numbering in bookdown across pdf, docx, html output

不羁的心 提交于 2019-12-11 05:39:30
问题 In bookdown, is there a LaTeX math environment which numbers each equation, regardless of whether the ouptut is .pdf, .docx, .html? Adding this LaTeX: \begin{align} X &= Y \\ Z &= W \end{align} Into the bookdown-demo outputs the following: PDF: works as expected. DOCX: missing equation numbers. HTML: missing equation numbers. Notes: The output was generated using pdf_book , word_document2 , gitbook . This is related to an unanswered question of mine: Align environment in R Markdown which

pdfpages generating errors on newest version

ε祈祈猫儿з 提交于 2019-12-11 05:26:17
问题 I tried recompiling my bachelor thesis in latex today and encountered problems with the pdfpages package. While it worked perfectly when I originally compiled the thesis it now throws "undefined control sequence" errors. The new pdfpages package is "packaged on 24/09/2019". Miktex console version is 2.9.7206 I tried compiling it with an old version I still had on my desktop pc which worked without a problem. After updating the miktex packages it stopped working there as well. I also produced

Create hyperlink in table and adjust column to wrap text Rmarkdown

删除回忆录丶 提交于 2019-12-11 05:18:44
问题 I am trying to create hyperlinks inside a table and also adjust columns to wrap text and generate pdf. Ex table: variable<-"testing a long column to wrap testing a long column to wrap " col1<-"\href{https://www.google.co.uk/}{click here}" col2<-"[click here](https://www.google.co.uk/)" col3<-"[click here](https://www.google.co.uk/)" col4<-"[click here](https://www.google.co.uk/)" col5<-"[click here](https://www.google.co.uk/)" test<-data.frame(variable,col1,col2,col3,col4,col5) When I tried

Adjust spacing between text and chunk output in a R Markdown PDF document

梦想与她 提交于 2019-12-11 05:15:40
问题 I'm having trouble understanding how to control spacing between the text and chunk output in a R Markdown PDF document. Below is an example of a document: --- output: pdf_document --- \setlength\lineskip{0pt} \begin{center} Random Text \end{center} ```{r echo = FALSE, message=FALSE} library(tidyverse) p1 <- ggplot(mtcars, aes(x = row.names(mtcars), mpg)) + geom_bar(stat = "identity") + theme(panel.border = element_rect(colour = "black", fill=NA, size=1), plot.margin=grid::unit(c(0,0,0,0), "mm

Pass two set of rules for rows to xtable

北慕城南 提交于 2019-12-11 05:07:50
问题 Please consider the following MWE (variation from this answer) \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{booktabs} \usepackage{colortbl, xcolor} \begin{document} <<do_table, results = "asis">>= library(xtable) mydf <- data.frame(id = 1:10, var1 = rnorm(10), var2 = runif(10)) rws <- c(1,3,5,6,7) col <- rep("\\rowcolor[gray]{0.95}", length(rws)) print(xtable(mydf), booktabs = TRUE, add.to.row = list(pos = as

ViM-LaTeX, python, and Mac OS 10.8.1 and a weird error

天涯浪子 提交于 2019-12-11 04:39:11
问题 I just updated my machine to Mountain Lion (10.8.1) and am trying to install vim-latex. I have used the suite daily for about 5 years now, but when trying to do a clean install and opening up a .tex file I get the following error message. "UnitCircleAnalysis.tex" 118L, 4154CTraceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 565, in File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",