All Questions

1k views

Creating a new environment with referencing

I'm trying to create a referenceable "system" environment that basically displays an equation with a custom counter. Then I want to reference the environment with autoref, so as to have "System (S1)" ...
619 views

Odd behaviour with arrows and multipart rectangles

I recently posted a question Display issues drawing DNA sequences with TikZ. The issues I described were for the most part resolved, but one remains. I managed to simplify my example down to show the ...
38 views

Image is not in the right position [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned Why does the image is not at the point where I included it in the code, but at the end of the part? \documentclass[...
52 views

Remove un-numbered section names [duplicate]

Possible Duplicate: How do I make the sections un-numbered? I'm using \documentclass[12pt]{article}. All my section titles get numbered. How can I make them un-numbered?
173 views

redeclare an arrow in TikZ

As you know, I'm adding more arrows to the code in this answer (maybe tomorrow). At this point, I'd like to overwrite the arrows declarations so that one can simply write -latex instead of -latex new, ...
7k views

Insert code or text file in latex as is?

Question : How can I insert a txt file ( a source code) as such in latex without any change in indentation, tabs, formatting etc? Scenario : Consider I have a text file as below ( It is a part of a ...
1k views

Comma at the end of last BibTeX field

A BibTeX entry looks like @entry_type{internal_key, field_1 = "value_1", field_2 = "value_2", ... field_n = "value_n" } I've seen examples that put a comma after "value_n". Is there any ...
245 views

Shorthand for variables lead to name clash

646 views

Replacement for \curveto in the tikz library - Inkscape export svg to tikz

I need to draw a complex curve and I wanted to help a vector program Inkscape. In first step I tried to use Inkscape to TikZ exporter (http://code.google.com/p/inkscape2tikz/)to convert curve to tikz, ...
4k views

List of figures as a section with number

How can I get the list of figures as a section in an article document, so it will be listed in the table of contents? At the moment it's listed in the ToC, but without number.
327 views

Footnote inside stackrel

I am writing an equation and I'd like to put above the equal sign $(=)$ a footnote describing shortly the reason for that equality. I tried $x^2\stackrel{\footnote{foo}}{=}x\ast x$ but this ...
1k views

Dashing one edge from parent in a tree: why does it work

This is related to the question How to make a connection in a tree with a dashed line?. Therein, it is asked how one can make one connection between a parent node and a child dashed. The final ...
362 views

A serie of questions related themselves. Context: I'm writting a LaTeX document and I want to license it under a GPL v3 license. I have a own package with some macros, the great majority ...
429 views

Pgf plot square not positive

I am using pgfplot to draw a node and a cusp but it seems to be that the squares \x^2 are returning negative numbers to the coordinates. This is strange. I was using the same code before and getting ...
249 views

Align text and logo

I'm trying to find a way to place a logo at the top left of the page, with at the same height and right aligned my information (eg name, adress). The rest of the text has to be placed below that. I ...
502 views

matlab2tikz and bar3 function

If I use the function hist3() it perfectly works with matlab2tikz. But if I use the function bar3 I find this in my matrix.tikz: % This file was created by matlab2tikz v0.2.3. % Copyright (c) 2008--...
3k views

How to generate multiple, numeric-style citation call-outs?

In my kile documents, I want to add multiple citations. For this I use the command \cite{cristo,taylor,polgar,phillips,speirs,simoes,roberto} The names in this command give numeric references, ...
295 views

querying whether a font feature has been activated via a fontspec command

A LaTeX package I'm currently writing makes use of -- and definitely requires -- some of the power of LuaLaTeX. I would like to make my package's user interface -- in particular, the options that need ...
6k views

Arrow end type stealth unknown [closed]

This is the first time I approach at drawing diagrams with latex. I have included the tkz library and the tkz library shapes.multipart. As my code is processed I get back a bunch of nasty errors, on ...
3k views

Symbol for encoding error: black diamond with white question mark �

I would like to add this symbol: � to a beamer presentation. It is shown when something went wrong with the encoding. Sadly, I can't simply include this symol: [53] ! Package inputenc Error: ...
36 views

Error in installing packages [duplicate]

Possible Duplicate: How can I fix the error “GUI framework cannot be initialized” with TeXnicCenter and MiKTeX? I am using window7 and MiKTeX2.9. I want to install new packages which is not ...
2k views

Cut one side of a rectangle node in TikZ

I would like to draw two consecutive rectangle nodes (one is next to the other with an intersected edge). How to cut one side of a rectangle node in TikZ so that the intersected side looks like others?...
106 views

Without changing the shape of the figure, how I can decrease the size?

\begin{figure} { \begin{center} \begin{tikzpicture}[scale=2.00] \node [draw, thick, minimum size=3cm, circle] at (0.5,1.3) {}; \node [draw, thick, minimum size=3cm, circle] at (0.0,0) {}; \node [...
83 views

align environment according to *first* character, rather than last

\begin{align*} abcd &= abcd &(abcdefghijk)\\ &= ab &(ab) \end{align*} After the first ampersand the equal signs are aligned. However, after the second ampersand, the ...
6k views

multiple algorithm2e algorithms in two column documents

I tried this example Place four algorithms (algorithm2e) in a subfigure and arrange them in two rows and two columns on two column documents. It doesn't work. The error message is ! LaTeX Error: [H] ...
288 views

Turning off all colors and background images in beamer

Is there a command to turn off all colors in beamer ? I have a tex file (beamer) where I have used a lot of colors. Just in case, the colors don't show well on the projector, I wanted to turn off all ...
1k views

How to create long underscore before the text? [duplicate]

Possible Duplicate: Long underscore in LaTeX a sample output would be like: __________ hello __________ hello
508 views

Setup SyncTeX with Emacs on debian stable (squeeze)

Is it possible to setup SyncTeX with Emacs on debian stable (squeeze)? Emacs24 is available from http://emacs.naquadah.org/ but squeeze is at its end of cycle and most other tools are outdated. \$ ...
93 views

Centering equation on a line

I am trying to center my equation on the line using this code: $\ l_{12} = \frac {m_{c} c_{c} \frac {dT_{c}}{dt} + m_{s} c_{s} \frac {dT_{s}}{dt}}{m_{s}} Delta t$ but I keep getting this ...
2k views

Drawing timeline

I have a dataset which consists of repeating events over time. Each event takes an arbitrary amount of time. I could plot this using gnuplot but am unable to produce correct keys because of the ...
975 views

parse variable length comma separated list into command

I've been trying to modify the solution here into a LaTeX3 command that takes a variable length comma separated list of numbers and an optional argument (a unit) and prints the square root of the sum ...
201 views

Is it possible to remove (or otherwise nullify) a whatsit node from a box?

I am aware that it is not generally possible to modify the contents of a box (as per http://tex.stackexchange.com/a/49903/17427), though I believe it is sometimes possible to "unbox" material and hack ...
484 views

Genogram with LaTeX [duplicate]

Possible Duplicate: Genogram or family tree with PGF/TikZ I want to draw a genogram with LaTeX. I tried to do this with tikz, but since you need to model at least 3 different relations ...
2k views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
1k views

Typesetting time

I want to typeset time so it looks beautiful. Here's my first attempt: \documentclass[a5paper,11pt,landscape,parskip]{scrartcl} \usepackage[top=1cm, bottom=1cm, left=1cm, right=1cm]{geometry} \...
1k views

Unwanted space before flalign

Why is there so much vertical space between the subsection heading and the equation in the following example. How do I get rid of it? \documentclass{article} \usepackage{mathtools} \begin{document} \...
1k views

Installing fonts for yhmath on MiKTeX 2.9

I'd like to use the yhmath package (pdf documentation), but it requires the installation of new fonts. This is beyond my knowledge level, and I'd really appreciate some help. I downloaded the CTAN ...
3k views

Adding text to the section numbering

I wish to add some text prior to the number given to a subsection, e.g.: Task 1.1 Blablabla ... Task 1.2 Blablabla How?
300 views

How to raise a LaTeX warning from within Lua code?

I want to raise a warning from within Lua code. With advice from the LuaTeX wiki and LaTeX 2𝜀 for class and package writers, I arrived at the following (working) solution: \documentclass{article} \...
590 views

How to remove the caption and the figure x in the figure but to add the caption in the list of figures?

I would like to remove figure 1 from the caption under my figure but to have it in my list of figures. Is it possible? With \caption[Entry for the List of Figures (LoF)]{}\label{fig:without} I can ...
872 views

How to create this image (graphing)

I want to create a graph with only the first quadrant. The values of x can only go from 0 to 9 and the values of y can only go from 0 to 9. In this graph, I want dots for (2,5), (3,3), (5,2) and (7,1)....
208 views

Why does \let\oldindex not work in this code?

This is a follow-up question to: How to make indexed words clickable in the text? I'm having two problems with the code given by @Stephen. If I use the following code to redefine the \index ...
2k views

Change caption in table from Table 2 to Table 1A

I have this code: \documentclass[12pt]{article} \begin {document} \begin{table}[h!b!p!] \caption{This caption describes contents of Table 1, gives the big picture.} \caption {Describe contents of ...
140 views

A way of handling \left and \right brackets [duplicate]

I'm looking a way of making something like this: \underbrace{ \left[\nabla\times \left[\nabla\times \left[\ldots\nabla\times }_{ \infty\text{-times taking curl operator} } \mathbf{...
2k views

Display top border of table using csvreader

I am using csvreader from the csvsimple package to generate a table in my document. I am struggling to get a top border on the table. Here is the code, including writing the .csv \documentclass{...
655 views

Tick numbers on x and y axis

How can I draw the x and y axis so that latex displays the tick numbers on it? (1 unit) I try: \begin{center} \begin{tikzpicture}[scale=0.5] \draw[very thick,blue] (3,-4) ellipse ({4} and {3}); \end{...
5k views

Background color gradient for entire document

Is anyone aware if it's possible to change an entire document's background to a fading color? In other words, can you take silver and slowly fade it to white from left to right and have this same ...
136 views

Why does pgffor not calculate correctly?

I have the following problem: I want to draw some moiree effects in tikz. This seems to be no problem. I did it without any error (two circles of trapezia). Now the two rings should be moved a bit. I ...