Most Popular

1500 questions
78
votes
6 answers

LaTeX symbol for "does not divide"

What is the correct way to make the "does not divide" symbol in plain LaTeX 2e? I'm talking about the symbol that is a vertical bar with a slash through it. I prefer not to install AMS or other packages, but instead to use plain LaTeX.
user448810
  • 5,615
78
votes
3 answers

Example environment?

I was wondering if there is any formal environment for specifying 'examples' through out the text. If not, which environments do you recommend?
Md Oliya
  • 915
78
votes
3 answers

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only works for \rule situations; i.e. it can't be…
jevon
  • 1,190
78
votes
2 answers

Multiple citations with pages using BibLaTeX

How can I do multiple citations with page numbers using bibLaTeX/biber? I have tried \cite[2,3,4]{ref1,ref2,ref3,ref4} but it doesn't work.
SpmP
  • 1,201
78
votes
11 answers

How to upload LaTeX-generated pdf paper to arXiv without LaTeX sources

arXiv is smart enough to detect whether your PDF is generated by LaTeX. If it is, arXiv asks for the sources of the PDF instead of the PDF file itself. This is really annoying and inconvenient. I ask a way to fool the arXiv and avoid PDFs being…
78
votes
7 answers

Adding a large brace next to a body of text

I'm writing a short document listing some chronological events. I want to pick out a period with a big brace. Here's a quick mockup: What's the best way to do this? Can I set the size declaratively - ie from line A to line B - somehow?
78
votes
4 answers

Tabular: title above and caption below?

I have a table that I would like to put the Title above and a caption below. Intuitively (though I know how troublesome intuition can be in something like LaTeX), I should be able to do as below: \begin {table}[H] \caption {Table Title}…
Alec
  • 1,439
78
votes
1 answer

What is the difference between \eqref and \ref?

Is there any difference between \eqref and \ref? I used both of them in my document using the package classicthesis and saw no difference in the result. Is there any specific situation in which I should use \eqref or \ref?
77
votes
2 answers

LaTeX Introductions in languages other than English

Inspired by What are good learning resources for a LaTeX beginner?, I thought that it might be useful to collect a list of the many brilliant introductory LaTeX books and tutorials written in languages other than English. I think that such a list…
Jesper Ipsen
  • 2,664
77
votes
11 answers

Utility to Strip Comments from LaTeX Source

I've a LaTeX source. I'm ready %for submission %But first I would like to strip its comments. So I hope there are 100\% auto ways to get this done. \begin{comment} Because there are subtle ways to mess it up. \end{comment} Is there a utility…
Richard
  • 5,723
77
votes
4 answers

What is the difference between \let and \edef?

When you write \edef\a{\b} \let\a\b the results are often identical. What is the difference between these two commands? When do they behave the same? When do they not? (The question isn't for me; inspired by this question comparing \let and \def,…
77
votes
8 answers

Reasons to use plain TeX

Given the active development in LaTeX and ConTeXt, and how LaTeX insulates the writer from typographical details and ConTeXt gives the user extensive control over formatting thus taking useful complementary approaches (see ConTeXt wiki), are there…
user2265
77
votes
4 answers

Advantages and disadvantages of fully expandable macros

As I currently understand them, fully-expandable macros are analogous to pure/effect-free functions in functional programming. Correspondingly, things that are not expandable, such as \def, are effectful computations -- they can't be "evaluated"…
77
votes
5 answers

How to draw an ellipse?

As I know, I can draw a circle using: \draw (1,0) circle (2) I try this kind of method to draw a \draw ellipse, failed. Would you tell me how to draw a ellipse? What's wrong with the code below? The code…
sweetyBaby
  • 3,029
77
votes
5 answers

Label rows of a matrix by characters

How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix \[ \begin{array}{lc} \ Mat_{\varPhi to M} & \left(\begin{array}{@{}ccccc@{}} 1 & 1 & 1 & 1 & 1 \\ …
Chouria Ali
  • 1,303