latex

placing subcaptions of subfloats at thir right side

How can I place subcaptions of subfloats (subfigures) on their right side? ...

How can I use \linebreak inside a node, in tikz?

This is my code, which doesn't work: \documentclass{article} \usepackage{tikz} \begin{document} \tikz \node {start\linebreak{}stop}; \end{document} The \linebreak command doesn't work. In order to make it working I have to say \node[text width=5em]... Is there any other method to make it working, without explicit specification of the ...

Making \cite behave like \textcite in biblatex

I use biblatex and I basically use \textcite all the time. It would be quicker (and allow me to use some emacs reftex macros) if I could make \cite display like \textcite does. I use the style=apa option, so what this amounts to is I want \cite to do this: "Author (1999)" whereas it currently does this: "Author, 1999". How do I redfine ...

Latex: Showing only few lines in lstlisting

For displaying only few lines of source code lstlisting has a linerange key which prints only those ranges. \documentclass[slidestop]{beamer} \usepackage{listings} \begin{document} \begin{frame}[fragile] \begin{lstlisting}[language=C,linerange={1-2,5-6}] #include<stdio.h> int void main(int argc, char **argv) { pri...

How do I set the minimum width of a subfigure in LaTeX?

I have: \subfigure[blah blah blah.] { \begin{tikzpicture}[/MyStyle] ... some stuff... \end{tikzpicture} } But "some stuff" is not that wide and the text in the subfigure produces a lot of underfull hboxes. I want to make the subfigure wider. How do I do that? ...

practically getting started with Sweave

Dear all, my question(s) might be less general than the title suggests. I am running R on Mac OS X with a MySQL database to store the data. I have been working with the Komodo / Sciviews-R for some time. Recently I had the need for auto-generated reports and looked into Sweave. I guess StatET / Eclipse appears to be the "standard" solu...

Using minted (source code LaTeX package) with emacs/auctex

As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use 'pdflatex -shell-escape SOURCE', but Q1 : How can I modify the AucTeX to insert the -shell-escape? I mean, how to change the action for C-c C-c? Q2 : Do I need s...

PlasTeX doesn't manage to generate images

Hey, I'm trying to use PlasTeX to convert some .tex files into html pages. Here is my testing.tex \documentclass{article} \usepackage{mypackage} \begin{document} Hello \begin{equation} 23+40+29+29+10+60+33)/7=32 \end{equation} \end{document} but it seems there is an issue when it tries to convert the equation in a ...

Latex Beamer cuts text off

Hi all, The following simple Latex description does not result in the slide I want it to be. \begin{frame} \frametitle{Previous Work} \begin{itemize} \item [Hummer 1992] - First work in this area was conducted by Hummer \item [Goldreich et at. 2002] - Theoretical work that focused more on the power characteristics of embedded syste...

What's the relation of file.4ct and file.4tc generated by MikTex's latex.exe

I'm currently investigation problems with our scripted documentation generation (.tex -> .pdf and .chm) and I have to admit that I'm pretty clueless when it comes to generating LaTeX. Long story short: PDF is correctly generated via pdflatex -output-format=pdf -interaction=batchmode ourfile.tex Script then goes on to call 3 times: la...

Folding marks as individual package for LaTeX

Hello, I know about scrlttr2 as a template for LaTeX letters. However, it limits me too much so it is easier to start a new document. However, I wonder whether there is a package only containing the helpful folding marks... Thanks a lot! jorgusch ...

LaTeX: How to get an empty page with text at bottom?

I want an empty page with two sentences at the bottom of it. I've tried the following without success: \thispagestyle{empty} \begin{flushbottom} \begin{center} © 2010\\ All Rights Reserved. \end{center} \end{flushbottom} The text appears at the top of the page. Thanks in advance for your comments! ...

LaTeX: How to reduce text width while keeping margins unchanged?

I would like to reduce text width while keeping the right and left margins at their current size. The header should span over all available space (delimited by margins), but the main text should be narrower. My main goal is to have different widths for the header/footer and for the body. How can I achieve this? ...

Public CLSI servers

Does anyone know any publicly accessible CLSI (Common LaTeX Service Interface) servers other than ScribTeX? (nothing wrong with ScribTeX, in fact it's great, but I was wondering if there are any alternatives) EDIT: I'm not looking for online LaTeX equation editors or proprietary APIs (e.g. MonkeyTex), I'm asking specifically about CLSI ...

How can I disable code folding in vim with vim-latex?

I have tried the usual approaches, and have read :help tex.vim (see : http://vimdoc.sourceforge.net/htmldoc/syntax.html ) I've taken a brief look at syntax/tex.vim, but can't see how to disable it without rebuilding vim without folding. I'm sick of hitting 'zE'. Lines I've tried in my .vimrc: set foldlevel=manual set foldlevelstart=99...

Make LaTeX table caption same width as table?

It looks bad in my paper if a caption is wider than the table underneath it. How can I make them both align? Right now my code looks like: \begin{table}[th!] \caption{Reference temperature blah blah} \centering \begin{tabular}{llll} ... \end{tabular} \end{table} ...

LaTeX multiple equation references in one

Is it possible to combine multiple equation references into one, like it is for the \cite command? What I would like is the following: \begin{subequations} \begin{align} a & = b \label{eq1} \\ c & = d \label{e2} \end{align} \end{subequations} Some text referring to the formulas \eqref{eq1,eq2}. which would then compile as "Some...

LaTeX: writing what looks like Math statement, but I want it as text. How to do it with no error of 'Missing $...'?

While writing in LaTeX, I happened to type something like "$ variable = test" as a text. However, LaTeX said something like: Missing $ .. I tried putting \ before the $ and other math symbols, but it still messed up the shape of the text. My question is: how can I instruct LaTeX that this whole paragraph or sentence, is pure text, and...

LaTex: Pictures in table, caption required

Hi, I have pictures included in a table: \begin{tabular}[h]{|l|l|} \hline \includegraphics[scale=0.15]{Seite10.eps} & \raisebox{1,1cm}[1,1cm][0cm]{\includegraphics[scale=0.7]{Seite24L.eps}}\\ \hline \end{tabular}\newline Now I want captions for those pictures. I know \caption doesn't work out of a float enviroment, so I tried \capti...

Colorize numbers in lstlisting (latex)

Hi everyone. I want to know if it is possible to colorize the numbers in lstlisting package from latex. For example i want all numbers be in red, even 0x0F (hex) and 0b00001111 (bin): void SetaPWM2(unsigned char porcento) { //100 * 256 = 25.600 unsigned int val = porcento * PR2; val /= 25; //garante que tem apenas 10 bits val...