pdflatex

How can I get PHP to compile a LaTeX document if it (www-data) can't get access to the required packages?

送分小仙女□ 提交于 2019-12-17 20:57:53
问题 I have a PHP script that compiles LaTeX documents with the use of: exec('cd /path/to/doc && /usr/bin/latexmk -pdf filename.tex'); This is working for some of my LaTeX documents but my latest document doesn't compile and a look at the log reveals: !pdfTeX error: pdflatex (file ecrm1000): Font ecrm1000 at 600 not found ==> Fatal error occurred, no output PDF file produced! Which I have found is the result of LaTeX not being able to see the required font packages. When I run the same compile

Icelandic, utf8 and utf8x in LaTeX

两盒软妹~` 提交于 2019-12-13 11:40:25
问题 First of all, what's the difference between utf8 and utf8x in \usepackage[utf8]{inputenc} \usepackage[utf8x]{inputenc} when used in LaTeX? Secondly, what packages are required when writing an article in Icelandic using LaTeX? I found: \usepackage[icelandic]{babel} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} after experimenting a bit but I have a feeling some part of the code may be redundant. And even with them the aforementioned packages, the code inside \begin{lstlisting} ... \end

LaTeX printing only first two pages of a document

风流意气都作罢 提交于 2019-12-12 20:33:08
问题 I am working in LaTeX, and when I create a pdf file (using LaTeX button or pdfLaTeX button or using yap) the pdf has only the first two pages. No errors. It just stops. If I make the first page longer by adding text, it still stops at end of 2nd page. Any ideas? OK, responding to first comment, here is the code \documentclass{article} \title{Outline of Book} \author{Peter L. Flom} \begin{document} \maketitle \section*{Preface} \subsection*{Audience} \subsection*{What makes this book different

ggplot2/R output pdf too large

廉价感情. 提交于 2019-12-12 10:34:44
问题 I'm generating a 32x32 (tiles, each tile less than a quarter inch x a quater inch size) heatmap in ggplot2 in my MacBook Pro, this is relatively simple stuff. However, the pdf output for this is huge (something like 7MB) and when I load it in pdflatex, loading and changing pages in the document becomes very slow. What are my options? Is there a better way to save a PDF in R that plays nicely with ggplot2 and pdflatex? 回答1: A common source of PDFs that are way too big is specifying dimensions

Latex \tableofcontents command always shows blank Contents on first build

跟風遠走 提交于 2019-12-12 08:23:38
问题 When I generate a .pdf file from a .tex file using pdflatex , only the "Contents" title is shown with no actual TOC. If I run pdflatex my.tex once more, it generates the TOC just fine. I can reproduce this simply by removing the .toc file. What I think is happening is that my .toc file is being generated too late -- so how can I make the TOC work first time? Should I be generating the TOC beforehand without using pdflatex ? 回答1: This is normal. LaTeX document need several compilations to

Latex List of Figures

久未见 提交于 2019-12-12 07:04:49
问题 So i'm trying to hide the label in my cover image. >\begin{figure} >\center >\includegraphics[scale=0.5]{universidade} >\caption* {Mycaption} >\end {figure} This way it's not labeling the figure but its not showing on the list of figures Help please ;D 回答1: You can give the caption package the option labelformat=empty to suppress the Figure 1 etc. labelling: \usepackage[labelformat=empty]{caption} You can use square brackets to specify the description for the figure list, and curly brackets

“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

knitr Rnw latex: how to obtain a figure and caption in landscape mode that's full page width

微笑、不失礼 提交于 2019-12-11 02:49:52
问题 I am trying to produce a full-page figure along with a caption in landscape mode. The Rnw file below works fine if I omit "fig.cap='Caption Trial'", but not if the caption is used. Any help would be greatly appreciated. \documentclass{article} \usepackage{fullpage} \usepackage{pdflscape} \begin{document} \begin{landscape} <<test, out.width='1\\linewidth', fig.width=7, fig.height=4, fig.cap='Caption Trial'>>= par(mar=c(4, 4, .1, .1)); plot(1:10) @ \end{landscape} \end{document} 回答1: Try this:

Pdflatex run crashes when executed from Java (on Windows)

喜欢而已 提交于 2019-12-11 00:47:06
问题 When I try to compile the below Latex document from Java , my pdflatex run crashes: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \pagestyle{empty} % \tikzstyle{int}=[draw, fill=blue!20, minimum size=2em] \tikzstyle{init} = [pin edge={to-,thin,black}] \begin{tikzpicture}[node distance=2.5cm,auto,>=latex'] \node [int, pin={[init]above:$v_0$}] (a) {$\frac{1}{s}$}; \node (b) [left of=a,node distance=2cm, coordinate] {a}; \node [int, pin={[init]above:$p_0$}]

Save a pandas dataframe as table in Image or pdf document with nice multi index display

岁酱吖の 提交于 2019-12-10 19:47:41
问题 I'm trying to include a data frame with multi-index in a report in pdf. I would like to have a nice table output. I have found these 2 solutions: pandas.df -> HTML -> pdf import pandas as pd from IPython.display import HTML import pdfkit # df generation df = pd.read_csv(path_to_csv, sep =',') groupeddf = df.groupby('Cluster') res = groupeddf.describe([0.05, 0.5, 0.95]) res.index.rename(['Cluster', 'stats'], inplace=True) res['Cluster'] = res.index.get_level_values('Cluster') res['stats'] =