FAQ Database Discussion Community

## Automatically scaling numbers in a table using stargazer

r,latex,stargazer
I wish to create a number of tables with numerical elements of very different scales. For example, tables with the variance of various variables down the diagonal, and the correlations off the diagonal. The larger numbers make the tables too big, and are harder to read. Is there a good...

## Arrange lua/lualatex data in a Latex/tex tabular

lua,latex,tex,tabular
I have data in lua, accessible to a LaTeX/TeX document (it is an array). I try to show this data in a LaTeX tabular form. I tried several ways to do this but all failed :( . Here is an example : \begin{tabular}{|c|c|c|}\hline A&B&C\\ \hline 2010 & 2,78 &\\ \hline...

## Knitr preamble error results in “pandoc document conversion failed with error 43”

r,latex,knitr,rmarkdown,tex
Rstudio Version 0.99.441; Windows 7 enterprise; knitr 1.10.5; MiKTex 0.4.5 r.1280 (2.9 64-bit) I have a an error on my office computer when trying to knit PDF's in Rstudio, there are no problems knitting to HTML or word. The problem may be related to updates because knitting used to work...

## Using Vim + latex-suite + knitr

r,vim,latex,knitr
(summary at the bottom) I have set up Vim and R using the Vim-R-plugin and it works flawless. I also use the Latex-suite in Vim and can create, compile and view .tex files without any problem. For knitr, I used to use Rstudio but I would really like to stay...

## how to use cleveref package to get Fig. in latex

latex
When I use the cleveref package in latex, if I use \cref{fig1}, I got fig. 1 and if I use \Cref{fig1} I got Figure 1. But what I really want is Fig. 1. How can I do that?

## “Something's wrong, perhaps a missing \item” error when using itemize

list,latex
I'm trying to make list using itemize, and I honestly can't see whats wrong with this. I'm sure I'm just missing something small. \documentclass{article} \author{} \title{Essay research} \begin{document} \maketitle{} \section{Alternative fuel sources} Thorium based nuclear power stations offer advantages over classic uranium based ones: \begin{itemize}: \item Thorium-232 is much more...

## Subscript and superscript alignment using only HTML markup

html,latex,html4
The following picture can be easily produced using a latex rendering software: In particular superscript and subscript parts are one over the other. Is it possibile getting the same result using only HTML 4 syntax by some clever use of <sup> and <sub> tags, without use of CSS or MathML?...

## How to use Phonetic Symbols in LaTex

latex
How to use inverted A character(Phonetic Symbol) in an equation in LaTex? Do I have to use any specific package for it? I used \textinvsca, but it says "undefined control sequence"

## math in axes labels for gnuplot (epslatex terminal) not formatted correctly

latex,gnuplot
Using the following script in gnuplot (v 5.0) to generate a graph set terminal epslatex unset key set xlabel "$\zeta$" set ylabel "$\rho$" set output "strange_graph.tex" plot sin(x) set terminal wxt set o along with a latex document to include it, \documentclass{article} \usepackage{amssymb} \usepackage{graphicx} \begin{document} \begin{figure} \begin{center} \include{strange_graph} \end{center} \end{figure}...

## Error: missing \begin{document} in LaTeX [closed]

latex
I have error in my LaTeX document, when run my file, have a error ! LaTeX Error: Missing \begin{document}. and this tag \begin{document} exists in my code \documentclass[12pt‎, ‎a4paper]{article}‎ \usepackage{graphicx} % inserting images \usepackage[top=3cm,right=3cm,bottom=2.5cm,left=2.5cm]{geometry} \usepackage[colorlinks,linkcolor=blue,citecolor=red]{hyperref} \usepackage{multirow} \usepackage{subfig} \usepackage{algorithm} \usepackage{algorithmic} %\usepackage[utf8]{inputenc} %\usepackage{color, pdfcolmk} %\usepackage{sweave} %...

## I want to use figures as [item] in latex

latex,tex
In latex, I can use itemize and \item as follows. \begin{itemize} \item ... \end{itemize} I also can write as follows. \begin{itemize} \item[(any strings)] ... \end{itemize} However I can't write as follows. \begin{itemize} \item[\includegraphics{imagename}] ... \end{itemize} I want to use figures as \item of itemize in latex. Any ideas?...

## Latex Indentation

latex,indentation
I have a list which I want to indent from the section title. I have tried \indent and \hspace{1cm} without success. Here is my code \vspace{0.2in} \section{Affiliations} \vspace{0.1in} \indent The American Geophysical Union.\\ \hspace{1cm} The Seismological Society of America. ...

## How to make internal links work in Sphinx output (latexpdf)?

reference,latex,python-sphinx,restructuredtext
I insert links following this manual: http://sphinx-doc.org/markup/inline.html#ref-role However, while the internal links work perfectly in the HTML output, they don't work in PDF. The text supposed to be the clickable link only become italics. Here's my rst: This is my :ref:reference <file-table3>. .. _file-table3: .. container:: centeredtextbody .. table:: There...

## could not start the command pdflatex - synctex=1 -interaction=nonstopmode %.tex error

latex,pdflatex,texmaker
I'm very new to LaTeX and its distributions so this might be a very newbie question. I was following this tutorial and I'm not being able to compile the document. The code so far is very simple i don't think there are any typos and also I did not find...

## Extract average model from MuMIn for latex output

r,latex,stargazer,texreg
I'm trying to extract two different averaged models from MuMIn for output to latex via texreg or stargazer. I'd like to have one table where I can compare two species' response to different sets of abiotic variables, that looks the same as one created from two model objects using glmtable...

## Latex: too much space after first line in table in beamer class

image,table,latex,tabular,beamer
I'm working in Latex beamer class and have a table environment in there. For some reason the space between the 1st and the 2nd line is huge and I have no idea where that comes from. Here's my code: \documentclass{beamer} \usepackage{beamerthemeshadow} \usepackage{longtable} \usepackage[ngerman, english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \setbeamertemplate{caption}{\insertcaption} \setbeamertemplate{caption label separator}{}...

## Incorrect conversion from R Markdown to LaTeX

latex,knitr,rmarkdown,pandoc
Why does the following R Markdown minimal (non)-working example not compile to PDF? --- header-includes: - \usepackage{fancyhdr} - \pagestyle{fancy} - \lhead{} - \chead{} - \rhead{The performance of new graduates} - \lfoot{From: K. Grant} - \cfoot{To: Dean A. Smith} output: pdf_document: keep_tex: yes latex_engine: xelatex --- # Test In particular, the...

## (datatool in LaTeX)DTLforeach: Can't assign XXX there is no keys in XXX?

latex
i am a beginner for LaTeX, and currently trying to create tables from text files(just for some reason the data was generated from an other program and written in a .txt file) And here is one of the text file:(just integrated it into latex) \begin{filecontents*}{d11.csv} Zeit/s AMES\_13 AMES\_14 AMES\_15 AMES\_16...

## Using sympy's latex() function without calculating the input

math,python-3.x,latex,sympy
I want to get latex output from a sympy expression without calculating the expression. For instance if I do latex((2+3)/7) the output would be 5/7 (with latex), but what I am after is for it to just output (2+3)/7 with latex. Like this: \frac{2+3}{7}

## Is it possible to include an input box within a LaTeX equation with MathJax?

html,latex,mathjax
I have the document: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Distribution</title> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\$','\$']]} }); </script> <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script src="distrib.js"></script> <link href="distrib.css" rel="STYLESHEET">...

latex
I have a problem with latex. I want to create a heading with a special name and aumomatic numbering of the chapters. I use the \chapter{Introduction} command to create the chapter named Introduction. In the Content it is listed as "1 Introduction" which is right. In the text I get...

## writing “latex command” in the Matlab figure comment

matlab,latex,figure
I have a figure in Matlab, inside the figure i would like to write comments on the figure. the comment include latex formula; for example, I want to write this comment on my figure $\vec{R} = 2$ here is an example that I found when I searched; clear...

## Generate TeX/LaTeX file and compile both in Python

python,latex,tex,pdflatex
I am preparing a data processing code and the results from these are to be fed to a TeX/LaTeX file and the file is to be compiled by Python (i.e. Python should send the command to compile the TeX/LaTeX file) At present I plan to generate a text file (with...

latex,mathquill

## Convert Mathematica equations into R code

r,latex,wolfram-mathematica,mathml
Is there an easy way to convert Mathematica equations into R code? I have several equations that consist of dozens of terms with subscripts, superscripts, and greek letters. For example, here's a small part of one equation in Latex format: m_2_2= 48 b_1 c_2^2 d_1 \rho ^4+48 b_2 c_1^2 d_2...

## How to export a table from R to latex and include dimension names?

r,latex
I have a simple table with dimension names that I want to export from R to Latex. I'm looking for a straightforward way to do this that doesn't requiring additional editing in latex. This seems like it should be easy, but I've found a number of other unsolved questions on...

## using source(“X.R”) in Sweave file

r,latex,sweave
I need to use a function in my Sweave file to execute chunk codes. For example, I have function MEAN <- function(x) mean(x) in my directory, then I want use the chunk code x=c(1,2,3,4) MEAN(x) in my Sweave file. Does anyone know how can I do that? Thanks....

## Can I make git merge` always conflict on file changes?

git,version-control,latex,git-merge
I am hoping I have a simple question for you, but I can't find an answer anywhere (I have been searching for 2 days, maybe I am dumb?). I am trying to develop a git workflow to collaboratively edit LaTeX files with my PhD adviser. The problem we face is...

## RStudio internal PDF viewer

latex,rstudio
Over RStudio documentation, it mentions an internal PDF viewer (using PDF.js): https://support.rstudio.com/hc/en-us/articles/200552066-PDF-Preview-and-SyncTeX I have no such option. Only "Evince" or "No Preview". Using Ubuntu / RStudio 0.98.1102. How do I activate the internal viewer?...

## latex equation display in vim

vim,latex
I recently use the vim to write the latex source. But I got a very strange problem. When I open a old .tex file with vim, the equation will not show as usual. For example, when I type $K$, it just display K unless I move cursor to the line...

## Matlab - How to generate LaTeX out of a transfer function?

matlab,latex
I have a transfer function as: TF = 0.00995 z^7 - 0.02786 z^6 + 0.03611 z^5 - 0.0293 z^4 + 0.01565 z^3 - 0.005669 z^2 + 0.001274 z - 0.0001554 ---------------------------------------------------------------------------------------------------------- z^8 - 2.4 z^7 + 3.16 z^6 - 2.664 z^5 + 1.585 z^4 - 0.666 z^3 + 0.1975 z^2...

## pyreport LaTeX formulae not working

python,ubuntu,latex,pyreport
I'm trying to create a HTML report using pyreport and it works up to the single point, that the LaTeX formulae are not generated. Here is the input file I use for testing: #$This is \LaTeX :$c = 2\cdot(a+b)\$ Than I run pyreport -l -t html --verbose file.py,...