All Questions

Filter by
Sorted by
Tagged with
43 votes
3 answers
9k views

Which command should I use for displayed equations?

A number of related questions have already been asked about this issue: align vs equation which is preferable to what to do with this hyperref note on amsmath and even eqnarray vs align But I'm ...
user avatar
2 votes
2 answers
692 views

Changing the way authors' names are displayed in a citation?

For example, currently if I do a \cite{name} I get this: (AUTHOR1, 2000) (AUTHOR1; AUTHOR2, 2000) (AUTHOR1; AUTHOR2; AUTHOR3, 2000) What I'd like is to have et al. beyond 2 authors and have "and" ...
user avatar
  • 3,977
49 votes
7 answers
39k views

Included PNG appears blurry in PDF

This is a follow-up to Included png appears too big in PDF, but it's a separate issue so I'll put it in its own question instead of burying it in comments. The problem: an included PNG, included ...
user avatar
15 votes
2 answers
6k views

How does TiKZ calculate positioning of picture on page?

I'm trying to use \beginpgfgraphicnamed to externalise some complex figures in a large document, using the latest released version of TiKZ (2.00). This produces standalone PDF images but for me the ...
user avatar
34 votes
1 answer
19k views

What version control system should I use for my LaTeX documents? [closed]

The answers to this question have convinced me I want to start using some kind of version control system. The question is, which should I use? First this is mainly just for myself, not for ...
13 votes
4 answers
8k views

Included png appears too big in PDF

I'm a beginner with LaTex and writing an article in it (letter-sized). WinEDT and MikTeX (versions seen in the log). I have a PNG chart (obtained from R/ggplot2) which is 471 x 335 pixels and which I'...
user avatar
15 votes
5 answers
7k views

Pushouts and pullbacks

How do I typeset that little symbol which indicates that a commutative square is a pushout or pullback square? I usually draw my diagrams in XY-pic, so I'd be most interested in how to do it there. ...
user avatar
  • 251
608 votes
13 answers
583k views

Where do I place my own .sty or .cls files, to make them available to all my .tex files?

I know how to define a package or a class, but how do I make it available (to myself) at all times? Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to ...
user avatar
  • 14.9k
8 votes
1 answer
5k views

Define command for bold list-item

I have a set of commands for producing various kinds of specific list-items, such as \newcommand{\staritem}{\item[$\star$]} % not really, but you get the gist All the ones I currently have can be ...
user avatar
  • 14.9k
21 votes
3 answers
21k views

Include section number in list number

As a follow-up to this question, I'd like to know if it is possible to automatically include the current section number, including all nesting levels, in the list number. How do I accomplish this? ...
user avatar
  • 14.9k
12 votes
1 answer
4k views

Can latexdiff be used for mathematics documents?

I've been pulling my hair out trying to get latexdiff to work with a mathematics document. It produces output that latex can't compile if one of the files is this: \documentclass{amsart} \begin{...
user avatar
11 votes
2 answers
905 views

What is "TeX daemon" and why and how is it used?

Recently I've come across a question that asks about "TeX daemon" for Windows. I always thought that nature of TeX is compilation of document sources. Why would anyone use a daemon for that? So, ...
user avatar
  • 3,193
89 votes
13 answers
29k views

What are the advantages of using version control (git, etc.) in LaTeX documents

Why would I need to use version control with my LaTeX documents? I know people who do it, and I've seen questions about it on here and on SO, but I haven't understood what value there is to doing it......
user avatar
  • 70.6k
2 votes
1 answer
1k views

TeXlipse installation problems

I have installed the most recent version of Eclipse (version 1.3.0.20100617-0521, build id 20100617-1415) and am trying to install the TeXlipse plugin. I've followed the installation guide thoroughly (...
user avatar
  • 14.9k
26 votes
4 answers
4k views

Problem with defining shortcuts for TikZ matrices

For answering a question yesterday I wanted to define a shortcut for creating a matrix inside a tikzpicture. As a minimal example, consider \newcommand\mymatrix[1]{ \begin{tikzpicture} \...
user avatar
  • 85.4k
13 votes
1 answer
7k views

Include pdf pages in a latex document as appendix

I am writing a report and would like to include as appendix another document which is in pdf format.
user avatar
7 votes
4 answers
991 views

TeX daemon for Windows

A simple question (in theory): is there any (La)TeX distribution for Windows that is capable of running as a daemon? I am not aware that either MiKTeX or TeX Live are capable as running as daemons on ...
user avatar
  • 788
6 votes
1 answer
2k views

Custom title font in LyX

(My first problem of compiling at all is solved, so I'm now posing a slightly different question). Hi, I'd like some help with producing handouts for my students. I'm using LyX as I'm far from fluent ...
user avatar
323 votes
11 answers
184k views

How to install "vanilla" TeXLive on Debian or Ubuntu?

Debian and Ubuntu have very good texlive packaging. But I'd like to use tlmgr to have a more fine-grained control about upgrades and which packages I want to be installed. So how do I install "...
user avatar
  • 12k
18 votes
5 answers
4k views

What is the best way to typeset spectral sequences?

While writing articles about algebraic topology, I have had to typeset spectral sequences. These are tools for calculating homology and cohomology. Examples appear on page 10 of this book by Hatcher. ...
user avatar
  • 281
10 votes
1 answer
3k views

Defining a custom ‘wrapfig’ environment

[ This is an updated version of https://stackoverflow.com/questions/3233031/latex-defining-a-custom-wrapfig-environment ] The wrapfig package interacts badly with the setup and teardown done by \...
user avatar
  • 2,855
103 votes
6 answers
66k views

Which graphics formats can be included in documents processed by latex or pdflatex?

There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know ...
user avatar
  • 1,173
11 votes
3 answers
8k views

Insert code into a latex doc. without leading tabs

When I write latex I usually indent my sections like this (it allows easier folding in vim, is like reading code, etc). section{section} bla bla bla bla bla subsection{a} bla bla ...
user avatar
11 votes
1 answer
2k views

Full-page figure without extraneous whitespace in text?

My question is along the lines of How do I ensure that figures appear in the section they're associated with?, but slightly different. I have a figure that occupies a full page. By default, LaTeX ...
user avatar
523 votes
4 answers
75k views

What's the difference between \newcommand and \newcommand*?

I just spotted someone use \newcommand* in an answer and realised that I'd never quite sorted out in my head what the star (asterisk) was there for. (This one is practically impossible to search for ...
user avatar
5 votes
2 answers
10k views

Why does the less than equal to symbol not appear as intended in the following code?

When I use the following code on stats.stackexchange.com (which is powered by MathJax) the \le does not render properly. Is this a bug in MathJax or am I not using the \le symbol properly? $X_3 = \...
user avatar
28 votes
8 answers
5k views

ConTeXt editors

There is a very active question about LaTeX editors and IDEs. I personally use Vim with LaTeX-suite for any LaTeX editing, and I am very happy with it. Lately I began to use ConTeXt more and more. ...
user avatar
  • 18.7k
8 votes
3 answers
392 views

How does one define synonymous options in style/class files?

I want to be able to pass two options to a package (actually, a class) and have them be the same. What's the best way to do this? That is, I want: \documentclass[norsk]{myclass} and \...
user avatar
18 votes
2 answers
901 views

Is it good style to use \newline instead of just leaving a blank line in order to get a new paragraph?

The two alternatives in my question of course lead to very different results. If you use \newline, then your paragraph will not begin indented. Also the spacing between the paragraphs differs. I am ...
user avatar
  • 449
14 votes
9 answers
5k views

For movie15-based 3D embeds, how to get u3d files?

The movie15 package (an interface to embed movies, sounds and 3D objects into PDF documents for use with LaTeX as well as pdfLaTeX) requires 3D files to be in u3d format for embedding into pdf. This ...
user avatar
26 votes
3 answers
5k views

Vertically asymmetric size variation for parentheses

One of the difficulties I have with writing formulas in LaTeX is that the standard sizing tools for the variable-size operators (parentheses, etc.) do not account for "high" symbols and "low" symbols ...
user avatar
18 votes
3 answers
16k views

How to link to specified page of an outer pdf document?

Recently, I made a beamer presentation and I want to link to a pdf I have made before, but I can only link to the first page of pdf document using the command: \href{doc/mydoc.pdf}{thedoc} and I ...
user avatar
  • 467
298 votes
12 answers
842k views

How to typeset subscript in usual text mode?

It's easy to make subscripts in math mode: $a_i$. How do I make a subscript outside math environment, likethis?
user avatar
  • 3,193
3 votes
3 answers
1k views

Installing bibexport on Mac OS X

I recently installed bibexport on my mac (10.5). This command lets you export a small document-specific .bib file using only the references that you cite in that particular document. This is useful ...
user avatar
25 votes
5 answers
12k views

In TikZ, is it possible to nest nodes?

My use case: I am drawing chemical schemes. Each molecule contains several nodes. However, I also want to put each molecule into a "wrapper" node, so that I can use the usual anchors in combining ...
user avatar
  • 1,547
14 votes
3 answers
2k views

How to keep my TeX Live installation up to date?

What is the recommended way to keep my TeX Live installation up to date? Is there any package manager (like MiKTeX on Windows) that could help me with this? If it helps I'm running on Mac OS X and my ...
user avatar
96 votes
3 answers
74k views

How can I typeset the date/time at compile time?

For printed drafts of my papers, I would like to add a timestamp on every page with the date/time when the document was last compiled. Is there any LaTeX command that produces the current date/time at ...
user avatar
17 votes
2 answers
693 views

How to obtain perfect greyness with TeX?

Greyness, or typographic color is the apparent blackness of a block of text. I would be curious how you deal with improving it in TeX. How much can TeX's inherent line-breaking algorithm be fine-tuned ...
19 votes
4 answers
2k views

What to do with this hyperref note on amsmath?

http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/ has this note copied below: amsmath ------------- The environments equation and eqnarray are not supported too well. For ...
user avatar
  • 5,297
103 votes
6 answers
74k views

Why is the MacTeX distribution so large? Is there anything smaller for OS X?

I would like to know how to install LaTeX on Mac 10.6 or higher. But the MacTeX is some 1.28 GB file! Is there a smaller distribution I could install? What exactly is TeX Live?
user avatar
  • 1,131
14 votes
2 answers
3k views

What font package do I use to get the vertical Russian/German style integral signs?

What font package do I use to get the vertical Russian/German style integral signs? (subject says all)
user avatar
18 votes
1 answer
22k views

Passing options to the newenvironment

I have a GrayBox environment defined as follows. It is used \begin{GrayBox}...\end{GrayBox} or \begin{GrayBox}[\textwidth]...\end{GrayBox}, that is, it can pass optional parameter to the environment. ...
user avatar
  • 5,651
19 votes
4 answers
2k views

BibTeX style that groups by author

I'm looking for a BibTeX style that formats the reference list at the end in the way shown below. The key points are: The references are sorted by the (list of) authors, and then each author has a ...
user avatar
  • 1,904
7 votes
4 answers
4k views

Parameter passing to \verb|| environment

I happen to write the following code over and over again. {\color{blue}\verb|>|} {\footnotesize\verb|HI|} So, I came up with the following code to make it a command. \newcommand{\result}[2]{% {\...
user avatar
  • 5,651
13 votes
2 answers
9k views

\footnotemark and \footnotetext in minipage

The Tufte handout class give a neat layout that shows the footnote at the right hand side not bottom line. But, when I use the minipage with tufte-handout, and if the minipage has the footnote, the ...
user avatar
  • 5,651
186 votes
5 answers
32k views

Why is LaTeX3 taking so long to come out?

I feel as though I have been hearing about the LaTeX3 project for a very long time. Why is it taking so long for it to come into fruition? Are there major technical difficulties, or is it purely a ...
user avatar
  • 9,804
2 votes
1 answer
1k views

Adding keywords to entries in bib file with a view to using JabRef as a file explorer / manager

I have created a bib database of maths textbooks, articles, notes etc. and I want to use JabRef to assign keywords to each entry to take advantage of the file management functionality which would ...
103 votes
50 answers
31k views

What professions use TeX/LaTeX besides CS?

TeX and LaTeX are widely used in Computer Science. What other academic disciplines or professionals use it?
14 votes
2 answers
2k views

How do I define new environments, and why would I want to?

I've read about defining new, custom environments that can be used like \begin{thisismyown} % do some funky stuff \end{thisismyown} How do I define thisismyown, and why would I want to?
user avatar
  • 14.9k
8 votes
3 answers
433 views

How to create an index entry for “|| operator”?

Following the \index quoting rules (prepend a reserved character with a double-quote), I do \index{"|"| operator} but the entry never shows up in the index. Doing these (similar) things does work as ...
user avatar
  • 183

15 30 50 per page