24
votes
2answers
12k views

How to reference \paragraph?

It is well-known that \section environment may be assigned a label \label{refname} and then the refname may be used in order to reference this section: \section{My nice section} ...
19
votes
1answer
3k views

How to reference ranges rather than separate numbers?

I would like to do the following: Just type something like ... we describe this in sections \mycoolref{winter,spring,summer,fall} ... and it will be typeset as something like ... we describe ...
1
vote
2answers
963 views

How to enforce pslatex to use Computer Modern font for math?

How can I enforce pslatex to use Computer Modern font for math? (I know, it would be much easier to use pdflatex, but my publisher uses pslatex.) EDIT: Example: ...
0
votes
2answers
585 views

Package for displaying source code [duplicate]

Possible Duplicate: How best to include programming source code in LaTeX documents? What is a good way to display program source like c++/lisp code in a latex document?
0
votes
4answers
1k views

Write LaTeX with LaTeX [duplicate]

Possible Duplicate: Typesetting LaTeX Source Code Hi all, i would like to know suggestions on how can I write an explicative text of LaTeX using LaTeX. Till now I use ...
7
votes
4answers
14k views

Texlive installation is missing tlmgr, how to fix?

I installed with the net install Texlive 2010 on an Ubuntu machine. Because I don't have to much space to spare I carefully selected components to install to reduce the required disk-space. Later I ...
22
votes
3answers
56k views

How to add a gif file to my LaTeX file?

Related: Convert gif image to png on the fly I have an image file -- a gif file, which is the graph of a function. How do I add it to a LaTeX file? Will it come out OK in the subsequent pdf ...
4
votes
3answers
855 views

Floating a chess diagram on the next column

My second chess diagram does not fit on the first column, so LaTeX increased paragraph spacing on the first column. This does ensure that the second diagram appears exactly on top of the second ...
1
vote
0answers
555 views

Installing MacTeX [closed]

I've been trying to install the MacTeX package (MacTeX.mpkg), but each time I download it and attempt to install, I receive this error message, and the installation halts: ...
0
votes
1answer
213 views

stringstrings replacement for XeTeX?

To construct a lower-case filename out of the mixed-case argument given to a command, I used stringstrings in LaTeX. Now I switched to XeTeX and it seems the fontspec-package has some interference ...
3
votes
2answers
2k views

How come Minion is such a hassle to use in pdfLatex when Palatino isn't?

Palatino (or some copy of it) is very easy to use in pdfLatex -- just use package mathpazo and you're set to go. How come Minion doesn't have such an easy-to-use package? I tried to install it using ...
1
vote
1answer
213 views

Multilingual citation lists with apacite

I am writing a paper for university and i need to use german and english captions in the bibliography list. If the source is in english then the entry must be also in english, if it's in german it ...
17
votes
2answers
2k views

How to programmatically make tabular rows using `\whiledo` ?

The following code snippet does not work: \documentclass{minimal} \usepackage{longtable} \usepackage{ifthen} \newcounter{xyz} \setcounter{xyz}{0} \begin{document} \begin{longtable}{|*2{c|}} \hline ...
9
votes
1answer
1k views

Install downloaded package via tlmgr

I’d like to install a package (microtype 2.5 beta 4) under TeX Live that isn’t available in the official repository. Now, I know that it’s usually enough to put the package under ~/texmf/tex/latex/ ...
26
votes
3answers
5k views

Are there any repositories of “killer slides” for Beamer?

I used to work as a consultant and have been spoiled with nice looking slides. For instance, being able to create slides that have 2, 3, or 4 graphs (perfectly positioned and with nice headers!) at ...
2
votes
2answers
3k views

Title page line spacing in Latex

I use this code on my title page: {\large {Some College \\ Some Place \\ Some City}} \par} The first two lines get normal spacing, but the third line gets little more bigger spacing. How can I have ...
4
votes
1answer
1k views

Avoiding blank page in Latex

I get a bank page after the content page. The content page is numbered in roman numerals. The chapters have Arabic page numbers. The blank page that I get after the content page has Arabic number 1. I ...
2
votes
1answer
980 views

I cannot use Sweave to process a file created in TeXmaker (or Gedit) under Ubuntu 10.10

I am attempting to use Sweave with R2.11.1 and Texmaker on Ubuntu 10.10. I have done this previously on Windows XP, where one saves the tex file as .Rnw and then processes it with Sweave. I have all ...
6
votes
4answers
8k views

LaTeX Errors: “\RequirePackage or \LoadClass in Options Section.” AND “File 'article.cls' not found.”

Would you be so kind to help me in resolving the following issue? I tried to convert the text using Latex 2 as it was requested by the publisher, but the document generation failed with the following ...
6
votes
1answer
675 views

Fix ligature mapping of obscure old font with LuaLaTeX or XeLaTeX

I have an old font I purchased a while ago. It comes with various ligatures that I need to use. The font was not intended for use with LaTeX, and even though it is a high-quality Type-1 font, the ...
16
votes
2answers
1k views

Is there a way to draw 3D-style “buttons”?

I was wondering if there is a latex package to get pseudo-3D style "buttons" as are often seen on the web, or if not is there an easy way to draw them? An example of what I mean:
13
votes
4answers
9k views

When to use serif and when to use sans serif font family

This is not a technical question. However as the FAQs say this place is about people who love to create well-structured and beautifully typeset documents I take my shot. I am often confused ...
15
votes
1answer
10k views

shifting (0,0) to new coordinate Tikz

I am using Tikz to draw a wide graph but starting from left and after reaching the middle of the graph the nodes fall outside of page. I tried playing with scale but the graph distorts and texts ...
15
votes
4answers
1k views

Can we imitate the behavior of \pscurve in TikZ?

Here it is with the pictures. PSTricks has the very neat command \pscurve. The manual gives the example \pscurve[showpoints=true]{<->}(0,1.3)(0.7,1.8) (3.3,0.5)(4,1.6)(0.4,0.4) which yields ...
7
votes
3answers
455 views

How to detect the length of the tallest letter and that of the deepest letter of the current font size?

My idea is to redefine the \strut to be as short as possible. It means the length of strut is the sum of the tallest letter length and the deepest letter length.
34
votes
2answers
50k views

How to get “LaTeX” symbol in document

I want to get that fancy LaTeX symbol to put in one of my documents but I cannot find it anywhere. All searching for things like latex symbol have not resulted in the symbol but other symbols.
31
votes
6answers
4k views

For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar ?

For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar ? For example: The most well-known physics formula is \[E=mc^2.\] %should I put ...
4
votes
1answer
593 views

Hyperref links linking to the wrong label.

I'm currently trying to write up some solutions to a set theory text, but some of my labels don't seem to be working correctly. I've uploaded it here, if it's perhaps helpful to look at. Anyway, I ...
2
votes
1answer
953 views

Can not find how to change the size of text blocks

I am looking at the CV template located here, and I can not figure out how to make the description text blocks wider on the right. The blocks I am talking about are the ones similar to the block ...
4
votes
2answers
2k views

How to enlarge “fourier” font to match “utopia” package

I'd love to exchange the "obsolete" utopia package against the fourier package for a couple of reasons. Unfortunately, the Utopia font in the fourier package renders much smaller compared to the ...
15
votes
3answers
10k views

Height of colorbox

I'm trying to "highlight" two parts of a sentence by using a \colorbox like so: \colorbox{red}{This is} \colorbox{blue}{a great sentence.} The problem is that in the second part the height colorbox ...
6
votes
2answers
4k views

TOC Section & Subsection coloring

Is it possible to create a TOC with section headings in one color and subsection headings in different color. \tableofcontents \setcounter{tocdepth}{2} I am using above lines to create TOC, do I ...
0
votes
1answer
2k views

MiKTeX and Sphinx : problems on complex TeX output

I've installed the complete package of MiKTeX 2.8 because I have to manage the PDF rendering of a TeX file generated by Sphinx 1.0.4 (Python 2.6) from a ReST source file. I underline that the HTML ...
2
votes
1answer
1k views

siunitx update breaks things

I upgraded to v2.1 of siunitx since the version in ubuntu's package manager (1.3?) is pretty old. Things seem to have broken. I might have got something wrong with the installation, or I might be ...
4
votes
3answers
2k views

Extra command in subfig package

I would like an extra command to be run in the captions using the \subfloat command from the subfig package. With normal captions, I just redefine \captionfont, but this doesn't work for captions of ...
7
votes
1answer
2k views

Tikz Mindmap - how to get more nodes

% Author: Till Tantau % Source: The PGF/TikZ manual \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \usepackage{verbatim} \begin{document} \pagestyle{empty} \begin{comment} ...
15
votes
4answers
622 views

Expandable full expansion of tokens that preserves catcodes

Is it possible to fully expand tokens in an expandable manner and preserves category codes? I'd like to do this just using pdfTeX. I'm looking for something that would work like this: \def\foo{foo} ...
54
votes
6answers
22k views

How can I write multiple lines in a subscript?

Is there a way to force a line break inside a math mode text? My example: \[ \underbrace{....}_\text{Some long text that should be multiline} \] Trying \text{Some long text that\\ should be ...
15
votes
3answers
7k views

How to include audio file in PDF

How do I include audio file, or should I say, link to audio file in PDF? Audio should be playable "from PDF directly", without opening any additional window. Is it possible to attach audios to PDF ...
7
votes
2answers
11k views

How can I prevent LaTeX from breaking words and wrapping them to the next line?

I want to have my entire document fully justified but without the words being broken up and hyphenated at the end of a line if it is too long. I have come across the \raggedright argument which ...
12
votes
1answer
2k views

fancy verbatim - bold letters for the first 4 columns

I am writing a book on Python and IPython. I want to insert in this book code listings of Python and IPython. For the code itself I have no problem customizing listings for my intents. Including ...
5
votes
1answer
1k views

LaTeX Presentation Cubic transition effect

I have seen some presentations that use a kind of cubic effect when moving between pages. For instance, suppose you have a cube and every page is a side of the cube, then when moving from page one to ...
4
votes
2answers
1k views

Complicated alignment within multiline equation

I'm having trouble getting the desired alignment behavior in a set of "sets" that I'm typesetting. I have a bunch of set definitions of the form $$U = \{\text{$x$ $|$ $x$ satisfies some ...
7
votes
1answer
5k views

Set width of algorithm environment (preferably document wide)

Looking for a way to set the width of an algorithm environment, preferably document wide (as opposed to per-algorithm). Thought it should be fairly easy, but couldn't find a particularly good ...
9
votes
3answers
2k views

Tables do not align side by side

. . \usepackage{tabularx} \usepackage{multicol} \begin{table}[ht] \begin{minipage}[b]{0.5\linewidth}%\centering \begin{tabular}{|c|c|c|c|} \hline & One & Twp & Three \\ ...
5
votes
0answers
597 views

latex-suite on OSX - citation completion not working [closed]

So I have just installed latex-suite using the default version of vim that ships with OSX 10.6. The problem I'm having is that \cite completion is not working properly. This is what happens: Begin ...
4
votes
3answers
533 views

Are there any bibliography styles that look like this?

I realize this might seem very basic, but I have been looking all day and I cannot find a bibliography style that will give me references like the following: Baker, M. & K. Hale. 1990. ...
12
votes
2answers
4k views

How does one TeX a blank?

By blank, I'm looking to TeX something like this: $\{\emptyset\}$ _ $\{\emptyset,\{\emptyset\}\}$, but I want the _ to look more like a longer blank as you'd see in a fill-in-the-blank type of ...
5
votes
1answer
1k views

Adding vertical stretch at a table row?

I have a longtable that is used to produce checklist forms. The basic layout is shown below, The second page (if there is one - some forms are quite short) would be better if it had the bottom ...
10
votes
3answers
7k views

Changing the paper size

I have been using the currvita.tex template located here with TeXShop. Unfortunately, the output is not 8.5" by 11". Is there some way I can change either TeXShop settings or the TeX document to ...

15 30 50 per page