xelatex

Is it possible to create a footer with numbers like this in xelatex?

非 Y 不嫁゛ 提交于 2021-02-05 12:24:04
问题 Is it possible to create footers like above in xelatex? on the first page the number to be aligned on the right and on the second page on the left side. The top border would be a nice addition but it is not necessary. I don't need any text (section names) beside the numbers. \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \setmainfont{Charis SIL} \usepackage{geometry} \geometry{a4paper, left=1in, right=1in, top=0.5in, bottom=0.65in} \setlength{\parindent}{0pt} \setlength{\parskip}

Is it possible to create a footer with numbers like this in xelatex?

六眼飞鱼酱① 提交于 2021-02-05 12:22:19
问题 Is it possible to create footers like above in xelatex? on the first page the number to be aligned on the right and on the second page on the left side. The top border would be a nice addition but it is not necessary. I don't need any text (section names) beside the numbers. \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \setmainfont{Charis SIL} \usepackage{geometry} \geometry{a4paper, left=1in, right=1in, top=0.5in, bottom=0.65in} \setlength{\parindent}{0pt} \setlength{\parskip}

Matplotllib and Xelatex

时光毁灭记忆、已成空白 提交于 2021-01-28 04:31:06
问题 I tried to find the answer for my question for some time now but could not come up with something that works for me. My question is: How can you use Xelatex to compile text in Matplotlib? I know that there is this page: http://matplotlib.org/users/pgf.html However, I could not come up with something that would work. What I got up to now: import matplotlib as mpl mpl.use("pgf") ## TeX preamble preamble = """ \usepackage{fontspec} \setmainfont{Linux Libertine O} """ params = {"text.usetex":

Changing the latex_engine gets an error when trying to align images on kable

元气小坏坏 提交于 2021-01-28 02:22:16
问题 I am trying to copy the first answer in this question. The answer really meets what I wanted. But it get an error when the latex_engine is xelatex. But I really needs to show the output in chinese. Here's the code --- title: "Untitled" output: pdf_document: latex_engine: xelatex --- This example highlights the issue I am having with formatting a nice table with the graphics and the vertical alignment of text. ```{r echo=FALSE, results='hide', warning=FALSE, message=FALSE} ## Load modules

How to break long url that containes hyphens

时光怂恿深爱的人放手 提交于 2020-06-08 12:36:07
问题 I'm trying to break a long url using latex. I have 3 links, the first one that contains hyphens doesn't work but the two others work because they don't contain hypens. I used \url(the_url_to_brak) like this : \hline \textbf{Documentation} & Riche et peut être téléchargée gratuitement sur \url{https://www.ssi.gouv.fr/guide/ebios-2010-expression-des-besoins-et-identification-des-objectifs-de-securite/} & Riche et peut être téléchargée gratuitement sur \url{https://clusif.fr/management_des

How to break long url that containes hyphens

落花浮王杯 提交于 2020-06-08 12:35:26
问题 I'm trying to break a long url using latex. I have 3 links, the first one that contains hyphens doesn't work but the two others work because they don't contain hypens. I used \url(the_url_to_brak) like this : \hline \textbf{Documentation} & Riche et peut être téléchargée gratuitement sur \url{https://www.ssi.gouv.fr/guide/ebios-2010-expression-des-besoins-et-identification-des-objectifs-de-securite/} & Riche et peut être téléchargée gratuitement sur \url{https://clusif.fr/management_des

Is it possible to change the column width using kable without kableExtra?

烈酒焚心 提交于 2020-02-28 09:50:00
问题 Continue from this question. I want to modify the result's column width, but it can't be done without using the kableExtra . If I load the kableExtra package, the image will become text format. Here's the code: --- title: "Untitled" output: pdf_document: latex_engine: xelatex --- ```{r echo=FALSE, results='hide', warning=FALSE, message=FALSE} ## Load modules library(dplyr) library(tidyr) library(ggplot2) options(tinytex.verbose = TRUE) ## Create a local function to plot the z score

Is it possible to change the column width using kable without kableExtra?

爷,独闯天下 提交于 2020-02-28 09:47:10
问题 Continue from this question. I want to modify the result's column width, but it can't be done without using the kableExtra . If I load the kableExtra package, the image will become text format. Here's the code: --- title: "Untitled" output: pdf_document: latex_engine: xelatex --- ```{r echo=FALSE, results='hide', warning=FALSE, message=FALSE} ## Load modules library(dplyr) library(tidyr) library(ggplot2) options(tinytex.verbose = TRUE) ## Create a local function to plot the z score

image file not found from URL in r-markdown

拈花ヽ惹草 提交于 2020-01-23 21:57:08
问题 I used to be able to render images in r-markdown using a URL with the following code ![](https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark) but I get a file not found error ! LaTeX Error: File https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark' not found . Am I missing packages? This code still works on some shiny apps published a few month ago. Below the a working file r-markdown file: --- title: "Test" header-includes: - \usepackage{graphicx} output: pdf

RMarkdown xelatex !Missing & Inserted

不打扰是莪最后的温柔 提交于 2020-01-05 03:57:05
问题 I originally posted with issues here: Rmarkdown with xelatex I have since reinstalled, but now I'm having an entirely new issue. Using the following code (inside a .Rmd file): --- header-includes: - \usepackage{graphicx} output: pdf_document: latex_engine: xelatex --- ```{r} knitr::include_graphics("F:/Big Folder/My Folder/image.png") ``` I get the following error: ! Missing $ inserted. <inserted text> $ l.134 .../Big Folder/My Folder/image} pandoc.exe: Error producing PDF Error: pandoc