# All Questions

4k views

### How to place a float at the top of a floats-only page?

I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
7k views

### Is there a way to enable syntax highlighting coloring in Lyx for program listings?

I want to embed a small program listing and have used Insert -> Program Listing in LyX's menu for that. The settings dialog supports selecting a language (Java), but I can't actually see any ...
709 views

### OpenType fonts for Metapost Labels

Is it possible to use OpenType fonts in MetaPost labels? I use MiKTeX 2.9. I hoped something like mpost --tex=dvilualatex <myfile>.mp might work, but no luck. Suggestions? I tried this, but ...
1k views

### Proper space between hyperref textfield name and text box

I use LaTeX occassionally, but not sure how to get the hypperref text fields to tab up properly. I got sick of using OpenOffice/LibreOffice to convert out PDF's that suck and have poorly done text ...
279 views

### Printing British Symbol £?

How does one print the '£' symbol?
150 views

### Handle class options in the order they're given

How can I pass options of my package in a specific order to another loaded package? \ProvidesPackage{L10n} \DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{babel}} ...
5k views

### Using ampersand symbols (&) instead of the word “and” for bibliography style apa

My supervisor just came with an idea to use the ampersand in citations and bibliography, so e.g. Smith and Watson (1992) should become Smith & Watson (1992) How can I make it work with ...
77k views

### Best way to install packages for TeXLive in Ubuntu?

I want to install a package (specifically xlop). I'm using TeXLive on Ubuntu, and I don't really know my way around LaTeX. Can apt-get install or something similar be used?
409 views

### Are there any LaTeX packages to compute and render the diff between two text files?

I look for a TeX package that could do the following, or anything close. I image the simpler use case as giving two text files of any kind as parameters : \diff{file1}{file2} and this command ...
848 views

### Disable babel's shorthands

I want to disable babel's shorthands in my own sty file. But since I can use \shorthands{off} only inside the document environment, I struggle with this. Is there a way to disable babel's shorthands ...
4k views

### Print LaTeX in 8.5x11 inch format

Linux defaults to A4 paper size rather than letter. The only answer I found online was to run pdflatex with the -t flag. \$ pdflatex -t letter myfile.tex but I get the error: warning: Could not ...
1k views

### First page of ToC has a page number. How to remove it?

I have a problem with the number of the page that appears on the first page of ToC (I don't want it, of course), but only when I have at last two page of ToC. When ToC takes only one page, footer and ...
35k views

### How to change the title of ToC?

I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE: \documentclass{book} \usepackage{titlesec} ...
1k views

### How to align the captions in the list of figures?

How to align the captions in the list of figures ? I have the following code: \usepackage[subfigure]{tocloft} \renewcommand*\cftfigpresnum{Figure~} \settowidth{\cftfignumwidth}{\cftfigpresnum} ...
2k views

### biblatex: filter out publications from a specific author in the references dynamically

I'm using biblatex, and I would like to leave out those entries from the bibliography, where a specific person is an author (it's a PhD thesis and my own publications should come in a separate ...
171 views

### Efficient Manner of Importing Graphics

What is the quickest way of importing graphics you need into your tex file. Say if you need to put figure's, charts, or plots from a textbook into your document. What's the fastest (but still get ...
1k views

### How to use a command-line tool to extract a bibtex reference that contains a search term?

I'd like to be able to use a tool like grep to extract an entire bibtex reference rather than just the matching line. For example, grep Smith mydatabase.bib would return lines that contain the word ...
2k views

### Does anyone place anything after \end{document}?

Just like http://programming.itags.org/tex/137196/ I have noticed that everything after \end{document} is ignored. What is the point of \end{document}? It seems that the compiler could just read until ...
2k views

### Theme for beamer?

I was excited when saw Designing Math Fonts presentation and other similar presentations mentioned at How do I know if a math font fits well with the text font. These presentations are presumably ...
12k views

### \nothing, \varnothing and \emptyset

This is probably a question about TeX's history. Why there is no command \nothing? If there's no \nothing, why \varnothing is called \varnothing instead of \nothing? If I try to compile a document ...
546 views

### Get the Length of the Rest of a Line [duplicate]

Possible Duplicate: Is there a way to measure the remaining space of a line of text? I have some text and want to put a \hrulefill at the end following by a period. However, if the text of ...
563 views

### Generate Entity-Relationship Diagram then generate SQL from that

Using a LaTeX or similar text-macro tool/library, how can I generate an Entity-Relationship Diagram then generate SQL from it?
2k views

### XeLaTeX compilation of Alessandro Plasmati's CV example fails

I am trying to compose a CV of mine like this resource link here!, but facing issues with compilations. Could you pls help me out? Related known question-in-stackexchange. On Win XP, MikTex 2.9 and ...
5k views

### How to enforce the position of table* (wide table)

I'm writing a paper using SIGPLAN conference 2 columns format. I maintain separate .tex files per each chapters: %% main.tex \documentclass[preprint, 10pt]{sigplanconf} \usepackage{ ... } ... ...
2k views

### How to split an example into two parts?

I am trying to have an example (using the theorem environent in amsmath) split in two parts: Example 1 ... Some more discussion Example 1 (continued) ... What is the best way to do this ? The ...
272 views

### Is it possible to have URLs link from a pdf to the webpage? [duplicate]

Possible Duplicate: How does one insert a URL correctly? I'm writing up a document, and at one point I cite a file online found at ...
25k views

### Multiple footnotes at one point

I'm trying to create multiple footnotes referencing from one point, that look like this: lorem1,2 Searching for "multiple footnotes" shows up almost exclusively solutions for multiple references ...
5k views

### biblatex: Tighter integration of \textcite “in the flow of text”

This question led to a new feature in a package: biblatex Many biblatex citation styles feature the \textcite command which is "intended for use in the flow of text, replacing the subject of a ...
860 views

### Automatically avoid more than one node when drawing a path

Background Andrew Stacey's answer to Automatically connect nodes without overlapping other nodes or connections presents code to make a path avoid a node by going through a corner of that node ...
2k views

### preview-latex in emacs auctex: empty boxes?

I originally posted this question directly on the Auctex mailing list but did not receive a response. I'll hopefully get more luck on the TeX Exchange. I was recently reminded by this post regarding ...
16k views

### How to change the font of a LaTeX table to typewriter font?

I want to create a table in LaTeX, and this table needs to be in typewriter font. I have found Typesetting Tables with LaTeX, but I don't understand how to use it. How could I do this?
3k views

### XeTeX: “ß” compiles as “SS”, German umlauts work

I have a problem with XeLaTeX. Although German umlauts (äöü) work, "ß" compiles to "SS". I use TeX Live 2011 on Debian x64. See this minimal example: \documentclass{minimal} ...
419 views

### Merge separate footnotes into text

A text (written by someone else) has numbered footnote insertion points: Text text1) text text text2) text text text.3) Text ... The actual footnote-texts are in a second file: 1) text of note ...
5k views

### How to make the reference label start with a capital letter?

I have the following lines in my document: In \secref{2}, a very basic review is presented. \secref{3} compares different structures. \secref{3} must start with a capital letter. However, LaTeX ...
804 views

### Adding vertical noise to a path

For a presentation I want to make a figure showing a graph of a signal with noise. I draw the signal as curved path \begin{tikzpicture} \draw [thick,blue] (0,0) .. controls +(50:3) and +(160:2) .. ...
319 views

### Changing \@itemdepth value to control indentation

I would like to be able to control the nesting level of an item (so that I can align the text with text that is at a deeper level of nesting.) I have been able to read the value of \@itemdepth ...
1k views

### Can one (more or less) automatically suppress ligatures for certain words?

One of the major attractions -- for me at least -- of typesetting my papers in (La)TeX is its automated and fully transparent use of typographic ligatures. However, as Knuth pointed out in the ...
373 views

### Environment with customizable number of table columns

I want to make macros for drawing group of questions with same answers with customizable text, number of answers and design (column widths, alignment, etc.), like this: ...
239 views

### Testing for TeX boolean in Lua code

How can I test for a TeX boolean in Lua? This kind of code doesn't work: \newif\if@mypkg@someif \begin{luacode} -- some lua code \if@mypkg@someif -- some more lua code \else ...
1k views

### Undesirable highlighting of a keyword name (dh) occuring within an identifier (0dh)

I'm using the x86masm dialect of Assembler and register names are emphasized even when they occur inside of a label or a hexadecimal number. For example, dh is register, but 0dh is a number, yet the ...
2k views

### Dash across letter (letter đ) [duplicate]

Possible Duplicate: How to look up a math symbol? How can I put a dash across the letter d? Not through the middle but only through the top vertical line bit. It's like the \hbar used in ...
1k views

### How do I find out what font is used in this picture/text [closed]

Could anyone help me with identifying the bellow font?
392 views

### MTPro2 and amsbook conflict

I am using the MTPro2 fonts with amsbook class. However something strange happens when I activate the mtpfrak option for the alternate fraktur fonts. LaTeX simply ignores it! That is I see the old AMS ...
2k views

### Acrobat on Windows doesn't recognize the images from pdflatex pdfs generated on Ubuntu [closed]

I'm dealing with an annoying behaviour of my pdf file. It seems that Acrobat or Reader doesn't recognize the images. I work with texlive on Ubuntu 11.04 and I compile the source file with pdftex in ...
872 views

### How can I make texdoc find certain documentation?

(This is a question in relation to something brought up in chat, http://chat.stackexchange.com/transcript/41?m=1918860#1918860.) I'm using TeX Live 2009 in Ubuntu 11.04 and neither texdoc pgf nor ...
190 views

### Quote style like on owni.eu [duplicate]

Possible Duplicate: Block quote with big quotation marks How can I reproduce with TikZ the quoting style from Owni.eu http://owni.fr/2011/09/13/increvable-droit-dauteur/ in a environment? ...
2k views

### Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
940 views

### multiletter names in lambda calculus

First, I am new to TeX and use it only for mathematical expressions. IMHO the most striking feature is that TeX does not respect whitespaces. In lambda calculus, application is denoted by ...