Most Popular

1500 questions
142
votes
8 answers

Draw arc in tikz when center of circle is specified

It would be convenient sometimes to be able to draw an arc in tikz by specifying the center of the corresponding circle its radius the initial/final angle i.e., the "natural" way an arc is defined, instead of the "first point of the arc". Is there…
niels
  • 3,295
142
votes
3 answers

How to merge columns in a table?

I have this table, but wanted to format the first row. I like to match the two columns of first row, and last two columns of the same first row. Any suggestion on how to do that? \begin{table}[!h] \caption{Comparison of…
BrettHarry
  • 3,361
  • 6
  • 29
  • 23
142
votes
7 answers

What is the correct pronunciation of TeX and LaTeX?

Is it tex(tech)? Or Is it tex(like touch)? Lay-TeX? or La-TeX? Should I use TeX pronunciation in LaTeX?
141
votes
4 answers

How to cite a book chapter written by an author who is not the editor or author of the book with BibTeX?

I don't know how to cite a chapter written by an author who is not the editor or author of the book. How can I get the following citation? Grandstrand, O. (2004), 'Innovation and Intellectual Property Rights', in J. Fagerberg, D.C. Mowery and R.R.…
mmc
  • 1,451
141
votes
7 answers

How can I change the margins for only part of the text?

Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I…
Michael Underwood
  • 21,356
  • 13
  • 52
  • 41
141
votes
3 answers

How to use the placement options [t], [h] with figures?

I want to control the placement of figures. The paper that I am currently writing contains a lot of figures, resulting in some figures ending up in the bibliography section. Therefore I want to manually control their placement. I know options like…
Shashank Sawant
  • 6,557
  • 11
  • 37
  • 49
141
votes
4 answers

When not to use \ensuremath for math macro?

I have gotten into the habit of using \ensuremath around math components in every macro that I define, so that I can use the same macro inside and outside of math mode. But egreg's comments in \DeclareMathOperator won't take arguments has me…
Peter Grill
  • 223,288
141
votes
5 answers

Adding unnumbered sections to TOC

I have many unnumbered sections in my report (more than 100), all created with: \section*{section name} I want to find a way to easily add them all to the TOC (specifically to a minitoc). Since I use the * to remove the numbering, they won't appear…
Weslei
  • 4,015
  • 8
  • 32
  • 37
140
votes
3 answers

What is the difference between \relax and {}?

As I understand it, the point of \relax is to stop a macro from swallowing up subsequent material (such as whitespace). But {} (\bgroup\egroup) serves the same function. Why do we need both?
Mohan
  • 15,906
140
votes
3 answers

When do I need to invoke \phantomsection?

Inspired by question When do I need invoke \clearpage manually?: When do I need to invoke \phantomsection? In what condition is invoking \phantomsection necessary?
140
votes
2 answers

The \the command

I wanted to know if someone could point me to a reference where I could learn more about the \the command. Searching for "the" has been, without surprise, entirely unproductive. Even consulting "comprehensive" LaTeX command/macro lists has been…
user001
  • 7,964
140
votes
5 answers

Integrating Grammarly with online LaTeX editors such as overleaf?

Grammarly does not work with LaTex, but I believe it still can be helpful: I like to use Grammarly Chrome extension with an online Latex editor. I tried sharelatex, overleaf , authorea and verbosus on Chrome. Even though the Grammarly icon on the…
Sadegh
  • 2,190
140
votes
2 answers

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the approaches. So far, I've found three ways to deal with…
140
votes
8 answers

Why are there no alternatives to TeX, or, why is TeX still used?

I'm fairly new to TeX and LaTeX, having been drawn in by the Big Idea — creating a document programmatically. However, my experience of TeX (and its libraries — LaTeX, ConTeXt, …) has been almost entirely unpleasant. My impression is that TeX…
jameshfisher
  • 2,481
  • 4
  • 20
  • 10
140
votes
11 answers

How was TeX output visualised on screen, back in the day?

I've been using LaTeX for about two years; I'm only learning TeX now, to get a better understanding of the foundations. In Chapter 6 : Running TeX of his TeXbook (more specifically, on page 23), Knuth writes about how to get started with TeX: Go…
jub0bs
  • 58,916