latex

Set/change bibliography title in RMarkdown?

坚强是说给别人听的谎言 提交于 2019-12-24 10:47:52
问题 I'm currently experimenting with RMarkdown. However, I would like to change the title of my bibliography. I'm using natbib in this situation. The current RMarkdown setup is shown below: title: .... author: .... output: pdf_document: citation_package: natbib bibliography: Referanser2.bib biblio-style: unsrt header_includes: - \usepackage{amsmath} - \usepackage{kbordermatrix} - \setcitationstyle{numbers,square} [@MyReference] This gives me a simple PDF with 1 reference and a bibliography. Is

FontAwesome Installed with MiKTeX Console not Working

自作多情 提交于 2019-12-24 10:47:28
问题 I've added the fontawesome package from the MiKTeX console, but when trying to create the document in TeXworks using XeLaTeX, I get the following error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "FontAwesome" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !............................................... I'm using Windows 10, and on a previous machine I got my tex file

Why does R function print.xtableFtable ignore my options?

怎甘沉沦 提交于 2019-12-24 10:20:06
问题 I am having the following code and print.xtableFtable ignores the additional options for latex. ##### Contingency tables - 34Y library(xtable) B <- ftable(prereg34Y_sub$employmentStatus34Y, prereg34Y_sub$ethnicity34Y, dnn=c("Unemployed", "NonBritish")) sink("CTFemaleNonBrit34Y.tex", type="output") print.xtableFtable(xtableFtable(B, method = "compact"), table.placement = "h!") sink() The output is: % latex table generated in R 3.3.1 by xtable 1.8-2 package % Sat Oct 22 18:08:35 2016 \begin

Remove padding from pasted cells in LaTex, R

做~自己de王妃 提交于 2019-12-24 07:59:15
问题 The Paste pseudo-function in the tables package combines cell values, but it also introduces unnecessary padding. See this example: --- output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) library(tables) library(dplyr) ``` ```{r table, results='asis'} seed <- 1 iris2 <- iris %>% mutate(Region = factor(sample(c('East', 'West', 'Central'), 150, replace = TRUE))) tabular((Species + 1) ~ (Region + 1) * Sepal.Length * Paste(Percent(), length, sep = '\\% (',

Dynamic headers in rmarkdown pdf output

人盡茶涼 提交于 2019-12-24 03:12:37
问题 I'm creating reports using what I think is a combination of Rmarkdown/Knitr, YAML, LaTeX and Pandoc (I don't fully understand which parts of my code pertain to what because I'm not well versed in anything except R). I want to know how to add a "dynamic" header, where the contents of the header can be called from variables I read in, for eg., a value from a dataframe I import into the R session. Specifically, I want to add, say, a unique ID# for every report, to be printed on every page of the

gnuplot: making axes numbers smaller in epslatex makes my axes label disappear offscreen

大憨熊 提交于 2019-12-24 03:07:50
问题 I'm writing a script to generate three plots in a column (using multiplot and setting margins). They all share an x-axis, so it's only necessary to label that on the bottom plot, but they have separate y-axes. I'm using the epslatex terminal in gnuplot to generate the plots with latex labels and axes. Basically, I need the numbers on the axis to use a smaller font size than the actual axis labels. So far, I've been doing this using, reset set term epslatex standalone color solid 10 set output

LaTeX数学公式大全

放肆的年华 提交于 2019-12-24 02:56:19
L a T e X \mathtt{LaTeX} L a T e X 入门 数学公式的插入 将数学公式写在 $ $ 之间,代表的是插入行内数学公式(通常称为行内模式)。 将数学公式写在 $$ $$ 之间,会使公式独立成一行并强制居中(通常称为独立模式)。 声调 / / / 变音符号 $\dot{a} \ddot{a} \acute{a} \grave{a}$ a ˙ a ¨ a ˊ a ˋ \quad\dot{a}\quad\ddot{a}\quad\acute{a}\quad\grave{a} a ˙ a ¨ a ˊ a ˋ $\check{a} \breve{a} \tilde{a} \bar{a}$ a ˇ a ˘ a ~ a ˉ \quad\check{a}\quad\breve{a}\quad\tilde{a}\quad\bar{a} a ˇ a ˘ a ~ a ˉ $\hat{a} \widehat{a} \vec{a}$ a ^ a ^ a ⃗ \quad\hat{a}\quad\widehat{a}\quad\vec{a} a ^ a a 标准函数 $\exp_a b=a^b \exp b=e^b 10^m$ exp ⁡ a b = a b exp ⁡ b = e b 1 0 m \quad\exp_a b=a^b\quad\exp b=e^b\quad10^m

How to avoid the “too deeply nested” error when creating PDFs with Sphinx?

自古美人都是妖i 提交于 2019-12-24 02:18:57
问题 I have a fairly complex project with a fairly large documentation. Converting the normal user guide to PDF with Sphinx via make latexpdf works quite well. However, if I also want to include the library reference with all function, class, and module documentations, the command fails with: ! LaTeX Error: Too deeply nested. Manually reducing the nesting is not an option. Sphinx internally nests parameter descriptions, function descriptions, module descriptions and whatnot. So figuring out in

Custom color for LaTeX output in Sphinx documentation package

烈酒焚心 提交于 2019-12-24 01:36:35
问题 I am trying to customize the color of the LaTeX inline formula when using Sphinx documentation package, and html output. The details: I have a file called func.rst , which includes the following line: Let :math:`x_{1}` be a binary variable. which is rendered successfully into LaTeX in the documentation I created with Sphinx. (I have 'sphinx.ext.imgmath' listed in extensions in conf.py ) My goal is to have x_{1} colored in red. Things I tried: Adding the color inside the formula: Let :math:`

Latex Output

蓝咒 提交于 2019-12-24 00:57:16
问题 When I compile a latex file, it produces also a .txt, .bbl, .aux files. They are not useful as I can delete them without harm. My question is what are these files for and how can I opte not to generate them when I compile the .tex file? 回答1: Those files are useful and represent the output of the multiple-pass typesetting process. If you delete them, you'll need to rerun LaTeX to regenerate them. Quite often, you'll see a LaTeX workflow that looks something like this: Run LaTeX (finds all the