# All Questions

560 views

### Change running heads in longtable (or other “long table” package)

In a longtable, I list items of several categories, including some data on them. \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{lll} \hline \textbf{These are ...
6k views

### How do I rotate a tikz rectangle about a specific axis?

I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired. I have a rectangle specified by \draw[rounded corners,dotted] (-3.5,0) ...
1k views

### Line of dots in the \listofalgorithms

I've been working with the ToC, LoF, LoT and more recently with the LoA (List of Algorithms) of my dissertation. I'm using the tocloft package so I can set their styles the way I want. My first ...
9k views

### TeXShop doesn't remember file encoding

I am aware that this might not be the ideal place please move/close this if so. So since yesterday I run into the following problem: I use \usepackage[T1]{fontenc} and \usepackage[utf8]{inputenc} in ...
943 views

### Want to change footnote size for biblatex-chicago citations

I'm new to biblatex (specifically biblatex-chicago). I'd like to make the size of the footnote citations the same size as the main text. Does anyone know how to change the default font size for the ...
5k views

### Suppress empty page before chapter [duplicate]

Possible Duplicate: Chapter on the right side - How to turn it off? How do I remove empty pages before chapters? The following document renders as three pages; I just want two. ...
253 views

### Board games: How to change the default font on the board?

While compiling my notes for the Go games, the default font for the go package included in texlive-games doesn't show quite well if printed out, I wonder how could I change the default font for the ...
340 views

### Custom environment to accept \item

How can I create an environment that takes items in a way similar to lists? Example: \begin{myEnv} \item{AAA}{BBB} \item{CCC}{DDD} \end{myEnv} I'd like the above do something like ...
79k views

### How do I add a line break in display math mode?

For instance, how do I add a break after the first line in $a + b = c // what should I add here? a = c - b$
3k views

### How do I alternate images and only have captions for the first one?

I'm trying to create an itemized list with alternating images in beamer. I've got the list part and the images to work, but things break down when I try to add captions. Basically, I only want to ...
2k views

### Error Filling Between Curves in Tikz

I'm trying to shade the region bounded by y=x^2, y=exp(-x), and the y-axis (in the first quadrant). This is the code I have so far: \documentclass{article} \usepackage{tikz} \begin{document} ...
84 views

### Is there a program that converts a drawing to latex? [duplicate]

Possible Duplicate: What GUI applications are there to assist in generating graphics for TeX? Is there an analogue of detexify for, say, pictures of curves intersecting? E.g., something ...
2k views

### pgfplots: mark max/min value of a function

How can I mark the maximum or minimum value of a function like x^2 in pgfplots? \begin{tikzpicture} \begin{axis} \addplot+[mark=none] plot {x^2}; \end{axis} \end{tikzpicture}
61k views

### Setting exact margins

I am writing a document for which I need the margin to be exactly as follows: left, right, top and bottom text margin all equal to 1in, distance from bottom of the paper to page number equal to 0.75in ...
536 views

### TeXnicCenter keyboard shortcut to move outside math environment? [closed]

Suppose in TeXnicCenter I use keyboard shortcut to get some environment like this (or any other):  After finishing with equation cursor stays inside and one need to ...
9k views

### \cite[page]{book} inside \caption[…]{…}

Is it somehow possible to put a citation including page specification, as in \cite[page]{book}, inside the list-of-figures-relevant caption of a figure, i.e. \caption[*HERE*]{...}? I can do ...
239 views

### 2 minipages side by side don't respect the width of an article

In one of my .tex file, I have the following code which puts 2 minipages side by side, the whole width cover two minipages: \documentclass[11pt, a4paper]{article} \setlength{\topmargin}{-.5in} ...
2k views

### Exporting graphics wth text labels from OpenOffice.org Draw to ConTeXt

I often create graphics in OpenOffice.org Draw, containing vector graphics, text labels, with photos occasionally mixed in. OpenOffice.org supplies a variety of export formats. Is there any way to ...
2k views

### Using oldstyle figures of palatino (mathpazo) in math mode

I am using \usepackage[osf]{mathpazo} for oldstyle figures and the dcolumn package to align the contents of tables at their decimal point. The problem is that dcolumn automatically sets the aligned ...
5k views

### “Missing \cr inserted”, but it looks to me like it's already there!

I'm trying to create a Plain TeX macro for typesetting two-column proofs with automatic step-numbering and step cross-referencing; currently, the "best" I have is: \newcount\stepno \def\twocols#1{% ...
92 views

### Randomizing font selection in XeLaTeX, per character [duplicate]

Possible Duplicate: The effect of the anonymous letter I have a bit of a programming question, and I think it's in line with what LaTeX (XeLaTeX in my case) is suited to do. I would like ...
3k views

### PDF image files and htlatex

When eps files are provided, htlatex from tex4ht automatically converts to png files so that graphic files can be shown in the final html output. However, I use most of the time the pdf graphic file ...
1k views

### \mathclap not centering

I'm trying to stack two symbols on top of each other (not \stackrel) using \mathclap in the mathtools package, but the symbols are not centering: \mathclap{\rightleftharpoons}\circ How do I get the ...
350 views

### Different default color for each font in ConTeXt

Is there a way to specify the color along with the font name when using simplefonts? At the moment, I use the following to setup my default fonts. \usemodule[simplefonts] \setmainfont[Ubuntu] ...
18k views

### Reduce vertical space between text and table and remove table indentation

I want to reduce the vertical space between the first line text and the start of the table. I also want to remove the indent on the table, so that all three lines start at exactly the same vertical ...
2k views

### Setting TEXMFHOME variable when using Miktex portable

Apparently Miktex sometimes doesn't properly set the TEXMFHOME variable, or rather leaves it empty, even though you manually add folders to the "root" list and refresh the file name database. So how ...
238 views

### How can I automate “regression testing” for LaTeX documents, when updating packages?

I recently asked a related question about how often one should update LaTeX packages. Supposing that I update a bunch of packages in one go, or regularly update with only a few packages changing, how ...
435 views

### Two paragraphs side-by-side and page breaks

I have a little mind puzzle here. This idea was bugging me since I saw a question about breaking cells in a table on a page break. Let's think of a table row that's built from cells that are ...
512 views

### How frequently should one update packages?

When programming, I take some care regarding updating of external dependencies, to be sure that my code isn't affected. With LaTeX (I'm using MikTeX), it seems harder to know when I should update ...
552 views

### combining listings and tufte-book, listings caption on tufte's margin

I am not very familiar with all latex details, but I'd like to use the listings package in a tufte-book document. However, the listings package places its captions above or below the listing and I ...
534 views

### A problem for LaTeX's \@ifnextchar

I wanted to construct a command, say \newlet, that I could use to do \newlet\x\y and/or \newlet\x=\y such that \x is unique (ie, not already in use). Here we go \protected\def\newlet#1{% ...
3k views

### Changing the font for “alert” in beamer

I would like to change the behaviour of \alert so that the text is still red but now boldfaced, say. How can I do this? I have Googled, but all I can find is how to change the colour, as in Changing ...
1k views

### Using biber with gedit + rubber

I've been having a lot of problems trying to switch to biblatex with biber from bibtex, and after a few problems solved I'm at loss. The situation now: biblatex works when not using biber as a ...
1k views

### TeX Gyre Pagella and itemize environment gives font warnings

\documentclass{article} \usepackage{tgpagella} \begin{document} \begin{itemize} \item test1 \item test2 \item test3 \end{itemize} \end{document} Compiling the above minimal LaTeX file ...
18k views

### Package algorithm2e on Ubuntu

I am having some trouble getting a LaTeX document to compile. I would like to use the package algorithm2e. I am working on a machine running Ubuntu. I tried using Texmaker and Gummi (LaTeX editors) ...
570 views

### Correct way of organizing bibliography

What is the correct way of organizing the bibliography: Is it better to have only one .bib file which is shared by all TeX files, or am I supposed to have one .bib file for each TeX file (each paper)? ...
4k views

### Page breaks within moderncv

I'm typesetting a document with lengthy itemize lists and in most cases LaTeX leaves lots of empty space before the environment in order to get it entirely on one page. How can I encourage LaTeX to ...
3k views

### Combine cycle lists in pgfplots

Is it possible to combine two cycle lists? That is, is it possible to apply simultaneously several cycle lists to a common plot without the last list overriding the others (that is, getting a ...
97 views

### What is the difference between \cite and ~\cite? [duplicate]

Possible Duplicate: Why I should put a ~ before \ref command? I see the two used fairly interchangeably but have never read what the difference is between them...
11k views

### Using columns environment in normal document

Is it possible to use the columns environment inside a normal document? Up to now I only used it in the beamer environment where it turned out pretty handy.
3k views

### Missing character: There is no ? in font cmr12!

I'm not quite sure how to diagnose this issue. This is what I see in my log file. However, there are no "?" symbols in my work. FWIW, Here's my preamble: \documentclass[12pt]{article} ...
50 views

### How to split text from one cell on several pages? [duplicate]

Possible Duplicate: How to create a table that spans over multiple pages, breaking single rows I have a longtable. One of cells has a very long list which which doesn't fit on one page. As ...
468 views

### How to know the status of a style? defined? empty?

mystyle/.style= {...} is perhaps used ? I would like to know how to verify if the style is really defined and in this case, I would like to know if the style is empty ? Is it possible to use ...
2k views

### Ligatures: why “fi”, but not “fj” as well?

My university name is "FJFI", with e-mail/web addresses containing lowercase "fjfi". Then "fi" gets ligatured whereas "fj" does not, and the result looks a bit strange. My question is, which ...
318 views

### How to get the right \baselinskip in the annotation with authortitle-dw and smaller font

If I change the font size of the annotations in my bibliography the size changes but the baseline skip doesn’t. I know that TeX uses the last font in a paragraph to calculate the baseline skip, but I ...
4k views

### How do I change the font size in LuaLaTeX?

\documentclass{minimal} \usepackage[paperheight = 140mm,% comprimento paperwidth = 200mm,% altura margin = 10mm % tamanho da margem ]{geometry} ...
284 views

### Written response spaces for a workbook in ConTeXt

I am making a workbook in ConTeXt. Throughout the workbook, there will be many spaces for the owner to write in short answers of one or two paragraphs. This can be quite simple, perhaps just a ...
145 views

### How to prevent doc from indexing foreign macros?

The doc package, used for documenting LaTeX packages, has the ability to produce an index of all macros used in the package. Index entries can of of three types: where the macro is described, where it ...