pdflatex

How to run external executables from an Appharbor application (HTML to PDF generation)?

浪尽此生 提交于 2019-12-10 16:01:51
问题 I have a requirement to produce PDF's for one my .Net web applications currently hosted on Appharbor. Traditionally, I would simply install latex on the machine, and create PDF's on the fly with pdflatex. This requirement is to display sections in HTML to end users, but also have a downloadable PDF - so it's slightly different. I have found several (free) external HTML to PDF converters which may be applicable in this instance. However, I haven't found any libraries allowing me to do this

Vim script to compile TeX source and launch PDF only if no errors

末鹿安然 提交于 2019-12-10 04:37:14
问题 I am switching to using Vim for for my LaTeX editing environment. I would like to be able to tex the source file from within Vim, and launch an external viewing if the compile was successful. I know about the Vim-Latex suite, but, if possible, would prefer to avoid using it: it is pretty heavy-weight, hijacks a lot of my keys, and clutters up my vimruntime with a lot of files. Here is what I have now: if exists('b:tex_build_mapped') finish endif " use maparg or mapcheck to see if key is free

How can I restrict the size of my \multicolumn cells in a longtable?

家住魔仙堡 提交于 2019-12-08 18:18:38
问题 I have a really long table in LaTeX that spans several pages and is (as it is now) also too wide for the page. I am using the longtable package with every column width specified with the p{width} command. The problem is, that most of the rows contain a multicolumn call, and thus are not adhering to the preamble p{width} command, which causes the total width of the table to be too large. Minimal example: \begin{longtable}{|p{1in}|p{0.75in}|p{0.5in}|p{0.5in}|>{p{1in}|p{1in}|} \caption{some cap}

RStudio can't find LaTeX after Mavericks update

空扰寡人 提交于 2019-12-08 12:05:47
问题 I have been using Sweave for quite sometime on my system using RStudio. However, I recently upgraded my Mac OS from Lion to Mavericks. This caused several issues: First, RStudio was not able to locate the R library, and it just wont start. I reinstalled RStudio, but still got the same issue. So I reinstalled both R and RStudio, and then RStudio started to work. And now, RStudio is still not able to locate TeX installation, and gives me the following warning: "No TeX installation detected.

How to detect an application executed by a Process whether the application stops working due to an invalid input?

大城市里の小女人 提交于 2019-12-08 03:24:05
问题 I want to create a LaTeX editor to produce pdf documents. Behind the scene, my application uses pdflatex.exe executed through a Process instance. pdflatex.exe needs an input file, e.g., input.tex as follows \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \LaTeX\ is my tool. \end{document} For the sake of simplicity, here is the minimal c# codes used in my LaTeX editor: using System; using System.Diagnostics; namespace ConsoleApplication1 { class Program { static void Main

Insert values from a file in a latex document

这一生的挚爱 提交于 2019-12-08 00:33:40
问题 If a have a latex document, how can I read some key-value pairs from a file an insert them into the document? Something like this: Latex code: customer ID: ${customerID} Text file: customerID=123456 And the resulting .pdf file should contain the customer ID. 回答1: We can always write a perl script to expand them... defs.txt: customerID=123456 customerTel=22530000000 doc.tex: \documentclass{article} \begin{document} latex customer ID: ${customerID} and ${address} costum telphone ID: $

How to stitch two PDF pages together as one big page?

家住魔仙堡 提交于 2019-12-07 15:24:30
问题 I have two 36" by 48" posters (LaTeX) that I want to append into a single 72" by 48" poster (stack vertically). Browsing around SO and GS documentation, I have no clue (I'm not a CLI wizard). How can I do this? (Also, the process should not compress the raster images lossily, because this will be printed 2400*1200 DPI.) 回答1: Since the OP didn't provide (a link to) the original input posters, this answer will proceed in three steps: Create 2 dummy posters as input for step 3 Create a LaTeX

How to get rid of navigation bars in beamer?

梦想的初衷 提交于 2019-12-07 06:47:16
问题 How can I remove the navigation bar of sections and subsections on the top of each slide generated from a beamer latex file? I'm using the package beamerthemesplit. 回答1: The stupid way to make sure the presentation structure does not show up, (independent of theme) comment out the \section and \subsection commands. 回答2: Beamer has different themes you can use, some of which include that navigation bar and some of which don't. The default theme, for example, doesn't include any navigation bar.

Longtable in a knitr (PDF) document: using xtable (or kable)

纵饮孤独 提交于 2019-12-07 00:23:03
问题 I am new to knitr and I have had some very basic latex knowledge in the past, so I googled already hoping to find a solution that was already posted somewhere. However, I was not able to solve my problem. I am hoping someone will be kind enough to provide help. I have a data frame of 14 columns and many rows, let's say 60. Using the data I need to produce a PDF report in landscape layout and present this data frame as a table there. The closest solution I found is here at tex.stackexchange

Insert values from a file in a latex document

淺唱寂寞╮ 提交于 2019-12-06 09:21:31
If a have a latex document, how can I read some key-value pairs from a file an insert them into the document? Something like this: Latex code: customer ID: ${customerID} Text file: customerID=123456 And the resulting .pdf file should contain the customer ID. We can always write a perl script to expand them... defs.txt: customerID=123456 customerTel=22530000000 doc.tex: \documentclass{article} \begin{document} latex customer ID: ${customerID} and ${address} costum telphone ID: ${customerTel} \end{document} perl script tex-defs: #!/usr/bin/perl -n BEGIN{$tex=0;} if(not $tex and /^(\w+)=(.*)/) {