Questions tagged [tex]

TeX is a typesetting system, where the output is defined by command-sequences. Note that https://tex.stackexchange.com is specifically dedicated to TeX questions.

TeX is a typesetting system, where the output is defined by command sequences. It was designed and mostly written by Donald Knuth. TeX was designed with two main goals in mind: to allow anyone to produce high-quality books using minimal effort, and to provide a system that would give exactly the same results on all computers, at any point in time.

There is a Stack Exchange site dedicated to TeX, which is a good place to ask any TeX-related questions.

Resources:

872 questions
30
votes
5 answers

Can I create with LaTeX documents in the EPUB-format?

Is it possible to create a document for an ebook-reader in the EPUB-format with LaTeX/TeX? Which extension or program can be used?
Mnementh
  • 50,487
  • 48
  • 148
  • 202
29
votes
2 answers

Is it possible to render TeX math comments in VS Code?

There is such an extension in VS: TeX Comments and the example: I wonder if it's possible to do this in VS Code?
C.K.
  • 1,409
  • 10
  • 20
28
votes
8 answers

vim spell checking - comments only in LaTeX files

I use gvim to edit LaTex .tex file. I noticed that it checks spelling on the fly only for the commented text. If I have a mistake in a regular text - no underline. If I comment this text with % , the misspell is underlined immediately. What is…
Jakub M.
  • 32,471
  • 48
  • 110
  • 179
28
votes
5 answers

What are the relative merits of pdflatex?

Not sure this is a programming question, but we use LaTeX for all our API documentation and user documentation, so I hope it will go through. Can someone please explain what are the relative merits of using pdflatex as opposed to the "classic"…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
28
votes
3 answers

R Markdown Math Equation Alignment

I am writing a bunch of math equations in R Markdown inside Rstudio. And I want to align the content either to the left or center. However, seems like the align will align them to the right as default. I did some google and some of them told me to…
B.Mr.W.
  • 18,910
  • 35
  • 114
  • 178
26
votes
3 answers

LaTex - how to create boxes with fixed heights and widths, with enclosed text that is vertically and horizontally aligned?

This is for creating flashcards in LaTeX. My printer doesn't support duplex printing - which packages like flashcards and flacards seem to require - so I am trying to create a two-column arrangement as follows on each page: [Col1: Front side of the…
ARV
  • 6,287
  • 11
  • 31
  • 41
24
votes
3 answers

adding prefix to figure caption in LaTeX?

How can I change the caption of all figures in LaTeX to include a prefix? For example, make all figures appear as "Supplementary Figure 1", "Supplementary Figure 2", ... rather than "Figure 1", "Figure 2"? thanks.
user248237
24
votes
5 answers

matplotlib make axis ticks label for dates bold

I want to have bold labels on my axis, so I can use the plot for publication. I also need to have the label of the lines in the legend plotted in bold. So far I can set the axis labels and the legend to the size and weight I want. I can also set the…
red_tiger
  • 1,402
  • 3
  • 16
  • 32
23
votes
3 answers

TeX rendering, curly braces, and string formatting syntax in matplotlib

I have the following lines to render TeX annotations in my matplotlib plot: import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('text', usetex=True) rc('font', family='serif') voltage = 220 notes = r"\noindent $V_2 =…
Kit
  • 30,365
  • 39
  • 105
  • 149
23
votes
3 answers

How can I open a .tex file?

I'm trying to open a .tex file. I'm not sure I've got to the bottom of the (possibly) surprisingly complex process. I was told I could do it with Notepad++, which I proceeded to download. Here is the result: %sample file for Modelica 2011 Conference…
George Tomlinson
  • 1,871
  • 3
  • 17
  • 32
23
votes
8 answers

Double-Spacing an ACM Proceedings Article in LaTeX

I am using the acm LaTeX template and I have trouble making my paper double spaced. My LaTeX document looks like the following: \documentclass{acm_proc_article-sp} \usepackage{setspace} \doublespacing \begin{document} ... \end{document} When I…
reprogrammer
  • 14,298
  • 16
  • 57
  • 93
22
votes
1 answer

Extracting from .bib file with Raku (previously aka Perl 6)

I have this .bib file for reference management while writing my thesis in LaTeX: @article{garg2017patch, title={Patch testing in patients with suspected cosmetic dermatitis: A retrospective study}, author={Garg, Taru and Agarwal, Soumya and…
Suman Khanal
  • 3,079
  • 1
  • 17
  • 29
22
votes
7 answers

Does LaTeX have an array data structure?

Are there arrays in LaTeX? I don't mean the way to typeset arrays. I mean arrays as the data structure in LaTeX/TeX as a "programming language". I need to store a number of vbox-es or hbox-es in an array. It may be something like "an array of…
Rasto
  • 17,204
  • 47
  • 154
  • 245
22
votes
6 answers

To escape many _ in LaTeX efficiently

How can you escape _ without the use of \_? This is the example of the question word_a_a_a_a_a_b_c_dd There is one function which you can use for this. However, I cannot remember its name.
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
20
votes
1 answer

How can I combine cells in a row in a latex-table?

In a table I want to combine some of the columns, but not in all rows. How can I realize this with LaTeX?
Mnementh
  • 50,487
  • 48
  • 148
  • 202
1
2
3
58 59