latex

Aligning matrix nodes in tikz

Another question about aligning nodes using matrices in tikz. Consider the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (m)[matrix of nodes, column sep=5mm,row sep=3mm, align=center, nodes={rectangle,draw, text width = 2cm} ]{ & \node{row1-2...

Latex change color of intext citing with hyperref package and natbib

I am using the natbib and hyperref package in conjunction with my latex document. I would like to change to the color of my hyppereferenced citations (the box around the citation) from the ugly baseline green to a more muted (violet or navy blue). However, in using the suggested code to do this, I can not get the citation link colors to ...

trouble in using flalign (LaTeX)

I am trying to put 3 equations with "=" signs aligned but also left aligned. I tried the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{flalign*} RPC &= A+B\tilde{f} +C x &\\ A &= a+\eta &\\ E &= cte & \end{flalign*} \end{document} With this I get the stuff in the left...

latex and listings: highlighting some parts of the code

I'm using Latex and the listings package to display some C++ code (with syntax highlighting) inside a document. I need to highlight some parts of the code. This specific highlight has nothing to do with syntax highlighting, it's just some parts of the code I'd like to highlight so that the reader can focus on it. I wish I could make so...

Centering Text Horizontally and Vertically in LaTeX

I would like to produce the following: a b xxxxx xxxxx 1 xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx 2 xxxxx xxxxx xxxxx xxxxx Where the blocks of 'x's are images, and 'a', 'b', '1' and '2' are text. Here are my two attempts so far: \begin{figure} \begin{center} \begin{tabular}{ccc} & a & b \\ 1...

Latex displaying C++: error with accentuated characters

I have a Latex document displaying C++ code. The document is saved in UTF-8. Here is the Latex code: \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern,textcomp} \usepackage[frenchb]{babel} \usepackage{listings} \lstset{ language=C++, extendedchars=true, inputencoding=utf8 } \...

Latex: stretchable curly braces outside math

Hi, I am producing some latex beamer slides (but I think it is not a beamer specific question per se). I have the following: \begin{itemize} \item Issue1 \item Issue2 \item Issue3 \end{itemize} Now, I want to have a right curly brace (i.e. '}') behind the items spreading over issue1 and issue2. And of course I want to write somethi...

Automatically QED in LaTeX's newtheorem command

As the title says I need to define a QED symbol automatically (preferable a colorbox) at the end of my custom newtheorem. Any suggestions would be appreciated. ...

tikz: set appropriate x value for a node

This question resulted from the question here I want to produce a curly brace which spans some lines of text. The problem is that I have to align the x coordinate manually, which is not a clean solution. Currently I use \begin{frame}{Example} \begin{itemize} \item The long Issue 1 \tikz[remember picture] \node[coordinate,yshift=0.7em...

What can you do to make your beamer presentation look great?

I just arrived at this page. It is both simple to implement and looks great. I'm looking for more such examples. ...

What do the square brackets in LaTeX logs mean?

I'm currently working on a parser that reads complete LaTeX logs. Most of the log format is, though weird, easy to figure out, but these square brackets are puzzling me. Here's an example from near the end of one of my logs: Overfull \hbox (10.88788pt too wide) in paragraph at lines 40--40 []$[]$ [] [102]) [103] Kapitel 14. (./Thermo...

hide an entry from Toc in latex.

I would like to know how I can hide a section from the table of contents but without loosing the section number in the body of the document. For example, in this tex file I loose the number for hide, and all the sequences are damaged: \documentclass{article} \begin{document} \tableofcontents \section{uno} \section{dos} \section*{hide} ...

Add space after the Exercise environment

Hi I can't figure out how to add a space (say 3em) after the Exercise environment . I don't want to do it manually for every exercise, but automatically, by using \addtolength or redefining the environment or something. For leaving some space in front of it I managed to come up with this: \renewcommand{\ExerciseHeader}{\vskip 3em\cent...

Typesetting a large matrix in LaTeX

I have a 3x12 matrix I'd like to input into my LaTeX (with amsmath) document but LaTeX seems to choke when the matrix gets larger then 3x10: \begin{equation} \textbf{e} = \begin{bmatrix} 1&1&1&1&0&0&0&0&-1&-1&-1&-1\\ 1&-1&0&0&1&1&-1&-1&0&0&1&-1\\ 0&0&1&-1&1&-1&1&-1&1&-1&0&0 \end{bmatrix} \end{equation} The error: Extra alignment tab...

In LaTeX, is there a way to get long lines along the margins?

I'm working on a report, and some elements are outside the margins (but some are just barely outside the margins). I was wondering: Is there a way to make two vertical lines, one on each side, along the margins so that one can easily see if it goes outside them? (Googling it, I only found information about margin notes.) A figure is be...

Does anybody knows how to use Lyx-Latex to create a LNCS document?

I already download the extension fro LNCS but I dont know how to use it? Its my first time using Lyx, Can somebody help me? I can give my email contact to who can help me. Thanks ...

LaTeX table too wide. How to make it fit?

I just started to learn latex and now I'm trying to create a table. This is my code: \begin{table} \caption{Top Scorers} \begin{tabular}{ l l } \hline \bf Goals & \bf Players\\ \hline 4 & First Last, First Last, First Last, First Last\\ 3 & First Last\\ 2 & First Last\\ 1 & First Last, First Last, First Last,...

latex computer output segments

I have a verbatim environment containing computer output as text. This text is sematically made of two sections, each section being separated from the other by an empty line. The number of sections and their content is known, so I don't need to parse the text, but the line between the sections is very important (as it gives semantics to...

latex beamer: prevent showing the TOC at one occation

Normally I use \AtBeginSection[] { \begin{frame}<beamer>{Gliederung} \tableofcontents[currentsection] \end{frame} } in my preamble to reach that before a new sections starts the TOC is shown with the now starting section highlighted. In the talk I am actually preparing I have one special section for which I do not want this b...

Run Javascript on the body of a Gmail message

I want to display LaTeX math in the gmail messages that I receive, so that for example $\mathbb P^2$ would show as a nice formula. Now, there are several Javascripts available (for example, this one, or MathJax which would do the job, I just need to call them at the right time to manipulate the gmail message. I know that this is possibl...