latex

Texlipse: How do you configure it to show a real time preview?

I'm running on an Ubuntu and I hope it doesn't matter. Either than the preview it's a great latex editor ...

Is there a way to override a bibtex style file for a particular entry?

My preferred bibtex style file cites via author's initials. However, there are various texts which should be cited differently (for example, Elements Geometrie Algebrique should always be cited as [EGA]). I know how to modify this in the .bbl file that bibtex outputs, but then I have to do this for every file. Is there a way to do this f...

How to add find-previous in xdvi or findPrevious in xpdf for vi keybindings?

Is there a way to add a find-previous function in xdvi or a findPrevious function in xpdf? Those would be equivalent to a function that brings up the search dialog with the "Search backwards" option already checked. I need such functions in order to define keybindings bind ? any findPrevious in my .xpdfrc and xdvi.mainTranslations: ...

How do you make parentheses match height when they're split between lines in LaTeX math

Consider the following example \begin{equation} \begin{split} f = & \left( \frac{a}{b} + \right. \\ & \left. c \right) + d \end{split} \end{equation} In the result, the left parenthesis on the first line is very large, because of the fraction inside. In the second line, since there is no fraction, t...

Images in admonitions/warnings/notices

I currently use Sphinx to generate LaTeX output which is turned into a PDF for book-style output using pdftex. Currently, I have notices, warnings, and other "admonitions" showing up inside a bounded box, in a style that looks a little like this: ----------------------------------- | Warning: lorem ipsum foozle | | fuzzle fuzz buz...

Remove header from bibliography pages

I use this LaTeX code to add a bibliography section: \bibliographystyle{plain} \bibliography{bp} The first page looks fine. It contains the Bibliography title, no header and a list of citations. However on the next page is a header with the title of the previous section. Is there a way to remove this header? ...

wiki/docbook/latex documentation template system

Hi. I'm searching for a documentation template system or rather will be creating one. It should support the following features: Create output in PDF and HTML Support for large & complicated (LaTeX) formulas References between documents Bibliographies Templates will be filled by a Python script I've tried LaTeX with various TeX-to-HTM...

Latex - extract substring/ignore characters

I have the following problem. I have defined a macro, \func as follows \newcommand{\func}[1]{% do something with #1 X #1 Y } I now want to define another macro \newcommand{\MyFunc}[1]{ % parse #1 and if it contains "\func{....}", ignore all except this part % otherwise ignore #1 } Can someone tell me how to implement \MyFunc ...

How to colour lines in LaTeX that match regular expressions.

I'm currently using the LaTeX listings package to display a block of code, and a diff of the file against a previous version. Both blocks are coloured by listings as if they are code (which they are) but I would like to colour the diff similarly to emacs diff-mode - red for lines matching ^-, green for ^\+ etc. Does anyone know if ther...

Latex: How can I create nested lists which look this 1.1, 1.1.1, 1.1.2, 1.2 ...

How can I create lists which look this: 1. Topic 1.1 First Subtopic 1.2 Second Subtopic I tried using the enumeration list \begin{enumerate} \item Topic \begin{enumerate} \item First Subtopic \item Second Subtopic \end{enumerate} \end{enumerate} But the output looks like: 1. Topic (a) First Subtopic (b) Second Subtopic So ...

using command in package options

Hi, I would like to know if there's a way to use a command (something I create with \newcommand) in a package configuration). Something like \usepackage[someoption=\somecommand]{somepackage} Thanks for your help! ...

Trees and macros with tikz

I am trying to build my trees using macros but I don't get the result I want. Here is a minimal example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \newcommand{\LeafNode}[1]{% child {node {#1}} } \newcommand{\InnerNode}[3]{% child {node {#3} #1 #2 } } \begin{document} \begin{...

Suppress emacs auto-fill in a selected region

I use emacs to edit everything. On some of my LateX documents I would like to automatically disable auto-fill mode when I am editing tables and code. Basically, I'd like to have two tags, like: %%% BEGIN NO FILL %%% END NO FILL and nothing between them will be autofilled. Can anybody think of a way to do this? I would need to f...

building a latex environment similar to the equation environment

I have the following Latex environment: \newcounter{txtctr}[section] \setcounter{txtctr}{0} \newenvironment{textex}{% This is the begin code \refstepcounter{txtctr} \vspace{0.2cm} {\noindent (T.\arabic{chapter}.\arabic{section}.\arabic{txtctr}): }\footnotesize\vspace{-0.2cm}}{\normalsize} but I would like to have the counter t...

How to put a figure on the top of a page on its own in latex?

One of the figures appear in the middle of a page (on its own) when the figure does not fit the other text. How to show it on top of the new page? ...

How to add roman numbers to the appendix pages in LaTex?

Hi, is there a way to have roman numbers for the pages at the end of the article - like \bibliography{...}, \listoffigures and acronym-lists? Currently they show up without any numbers :( Cheers,.. Argh sorry - I was kind of incorrect I'm not looking for a way to change the page-numbers - I'm looking for a way to change the actual ac...

Possible to have the 'Part' section to always start on odd page number?

Hello! Is it possible to always have the 'Part' section to start at an odd page number? So that if the part one section extends to page two, then part two automatically moves to page three. I'm using Lyx to create the Latex file. EDIT: Just discovered that I have been using section instead of part. Have changed all the sections to part...

Linked minipages / boxes in LaTeX

I'm looking for a way of linking box-like environments (e.g. minipages) in LaTeX, so that text that does not fit into the first box spills into subsequent boxes. E.g: /begin{box-like-environment} Text, too much to fit in this box... /end{box-like-environment} % some LaTeX here, possibly covering several pages... /begin{box-like-envir...

Indentation in latex algorithmic

How is it possible to indent lines in an algorithm (algorithmic) in latex? I would like to be able to write the following: \begin{algorithm}[H] \caption{My Awesome Program} \label{awesome-algorithm} \begin{algorithmic}[1] \FOR { $i=0$ to $logn$ } \STATE Step A: % would like the indent the next lines... \STATE do so...

beamer includegraphics with screenshots

Hi, I'm using the LaTeX-Beamer class for making presentations. Every once in a while I need to include screenshots. Those graphics are pixel-based, of course. I use includegraphics like this: \begin{figure} \includegraphics[width= \paperwidth]{img/analyzer.png} \end{figure} or usually something like this: \begin{figure} \incl...