texmf qns not on tex.sx
16 tags on 11 sites

## Stop knitr preamble in looped child .Rnw documents

I am looping a child .Rnw file so I can repeat plots with different species. Unfortunately the preamble for knitr (I think) is being repeated at the beginning of every loop so the .pdf will not ...

asked 1 hour ago

## Is there CSS for typesetting the XeLaTeX logo in HTML?

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 ...

asked 6 hours ago

## How to make a latex table for 3d-array in R

I have a 3d-array "arr" in R: > v1 <- c("100", "75", "31", "41", "1000", "69") > v2 <- c("10m", "6h", "5d", "11m", "6h", "5d") > arr <- array(c(v1, v2), dim=c(3, 2, 2), ...

asked 11 hours ago

## LaTeX, conceal and weird coloring

I have vim, and like the Tex conceal option. Specifically, if I have let g:tex_conceal="sabgm" in my ~/.vimrc, whenever I type $\beta$, I see β. But, after switching color themes, I get some ...

asked 14 hours ago

## R: Predefined background colors for a matrix

On a report I would like to represent a state change matrix between dates. Lets say I have a matrix like this: B = data.frame(c(0, 0, 0, 5, 0, 0,5,0,0,5,0,0,5,0,0,0), nrow=4, ncol=4) ...

asked 16 hours ago

## Excessive elements in latex longtable output when more than one row is used in Hmisc

Two very similar commands produce different headers in latex() from Hmisc. The question is: how to get rid of the excessive header that is repeated right in the first page of longtable? ...

asked 19 hours ago

## MathJax doesn't always work in question lists

MathJax in question lists. Yay! But sometimes it works and sometimes it doesn't. Seems as if the MathJax is being truncated prematurely, and therefore doesn't render. Is there a reasonable …

asked 20 hours ago

## How to avoid uppercase function name while using Function?

In LaTeX, I want to define a function in my algorithm, following is my code in case: \begin{algorithm}[h] \begin{algorithmic}[1] \Function{BuildPolicySet}{PolicySet PS, CCR ccr} …

## \printglossary does not produce any content

I am having some trouble using glossaries in LateX (TeXnicCenter) and hope someone could give me some advice. I am using the package \usepackage[toc, acronym, section=section]{glossaries} to get a ...

## Pandoc: Include raw tex in markdown to html conversion

Here is a simple markdown code: $$\alpha = \beta\label{eqone}$$ Refer equation (\ref{eqone}). When I convert this to html using pandoc --mathjax file.markdown -o file.html the \ref{eqone} is …

## How do I print every row in its own separate .pdf file in r?

I have tabulated data. I have to write some code to dynamically generate some .pdf reports. Once I know how to make R read and publish only 1 row at a time, I will be using Sweave to format it and ...

asked 2 days ago

## MathJax alignment issue

I quite often see this sort of thing: Sometimes when I reload the page, the equations will go back to being centred where they should be - but sometimes not. This is with Google Chrome ...

asked 2 days ago

## How to search/replace expressions with parantheses in emacs?

I have a bit of Latex code with lots of maths expressions enclosed in \mathrm{}. I'd like to remove the \mathrm{} code around the expressions, preferrably using emacs. For example, I'd like to ...

asked 2 days ago

## LaTeX printing in ipython qtconsole when running external file

I solved an analytic problem using sympy and saved everything in a .py file. When I run the code (which includes init_printing()) with ipython filename.py I get nice unicode output whenever I print …

asked 2 days ago

## Bash Script | if then for do

I'm trying to write a script that generates a LaTeX file. The first part of the script should display all the contents of the map in a tree form. The 2nd part should display the content of each ...

asked 2 days ago

## Embedding Fonts in a pdf within Sweave (R)

I dont get this to work: \documentclass{article} \renewcommand\familydefault{cmss} \begin{document} \SweaveOpts{concordance=TRUE} <<setup,echo=FALSE>>= ...

asked 2 days ago

## Spacing problems

I am experiencing problems with spacing too short after equations. For example, if there is a comma just after an inlined equation, sometimes it's shown just over the equation itself. I have an ...

asked 2 days ago

## Convert HTML and inline Mathjax math to LaTeX with pandoc ruby

I'm building a Rails app and I'm looking for a way to convert database entries with html and inline MathJax math (TeX) to LaTeX for pdf creation. I found similar questions like mine: Convert html …

asked Dec 10 at 11:16

## Extended documentation for “latex” function in R

Is there a complete documentation for Hmisc's function latex available? For instance, it's difficult to understand from help(latex) how to change column headers. Apart from setting names(df), which …

asked Dec 10 at 10:17

## How print a PDF without the DRAFT watermark

I have this PDF file that has a gigantic DRAFT watermark on every single page. My teacher handed us his version of the printed pdf and it says on paper where it is printed from but on his version the …

asked Dec 9 at 23:32

## Count of hyphenated words and their unhyphenated counterparts in latex files

I have a thesis of approximately 100,000 words, typeset in latex. I have rather inconsistently hyphenated some of the words, for example "spider-fear" and "spider fear". I would like to get a list …

asked Dec 9 at 18:57

## Count the number of lines in a pdf file

How is it possible to count the number of lines in a pdf file? Preferably from the linux command line (bash)? The pdfs I want to analyse are generated using LaTeX, so any solution working on the tex …

asked Dec 9 at 14:33

## Latexproblem: font installed but cannot me mapped

When I am compiling some latex, I get the following error: kpathsea: Running mktexpk --mfmode cx --bdpi 300 --mag 1+84/300 --dpi 384 zptmcm7y mktexpk: don't know how to create bitmap font for ...

asked Dec 9 at 13:51

## html MathJax content's selection issue

am new in MathJax content's, i have use MathJax formula in some part of the page then i use content selection too, when i select MathJax formula it look like not in continuous flow. empty space ...

asked Dec 9 at 12:22

## Convert Latex to PDF in Python web app

What is the easiest way to convert a string of Latex (e.g. "Consider the polynomial $x^2$") into a pdf within a Python web app? Ideally, this wouldn't require the creation of intermediate files that …

asked Dec 9 at 1:39

## How to specify directories on Mac using TeXShop

With PCTeX in windows I could specify a directory \def\otherdir{c:/myotherdir/} and an input file \def\InputFile{myinputfile.tex}, and then use \input{\otherdir/\InputFile} With TeXShop on a Mac …

asked Dec 8 at 17:55

## Is there a policy about font size?

I notice that recent posts are using \large in LaTeX when it is not really needed or similarly display math in the title of the post. The impression is that it is just pure visual competition for ...

asked Dec 8 at 3:28

## Post a text which will be handled by MathJax

I have a problem posting text in a html form. The text (from a textarea) to be posted to a new page to show may have the following properties: including latex code to be handled by MathJax between …

asked Dec 7 at 17:06

## Using Google Drive on an Ubuntu tablet

I am interested in purchasing a tablet for school. I am interested in purchasing it to take notes, but I would like to do so in Google Drive for several reasons. As I have researched, I have found …

asked Dec 7 at 1:38