Questions tagged [latex]

LaTeX is a programming language used primarily for creating high quality academic written documents, slideshows and posters. LaTeX questions are often a better fit for the sister site "TeX - LaTeX" (https://tex.stackexchange.com). This includes questions on tools and other languages producing LaTeX code. The JavaScript libraries MathJax and KaTeX are off-topic on "TeX - LaTeX" and should be asked on Stack Overflow instead (and tagged accordingly).

LaTeX is a macro package implemented on Donald Knuth's TeX programming language and is used primarily for creating high quality written documents. The underlying TeX system is Turing complete and LaTeX inherits this property, making it possible (but rarely advisable) to perform arbitrary computations in LaTeX; more interestingly it makes it possible to get any layout scheme you can describe precisely.

Which site to use for LaTeX questions?

As LaTeX is primarily used for simply writing documents many people characterize it as a "markup language" (like HTML) and site selection criteria have been discussed several times. See:

The Stack Exchange site dedicated to LaTeX is tex.stackexchange.com, which is probably a better place to ask any LaTeX-related questions than here on Stack Overflow. The other site also covers TeX and other related technologies.

Other resources

11140 questions
6
votes
1 answer

verb/lstinline text flows out of the line margins without line break in Latex

The listings package supports line breaks inside lstlisting environment. But it doesn't produce automatic line breaks for lstinline environment. For example, in the following paragraph the first line flows out of the margins: The parameters…
Mert Nuhoglu
  • 9,695
  • 16
  • 79
  • 117
6
votes
1 answer

Sphinx Documentation, numbered figure references

I'm trying to get numbered figures to work on my Sphinx documentation project using latexpdf output. I installed the Sphinx numfig.py extension found here https://bitbucket.org/arjones6/sphinx-numfig However, whenever I use the :num: tag that is…
John Lotacs
  • 1,184
  • 4
  • 20
  • 34
6
votes
1 answer

Publish to Latex from Matlab

While producing Latex output from Matlab, I used the following in command window: publish('filename.m',struct('format','latex','showCode',false, ... 'maxWidth',3,'outputDir','Desktop')); The latex file produced has graphics width always…
user1907072
6
votes
6 answers

Convert TEX files to PDF or DOCX?

I'm using Doxygen to build an API library from C# source code. Doxygen generates a library of TEX files. My client has asked for a PDF version of this API library so I need to convert the TEX file library into a single PDF or DOCX. I've been…
pixelbobby
  • 4,368
  • 5
  • 29
  • 49
6
votes
1 answer

How do I convert Mathematica syntax to latex?

wolfram alpha accepts latex, but it does not export to latex, it exports plaintext,rendered images and mathematica sytax. Is there any javascript library that converts the output to latex? Mathematica…
Porizm
  • 531
  • 4
  • 16
6
votes
3 answers

Include apsrtable (or stargazer) output in an Rmd file

I tried to include the summary of an lm object in an Rmd file, using code like the following but it didn't work. Could you help me do that? ```{r summary_lm, results='asis', echo=FALSE, comment=NA} library(apsrtable) my_model <- lm(y ~ x, data =…
gd047
  • 29,749
  • 18
  • 107
  • 146
6
votes
1 answer

Basic R guide: verbatim ? with knitr in R

I'm producing an introductory R guide for my company. I'm doing a little demo of the R help function (shorthand) ?mean This is in a knitr chunk: <>= ?mean @ Output: `?`(mean) I would prefer that it outputs it as I type it, i.e. ?mean…
dynamo
  • 2,988
  • 5
  • 27
  • 35
6
votes
5 answers

Does any literate programming environment support on the fly results?

I am currently writing lots of small reports. Most of them are just value dumps with some graphs and illustrative comments. Is there a literate programming environment that let's me write my reports in an easy format (preferably markdown/latex and…
fho
  • 6,787
  • 26
  • 71
6
votes
5 answers

Sync Emacs AUCTeX with Sumatra PDF

With these lines in my init.el I am able to sync the Emacs LaTeX buffer with Sumatra: (setq TeX-source-correlate-mode t) (setq TeX-source-correlate-method 'synctex) (setq TeX-view-program-list '(("Sumatra PDF"…
antonio
  • 10,629
  • 13
  • 68
  • 136
6
votes
2 answers

Is it possible to use Rstudio to translate from .Rmd to LaTeX directly without pandoc?

Reproducible example (if you have rstudio): File | New | R Markdown Knit to html, saving as test : Navigate to working directory In a terminal (with pandoc installed) type pandoc -s test.md -t latex -o test.tex (results pasted here) Convert to…
RobinLovelace
  • 4,799
  • 6
  • 29
  • 40
6
votes
2 answers

How to create a selfdefined table-environment with the caption at the end of the table with LaTeX?

I have a custom table-environment defined with \newenvironment. I have a caption in this environment, but I want to have it at the end. My environment looks (a little simplified) like…
Mnementh
  • 50,487
  • 48
  • 148
  • 202
6
votes
3 answers

How to remove "Standard Error" column from xtable() output of an lm on R/RSweave/LaTeX

I'm currently doing some data analysis on population data, so reporting the standard errors in the tables of parameter coefficients just doesn't really make statistical sense. I've done a fair bit of searching and can't find any way to customize the…
Lucas Spangher
  • 339
  • 2
  • 14
6
votes
3 answers

LaTeX and R bundle?

I am using R to analyse statistical data and plot histograms, scatter plots etc. And then I have to export all plots as PDFs to manually include them in LaTeX report. I wonder if there is any way for simplification of this process? I would be happy…
Edward Ruchevits
  • 6,411
  • 12
  • 51
  • 86
6
votes
1 answer

inset \footnote{} into header with xtable and tabular.environment

Can I control the add.to.row command in xtable to place an \footnote{} in the LaTeX table output header? This is how far I've gotten it. (I would like to find a solution using xtable and not `Hmisc') require(xtable) x <- matrix(rnorm(60), ncol =…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
6
votes
1 answer

How to write a path with LaTeX?

How can I write a path with LaTeX? I want something like this: C:\\Program Files\\My Program\\my file.txt I have to use double slashes, not single ones.
Yerko Antonio
  • 657
  • 3
  • 8
  • 16
1 2 3
99
100