xelatex

Compile Latex code using Swift

送分小仙女□ 提交于 2019-12-25 05:25:49
问题 I wanted to compile a .tex file using Swift. I have the following code: class FileManager { class func compileLatex(#file: String) { let task = NSTask() task.launchPath = "/usr/texbin/latexmk" task.currentDirectoryPath = (NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as! String).stringByAppendingString("/roster") task.arguments = ["-xelatex", file] task.launch() } } However, when calling FileManager.compileLatex(file: "latex.tex") I get the error 'launch

Special character does not show up in bibliography (but works in body) in bookdown

霸气de小男生 提交于 2019-12-25 03:47:16
问题 I am writing my dissertation with bookdown (https://bookdown.org/yihui/bookdown/) and the memoir class in R. I need to include special characters such as "\oe". This character appears correctly in the body of the document (therefore it's NOT a font problem). However, the same character does not appear in the bibliography section. More precisely, nothing appears instead of the special character. The .bib file is a .tex generated by Zotero where the "\oe" symbol (for instance) is represented as

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

Is there CSS for typesetting the XeLaTeX logo in HTML?

匆匆过客 提交于 2019-12-11 09:57:05
问题 I want to use the XeLaTeX logo in HTML pages. I found the answer to a similar question regarding the LaTeX logo here: Is there CSS for typesetting the LaTeX logo in HTML?, but the XeLaTeX logo involves a mirrored E. Is there a trick to get this too? 回答1: You could use “Ǝ” U+018E LATIN CAPITAL LETTER REVERSED E to get a mirrored E, but it’s tricky and risky to do a character substitution with CSS. So a better approach would be to uppercase the “e” and use a 3D transform. Considering just this

What's the best combination of LaTex writing in Chinese? [closed]

走远了吗. 提交于 2019-12-11 00:49:49
问题 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 7 years ago . someone rcommend the xelatex, but others insist on the latex+CJK, which one is prefer? thanks. 回答1: I use LaTeX + CJK and it works fine. Make sure your text editor supports unicode, and then add these lines between the \documentclass and \begin{document} lines: \usepackage{CJKutf8} \newcommand{\zh}[1]{\begin{CJK

RMarkdown PDF “LaTeX3 error: Erroneous variable”

徘徊边缘 提交于 2019-12-08 21:10:26
问题 I've been creating PDF reports via RMarkdown for a couple months now, but after installing MikTex, R and the rmarkdown and tidyverse packages on a new machine today, I received the following error message when attemping to knit a PDF: "C:/PROGRA~2/Pandoc/pandoc" +RTS -K512m -RTS Test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.pdf --template "C:\Users\drewm\Documents\R\win-library\3.4\rmarkdown\rmd\latex\default-1.17.0.2.tex"

pandoc doesn't text-wrap code blocks when converting to pdf

你离开我真会死。 提交于 2019-12-03 14:50:55
问题 I'm using pandoc with xelatex engine to convert markdown to pdf. I'm running pandoc like this: pandoc -s 'backbone-fundamentals'.md -o 'backbone-fundamentals'.pdf \ --title-prefix 'Developing Backbone.js Applications' \ --normalize \ --smart \ --toc \ --latex-engine=`which xelatex` If a code line is longer than the pdf document width it just gets cutoff. Is there anyway to have pandoc text wrap long code lines? 回答1: Not having the text wrapped is (part of) the point of code blocks. As far as

How to load latex .sty files from a subdirectory?

旧街凉风 提交于 2019-12-03 05:28:11
问题 I use some .sty-files that are not part of texlive and want to have them in a subdirectory of the folder with my main.tex. I used the following line to load the package: \usepackage{sty/prettythesis} This works, but compiling the main.tex with xelatex and using rubber gives me a warning: sty/prettythesis.sty: You have requested package `sty/prettythesis', but the package provides `prettythesis'. (page 1) Is there a way to prevent this warning or handle this case without having to include "sty

pandoc doesn't text-wrap code blocks when converting to pdf

独自空忆成欢 提交于 2019-12-03 04:39:08
I'm using pandoc with xelatex engine to convert markdown to pdf. I'm running pandoc like this: pandoc -s 'backbone-fundamentals'.md -o 'backbone-fundamentals'.pdf \ --title-prefix 'Developing Backbone.js Applications' \ --normalize \ --smart \ --toc \ --latex-engine=`which xelatex` If a code line is longer than the pdf document width it just gets cutoff. Is there anyway to have pandoc text wrap long code lines? A. Donda Not having the text wrapped is (part of) the point of code blocks. As far as I know, the only way to wrap the code is manually. For most languages, not exceeding a certain line

How to load latex .sty files from a subdirectory?

瘦欲@ 提交于 2019-12-02 19:53:53
I use some .sty-files that are not part of texlive and want to have them in a subdirectory of the folder with my main.tex. I used the following line to load the package: \usepackage{sty/prettythesis} This works, but compiling the main.tex with xelatex and using rubber gives me a warning: sty/prettythesis.sty: You have requested package `sty/prettythesis', but the package provides `prettythesis'. (page 1) Is there a way to prevent this warning or handle this case without having to include "sty\" in all .sty-files' \ProvidesPackage command or set the TEXINPUTS environment variable (which seems