# All Questions

2answers
2k views

### Help in choosing LaTeX2e books in light of LaTeX3 development

I'm quite new to LaTeX (~3 months) and I'm excited about buying the books. I just bought The TeXbook on eBay and hopefully it should arrive next week. I might even want to get a printed copy of TeX by ...
2answers
812 views

### Problem with dynamic table creation

I've wandered into uncharted territory with a package I'm writing. At one point I need to create a table of 'n' columns (n supplied by user in doc). Creating a variable in the preamble of the tabular ...
1answer
4k views

### Setup for sub-captions for two sub-figures one below the other

I am using the caption and subcaption packages to create sub-figures in a document. I have two cases of sub-figures: Two sub-figures side-by-side. For this, the captioning is excellent. Two ...
1answer
2k views

### How to remove top and bottom whitespace of longtable?

I am using longtable instead of tabular environment and noticed that it puts some additional whitespace at the top and at the bottom of the table. Is there some way to remove it (something less hacky ...
1answer
6k views

### How To Change Math Font Only?

I'd like to keep my text in Helvetica as usual but would like to have my equations and formulas in Roman or MT Extra. So far, I've tried using different packages but that changes both the text and the ...
2answers
2k views

### How can I get pdflatex to make tooltips attached to text, like HTML's abbr tag?

I'm writing my CV and I'd like something that works like HTML's abbr tag in my document. I know there are packages like pdfcomment and cooltooltips, but those really only work with Acrobat Reader -- ...
4answers
20k views

### Bibtex Automatic replacement of 4+ authors with et al.

When copying bibtex entries from journal websites, they usually include a lot of information, and not all of it is necessary depending on the journal you are submitting the paper too. Currently I ...
1answer
666 views

### Why is the quote environment defined as a list?

In the standard LaTeX classes the quote and quotation environments are defined as lists. Is there a particular reason for this? After all they do not look like lists!
4answers
2k views

### Redundancy in bib file: conditionally suppress url if same as doi?

Mathscinet gives bibtex entries with both a doi and a url field included. Typically they look something like @article {some-article, […] DOI = {10.1016/j.apal.2008.12.003}, URL = ...
1answer
729 views

### Typography and style for acknowledgments written in different languages

My thesis is written in English, but for the acknowledgment page I think I will write a first paragraph in English, one in Italian and one in French. I was wondering if I have to do something ...
1answer
621 views

### BibTeX work in Miktex 2.7, but in version 2.8 does not work [duplicate]

Possible Duplicate: In BibTeX say: One or more errors occured! please check the options!, what can I do? In a computer with Miktex 2.7 a run bibtex works very well, but in another computer ...
3answers
4k views

### Chapters and Formatting Headers

When I am composing a large document in LaTeX, I often compose the chapters in separate documents. When I do this I have to copy and paste a large block of header text to the chapter I am editing so I ...
1answer
347 views

### In BibTeX say: One or more errors occured! please check the options!, what can I do?

When I try to run Bibtex a window error is open that say One or more errors occured! please check the options! I do not understand!, What can I do? Thanks Mario
1answer
4k views

### Table column justification when using the p attribute

I am using the p attribute so I can enable text wrapping. How can I get the second column, Numeric Rating to be center justified? \documentclass{article} \usepackage{multirow} ...
1answer
3k views

### Ignore compile errors

How can I set up a permanent compile loop that keeps trying even when there are errors? I'm using latexmk with a remote compile setup as discussed here and here. However, if I save a document with a ...
2answers
148 views

### Induce silent failure

I've included a package in my tex file which requires a download from CTAN, so it's freely available just not in the default tex install. I'm distributing my tex file, and would either like pdftex to ...
2answers
2k views

### Defining a new environment whose contents go in a TikZ node

I would like to define an environment which typesets the contents in a box, and I'd like to use TikZ (I'm aware of alternatives like fancybox). So I would like something like \newenvironment{abox}% ...
2answers
261 views

### Nicer way to test that exactly one flag is set

I have a package that takes a long list of boolean flags (currently about 10) in its options, and I want to test if exactly one of these is set to true - something like an XOR for 10+ booleans. The ...
1answer
23k views

### How to cite a University lecture (or its slides or script)

I need to write an introduction to a topic which relies heavily on several University lecture slides and scripts. I would like to acknowledge this by using something like this: The following ...
3answers
906 views

### Asana Math Oversized “Big operators”

I am having this problem when using Asana Math with XeLaTeX + unicode-math, if you see the pdf found in the download link AsanaProb.zip you can see that \bigcap produces much bigger character than it ...
1answer
1k views

### Hiding code comments in listings

I'm using listings package and \lstinputstring command to insert code from a file. Is it possible to hide code comments in inserted code? I'm using a language in which # starts a comment and it lasts ...
2answers
2k views

### How to highlight operators and brackets in a C listing?

How can I apply a certain style to C (or, well, any other programming language) operators? So that when I write \begin{lstlistings}[language=C++] int i = 0; if(i > 1) { // do ...
2answers
6k views

### \label inside an align environment [closed]

It seems like whenever I use \label{an-label} inside the align environment, and then use to refer to it using \refeq{an-label}, I get the section number instead of the equation number. This does not ...
2answers
7k views

### Left/Right across multi-line equation

I have a multi-line equation that I want to have matching sized parentheses. The advice I read online was to use \left( equation \right. \\ left. rest-of-equation \right) . However, this syntax leaves ...
1answer
559 views

### Alter the appearance of glossary entries

I am using the glossaries package and want to change the format used, so that the full stops after entry descriptions and before the page number reference aren't added automatically. This cause ...
1answer
2k views

### Xypic problem: can't find file

I'm trying run pdflatex, but I get this one very unusual error. I've downloaded xypic from CTAN, and it still seems that pdflatex is unable to find some documents that are supposedly related to that ...
1answer
2k views

### How to make footnote bibliography?

I want the citation in the footnote of the page it is being cited. How can I do it?
3answers
7k views

### Theorem packages: which to use, which conflict?

As far as I know, one can create theorem environments using any of amsthm, ntheorem, thmtools and probably more. How should I define my theorem environments? Is one package clearly superior? Which ...
1answer
4k views

### LuaLaTeX vs XeLaTeX [duplicate]

Possible Duplicate: Differences between LuaTeX, ConTeXt and XeTeX What are the differences between LuaLaTeX and XeLaTeX? Why should someone prefer one over the other?
2answers
658 views

### USPS Postnet barcodes

After searching on-and-off for several weeks I haven't found an answer to this. Is there a LaTeX package to generate USPS zip+4 barcodes on an envelope?
0answers
425 views

### Bibtex using different font than document [closed]

I am writing a LaTeX file currently which is required to be in Times New Roman, so in the prelude I have: \documentclass[a4paper,12pt]{article} \usepackage{times} \usepackage{natbib} The document ...
2answers
785 views

### How to get rid of vertical space before and behind the lists

I cannot get rid of the vertical space before and behind the lists. I have code like below: \begin{list}{-}{% \setlength{\itemsep}{0pt} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} } ...
2answers
4k views

### what's a replacement for \lefteqn in the align environment?

I would like to avoid the use of eqnarray. I would like to use the align environment instead. However, I have an equation that I specify currently the following way: \begin{eqnarray} ...
2answers
6k views

### Caption of figure in marginpar and caption of wrapfigure in margin

I'm writing my master thesis and have run into trouble with the layout of captions in relation to the margins. I have two main questions: How can I make the caption text of an figure placed in a ...
2answers
1k views

### It's possible to remove the internal shading from a beamer rounded box?

I'm trying to modify a Beamer template in order to have at the same time: 1) rounded boxes 2) shadows around the box 3) a defined line (without shading) between block title and block body (as in ...
4answers
2k views

### \includegraphics and \includepdf both remove all copy (text) from my (R outputted) pdf graphs, using pdfTeX

I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.8.30) in TexMaker 2.1 on Mac OSX. I installed the whatever latex packages using the "easier" method at ...
2answers
5k views

### Reduce bibliography to one line

Quick question, hopefully with a quick answer. I'm writing a paper where I'm limited by length (2 pages) and I need references, but it doesn't have to look nice. I'd like LaTeX to compress my ...
11answers
31k views

### How to avoid large margins around Matlab plot in PDF

I am preparing image files to be included in a latex document. The image file is generated by printing a Matlab plot. If I print the plot in eps format, the content of the eps file is fully occupied ...
11answers
4k views

### LaTeX for netbook OSes

I'm considering buying a netbook for the express purpose of writing maths notes/articles (so as to not heft my Macbook around), hence (La)TeX is a must. The most obvious choice is to work with Linux, ...
1answer
3k views

### How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So ...
3answers
3k views

### Beamer: \againframe inside other frame

I'd like to repeat a certain state of a frame in beamer. Say like this: \frame[label=A]{ \begin{itemize} \item<1> foo \item<2> bar \end{itemize} } \frame{ ...
1answer
776 views

### why mathtools does not work for showing only equations which are referred to in the text?

I am using mathtools in the following way: \usepackage{mathtools} \mathtoolsset{showonlyrefs,showmanualtags} Then, to refer to equations I use \refeq{equation}. What happens is that there is a ...
1answer
306 views

### How do I get the spacing in the redefined label box right?

I use the following code to make xy-pic arrow labels multiline capable: \let\oldlabelbox=\labelbox \def\newlabelbox#1{% \oldlabelbox{\vcenter{\normalbaselines% ...
3answers
993 views

### Reference about “modern” LaTeX usage for scientific works

I am looking for a reference (book, free pdf, website) that would summarize the working of "modern" LaTeX for scientific works (I'm writing my master thesis). I know and have been using LaTeX for ...
2answers
666 views

### \pounds in verdana is not working

1answer
430 views

### Align number ranges in table

I have a table column that contains ranges of numbers (e.g. 7--12) as well as numbers that are formatted differently (e.g. < 4). These numbers don't align vertically, no matter what kind of ...
3answers
6k views

### Exact font size and leading

I read couple of suggestions about setting exact font size and leading in LaTeX and XeLaTeX, so my question is, simply put, the following: is it the correct way to use LaTeX's method to XeLaTeX too, ...
4answers
5k views

### Theorem environment with hanging indentation

I would like to define a theorem environment with custom layout. In particular, I want the body of the theorem to be indented, like this Text body. Text body. Text body. Theorem 1 (Pythagoras). ...
1answer
1k views

### Why Windows API 5 error when running initexmf in MiKTeX?

I have a MiKTeX installation running on Windows Vista, and whenever I try to run initexmf, I get the following error message initexmf: Windows API error 5: Access is denied. initexmf: Data: ...
2answers
662 views

### Where do I find the pgf manual v2.00?

This might be a very stupid question, but I don't manage to find the pgf manual v2.00. On CTAN I only found v2.10. (I'd like to find it because I want to follow Andrew's comment to this great answer.) ...

15 30 50 per page