latex

Annotated Table of Contents in LaTeX

I'd like to use LaTeX's \tableofcontents command (or some equivalent) to automatically generate a table of contents, but I'd also like to add a sentence or two to each line in the table of contents that describes what the referenced section is about. How can I do this? ...

How do PStricks and TikZ compare for ease of learning and for quality of API design?

My group uses Literate Programming for most of our source code---this means that internal documentation is written using LaTeX. We have been using PStricks for fancy technical diagrams of the system, but have recently been recommended to use TikZ. I've gathered this information: TikZ/PGF is new and maintained; PStricks went a long ti...

Small matrices won't appear on the same line in LaTeX

I have a product of two matrices that I would like to appear next to each other on the same line. Even though I have shrunk them down to allow room, LaTeX automatically sends the second matrix to the next line so that they don't appear as a product. What's the word on the street? Thanks. ...

LaTex for .NET

I am using ItextSharp to generate PDF. Part of our output, we have a lot of math related content. Maybe we can use some kind of Latex library to feed the result to ItextSharp to produce PDF. I have been googling for a while now but found nothing. Do you know if there is a latex library for .NET exists? Also, do you know if ItextSharp ...

What packages are available to typeset SQL in LaTeX?

I'm looking for a package to typeset SQL statements in LaTeX. So far I have heard of listings and lgrind, are there any other suggestions? [edit] Added requirement: I'd like the package to be able in intelligently insert page breaks, so that where possible statements do not span multiple pages. Still reading documentation, so it is poss...

Mathtran from asp.net website

I would like to build a website in ASP.NET, which would display many equations. I would like to generate them automaticly, so I need to use some library, that would allow me to generate images from TeX or LaTex dynamicly. For performance resaons, I would like to have it running on my local server. I tried to used MimeTex with the Eq2Im...

Math equations on the web

What is the best way for me to render math equations on the web? I am familiar with LaTeX's math mode. ...

Advanced LaTeX Tutorial/Book

I've been using LaTeX for about 3-4 years now. In that time I've picked up what I've needed as I've needed it, most often by Googling. However, I'd like to learn some more advanced features of LaTeX such as editing or even creating my own class files and bibtex styles. I've worked with some fairly powerful class files before, but I have ...

Latex Table of Contents Links to Wrong Section

I have a section followed by a table of contents like so: \section{Section1} ABC. \addcontentsline{toc}{section}{Table of Contents} \tableofcontents \newpage \addcontentsline{toc}{section}{List of Figures} \listoffigures \newpage \section{Section2} DEF. \section{Section3} GHI. My issue is that the "Table of Contents" and "List of Fi...

footnote spacing in LaTeX

I'm writing my dissertation and the grad school says I need a space between multiple footnotes and also the space between the text and the start of the footnotes is too small. Is there a way to do this? Any help is greatly appreciated. ...

Inkscape + pdftex?

I have a small drawing in Inkscape and I want to embed it in a LaTeX document which I compile using pdftex. pdftex seem to have an oddity of not accepting .eps. infact if what I understood is correct the only vector graphics format it accepts is pdf. When I save my drawing in Inkscape as pdf then what I get is a pdf with a full page with...

How to wrap text in LaTeX tables?

Hi I am creating a report in LaTeX which invole a few tables. I'm stuck on that as my cell data in the table is exceeding the width of the page. Can I some how wrap the text so that it falls in to the next line in the same cell of the table? Is it some how related to the table's width but as its over shooting the page's width it won't...

LaTeX vs DocBook

I have only little knowledge about LaTeX, basic formatting, basic math fomulae etc.. I found that LaTeX is hard to configure to my own flavor. Recently, I've heard about Docbook, which is also a typesetting mechanism, but much easier since it uses XML. So, if my main job using LaTeX/Docbook is writing a simple document (not a class bo...

Display the URL after the link?

I use LaTeX with the hyperref package and I have things like: hyperref is \href{http://www.tug.org/applications/hyperref/}{documented in detail}. It allows... In the PDF output, it shows: hyperref is documented in detail. It allows... The link works but the URL is not displayed which is a big problem when printing the file. I d...

Including full LaTeX documents within others.

I'm currently finishing off my dissertation, and would like to be able to include some documents within my LaTeX document. The files I'd like to include are weekly reports done in LaTeX to my supervisor. Obviously all documents are page numbered seperately. I would like them to be included in the final document. I could concatenate all...

Ibid. in LaTeX citations

How can I get LaTeX to automatically use "Ibid." when two citations to the same source are made? Here is a sentence with a citation.\footnote{\cite[p.~5]{Smith:1999}} This sentence also has a citation.\footnote{\cite[p.~10]{Smith:1999}} Desired: Here is a sentence with a citation.[1] This sentence also has a citation.[2] ... 1. Smith...

Caption outside table?

I'm trying to add a caption to a table in latex, however it throws this error "! LaTeX Error: \caption outside float." From the error I am guessing ti means that it is outside the table, but I have clearly put it inside. \begin{tabular}{|c|c|c|c|c|c|} \caption{Table1} Potentiometer & Resistance & \multicolumn{2}{c}{Calculated V\textsub...

How can I get a list of available commands on a latex document?

I don't know much about latex itself. All I need is list of available commands. All standard commands and that come from "usepackage" declarations. I'm currently focused on MiKTeX, so if MiKTeX do provide, it is of course great, otherwise I do get the idea of parsing some .sty or .def files. But I don't understand the syntax behind thos...

Multiple tables of contents in LaTeX

I would like to make a LaTeX document with two tables of contents, like: Contents overview 1 - Introduction 2 - Solution Detailed contents 1 - Introduction 1.1 - The problem 1.2 - Why? 2 - Solution 2.1 - Phase A 2.2 - Phase B I tried with \setcounter{tocdepth}{1} \tableofcontents...

Detecting output device in LaTeX

Is there a way, in a LaTeX style/class file, to detect which output device is being used (or at least which capabilities it has)? The reason is, I'm writing a class file in which I want to use some Postscript-specific packages (e.g. pstricks) if Postscript is available, but if I just write \RequirePackage{pstricks} then of course bad...