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

Transform a tex source so that all macros are replaced by their definition

Is it possible to see the output of the TeX ‘pre-processor’, i. e. the intermediate step before the actual output is done but with all user-defined macros replaced and only a subset of TeX primitives left? Or is there no such intermediate step?
Debilski
  • 66,976
  • 12
  • 110
  • 133
6
votes
2 answers

Adding TexLive to TexStudio's understanding of path

Not sure if this is the right forum for this question (although this similar SO question encouraged me), but I can't get TexStudio to find my installation of TexLive. I'm running Linux Mint 17. I've followed the instructions here by adding…
LondonRob
  • 73,083
  • 37
  • 144
  • 201
6
votes
2 answers

Using knitr to write a paper for JSS

I am writing a paper for the Journal of Statistical Software documenting my package. Their style files have some facilities for Sweave output but nothing for knitr. I imagine i would have to customise the knitrout environment. I wanted to know if…
Marco Stamazza
  • 836
  • 9
  • 15
6
votes
3 answers

Modifying LaTeX Table of Contents to add a period after chapter/table/figure number

I need to add a period after the chapter/table/figure number in each line in Table of Contents/LoT/LoF. ie, right now it shows: TABLES 1 first 2 second but I need it to show: TABLES 1. first 2. second I know this can be done with the tocloft…
Reverend Gonzo
  • 39,701
  • 6
  • 59
  • 77
6
votes
6 answers

PHP-based LaTeX parser -- where to begin?

The project: I want to build a LaTeX-to-MathML translator in PHP. Why? Because I'm a mathematician, and I want to publish math on my Drupal site. It doesn't have to translate all of LaTeX, since the basic document-level stuff is ably handled by…
Alex Basson
  • 10,967
  • 6
  • 29
  • 44
6
votes
1 answer

How can I include hyperlinks in a table within an Sweave document?

I have a data frame containing hyperlinks that I would like to present as clickable links using Sweave. I know about xtable, but am not sure how to use it to treat the contents of a data frame as LaTeX commands.
David Lovell
  • 852
  • 6
  • 17
6
votes
2 answers

How to embed HTML page with javascript code in Beamer LaTeX?

How to embed HTML page with javascript code (precisely D3 library with some hover over capabilities) in Beamer LaTeX? Idea is to have a slide with HTML page embedded and during presentation I am able to hover over certain elements, i.e. it's not…
aza07
  • 239
  • 1
  • 6
  • 14
6
votes
2 answers

Need to reduce this whitespace, but seem to be at a limit at how much I can (GNUPLOT)

I'm producing contour plots on gnuplot and outputting eps files which I then run in latex. It is four contour plots, and I need them all on the same level of my page. I am close but; You can see the white space of the three remaining plots takes up…
AntiElephant
  • 1,227
  • 10
  • 18
6
votes
4 answers

Typesetting logic proofs in LaTeX

I'm trying to typeset some basic logic proofs in LaTeX. I need a multiple column layout, and I need the lines numbered on the right. I want to reset the numbering for each proof. The output should look like this: 1) (x)¬F A 2) (Ex)F 3)…
Seamus
  • 2,041
  • 6
  • 22
  • 42
6
votes
0 answers

Gephi: labelling nodes with LaTeX labels

I am currently working with Gephi and I would like to label the nodes of my network with some mathematical formulae. Is it possible to add labels written in LaTeX to nodes in Gephi? I did not find any reference on the internet, just how to export a…
Avitus
  • 734
  • 2
  • 14
  • 27
6
votes
2 answers

How to get real braces in ttfont, in latex

In latex, you can type \verb|{| and get a real brace in a typewriter font. But if you type {\tt \{ }, you get a sans-serif replacement. In code: \verb|{| % nice, real brace. {\tt \{ } % hideous fake brace. LaTeX Font Warning: Font shape…
Peter
  • 127,331
  • 53
  • 180
  • 211
6
votes
2 answers

Library for parsing BibTeX

I am looking for Javascript library for parsing BibTeX files. Ideally, I would like to be able to cite papers and generate publication lists from BibTeX database (files with .bib extension). Any tips regarding what I should go with? I am aware of…
blazs
  • 4,705
  • 24
  • 38
6
votes
2 answers

Way to show long division symbol )‾‾‾‾‾‾ in MathJax

Is there a way to format long division in MathJax so it looks like this: 125 (Explanations) 4)500 4 (4 × 1 = 4) 10 (5 - 4 = 1) 8 (4 × 2 = 8) 20 (10 - 8 = 2) 20 (4 × 5 = 20) …
Jamie Twells
  • 1,924
  • 4
  • 26
  • 56
6
votes
0 answers

Exporting to PDF in emacs org-mode

I'm learning Emacs, and am currently focusing on orgmode, but am having some problems. I created a test file (named orgtest.org) with the following contents: * h1 ** s1 1) l1 2) l2 3) l3 ** s2 * h2 And I made an attempt at exporting it to…
Dodgie
  • 643
  • 1
  • 10
  • 17
6
votes
2 answers

How to write an if-then statement in LaTeX using the value of 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 if-then formulation in LaTeX in order to create a…
Berk U.
  • 7,018
  • 6
  • 44
  • 69