11
votes
3answers
1k views

Package switches within the document?

Many packages come with switches, to be defined in the preamble. Is it possible to hit such a switch also in the body of the document? Example: Can I switch from the functionality of ...
8
votes
2answers
8k views

How to type the three dots in a product?

I have to type the product of n variables, $x_1\cdot\ldots\cdot x_n$. Although maybe this is semantically the right way (like it is for the sum), it doesn't look very well. What should be, ...
28
votes
2answers
3k views

Drawing a hypergraph

What is the proper way to draw a hypergraph? Is there a package to do this, or is there an easy way to draw such diagrams with a common drawing method like tikz? I'm trying to draw something like
2
votes
2answers
708 views

How to get rotating and/or rotfloat to work

Using LyX 1.6.5/MacTex-2009 my floating sideways figures only occupy half the page and the other half of the figure disappears off the left margin. I tried the rotfloat and rotating packages and they ...
40
votes
3answers
3k 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 ...
2
votes
2answers
569 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" ...
36
votes
7answers
15k 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 ...
13
votes
2answers
4k 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 ...
20
votes
1answer
6k 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 ...
8
votes
4answers
4k 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 ...
10
votes
3answers
2k 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. ...
212
votes
12answers
135k 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 ...
7
votes
1answer
4k 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 ...
9
votes
3answers
5k 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? ...
10
votes
1answer
2k 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} ...
9
votes
2answers
590 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, ...
70
votes
12answers
13k views

What are the advantages of using version control (git, CVS 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 ...
2
votes
1answer
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 ...
14
votes
2answers
2k 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} ...
12
votes
1answer
3k 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.
6
votes
4answers
706 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 ...
6
votes
1answer
1k 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 ...
151
votes
9answers
54k 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 ...
14
votes
4answers
1k 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. ...
6
votes
1answer
1k views

Defining a custom ‘wrapfig’ environment

[ This is an updated version of http://stackoverflow.com/questions/3233031/latex-defining-a-custom-wrapfig-environment ] The wrapfig package interacts badly with the setup and teardown done by \begin ...
61
votes
6answers
8k 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 ...
5
votes
2answers
2k 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 ...
9
votes
1answer
1k 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 ...
204
votes
4answers
20k 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 ...
3
votes
2answers
4k 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 = ...
19
votes
7answers
2k 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. ...
7
votes
3answers
336 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 ...
16
votes
2answers
663 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 ...
8
votes
9answers
3k 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 ...
18
votes
3answers
2k 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 ...
10
votes
3answers
4k 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 ...
106
votes
11answers
145k 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?
1
vote
2answers
530 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 ...
19
votes
5answers
6k 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 ...
13
votes
3answers
1k 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 ...
50
votes
2answers
23k 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 ...
15
votes
3answers
552 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 ...
18
votes
4answers
1k 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 ...
54
votes
5answers
22k 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?
9
votes
2answers
1k views

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

What font package do I use to get the vertical Russan/German style integral signs? (subject says all)
4
votes
1answer
6k 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. ...
18
votes
4answers
1k 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 ...
5
votes
3answers
2k 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]{% ...
7
votes
2answers
5k 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 ...
88
votes
4answers
12k 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 ...

15 30 50 per page