# All Questions

172,787 questions
3k views

### Long Right arrow appears broken

I am using \longrightarrow{} in my document. however in the PDF it appears in two pieces instead of a long line. I tried using \chemarrow but it produces very short arrow. The size of arrow thats ...
4k views

### Of parallel texts, lists and display equations

In previous question concerned about taking notes while reading journal articles, I received an excellent answer proposing the use of parallel, parcolumns, and ledpar packages. However, I have the ...
3k views

### XeLaTeX ttf font support

Watertank is some ttf font that I got from one of those cheap fonts CDs. I know it is installed in my system because I can use it in other programs; but when I use it in XeLaTeX (which works with ...
3k views

### How to prevent hyphenation in title (\maketitle)?

I want to have a \maketitle title page where every word in the title is not hyphenated. Elsewhere I wouldn't mind hyphenation of the title (e.g., in the Reference List), but on the title page it looks ...
6k views

### Background colour with minted package: code misplaced

With the following example \listfiles \documentclass{article} \usepackage{minted} \definecolor{bg}{rgb}{0.95,0.95,0.95} \begin{document} Some text \begin{minted}{latex} A test \end{minted} Some text ...
4k views

### Biblatex customization: author name format defined by hyphenation (localization)

I try to use biblatex (to be customized) with Hungarian babel language definition files. The babel language for Hungarian is called magyar (means: Hungarian). I am writing a text in which I cite ...
28k views

### Beamer vs. TikZ: uncover nodes step-by-step

I'm trying to uncover a TikZ image piece-by-piece like so: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame}{Linearity} \begin{center} \begin{...
25k views

### What is the right way to use the \! spacing command?

I have noticed that I hardly ever use the \negthinspace command \!. This is because I don't know how to use it properly (I do use other spacing commands quite a bit, because I can better understand ...
282 views

### t-vim: MTXrun using extra quotes

I'm trying to use the t-vim module for context installed from the TexLive 2010 basic package for Mac. The problem I'm running into is that MTXrun tries to quote too much when calling vim, for example:...
580 views

### How to determine the run time of a loop?

pdfTeX, provides two macros that can be used to determine the time elapsed from a run start. The first one determines the elapsed time in "scaled seconds", that means seconds divided by 65536. \...
601 views

### Subversion keyword string inside LaTeX document

I put a subversion keyword string inside my LaTeX document. It looks like: $LastChangedDate: 2011-01-16 18:09:33 +0100 (nie)$ and it gets replaced (simple textual substitution) every time I make a ...
546 views

### MetaUML — generate image as output

I'm planning to use MetaUML to automatically generate UML diagrams (as images) and display them. I found that there is an utility, mptopdf, that helps generating the output as a PDF file: mptopdf ...
1k views

### Draw tangents from point to ellipse using PSTricks

I'd like to create an ellipse (using psellipse, say). Call it E. And I'd like to specify a point P outside E. And then I'd like to construct, using PSTricks, the two rays starting at P and tangent ...
21k views

### How to translate and rotate the heading of landscaped pages?

Objective How to change the heading of landscaped pages from to ? Minimal Code \documentclass{book} \usepackage[a5paper,hmargin=3cm,vmargin=5cm]{geometry} \usepackage{lscape,lipsum} \begin{...
1k views

### ntheorem and mathdesign are incompatible

I want to use mathdesign fonts (namely bitstream-charter) and I also want to use the ntheorem package. However, it looks like ntheorem tries to load amssymb which is incompatible with mathdesign (it ...
120k views

### Large braces for specifying values of variables by condition

How do I typeset something like, X = 0 if a=1, 1 otherwise, using those huge left braces and specifying each condition in a line?
4k views

### Strange unrecognized control sequence error with beamer

I was trying to include bibliography in my presentation, but I get this error: ! Undefined control sequence. \beamer@sort #1#2->\long \def \beamer@todo {...
613 views

### Defining a custom cross referencing style

I want my cross reference links to look like: Chapter X: Chapter Title To achieve that I have created the following command: \newcommand{\fancyref}[1]{\autoref{#1}: \nameref{#1}} The problem is ...
6k views

### Best practice for control flow charts

I wanted to plot a flow chart graph which looks similar to this diagram: that comes from this source. Which package would be best for that? I don't want to use pstricks
2k views

### tikz parabola node position

I am trying to position nodes on a parabola curve. However, it seems tikz cannot calculate the midway positions. Neither of the following examples works: \begin{tikzpicture} \draw (-1,0) parabola[...
2k views

### Referencing a nested list item by only its most immediate bullet

I'd like to be able to reference a nested enumerated list item only by its inner-most identifying character. \begin{enumerate}[(1)] \item \begin{enumerate}[(a)] \item \label{mylabel} Referenced ...
46k views

### Should Greek letters inserted in text (using math mode, mostly) always be italic?

The least painful way I know of inserting a Greek letter in a text is to use the math mode and the corresponding command. This will produce an alpha letter : $\alpha$ But this always produces an ...
6k views

### How to create (1) a new Environment for LyX's Environment drop-down menu, (2) a new Text Style

My two part question pertains to LyX. How do you create a new "Environment" ("Paragraph Style") for LyX's Environment drop-down list (Standard, Itemize, Enumerate, Chapter, Section, Subsection, ...
1k views

### How to pass an optional argument to an environment with verbatim content?

This is an attempt to make clear what happened in this question of xport (now deleted, sorry). The now deleted question included code that tried to make my answer to this question of xport work for ...
2k views

2k views

### New command to insert a couple of red XXX as placeholder?

I seem to misunderstand the documentation, as \newcommand\ph{\textcolor{red}{XXX}} causes pdflatex to halt. I'm not sure if this is the error: ! Argument of \sf@@subfloat has an extra }. And I ...
733 views

### New lines and TeX: difference between ^^J and ^^M

What is a new line for TeX in the following contexts: When reading from a file. When writing to a file. After having read a % character. In a \scantokens. I am asking in particular because the ...
158 views

### How to assign a key of a package a key value of another package?

Scenario 1 Actually I can do like this: In mylistings.sty, I define \def\tabsize{3} \RequirePackage{listings} \lstset{tabsize=\tabsize} and in mytable.sty, I define \RequirePackage{mylistings} \...
459 views

### How to hide a verbatim-like environment in another environment?

I cannot find a good title to express my question. Therefore, please parse the following code first. Minimal Code \documentclass[dvips,dvipsnames,cmyk,table]{book} \usepackage[a5paper,margin=20mm]{...