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

CircuitTikz: Labeling and defining

I am trying to use CircuiTikz to draw resistor network circuits. For example, I am using the following latex code. \documentclass{article} \usepackage[american voltages, american ...

\verb command in listings caption text

Is there a way to use LaTeX commands in "caption" text of a area "listings"? In particular, I need to use \verb. This is a snipet of my latex code: \usepackage{listings} ... ...

Printing Bibliographie on only one page latex ieee style

I am writing an IEEE paper on latex. I got a problem on the bibliography. It is being printed on 3 pages while I think all the references can be printed on only one page. I am using the following …

In R how do I set the caption to bold?

I am using Knitr for publishing a paper. One of the requirements is that the caption including the numbering and name be made bold. For example, the entire sentence "Figure 1: (log) project ...

How to force grammar change in listings?

I'm using listings to format a piece of JavaScript code, and I met a problem for the following code: ... regex = /abc/; ... ratio = 1.0/2.0; ... I want the regex is highlighted as a string, but if …

How to use Mathjax?

I can't seem to find instruction anywhere on how to use Mathjax or whatever it is called to correctly format equations etc. I remember seeing a list but can't locate it on the site

Chunk in knitr fails to compile in latex; shaded rows of xtable

This is a chunk in knitr. It fails to compile in latex, although the chunk itself runs and gives me a table that (perhaps naievely) looks OK? <>= library(xtable) end_table<-matrix(rnorm(20), …

Writing if-then statements in LaTeX using the value from an R variable in knitr/Sweave

I am currently using knitr along with R 3.0.2 and RStudio in order to produce a LaTeX report. My report is typed up as a .Rnw file, and compiled using the knit2pdf function. I would like to use an …

TikzDevice: 'cannot create lock file' error when using grid.arrange

I would like to use the tikz plotting device for my document. I compile a *.Rnw file from RStudio and I get an error message as soon as I set dev='tikz' The error The error message is that Error …

convert Creole to LaTeX

Care to recommend a tool/workflow(s) for converting Creole wiki pages/files to LaTeX? I'm a grad student who has been documenting code and analyses using (a number of) wikis, mostly using Creole ...

How to call one Sweave Script into another Sweave?

How to call one sweave(R) script into another sweave(R) script? test.Rnw \begin{document} <<echo = F, results = tex>>= try(system paste("R CMD Sweave test2.Rnw")) @ \end{document} ...

Controlling width of printed source code in knitr

According to FAQ.7 and Example.038, I should be able to control my width through global options options(width=40) or chunk options tidy.opts(width.cutoff=40). However, the text still runs off the gray …

Rendering error: Comments with MathJax syntax errors overflow their boxes

For some reason the rendering of the right hand column of the webpage is overlapping my comments and is preventing me from editing or deleting my post... Screen Resolution: 1280 x 800 Windows XP …

Why do my .tex files have different permissions?

I have a folder of .tex files in my Dropbox folder. For some reason not all files have the same permissions. Running ls -@l shows that a certain set has permissions set to -rwxr-xr-x@ owned by ...

LaTeX font in Matplotlib with iPyhton

How can I change the math font used in Matplotlib with LaTeX? I tried import matplotlib matplotlib.use("pgf") pgf_with_custom_preamble = { "pgf.rcfonts": False, # don't setup fonts from rc ...

Knitr - Good pratice for formatting chunks output and creating new chunk options

Before asking anything, I want to apologize for a couple of things : First, I acknowledge that I do not contribute very much to the community. I never answer to questions and I very rarely ask some …

gnuplot: Show exponential power at end of axis once instead of at each tic?

In pgfplots (LaTeX package for plotting) the output in the plotted graphs is formatted by default so that the exponential of the scale is plotted only once at the end of the axis when dealing with big …

how to use “%s” with Tex-renderer

I want do use LaTex-signs in my matplotlib-figure. First I used. pl.ylabel(r'$\pi \rho$',family='Courier New') That was ok. But now the label I want to use is variable and comes from other *.py ...

embedding LaTeXDraw svg in html

The svg code below has been generated by LaTeXDraw. I'm trying it to embed it into an html document. I have tried many ways, such as <embed src="myfile.svg" width="200px" height="200px" ...

greppling with LaTeX markup

This is both a regular expression question, and about its implementation in R. I am using knitr to typeset some documents, and need to modify the output LaTeX using output hooks. In order to do this, …

How to call one Sweave Script into another script?

I have two Sweave Script which generate pdf reports. How can i call one sweave script into another script? Is there any system command to call Script1.Rnw from Script2.Rnw? Regards

How to get Sweave to recognize \thebibliography environment and build R package vignette in one pass

Background: I maintain a number of R packages that include package vignettes. The vignettes include the reference citations inline as\bibitem lines inside a thebiblilography section. For some ...

LaTeX math in github wikis

Is it possible to include LaTeX-style math in any way with github repo wikis? Googling implies github no longer allows things like MathJax, but most references are years old. What (if any) ...

Some formatting questions about converting an IPython notebook to latex

My first question is how can I have the command \usepackage{foo} appear automatically before \begin{document} in the converted .tex file by using a custom .tplx file. Another question is how can I …

When I open some .tex files with emacs, I get the following message: File mode specification error: (error "Autoloading failed to define function latex-mode") and emacs is not is latex mode. The …

Custom output hooks in knitr

I am trying to create a chunk hook that can produce a \floatfoot{} as part of the output from a chunk. Hopefully the following example makes clear what I am trying to achieve: 1. .Rnw file Here is …

error: R code interpreted as math formula in LyX

I type this code in LyX: <<>>= data$y <- data$x @ This code makes an error, because the "" makes the content inside them interpreted as a math formula. Is there anyway to contour …

Sublime indenting style of Latex files

Here is a part of my LaTex code and what I want it to be: ... \begin{center} \begin{table} \begin{tabularx}{\textwidth}{|l|l|l|X|X|X|X|} ... However, if I re-indent it in Sublime Text …

Posts from new users often requiring edits that add LaTeX code. When I review edits from users that add such code, all I see on the LHS and RHS are the raw LaTeX codes, such as $a_y=g$. This is the …