15
votes
2answers
2k views

Write text above other text

What I would like to do is to make corrections to a document- to cross out some text using the ulem package and then to put the "correct" answer above it. e.g. ...
5
votes
2answers
1k views

Combined header cell in a table

This question is closely related to at least two other ones; namely, Tables of numbers, and slashbox alternative. What I'm after, is the horizontal- and vertical-alignment of row- and column-headers ...
0
votes
1answer
331 views

Query on the \pageref command

I am trying to use the \pageref command and although it seems to work appropriately and finds the correct page number, for some reason (unknown to me..) it causes big spaces before and after the page ...
5
votes
4answers
7k views

Centering split equation

I am quite new to TeX. I want that each line in the following equation be centered, but I cannot find how to do it. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
5
votes
2answers
321 views

Two amsrefs bibliographies, with different label styles

How can I convince amsrefs to use in one biblist the alphabetic style and in another biblist the numeric style?
23
votes
3answers
3k views

Using opacity in TikZ causes strange rendering in Acrobat.

I have a problem using opacity in TikZ. Whenever I use it somewhere in a picture, I get weird side-effects: colors in (some) other parts of the documents are changed apparently randomly and it makes ...
8
votes
2answers
8k views

How to place subfigure caption on the side?

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect ...
5
votes
2answers
1k views

Using one counter for different floats?

I'm using two different floats, and I'd like to use the same counter for both. The standard LaTeX format for a new float is: \newfloat{type}{placement}{ext}[outer counter] I tried using this by ...
11
votes
3answers
14k views

slashbox alternative [duplicate]

Possible Duplicate: Diagonal lines in table cell Is there a better way to label both axes of a table at the same time rather than using slashbox? It looks kind of ugly.
8
votes
1answer
810 views

Replicate Figure w/out Inserting New Entry in List of Figures

I would like to replicate a figure in Chapter 3 within Chapter 6 such that the figure is displayed and optionally, it has the caption and Figure number of the figure in Chapter 3. If that is not ...
6
votes
2answers
3k views

Putting a tabular in a node within a matrix

I have a picture in which each of the nodes looks something like this: \node (species1) [shape=rectangle,draw] { \begin{tabular}{c c c} \multicolumn{3}{c}{{Species 1}} \\ \colorbox{red}{G1a} ...
9
votes
1answer
6k views

How to set style of a single edge in the tree (TikZ) ?

The Tikz manual gives "edge from parent" construct. But it is peculiar (it changes all the edges in subtree and some nodes). How to color and thicken exactly one edge?
9
votes
3answers
3k views

horizontal alignment of dot over hat over bold greek letter!

For some strange reason, this: \hat{\dot{\bm{\phi}}} prints the dot and the hat slightly off the left of the phi letter. Any ideas if this can be fixed? thanks. Using bm package for bold symbols.
4
votes
2answers
789 views

Is this a TikZ bug?

I have this TikZ code: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} [ level 1/.style={sibling distance = 2cm, level distance = ...
6
votes
2answers
1k views

Tikz: labels above the arrows using chains library?

I'm using chains library from TikZ. I would like to have a label(node?) above arrows. Is it possible? I found this, but it is quite hackish. Is there a standardized way?
11
votes
1answer
5k views

email adress renders incomplete mailto in PDF

When I put \email{e.xmaple@example.com} in a LaTeX document the resulting PDF shows the email address correct, but the link points to .xample@example.com. de character before the dot gets left off. ...
25
votes
3answers
16k views

Upright Greek letters in text mode (not upgreek)

How do I type upright Greek letters? I have tried upgreek but it uses specific fonts (Euler or Adobe Symbol). I want to use the upright Greek letters in the actual font being used. I'm thinking of ...
6
votes
3answers
20k views

Bold and italic in subsection

In the following documentclass \documentclass[prb,twocolumn,showpacs]{revtex4} how to have italic and bold in a subsection title? The italic command removes the boldness when inside a subsection, ...
11
votes
5answers
6k views

Are there any packages for creating charts?

I'm looking for a package in which you can create nice bar and/or line charts in LaTeX. Currently I'm plotting the charts in Calc (OpenOffice), export it to a PDF document, crop it and then including ...
6
votes
1answer
1k views

Asymptote generated 3D raster image

Consider the following minimal Asymptote 3D example: \documentclass{article} \usepackage{filecontents} \usepackage{asymptote} \begin{filecontents*}{testfile.asy} import three; ...
3
votes
0answers
207 views

Font Appears different [closed]

Hi I am using Sanskrit2003 font and it appears with additional circle in TeXWorks, just to verify I copied it to MS Word & open office and it appeared fine in word. I am attaching an image to ...
11
votes
2answers
1k views

How to align integers on the right, but still center them

Suppose we have a table like this: \begin{tabular}{c} Heading \\ 1 \\ 10 \\ 100 \\ \end{tabular} This will center all the numbers. If I want to align them to the right, I could change the column ...
0
votes
0answers
543 views

Externalize eps figure with TikZ [duplicate]

Possible Duplicate: Export eps figures from TikZ How make externalize EPS figure with TikZ?
5
votes
3answers
948 views

How to distribute a set of circles in polar array?

How can I evenly distribute a set of circles (the red circles in my case) in polar array? The central distance between the big red circle and the white circle is 4.267 cm in case needed. Many thanks ...
2
votes
1answer
2k views

Changing position of year in natbib with plainnat style

I am using Miktex with Natbib such as: \usepackage{natbib} \bibliographystyle{plainnat} \bibliography{model} When the bibliography prints out the author year is at the end. I need it to go after ...
17
votes
3answers
9k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
4
votes
2answers
1k views

Position of superscript when superscriptd item has \hat over it

I am trying to typeset he following inline math for a camera-ready document: $\hat{\boldsymbol \Sigma}_{P}^{-1} \hat{\boldsymbol \Sigma}_{G}$ It appears that the superscript -1 is aligned ...
5
votes
2answers
434 views

Using \input vs. \scantokens in section title (with package hyperref)

I meet the following issue when trying to use \scantokens in section titles, together with the hyperref package (whithout this package, all is fine). \protect\input... can appear in a section title. ...
12
votes
1answer
7k views

LaTeX Listings Package, No Line Number for Comments

I am trying to get only the actual code to be line numbered rather than both code and comments. Example: \lstset{basicstyle=\footnotesize, xleftmargin=40pt, frame = single, numbers = left,caption = ...
4
votes
1answer
473 views

How to make CircuitTikZ symbols smaller

Is there a way to make symbols of the CircuitTikz package smaller (like ports). Using small/tiny as argument doesn't help.
18
votes
6answers
1k views

\tableofcontents encoding issue with lualatex

I have a issue when trying to generate table of contents with lualatex in russian. Following example fails to build with ! Undefined control sequence. \contentsname ->{\cyr \CYRS \cyro \cyrd \cyre ...
2
votes
1answer
269 views

Are there any packages that I should not be using with ifthen package

I am new to TeX and I started adding package files to prepare my document without worrying about conflicts. I am asking this subjective question because I am not sure if I can post entire document ...
7
votes
1answer
553 views

Is it possible to disable old style numbers for specific cases?

Is there a way to disable old style numbering only for specific cases? Right now I have old style numbering enabled globally for my whole document via \usepackage[osf]{libertine}, but I want to ...
15
votes
4answers
801 views

File copy without expansion

What is the command for file copy? I want to copy the contents of one file into another without any command expansion. In a command line driven operating system one would use copy source target I ...
4
votes
2answers
532 views

Packages for writing feedback forms

I'd like to make a document that would leave ample room for the reader to fill in answers on the sheet. (nothing fancy and interactive, just whitespace for writing on the printed version) What ...
2
votes
1answer
179 views

Ensure whitespaces between footnote numbers, citation numbers, etc…

Is there a way to ensure that footnote numbers and similar don't stick together in the final document (because I forgot a manual space between them? Example: Instead of asdf\footnote{a}\footnote{b} ...
5
votes
4answers
2k views

LaTeX parser to perform operations on tags (commands) and its content?

Is there a LaTeX parser available that can be run from a (*nix) command line, and that allows operations on LaTeX tags/commands and its content? What I am trying to do is, for example: script-wise ...
5
votes
1answer
2k views

How to write natural deduction trees in LaTeX. [duplicate]

Possible Duplicate: What is the best package out there to typeset proof trees? Is there some package to use in order to write nice natural deductions (logical deduction trees)? Examples ...
15
votes
3answers
1k views

How to make formulae take equal vertical space in the align environment?

Consider the following code: \begin{align} f_1(x) &= \frac{15x}{3} \\ f_2(x) &= 3x + 5 \\ f_3(x) &= 4x + 13 \end{align} This produces three lines where the first line takes up more ...
6
votes
2answers
2k views

Using xetex, I'd like to set the monospace font size for my entire text

I set my monospace font using \setmonofont. I'd like to be able to change the size of this font for my entire document, rather than use \fontsize everywhere. How can I do that?
5
votes
3answers
4k views

Creating a separate list of appendices with tocloft

I'm very sorry but I have to ask for urgent help as I could not make sense of the individual questions I asked previously. I'm required a separate list of appendices, i.e. the appendix is not to show ...
13
votes
1answer
2k views

Beamer XeTeX Right to Left

I am preparing Farsi slides in beamer which is a right to left language just like Hebrew. I have problems in the presentation which I briefly discuss: The TOC is left to right: The itemize can be ...
16
votes
3answers
6k views

Rounding numbers in a table / Truncating text in table

Is it possible to have automatic rounding of numbers in a table? Say that I have this, made in the usual way with a tabular environment: pi | 3.14592654 e | 2.7182818284 phi | 1.6180339887 Can ...
3
votes
2answers
5k views

How to define a header/footer style using \fancypagestyle?

Question How to define a header/footer style using \fancypagestyle ? Minimal Code (does not work) \documentclass{book} \usepackage{fancyhdr} \fancypagestyle{ttt} {% \fancyhf{} ...
3
votes
2answers
809 views

Using the “master file” with emacs and Sweave

One of the things I love about emacs is being able to specify a master file, then compile an included .tex file - I just use C-c C-b For sweave documents, I have the following layout: master.Rnw ...
3
votes
1answer
1k views

Where should I setup the markup of header/footer? In \fancyxxx or in redefinition of \xxxmark?

\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \fancyhead[RO,LE]{\small\sf\color{black}\rightmark} ...
83
votes
6answers
4k views

What is the minimum one needs to know to use TikZ?

I am fed up with the poor quality of the pictures in the papers written by my graduate students and am trying to convince them to use TikZ. I know of three ways to begin learning TikZ: The TikZ ...
9
votes
2answers
569 views

Why is this loop so much faster under Windows?

In a recent question, Yiannis Lazarides was asking about benchmarking loops. Strangely his results were about 800 times faster than mine. I couldn't quite accept that my computer is that outdated (as ...
5
votes
0answers
323 views

Glossaries disabling a footnote on first use [closed]

I have set to for each glossary item (not acronym) a footnote on the first use. But now I have a glossary item which only appears in the table and I don't want to show a footnote for that single item. ...
6
votes
1answer
6k views

Use custom latex package in LyX

I just downloaded the package stmaryrd and have a LyX LaTeX Beamer document in which I want to insert some symbols with this package (\llbracket). Is there a way to make LyX include the package in the ...

15 30 50 per page