Most Popular
1500 questions
87
votes
2 answers
Write 'text' **correctly** in equations
Although many have attempted to explain the difference among \mathrm, \textrm, \textnormal and \text (and others?), I found them misleading.
See for example the LaTeX's Wiki \mathrm explanation
Why is it wrong? Let's try all of them within an…
Atcold
- 1,727
87
votes
12 answers
Is it possible to produce a PDF with un-copyable text?
Is it possible to produce a PDF with un-copyable text? I mean, when you want to copy text from the PDF, you can't copy it or what you copy is nonsense characters.
warem
- 3,239
87
votes
2 answers
Understanding how references and labels work
I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.
For example:
\begin{figure}
\label{fig:area_Treasuries}
\caption{Treasuries as a portion of total financial flows.}
\centering
…
zpesk
- 1,035
87
votes
1 answer
Using a 'corporate author' in the "author" field of a bibliographic entry (spelling out the name in full)
I want to list a company name in the author field of a bibliographic entry:
@book{CUDA,
author = {NVIDIA Corporation},
title = {NVIDIA CUDA Compute Unified Device Architecture Programming Guide},
publisher = {NVIDIA Corporation},
year…
aterrel
- 973
86
votes
2 answers
Positioning relative to page in TikZ
Consider the following:
Let's say I have a dot. I would like to be able to position this dot anywhere on the page: at the corner, in the middle, anywhere.
So far, despite poring over manuals and experimenting, I can not figure out how to do this. It…
Paul
- 1,433
86
votes
3 answers
How do you center equations?
I can't seem to center equations without causing some weird formatting problem. The following results in the R being dropped:
\begin{center}
E(R_{i,t})=E(\alpha_i)+E(\beta_{i,F_1 } F_{1,t})+E(\beta_{i,F_2 } F_{2,t})+\ldots+E(\beta_{i,F_m }…
Vish
86
votes
6 answers
Generating smartphone-readable pdf
Often my students want to look at my lecture notes on their phones. Obviously no one wants to do that routinely, but it is often convenient if you do not have a paper copy to hand and you just want to look up an isolated fact. I have A4 size pdfs…
Neil Strickland
- 963
86
votes
3 answers
Difference between various methods for producing text in math mode
What is the difference between \text, \textrm, \textnormal, and \mbox (and possibly other commands commonly used to produce text in math mode)?
Various (La)TeX tutorials teach different methods, and I am sure that there is either a best one or there…
Lover of Structure
- 22,025
86
votes
5 answers
\parbox vs. minipage: Differences in applicability
Lamport, LaTeX: A document preparation system, states on p. 104:
There are two ways to make a parbox at a given point in the text: with the \parbox command and the minipage environment. They can be used to put one or more paragraphs of text inside…
lockstep
- 250,273
86
votes
3 answers
How to change line color in tabular?
How can I change the color of the lines (the frame) in a tabular environment? In the following MWE:
\begin{tabular}{c|c|c}
a&b&c \\ \hline
d&e&f \\ \hline
g&h&i
\end{tabular}
I would like the horizontal and vertical lines of the table to have, say…
Loic Rosnay
- 8,167
86
votes
8 answers
Mathematical symbol for disjoint set union
In our lecture script, we use the notion of disjoint set union. It uses a special symbol to differentiate the disjoint from the usual set union, where we add an extra dot inside of the \cup symbol. Is there something like a \bigudot? Or any other…
jonny
- 1,117
86
votes
3 answers
Where can I find collections of bibliography styles?
Is there a central 'warehouse' or, perhaps, a 'list of collections', of bibliography styles?
My preference is for BibLaTeX, but I'm sure answers for BibTeX would also be helpful.
I don't have any specific requirements, but I would be interested in…
Brent.Longborough
- 27,991
86
votes
3 answers
Understanding minipages - aligning at top
I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all works. I tend to think of a minipage as a regular…
Peter Grill
- 223,288
86
votes
7 answers
Rotated column titles in tabular
I'd like to create a chart where the column titles are rotated, as per this toy example:
I used the rotating package to generate the above. It has certain shortcomings: the rotate command doesn't leave space for the titles, so I have to manually…
PulpSpy
- 1,529
86
votes
3 answers
Frequently loaded packages: Differences between pdfLaTeX and LuaLaTeX
I'm in the process of switching my LaTeX document from pdflatex to lualatex. Similar to Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX I would like to know, what are typical packages loaded with LuaLaTeX and which typical…
apepper
- 1,085