# All Questions

900 views

### How do I place a single character from unicode in a LaTeX document?

I want to place a character from several, non-Latin, languages. I guess I can do this using unicode, but how do I do that? Specificaly, I want to place the Hebrew Aleph and the digit currently used in ...
461 views

### \index causing spurious whitespace

I'm having a problem with the \index command causing unwanted whitespace: \documentclass[a4paper,11pt,oneside]{book} \usepackage{makeidx} \makeindex \def \nothing #1{} \begin{document} \noindent ...
502 views

### LaTeX datatool problems

I'm using datatool package on a LaTeX document. I use it to write labels. I have the addr on a CSV file. The problem is that I'm unable to write more that 25 labels. It seem like if datatool can't ...
250 views

### How do I pass an expanded optional argument using expl3/xparse?

I have a command defined using xparse syntax: \DeclareDocumentCommand \foo { O{} m } {} Inside some other command (say, \bar), I want to call this command. The calling command (\bar) has to ...
4k views

### What's the best way to embed Visio diagrams?

I was wondering if there is an easier (and better) way of embedding Visio diagrams into a LaTeX document. As far as I know there a two ways: Save Visio Diagram as PNG and use \includegraphics Save ...
1k views

### Can my LaTeX (maths) code be improved?

I feel that my code isn't written very efficiently. \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{wasysym} ...
1k views

### Wider tables in LaTeX, which is the best solution?

Hi I have a LaTeX table code generated from R like the following \usepackage{rotating} ... \begin{sidewaystable} \begin{center} \small\addtolength{\tabcolsep}{-7pt} ...
6k views

### Add Footer Text to All Slides in Beamer

Is there a way to append footer text to the slides in beamer? I wanted to get rid of the default footer, but I want to add a bit of additional text. Right now I have: %gets rid of bottom navigation ...
411 views

### Location of entry's page number in toc, lot and lof

I'm using titlecontens offered by titletoc package to format the entries in toc, lot and lof. For a multiline entry, the default location of its corresponding page number is after the last line of ...
7k views

### How can I generate PDF metadata from LaTeX?

I am writing a document using LaTeX and generating PDF. Can anybody tell me how I can generate the PDF metadata, e.g. author or title, from LaTeX? On Windows XP, I am using MikTex's texify to ...
296 views

### Create plain CSV list of pages with/without figures

I'm wondering if there's an easy way to have LaTeX output two lists: of pages containing and of pages not containing figures and/or other color objects. I'd like to print color pages on a color ...
488 views

### Two table counters and hyperref links

I have a document with two sets of tables. The first set, numbered 1 to 5, are in the main body of the text. The second, numbered 1 to 3, are in an appendix. When I use \ref to link to one of the ...
619 views

### Why did they put PDF titling in the hyperref package?

The ability to title/attach an author to a published PDF file is in \hypersetup which is part of package hyperref. But it seems rather unintuitive to me that the pdftitle, pdfauthor, pdfsubject items ...
1k views

### How do I get rid of “Key http://link is undefined” warnings? [closed]

When using the hyperref package, I keep getting this warning that says something like: Key ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf is undefined whenever I include an http link. ...
11k views

### Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...
571 views

### Trapping LaTeX error/warning

Is there a way to trap an error/warning in LaTeX during compile time? I'm thinking of something similar to the VB script On Error Goto <blah>, but this time for LaTeX in something like ...
4k views

### Beamer background image centered

I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like: ...
7k views

### Where is the \matrix command?

From what I can see, \matrix was a TeX command, but I cannot seem to find documentation on it. It works in MathJax, so I wonder if it can be used in LaTeX. ie this is valid MathJax:  \left[ ...
136 views

### The entire table is not displayed even when rotating package is used [closed]

I have some tables with wider column content, I have 8 columns. The whole table is not displayed in LaTeX, when I reduce the font size also there is no result. I have about 7 tables in single .tex ...
2k views

### Problems with formatting LaTeX document pseudo code, ending while loops

I am writing a LaTeX document for some pseudo code I have written. I have a bunch of while loops, but the way latex is formatting them, it looks like: while(x) while(y) while(z) whereas I ...
641 views

### How to eliminate unnecessary page break in LaTeX?

I have couple of lines (text) followed by table. I want both the text and table to appear in same page, now text appears in one page and table in next page. How to change it? I have tried using ...
1k views

### How to change paragraph separation to indent within blockquote (csquotes)

I am using the package csquotes to generate a blockquote. csquotes inserts what looks like half a blank line between the paragraphs within the quote. I would prefer to have no vertical space but an ...
1k views

### In align environment, how can you label some (but not all) of the equations?

I know that the align environment labels all the lines, while the align* environment labels none of the lines. Is there a way to have the align environment label only some of the lines? For example, ...
864 views

### Does LaTeX have a built-in scripting language?

Say I want to draw a simple graph in LaTeX. I'm interested to know if you can write a for loop or something to create things like lines or squares programmatically in LaTeX.
418 views

### Spurious horizontal space in the aligned environment

If you compile what's below, you'll observe a slight horizontal misalignment between the equations of aligned versus align. Is there a way to avoid that? \documentclass[fleqn]{book} ...
189 views

### Get \ref for equations working like \cite for contiguous references

When referencing a list of equations like see Eq.12, 13, 14 and 15 the \cite command behaviour, which allows a single list of references, should be preferred I think. Is there something equivalent for ...
516 views

### Bug in swedish-babel?

When I use the Swedish babel package, the header on the even sides of the table of contents is written "INNEHåLL" (note the lower-case å which should be an Å). If I use the English version, it ...
576 views

### Redefine \textsc for slightly large small caps

In most fonts, the small caps are as tall as the x-height, but this looks weird when you want to tack an 's' onto the end of an abbreviation to make it plural (discussed in depth on typophile). I can ...
96 views

### Darker typeface in pages which include figures [duplicate]

Possible Duplicate: Why are some pages in my PDF coming out bold? In my PDF output, pages with figures on them have a darker typeface than pages without figures. This does not appear when I ...
171 views

### Turn off paragraph indention for a single line

Is it possible to turn off the paragraph indention for a single line? I have the following use case: I open a new section which describes the task of an exercise. Since I use the font size \large for ...
519 views

### Math mode spacing (or glyph bounds) with mathspec

With mathspec, when you change the math font to an OpenType font, the spacing within equations is not fine: it is the same than the text mode spacing. For example in the equation $e^j$, the 'j' will ...
850 views

### Help to develop a \textcite command to be used with verbose citation styles in Biblatex (help with \DeclareCiteCommand)

This question led to a new feature in a package: biblatex I want to have a \textcite command to be used with verbose citation styles in Biblatex. It should do something as this: I use it ...
1k views

### Turn off bold in title + change header on title page

I am trying to make a title page following a template provided. I need to have a top right header on every page except the first where I should have only the name of the grant council at the top left ...
2k views

### Top-align text in a TikZ node of given size for single- and multiline case

I would like to set text in a TikZ node of maximum width and minimum height, i.e. the node cannot grow horizontally (but shrink for short text) but it can grow vertically (if the text exceeds the ...
473 views

### apacite: change ampersand (&) to comma between the last and second last names

I am new to biblatex. I am using the package apacite for formatting references in APA format. I come up with a list of names that looks like: Ghosh, M & Razmpour, A. How can change the & ...
167 views

### titlesec: toptitlemarks and bottitlemarks broken when \section not called explicitly

This question is linked to my previous chapter-and-verse-in-header question I am trying to produce a Bible text where the Chapter and Verse references appear in the header of each page. As can be ...
397 views

### BibTeX alpha long keys cause indentation of entry [closed]

I'm using BibTeX with the alpha style to keep track of my references. Whenever there is an entry with 4 or more authors, the entry id composed of their names and publication years causes the first ...
3k views

### Center sideways text in table

I'm trying to make a two-column table environment. The left column is supposed to center the sideways text "Tips" vertically and the right column should be a normal paragraph column. Here's what I ...
1k views

### Calling a previously named path in tikz

Using the intersections library, we are able to name a path. For example \path[name path=line1] (0,0) -- (1,1); Now, how can I later in the picture call upon this path with the name line1 and do ...
2k views

### How do I prevent LaTeX from showing a whitespace following a quote when in an lstlistings environment?

When I am inside the lstlistings environment, it seems that using a quote such as (') or (") will toggle on the showing of whitespace indicators (small little half rectangles). Am I doing something ...
3k views

### Debugging 'Font shape undefined' and 'Corrupted NFSS tables' (T5, concretevn and sig-alternate)

I was told to take a look for an unspecified problem with the fonts in one of my PDFs generated by pdflatex.. I couldn't find anything obvious, except for the innocuous: LaTeX Font Warning: Font ...
631 views

### beamer with notes displayed while giving a presentation [closed]

What are people currently using to have notes available while giving a presentation? This post shows how to have a notes section for taking notes (audience oriented). I guess the presenter could ...
1k views

### How to draw stack diagram with TiKz?

I want to draw a stack diagram looks like this with TiKZ. I wonder is there way to draw this diagram with automatic positioning like drawing Automaton? Any idea? Thanks in advance.
1k views

### How to highlight own keywords in HTML lstlistings?

I would like to highlight some words in a lstlisting. The language is HTML. However, \emph seems not to be working with HTML. Any suggestions how I could work around this problem? Right now I have: ...
2k views

I'm struggeling a little bit with the display of table of contents. I had previously a problem using natbib , and now the same issue with listings. Maybe I'm mixing something up with documentclass ...
5k views

### How to color the font of a single row in a table?

I have a table and I want to make the font color red for just one row (not the background). How do I do that? Here's my table: \begin{tabular}{ l | l l l l } & 1 & 2 & 3 & 4 ...
204 views

### LaTeX figure rendering incorrectly [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned The following code: \clearpage \section{Section 1.2} This is a paragraph. The details page should look like ...
2k views

### Create a table with two parts with different tabular features

I'm trying to build a table that has two panels with different numbers of columns. For example: Table 1: An interesting table Panel A: Some stuff First name Last name Product ...