8
votes
1answer
250 views

Missing Subsequent Citation?

[Preface: I'm certain this question has been posed before but I could not find a simplified example as described below. I did find other threads but regarding more complicated formatting....] With ...
6
votes
1answer
7k views

multicolumn in array environment

I want to create a matrix like the following in a math environment but i keep getting compile errors. \begin{array}{c c c c} \multicolumn{3}{c}{R} & P \\ 0 & 0 & 0 & 1 \end{array}
6
votes
1answer
1k views

Pgfplot barplot with cluster of stackedbars

How can I create a pgfplot that have two stacked ybar for each "point in x axis" ? I wan't something like this: I already have a graph that have one stacked bar for each x point. Some hint on how ...
8
votes
3answers
495 views

Poster text positioning: Get width of \hfill

How can 0123456789 be aligned as shown in red: Same baseline as abcdefghij, aligned left with ABCDEFGHIJKL? \vlines are just for illustration. I am designing a poster where exact text positioning ...
2
votes
1answer
3k views

Missing $ error in math mode

I have the following LaTeX code (beginning from line 80): \begin{definition} $\hat{n}_{v}$ = \begin{cases} $n_{v}$ & \text{ if } $v \in$ \text{connected component of size} $< ...
5
votes
2answers
273 views

xparse verbatim with newline

I'm trying to define a simple command using xparse and it's verbatim argument: \DeclareDocumentCommand\macro{v}{#1} but see ! LaTeX error: "xparse/verbatim-newline" ! ! Verbatim argument of ...
4
votes
1answer
177 views

Remove whitespace before tabular within textblock*

Could you help me align Text2, within tabular and textblock*, to the baseline of Text1? Would be much appreciated. \documentclass{article} \usepackage[absolute,overlay]{textpos} \begin{document} ...
20
votes
1answer
30k views

center horizontally and vertically a block of text

I would center horizontally and vertically a block of text as if it was an abstract text block.How can I do? I tried this: \null\vfill \begin{center} \end{center} \vfill\null it It correct?
1
vote
1answer
238 views

How do I paste codepoints outside of the basic multilingual plane with accsupp or \pdfglyphtounicode?

As described in the answers to this question, the accsupp package can be used to have symbols paste as arbitrary Unicode codepoints. For example you might want to write something like the following, ...
4
votes
1answer
1k views

`pmatrix` line break

I wrote a matrix using the pmatrix environment. The content is very long and LaTeX produces an output of the kind (the "a" line extending beyond \textwidth): ( aaa aaa aaa aaa aaa aaa + aaa aaa aaa ) ...
4
votes
1answer
264 views

How to modify this command to vertically align a table cell?

This minimal code example: \documentclass[helvetica,portuguese,narrow]{europecv} \usepackage[top=1.5cm, bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry} \usepackage{graphicx} \begin{document} ...
3
votes
1answer
5k views

Using Terminal to run LaTeX commands

Since I always used TeXShop to compile my tex-files I did not have to run LaTeX commands via terminal (many macros like BibTeX, MakeIndex etc. are included in TeXShop). Now that I want to include an ...
1
vote
1answer
116 views

TikZ compiles fine with pdfLaTeX but all labels are placed at origin with pdfTeX [closed]

I have the following code that works just fine when I compile with pdflatex, but does not work right with latex. In the second case, the lines are fine (at least to my eyes) but all labels are written ...
2
votes
1answer
2k views

center the listings title above the code

I can't manage to center the title "Listing:1" over the listing. \documentclass[8pt,blue]{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{subfigure} \usepackage{fontspec} ...
5
votes
1answer
348 views

Savebox with \bgroup/\egroup doesn't work in beamer (for environment)

This works: \documentclass{article} \newsavebox{\mybox} \begin{document} \savebox{\mybox}\bgroup This is a test.\egroup\usebox{\mybox} \end{document} But this fails (Missing } inserted. at the ...
2
votes
1answer
193 views

How to produce layers of running commentaries?

I am looking to make a quite common document for which I'm nevertheless having difficulty finding the right package/setup. I want to produce a Sanskrit document (using xelatex) of a base text with ...
3
votes
1answer
1k views

Two Captions for the table

I got tables working based on MWE. It was provided by @Yiannis Lazarides How to create new table environment How can I create two captions one on the top and one on the bottom. ...
2
votes
1answer
723 views

PGFPlots \addplot cannot read regression column [closed]

I am trying to plot a small dataset and a regression line for it. Here is my MWE: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{pgfplots} \usepackage{filecontents} ...
7
votes
1answer
4k views

How to use classicthesis?

Once I discovered classicthesis I fell in love with the layout and used it for study reports and so on. In the first step I downloaded the sources and customized the settings in various files as ...
2
votes
2answers
2k views

pdftex: Embedded pdf graphics not printed or partially printed

My problem concerns PDF not being portable across platforms. I use these apps: * MacOSX 10.6.8. * Texshop 2.47, right out of the box, nothing customized. Default command is LaTeX. Default script is ...
9
votes
1answer
858 views

How to draw tangent lines at control points of a path in TikZ?

I'm drawing smooth paths by using the \draw plot[smooth, tension=.7] coordinates ... command. Now I would like to draw tangents at the specified coordinates. I alreade tried Jake's answer, but I ...
4
votes
2answers
695 views

Vertical line in middle of a binomial tree (lattice)

This is a really tough problem that I have no idea how to solve. I wish to have a dotted veritcal line in the middle of my binomial tree, with a $\tau$ underneath.. The kind of thing I want is as ...
2
votes
0answers
480 views

\thispagestyle{empty} and page numbering [closed]

I'm trying to suppress the page number on a few pages of a large document. I'm using \thispagestyle{empty} to perform this task, and it works exactly as I want it to. However, when I later compile the ...
3
votes
1answer
488 views

Setting page numbers correctly

I'm preparing a paper and I created a title page, an abstract page and an acknowledgments page. Those pages must not show page numbers. So I used \setcounter{page}{-1} for the title page and ...
1
vote
1answer
311 views

blank page not created

I create a blank page using \newcommand\blankpage{ %comando pagina vuota \null \thispagestyle{empty}% \addtocounter{page}{-1}% \newpage} Here it is one my page: ...
3
votes
1answer
467 views

Reduce spacing between items [duplicate]

Possible Duplicate: Vertical space in lists Please, how can I reduce spacing between items ? \begin{itemize} \item[\textbullet] first \item[\textbullet] second \item[\textbullet] third ...
3
votes
1answer
1k views

Minor bugfixes and adjustments for the TOC of classicthesis

I am using classicthesis and prepared my document with parts, chapters and sections. This produces the following table of contents. There are some details that I would like to fix: Longer part ...
2
votes
0answers
35 views

delete page number in cleardoublepage [duplicate]

Possible Duplicate: How to remove headers and footers for pages between chapters? I created a document using \documentclass[12pt, a4paper, twoside, openright]{book} ...
6
votes
2answers
2k views

Footnote rule in beamer showing too early with overlays

Consider the following MWE : \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize}[<+->] \item item \item item\footnote<.->{footnote} \item item \end{itemize} ...
6
votes
2answers
2k views

Why can't I get pstricks with auto-pst-pdf (and cropping) running on MikTeX?

\documentclass{minimal} \usepackage[pdf]{pstricks} \begin{document} \begin{pspicture}(-5.25,-5.25)(5.25,5.25)% \pscircle*[linecolor=cyan]{5} ...
4
votes
1answer
2k views

miktex, ucs, uni-global.def and empty unicode directory

I'm trying to compile a cv with LaTeX and the europecv class. Compilation fails because a file named uni-global.def is missing. After a Google search, I found that file should be into the ...
2
votes
1answer
366 views

Making 1 skinny column in TikZ binomial tree

I have a binomial tree with arrows pointing backwards. I currently have short arrows pointing towards the left-most node (which is invisible). This first colum is taking up very little visual space, ...
1
vote
2answers
225 views

correcting kerning for tikz shapes as accents in mid-word

I'm trying to place arrow shapes above certain letters in a text. I tried compensating for the extra space of the tikzpicture in mid-word, using execute at begin picture and its end pair. The results ...
4
votes
1answer
300 views

(Tikz) graphics: series of pictures _outside_ beamer-style frames and overlays?

I want to create a series of related graphs, for instance, higlighting the traversal through a graph. It works nice using overlays in beamer frames. Can I do analogous things in a normal document? ...
2
votes
1answer
156 views

\textsuperimposetilde does not superimpose as \sum subscript

Compiling the document, the tilde and P lie seperately under the \sum operator, but as the command superimpose would suggest, I would like them to be superimposed. Works just fine when using ...
5
votes
1answer
2k views

alltt package's \alltt{} makes a newline

alltt causes a line break (newline). How do i suppress this? I want something to the effect of \verb+HELLO+ in that it does what \begin{verbatim} \end{verbatim} does except doesn't cause the line to ...
5
votes
3answers
1k views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
1
vote
2answers
2k views

Using .bib files for bibliographies

When using references in my document, I'm used to having a central .bib file from which I pull all my references (using \bibliography{path/to/bibfile}) and then let the journal's .bst file do the ...
5
votes
1answer
315 views

Is there an easy way to use only mathpazo's blackboard-bold facilities (without it using Palatino)?

The mathpazo package sets Palatino as the document's main font. However I am only interested in its blackboard bold symbols. Is there an easy way for me to only use Mathpazo's bb symbols?
6
votes
2answers
233 views

create a horizonal line having the length of the text

I would insert two horizontal line here an example: ------- Foo ------- I had used hrulefill but the line has the length of the page.
45
votes
3answers
8k views

Difference between various methods for producing text in math mode

What is the difference between \text, \textrm, \textnormal, and \mbox (and possibly other commands commonly used to produce text in math mode)? Various (La)TeX tutorials teach different methods, and ...
25
votes
3answers
3k views

Why are so many symbols restricted to math mode?

A common beginner's mistake is to forget \(...\)/$...$ around symbols that require math mode. Why doesn't (La)TeX let people use isolated symbols in text mode by default? I am sure there are at ...
4
votes
2answers
450 views

Align the text in flushright block

I had two different lines into a block flushright.it is so: Foo Hello Everyone I would align these two lines in this way: Foo Hello Everyone Edit: \begin{flushright} Foo Hello ...
1
vote
1answer
113 views

customs margins of my paper [duplicate]

Possible Duplicate: Latex margins, need specific advice for publishing specifications I'm trying to set the margins of my paper using geometry. I would set the margin of binding 3.5cm ...
6
votes
2answers
455 views

\read: trailing spaces are removed

I'm trying to copy a (binary) file with LaTeX (mostly for the sake of it), but when I read a line, the trailing spaces are removed. The MWE, based on this TeX.SX answer: \edef\infile{infile} ...
8
votes
1answer
832 views

\part and \chapter commands output both numbered and named headings

I have the following LaTeX document being compiled in TeXstudio 2.3 on Windows 7 (mode is PdfLatex + PdfViewer): \documentclass[a4paper,12pt]{report} % Modified \part and \chapter from report.cls ...
3
votes
1answer
716 views

Problem with pgf-pie and \newcommand use

I am currently using pgf-pie package and I face a problem when I write the pgf-pie content using \newcommand instruction. The following MWE \documentclass{standalone} \usepackage{pgf-pie} ...
13
votes
1answer
9k views

How to customize the page header and the page number of classicthesis?

I am using the classicthesis package and would like to customize the page headers and the page numbers. Here is a test project that shows the problem. \documentclass[dottedtoc, headinclude, ...
2
votes
2answers
385 views

Empty page with number at the end of chapter

My thesis document is having an empty page at the end of the chapter. The page is numbered too. Any ideas what could have caused this ?
4
votes
2answers
598 views

How to outsource \hypersetup to an external file?

I use the hyperref package and defined custom settings as follows: \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{url} \usepackage{hyperref} \hypersetup{ bookmarks=true, ...

15 30 50 per page