Most Popular

1500 questions
98
votes
3 answers

Multiline comment

In tex there is a way to do a comment multiline like in C, C++ /* comment */ or in HTML ? I'm currently using \ifx \ifx true false My multiline comment that will not be in the output pdf \fi but this may create a problem if I put…
Alberto
  • 1,887
98
votes
5 answers

Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print "as if" they were black?

I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, so it doesn't matter and it's distracting. Other…
Seamus
  • 73,242
98
votes
10 answers

Where do I find out how a command/environment is defined?

Say I want to redefine the itemize environment, or make a modified version of it. I want to know how it is currently defined. Where do I find this information? If it's some particular package command, I can just look at the .sty file for that…
Seamus
  • 73,242
98
votes
3 answers

How can I center a too wide table?

I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the center environment but this doesn't seem to help.
Dejan
  • 1,562
98
votes
2 answers

How can I reduce padding after figure?

\documentclass{mwrep} \usepackage[draft]{graphicx} \usepackage{hyperref} \usepackage[all]{hypcap} \makeatletter \g@addto@macro\@floatboxreset\centering \makeatother I use figures with…
Ichibann
  • 8,381
98
votes
3 answers

What are the new features in TikZ/pgf 3.0?

Since the December 20, 2013, we have new major release of the wonderful TikZ/pgf package: version 3.0.0! 1 Unfortunately, I was not able to find a nice human readable list of changes, that goes to some depth and maybe even provides some examples.…
Ingo
  • 20,035
98
votes
3 answers

Difference between \if and \ifx

I try to understand the subtleties of TeX programming, but it is not always easy. For example, in the following code : \def\first{abc} \def\second{abc} \ifx\first\second OK!\else false \fi I understand why the output is OK!. But I do not…
Fabrice
  • 3,636
  • 1
  • 21
  • 29
98
votes
3 answers

Add notes under the table

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet. Now I'm trying to add a table with notes right underneath it, like in this table for instance: Since the \caption{} is used as a title above the table, I…
user3979
98
votes
7 answers

How to make Latexmk use makeglossaries?

Is there a way to make Latexmk invoke makeglossaries (part of the glossaries package)? Specifically I want to use latexmk to compile a LaTeX document that uses the glossaries package to produce a glossary. Currently I'm using this rather clumsy…
Giel
  • 1,753
97
votes
9 answers

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
97
votes
4 answers

\ref should use enumerate label name

I have done this: \begin{enumerate} \renewcommand{\labelenumi}{\textbf{S.\theenumi}} \item a \item \label{l} b \item c. goto \ref{l} \end{enumerate} The \ref just uses the enumerate number. But I want it to be the full enumerate label. I also could…
Albert
  • 2,707
97
votes
12 answers

How to install the algorithms package?

According to my ubuntu 11.04 my texlive is the latest version. But when I tried to \usepackage{algorithm} it says file algorithm.sty is not found. I read the algorithm.pdf manual and tried latex algorithms.ins in terminal and again it says file not…
Mark
  • 1,095
97
votes
3 answers

How do I make Tikz make a curved arrow from one node to another when my nodes are in a straight line?

I have this code \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=stealth',auto,node distance=3cm, thick,main node/.style={circle,draw,font=\sffamily\Large\bfseries}] …
Michael A
  • 1,525
  • 2
  • 11
  • 16
97
votes
6 answers

Block quote with big quotation marks

How can I create a block quote enviroment with big quotation marks similar to the Cquote Template of Wikipedia? Additionally it would be nice to place both quotation marks and quote in a colored box and to have the author closer to the citation.
Emerson
  • 3,530
97
votes
5 answers

Can I get a \widebar without using the mathabx package?

One can use \bar to put a bar over a letter in math mode, but often the bar isn't wide enough. An alternative is \overline, but this isn't an accent, so it doesn't take into account the skew of the letter. In the following example, the bar extends…
Hendrik Vogt
  • 37,935