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
2 answers

Right align (an address) in Pandoc

Right alignment comes handy for letter addresses. Unfortunately, according to the author John MacFarlane: The pandoc document model does not allow for alignment other than in tables, so the alignment information is simply ignored. We can resort to…
antonio
  • 10,629
  • 13
  • 68
  • 136
6
votes
1 answer

Stargazer Omit test statistics

When using stargazer there is an argument, omit.stat, however I need to remove the test statistics from below my coefficient values and it isn't an argument listed in the stargazer package documentation (PDF) (pp. 14–15). Does anyone know how I…
DrewH
  • 1,657
  • 3
  • 14
  • 10
6
votes
1 answer

How to define in LaTeX a new counter that includes the chapter number too?

Given I have defined a new environment for which a counter is maintained: \newcounter{bioclipse} \newenvironment{bioclipse}[2][]{ \begin{shaded}\refstepcounter{bioclipse}\par\medskip\noindent% \textbf{Bioclipse…
Egon Willighagen
  • 1,621
  • 4
  • 19
  • 36
6
votes
2 answers

a bib style to capitalize book titles but not paper titles

I've heard that title capitalization in bibliography is the bibliography style's role (the bst file). Is there a bibliography style file that capitalizes book titles but not paper titles? For example, a paper title should be like Hello world and…
Yoo
  • 17,526
  • 6
  • 41
  • 47
6
votes
4 answers

Writing text on LaTeX \part page

I was wondering if it is possible to write an introductory text on the page generated by \part{...} in LaTeX? I have tried to insert text on it, but it will just generate a blank page before the text. Regards, Kenneth
Kenneth Fuglsang
  • 63
  • 1
  • 1
  • 3
6
votes
3 answers

Latex Letter: From Address Left aligned

This is my first time using Latex to write a letter. I am using the letter class. When I use: \address{100 From Address \\ City, State \\ Pin} The from address becomes right aligned. Is there someway I can make this left aligned. The format of the…
Aishwar
  • 9,284
  • 10
  • 59
  • 80
6
votes
3 answers

How to reduce the EPS-format output of gnuplot?

I have a big amount of data from which I would like to create a scatter plot and include it in my LaTeX document. I use gnuplot to generate the scatter plot with the epslatex output format to be able to import the data to my LaTeX document…
MikeL
  • 2,369
  • 2
  • 24
  • 38
6
votes
3 answers

Three backslashes in outreg2 tex tables?

I'm having trouble with the user-written outreg2 package used in Stata. When I build the output with the tex(frag) option, the resulting tables have three backslashes at the end of each line rather than just two, resulting in a "misplaced alignment…
Nils Gudat
  • 13,222
  • 3
  • 39
  • 60
6
votes
4 answers

Error "Too many open files" in pdflatex

When compiling a latex document with 15 or so packages and about five includes, pdflatex throws a "too many open files"-error. All includes are ended with \endinput. Any ideas what might cause the error? The error seems to depend on how many…
Martijn
  • 5,471
  • 4
  • 37
  • 50
6
votes
1 answer

converting a multidimensional ctab()-table to LaTeX format

I am using ctab() from the catspec package to generate a 3-way table. But is there any way to format the output latex-ready? This would seem like a very simple thing to do: library(catspec) ctab(Titanic) Survived No Yes Class…
user702432
  • 11,898
  • 21
  • 55
  • 70
6
votes
1 answer

Latex expression in R legend

What should I do to have R correctly show in a legend the equivalent to this latex expression? \alpha \leq \beta The following commands handle \alpha and \beta correctly, but not the \leq symbol: expression(paste(alpha, " leq ",…
mossaab
  • 1,812
  • 4
  • 23
  • 44
6
votes
2 answers

Test statistic (e.g. chisquare test) inside latex table using the tables-package in R/Knitr/Rstudio

I would like to use the tabular()-function from the tables-package to do a cross-tabulation of two variables (e.g. v1 and v2), and present the p-value of the chisq-test in the table. It is easy to get the crosstabulation, but I cant get the p-value…
Rasmus Larsen
  • 5,721
  • 8
  • 47
  • 79
6
votes
1 answer

Tables created from latex() from the Hmisc-package are horisontally left-aligned instead of being centered horisontally in the pdf-document

Using R-studio and Knitr to create a pdf I am unable to get the tables centered horisontally. As seen from the example below, it works fine using xtable(), but the latex()-tabels are all left-aligned. As I understand the Hmisc-documentation, tables…
Rasmus Larsen
  • 5,721
  • 8
  • 47
  • 79
6
votes
3 answers

Package for drawing queue networks with LaTeX?

Does anyone know how to draw queue network graphs that can be included within LaTeX documents?
frnk
  • 61
  • 1
  • 2
6
votes
2 answers

matplotlib mathtext \frac is too small

When I give matplotlib a annotation string such as '$\frac{A}{B} = C$' and I specify a fontsize of 18, the A and B are rendered at 12.6 pt, while the C is rendered at 18 pt. I want A, B, and C to all be the same size. How do I do this? In a LaTeX…
Stretch
  • 1,581
  • 3
  • 17
  • 31
1 2 3
99
100