Most Popular
1500 questions
65
votes
4 answers
How to right-align any line or word in a paragraph in any documentclass?
I have done some search for margin alignment in Latex but cannot find how can I right-align any single line?
For example, in a letter sometimes we put a Sincerely on the right. But without using specific documentclass, how can I align any single…
Henry
- 1,115
65
votes
1 answer
How can I adjust the horizontal spacing between legend entries in PGFPlots?
I am using legend columns=-1 to make a horizontal legend. However, the distance between the individual legend entries is too small for my taste. Is there a straightforward way to increase the horizontal spacing between individual legend entries?
Jannik Jochem
- 943
65
votes
3 answers
hyperlink name with biblatex authoryear
I am using biblatex with the authoryear styles.
So far I've been able to find everything I need easily in the excellent documentation, but I'm stuck on one thing.
With my current settings (below) citations only have the year hyperlinked to the…
robince
- 2,836
65
votes
2 answers
Applying options to already loaded package
Is there a way to apply some options to a package which is loaded in the cls file I am using? For instance, suppose that the cls file loads graphicx, and I want to apply the option demo to it from my tex file.
bkarpuz
- 2,437
65
votes
2 answers
Styleguide for LaTeX similar to the Google styleguides?
Even though I don't work at Google, the Google Styleguides have been very helpful for me in adopting consistent, readable style conventions for my code. Unfortunately, there is no Google Styleguide for LaTeX.
Q: For LaTeX, does anyone know of…
lowndrul
- 5,323
65
votes
1 answer
Differentiating between \hbox and \mbox
What are the differences between \hbox and \mbox?
Related:
This answer to "What are the different kinds of boxes in (La)TeX?" discusses different boxes in general.
This answer to "Difference between various methods for producing text in math mode"…
Lover of Structure
- 22,025
65
votes
2 answers
If LaTeX is only a macro package, why does it have its own executable?
From other answers on this site and the FAQ of the TeX User Group my understanding is that:
TeX is the original typesetting program, written by Knuth
Omega, eTeX, pdfTeX, XeTeX, LuaTeX are engines. They are variations of the original TeX program,…
Ralph
- 765
65
votes
3 answers
Extensible \vec instead of \overrightarrow
Instead of changing to \overrightarrow{}, which uses a usual extensible arrow and puts it above the argument, I would like to get an extensible \vec{} symbol. My intention is to obtain a new command \vect{}, for instance, which is exactly the same…
Manuel
- 27,118
65
votes
5 answers
Make two figures aligned at top
I am inserting two graphs (of different size) in the following way:
\begin{figure}[H]
\begin{center}
\includegraphics[scale=0.5]{graph1.eps}
\includegraphics[scale=0.3]{graph2.eps}
\caption{\label{fig:scaled_diss}}
\end{center}
\end{figure}
which…
dplanet
- 1,069
- 3
- 9
- 10
64
votes
7 answers
How to install TeX on Android phones?
I used VerbTeX app in my Android phone. But this app does not support XeLaTeX and requires an internet connection to be used.
Is there any distribution of TeX for Android?
How I can install TeX on my Android phone?
SAM
- 769
- 1
- 6
- 6
64
votes
2 answers
\star vs. \ast in formulas. Which one to use?
When you read a formula aloud you say "r and r-star are related by this formula".
If you write this formula down you normally write an r with a six-handed star, which would actually be an asterisk and not star (with 5 sharp hands) because it's…
Foo Bar
- 13,247
64
votes
1 answer
How can I achieve relative positioning in tikz
Possible Duplicate:
Relative positioning of nodes in TikZ
I'm creating a tree diagram in tikz and I know that calculating each point would be silly. For that reason, I want to place things in relative position to each other.
So, here are two…
Yotam
- 7,109
64
votes
2 answers
Should I load microtype with pdflatex?
Should I always load the microtype package with pdflatex?
Could it produce unwanted effects a naive user (like me) might ignore?
Are there any known issues as for compatibility with other packages?
In fact, I can't see any differences in the…
lpdbw
- 8,330
64
votes
4 answers
TikZ: Using Loop to Draw Grid of Nodes
I am trying to draw an Ising model (in my case, a grid of nodes with an undirected edge between adjacent nodes on the same row or column) using TikZ. I have the grid of nodes working nicely using a foreach loop, but I am having trouble drawing the…
void-pointer
- 3,156
64
votes
6 answers
How to generate PDF/A and PDF/X?
I have heard about PDF subsets PDF/A (for archival) and PDF/X (for printing). How to generate LaTeX documents like that?
I'm also interested in answers with plain TeX and ConTeXt, and hopefully with both pdfTeX and XeTeX engines.
Dima
- 12,427
- 8
- 40
- 53