# All Questions

1k views

### Showing Solutions of the Questions “separately”

There is a class for LaTeX called exam. Using this class, one can write questions and answers for exams. The answers are displayed under (after) each question. My goal is to have all answers in the ...
978 views

### XeTeX + movie15_dvipdfmx — Use of \pdfmdfivesum doesn't match its definition

I'm trying to embed movies in my document. That would normally mean use the movie15 package but since I'm also using the xetex engine I have to use movie15_dvipdfmx. (See “ Can XeLaTeX | LuaTeX ...
1k views

### Emacs, RefTeX and Cleveref – can they work together?

Trying to look for an answer in the net yielded only one questions and one answer which I could neither understand nor use. On tex.stackexchange I found only this question which was answered but I'm ...
986 views

### Conditional “if a package is available”

I'd like to do something like the following (in pseudo-TeX) \ifpackageavailable{packagefoo} \usefoo \else \usefooreplacement \fi For example, I know that a template file I wrote is used by people ...
5k views

### Align edges with anchor other than center

It seems that, when drawing an edge between two nodes, TikZ defaults to aligning the edge with the 'center' anchors of the two nodes. More precisely, the edge points from the center of one node to the ...
1k views

### smashoperator overlaps big parentheses with limits

\smashoperator pulls big parentheses too close causing them to overlap with the limits. Is there any workaround? Edit: An ad-hoc solution is to force an appropriate amount of empty space to the ...
2k views

### How to test if a number is negative

Is there an easy way to test if a number is negative? I don't need a general solution, but it does need to be able to handle a floating point value. I was using this solution from tex.ac.uk until I ...
84 views

### Command for formatting a special term

How can write a new command which formats a certain 2-word-term always in a special font, all uppercase, with the line-height of the uppercase characters being the same as the line-height of down-case ...
300 views

### Hyperref mysteriously enabled or who loaded hyperref

I can't figure out where do I load the hyperref package. I know it sounds odd, but I scanned all my preamble and couldn't find a single \usepackage{hyperref}. I feel really stupid, but I don't know ...
19k views

### Recommended Windows LaTeX editor, similar to Kile ? [duplicate]

Possible Duplicate: LaTeX Editors/IDEs My Linux box has crashed, so I'm looking for an editor on Windows (should work on Win7) that is similar to Kile - could someone help?
192k views

### Tabular: title above and caption below?

I have a table that I would like to put the Title above and a caption below. Intuitively (though I know how troublesome intuition can be in something like LaTeX), I should be able to do as below: ...
2k views

### How to get a 4 by 4 chessboard? Or any other size of board.

I've seen some package to draw chessboard on LaTeX such as skak and chessboard. However, after reading the documentation, they don't seem to support a change of the board size. I'm talking about the ...
8k views

### Align large vertical delimiters (brackets) to rows of a table?

I’m trying to typeset a table of data, with brackets (i.e. }) at the right-hand side to show a classification of the rows.  Something like: ----------------------- | Aardvark | Armenia | \ ...
2k views

### pdflatex with index suddenly fails with undefined control sequences

The document I have been working on has built the index fine in the past. I have since made some changes to Part and Chapters, and re-arranged things in the preamble a little. Now pdflatex, mkindex, ...
2k views

### amsthm environment and colorbox

I'd like to customize the amsthm command a little bit but I cannot find the relevant lines in the (undocumented?) .sty. How can I put a colorbox on the name of the environment ...
1k views

### \eqref in italic math environnment

When using the amsthm package with the \eqref command, things may not be correct. When the main font of a theorem is italic, the \eqref is non-italic while \ref is italic. Please, see the provided ...
5k views

### Adjusting vertical space between TOC entries using Beamer

I have a rather lengthy table of contents for a presentation. Beamer is not compressing the vertical space between TOC entries, but instead running the last item off the bottom of the output! Is ...
454 views

### Avoid figures encroaching on page numbers with LyX

I'm using LyX and have figures in floats and wraps but some of them are too high on the page when converted to PDF and overlap with page numbers. Is there a way to avoid this and respect the text ...
752 views

### How to set up a quartered layout in beamer

Back in Powerpoint days, I encountered a typical quartered layout, which was just tiling the body of the slide horizontally and vertically into equally sized pieces with arbitrary content: ...
1k views

### Why does \xspace behave differently for parenthesis vs. braces/brackets?

Consider: \documentclass{article} \usepackage{xspace} \begin{document} (something\xspace) [something\xspace] \{something\xspace\} \end{document} Or more to the point: \documentclass{article} ...
919 views

### Table wrapping in tables not working

I am having a problem with text wrapping in a long table. Here is a copy of my table: \begin{longtable}[c]{l|b{2in}b{3in} b{2in}} %\centering %\begin{tabular}{llll} Author and Year ...
6k views

### Why does vfill not work inside a beamer column?

I recently tried to set up a quartered page layout in beamer (separate question might follow) and \vfill failed in a column environment. Minimal example: \documentclass{beamer} \begin{document} ...
676 views

### Position tikz graph at the bottom of twocolumn page in memoir

According to section 10.4 of memoir manual double column ﬂoats may only be placed at the top of a page. However, I need a tikz graph at the bottom of the page. So I have tried using minipage(floating ...
562 views

### Macro after heading shall not allow page break.

In a previous question I needed a solution for the following problem: I had defined a command for inserting special custom notes in my document with the fixme package and if those notes followed a ...
2k views

### How can I add a section/subsection to the TOC but not the navigation bar?

I'm making a presentation using Beamer, and I would like for my subsection titles to appear in the table of contents, but not the navigation bar. I only know that \subsection*{title} does the ...
10k views

### Highlight text in code listing while also keeping syntax highlighting

I’m using the listings package for code listings. Now I try to highlight some part of the code using \hl from the soul package. Here’s an example of a resulting query where the injected part of a SQL ...
296 views

### Place nodes on an A4 document similar to drawing on a graph sheet

As my figure keeps crossing the margins I end up rescaling it at the end using \begin{tikzpicture}[scale=5/10,transform shape]. This works most of the time but it seems to me like its a hackish way of ...
704 views

### Problem with ntheorem, mathtools and cleveref

I have two (related) problems. I'm writing a project where the following is part of my preamble: \documentclass[a4paper,11pt,oneside]{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
831 views

### Bibliography Style cite style

How can I change cite style? If I cite a book I get, for example, [KA40]. I would like to have something like [Ka40]. I'm using BibTeX, \usepackage[numbers,square]{natbib} and ...
1k views

### Pointing from Data in a pgfplotstable to a pgfplot

Are there PGF coordinates available for elements in a pgfplots table? Groupplots allow to address plots via (group c2r1.center) (column 2, row1). \pgfplotstabletypeset[col sep=&,row sep=\\,sci ...
9k views

### includegraphics - Problem with compiling

I am actually writing a latex file in which I would like to insert pictures. I have the following preambule: \documentclass[a4paper, french]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
11k views

### Creating a PDF file online from a LaTeX template [duplicate]

Possible Duplicate: Compiling documents online I would like to create a CV using this (moderncv) LaTeX template online. The output should be in PDF format. Is it possible to be done online ...
979 views

### Convert TeX -> C++/Java -> PDF

Recently I've seen LaTeX sources and convinced those are very complicated and difficult for understanding. So my question is: Is that possible to convert LaTeX kernel sources to some widely used ...
3k views

### No space present after ensuremath

When I insert a short maths section in a sentence, it renders fine with a space each side as expected: ...returned $\mathcal{P}$ from... If I define a command to do the same thing, it also renders ...
212 views

### The same height of text in a large document

I’m typesetting a large document that contains a lot of mathematics. The only problem is that the height of text on some pages that ends with a displayed formula is less than (about 3-6mm) the height ...
988 views

### PostScript operators and Reverse Polish Notation for plotting using PSTricks

I know that the PSTricks packages for plotting, pst-plot and pst-3dplot, use PostScript operators and Reverse Polish Notation. Is there a comprehensive list of all the operators available, with a ...
701 views

### Context-sensitive newline macro

I'd like to write a new command putOnNewLine such that \putOnNewLine{ABC} puts ABC on a new line, with exactly one line's vertical space separating it from what has gone before. It must also ...
2k views

### Shrinking text to the width of a node within a tikzpicture

I would like to be able to scale text to the width of a TikZ node. Using \widthof within tikzpicture as a starting point, I've arrived at somewhat of a solution, except it has incorrect spacing, and ...
3k views

### Should I place \noindent after enumerations, itemization, and descriptions?

I wonder if I should put the \noindent command immediately after enumerations, itemization, and especially after descriptions. For instance: \begin{itemize} \item One morning, when Gregor Samsa ...
716 views

### Is there a way to set a *global* key value using pgfkeys?

The simple answer to this question appears to be "No"; quoting from the pgf manual: The setting of a key is always local to the current TeX group. However, this is very annoying because it means ...
741 views

### Tikz externalize + macro's ? Or how would you do it?

I'm currently building courses for some of my college teachers. The aim is to make their Word/MS paint generated study material into high grade Latex/Tikz material. I'm aiming for high consistency in ...
6k views

### Are there alternatives to Beamer for slides ?

I like Beamer and I use it but I wanted to check if there other classes for slides or presentation purposes to consider seriously when starting to write a presentation.
394 views

### Using xypic in Texmacs. [closed]

Question: When I try to "start up" the xypic interactive thing in texmacs, it just writes "Busy..." and never evaluates anything I put in. What am I doing wrong? Motivation: I just started to use ...
507 views

### Styling a Single Element in a Pgfplotstable

According to the manual of pgfplotstable it is fairly easy to set the color of a whole row or a whole column of a table. However, I would like to style only one element located in a certain row and ...
3k views

### Opposite of \ensuremath: ensure that I'm *not* in math mode?

I'd like a macro that is the opposite of \ensuremath: something like \ensurenotmath, which makes sure that its argument is not typeset in math mode. Is there such a macro, or a way to implement it? ...
663 views

### Problem with \usepackage{standalone} in standalone file in new TeX Live distribution [closed]

I have ONE standard file that I use in ALL my files including the standalone files. This method was working fine until today, when I updated my texlive distribution using sudo /usr/texbin/tlmgr update ...
216 views

### References to a .ods file

How can I create references to a .ods file using the command \href{address}{name}? Files with the .pdf extension work, but others do not.
674 views

### problem of (double)quote--choosing char by glyphs

I use fontenc, fontspec and xelatex to load the custom font. \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage[utf8]{inputenc} \usepackage{xunicode} ...