# All Questions

2k views

### Typeset single chapter from book

I am working on a multi-chaptered document, tied together with a main tex file that pulls the chapters in via \include. To build the entire document, in its current draft form, can take upwards of ...
7k views

### String/vector concatenation symbol

I'm looking for a math symbol to represent the concatenation of two vectors: if x = (x1, x2) and y = (y1, y2) then x ? y = (x1, x2, y1, y2). I'm not very much at home in vector calculus, so I don't ...
1k views

### Generating links from citations for bibliography using BibTeX and Hyperref

I created a LaTeX document on Windows using TeXworks with the MiKTeX package. When I copied the same .tex file over to Linux (Ubuntu 9.10) and tried to compile using TeXLive everything worked fine ...
1k views

### How do \lastskip and \ifdim work?

I thought I knew the answer to this question, but I can't understand the following plain TeX code: \noindent\hskip1pt\ifdim\lastskip=0pt lastskip was 0pt\fi\par \noindent\hskip1pt\showthe\lastskip ...
712 views

### Fancy style, cleaning and improving

I was given the following style: % Style definitions \usepackage{fancyhdr} \renewcommand{\chaptermark}[1]% {\markboth{\MakeUppercase{\chaptername\ \thechapter.\ #1}}{}} ...
329 views

### Sectioning macros with Plain

Plain is awesome up until you'd want to make some structure for your document(s), because getting the sectioning macros right seems to be painfully difficult. Plain comes with a single sectioning ...
1k views

### Hover text for images in LaTeX using pdfLaTeX

How to put a hovering title text for images (like the title attribute in HTML <img> tags) in LaTeX file using pdfLaTeX?
7k views

### How to make overlay still work inside lstlisting environment?

Problem I want to explain C# programming language step by step using overlay in beamer.cls. But it does NOT works as shown in the following figure. How to solve this problem? Code Snippet ...
3k views

### How to change partitioned frame title number from Roman to Arabic?

Problem When allowframebreaks is turned on, long data will be divided into several slides. Each slide in this partition has the same title ending with a unique number in Roman. How to change this ...
5k views

### The key to understanding the LaTeX syntax

I'm having serious problems understanding the syntax of LaTeX well. I know a lot of programming languages but LaTeX still is a little cryptic for me. Do you know what the key to fully understanding it ...
2k views

### Why does LaTeX make a distinction between commands and environments?

Why does LaTeX make a distinction between commands and environments? Or also: why do we need environments? I ask this because I am defining a number of custom commands (like \question{} and ...
3k views

### How to prevent beamer from removing the tab alignment of lstlisting?

I want to show my C# code snippet on the presentation slides using beamer. Because the code is long, I set the frame to be breakable using the frame option allowframebreaks. The code now can be shown ...
6k views

### Using Beamer to step through an algorithm written in pseudocode.

I am trying to create a beamer presentation in which I would step through an algorithm, highlighting the current line in the algorithm on each slide. I know it is possible to do with the semiverbatim ...
1k views

### xelatex+fontspec is slow (after a fast xelatex -no-pdf)

xelatex -no-pdf blazes through a single page diagram using pstricks+fontspec but xdvipdfmx on the .xdv output is VERY slow (about 20 seconds delay). Using xdvipdfmx -E -vv efa.xdv makes me think ...
4k views

### LaTeX templates/packages for writing a patent specification

Are there any templates or useful packages for writing a patent specification, such as the ones in this collection?
425 views

### What is the correct way based on the consensus to write a volume measurement followed by its unit in liter?

Which one is the correct one? 100l There is no space between number and unit. Unit is written in small letter. 100L There is no space between number and unit. Unit is written in big letter. 100 l ...
4k views

### Latex IEEETran cls use titlesec package

Anyone know how to use titlesec package if I am under \documentclass[conference]{IEEEtran} ? I got following error: ！Undefined control sequence. <argument> \subparagraph Thanks
490 views

### Listings: new environments with arguments

I have this basic question. How can use arguments with listings? I tried this and it doesn't work: \lstnewenvironment{cor}[2][] {\linerange{#1-#2},\lstset{language=[Sharp]C,,basicstyle=\scriptsize, ...
15k views

I have an non-root account on a shared server which has an old version of a package available to all users, and I want to use a newer one on my account. I cannot just use $TEXINPUTS, because latex ... 1answer 49k views ### What do \makeatletter and \makeatother do? Many LaTeX “hacks” begin with \makeatletter and end with \makeatother. What do these commands do? 2answers 4k views ### How do I make math symbols bigger? I'm using Scrivener to convert multimarkdown to LaTeX and then using TeXshop to typeset my document.This work flow works great for me except for the fact that I'd like to be able to make certain math ... 1answer 1k views ### Include aux file in tex source? I have a large book broken into several chapters, each of which reference each other heavily. I would like to be able to distribute individual chapters as self-contained .tex files. I can do this ... 1answer 801 views ### Is it possible to force beamer to automatically create frames for the excessive data (in long table)? I have a long table and all are important for sure. It will be tedious if I do trial and error adjustment for the excessive rows. Shortly speaking, how to force beamer to automatically create frames ... 2answers 987 views ### How to set the size of a single symbol defined via \DeclareMathSymbol? I am using the following definition for a symbol I call \nstn: \DeclareSymbolFont{largesym}{OML}{cmm}{m}{it} \DeclareMathSymbol{\nstn}{0}{largesym}{"22} How can I set the size of this single symbol ... 2answers 390 views ### Automatic repetition of mathematical operators after a line break In handwritten mathematics it is common for the sake of clarity to repeat the last mathematical operator in those line breaks that occur in the middle of a formula. I mean something like: We compute ... 1answer 2k views ### Multiline listing in a table environment I'm trying to simulate an effect that is very easy to do in WYSIWYG environments, namely having a table with some cells containing somewhat complex multi-line entities. For instance, consider the ... 1answer 814 views ### How can I set single spacing in todonotes? Question How can I \renewcommand{\todo} to give single spacing in the todonotes of an otherwise double spaced document? What I have tried The documentation (p. 11, section 1.8.6) suggests that ... 2answers 35k views ### Undefined citation warnings When I compile my document I get warnings of the form: Package natbib Warning: Citation `xxxxx' on page y undefined on input line z. This problem does fix itself eventually when the compiler ... 1answer 2k views ### Indented paragraphs I want to show an indented paragraph in which indentation means the the top level condition is acquired (suppose a if then else structure) a copy of what I need is shown I have implemented this ... 3answers 453 views ### how to cause unix 'make' to know how many times to run *tex Is there a clever way to cause the unix make command to run a tex variant as many times as are required to resolve all references? I've used tex for a long time, and I still don't know which of all ... 1answer 361 views ### How to know the number of pages in a PDF file? I use graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this? 1answer 207 views ### Shrink code chunks in a documentation i'm making a documentation of a system, and i have a lot of code chunks that i want to explain, but some of them are too long. My questions if there are some way to automatically shrink those too big ... 1answer 2k views ### Old style numbers without fontspec How do I use old style numbers everywhere without using fontspec? Or is it even possible? Where do I find the documentation for the fonts in the LaTeX Font Catalogue? Minimum (Non)Working Example: ... 12answers 112k views ### Make MS Word document look like it has been typeset in LaTeX A few years back, I used to use LaTeX for writing reports and such, and I really liked the look of them. However, nowadays I am forced to use MS Word to write my reports, but that does not hinder me ... 2answers 3k views ### LaTeX in Word/Office 2011? I remember I read somewhere out there that Office 2011 Word will support TeX (LaTeX). Is this true? I have Office 2011 on my Mac but I cannot find anything related to TeX. 3answers 51k views ### Is there a circle symbol? Is there a circle symbol for the composition of two functions? Or do I have to resort to using other ways to represent that? 2answers 919 views ### Is there an addon for thunderbird to render LaTeX equations on display? I mean, if an email contains something like$\mathcal L = -\frac14 F_{\mu\nu}F^{\mu\nu}\$, is there an addon to have this rendered into something nicer to read? Or one to have equations rendered to ...
4k views

I am using my school's latex cls file. Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of ...
5k views

### Line break in edge labels in tikz graph

I'm using tikz and pgf to draw state machines in a document, and I'd like to be able to have a multiline edge label between two nodes. Something like the following would be ideal: \begin{center} ...
871 views

### biblatex & references: unpublished style with eprint

The biblatex unpublished style does not offer the eprint & eprinttype fields. Would you know how to add them (if possible).
1k views

### Add small line in \section title

I'm trying to duplicate an old document that has a small centered line above each \section. I have not been able to duplicate this when I set the formatting for the \section. (I'm using the titlesec ...
460 views

### Can you have curving, empty, broken arrows in xymatrix?

In \xymatrix, the command \ar@{}[dr] |{\text{lab}} typesets an empty arrow, broken by some text. Similarly, the command \ar@/^10pt/ @{->}[ur] |{\text{lab}} typesets a curving arrow, broken by some ...
4k views

### Sorting Table Column

Suppose I have a table with say two columns. How can I sort its rows based on the first column? Is it possible in latex? If I do it in another application (like MS Excel) can I import the data from my ...
3k views

### How do I use Delicious font in my beamer presentation

I want to use Delicious font in my beamer presentation. How should I install this font and/or use it in my presentation. I am running ubuntu 10.04 and have installed the font. I am wondering how do I ...
576 views

### LaTeX sphack family of commands.

LaTeX offers a number of commands that can be used in macros that want to be invisible i.e., not leave any extra space when used in the middle of text. These macros include \@esphack, \@bsphack, ...
2k views

### Latex live preview plugin for Tiddlywiki ?

I did a search and looked through the "related questions" section before asking this question. One of the wonderful things about StackExchange is its "typewriter" like live-preview below the ...
1k views

### How to prevent Beamer from changing the normal text color when I change the footnote color?

When I change the footnote color in Beamer using \setbeamercolor{footnote}{fg=blue}, I end up also inadvertently changing the normal text color on all other slides. To make things even stranger, the ...
15k views

### What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm?

How can one determine the length of the different units (measured 1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc) in mm?