latex

Formatting equations in LaTeX

When I include an equation in LaTeX that is enumerated, i.e. {\begin{equation} $$ $$ ... \end{equation} } The line above the equation (blank space between the text preceeding it and the equation) is huge. How do I make it smaller? ...

Writing Url's in latex

This is a pretty basic question but... How do you write a url in Latex? The subscripts and everything else make the font look very strange when it compiles. ...

Latex: How to code tables with multi-line cells

I am trying to write a short paper with with LaTeX and need to add a table with 3 columns. +-------------+-----------------+--------------------------------------+ | AAAAAAAAAA | BBBBBBBBBBBBBBB | Betty Botter Bought a Bit of Butter | | | | but the Butter's Bitter | +-------------+-------------...

Latex: index of symbols

I want to create an index of symbols or notation, similar to the usual index one obtains with makeindex. I have gotten this to work, using the glossaries package. However, just as in the usual index, I would like to get two columns in the index of symbols, while glossaries puts everything under each other. Commands like twocolumn or mult...

How to stretch a table over multiple pages.

I have a Table (multiple rows, multiple columns, see below ) that is longer than one page. How can I tell LaTeX to continue on the next page. Adding a \newpage didn't work Manualy 'ending' and 'reopening' the table works, but is very tedious, since the table will be many pages long. \begin{tabular}{lp{13cm}} AAAAAAAAAA & FOOBA...

Putting $$s in the middle of an `equation` environment: why doesn't Latex complain?

I was surprised that the Latex code from a recent question didn't throw up any errors, and even more surprised on further investigation, that Crowley's explanation seems to be true. My intuition about the \begin{equation} ... \end{equation} code is clearly off, what's really going on? Consider this, slightly adapted code: \begin{equa...

subscript for a join (\bowtie) operation in LyX/LaTeX

I'm using LyX to write some Relational Algebra queries. I'm using the \bowtie symbol for the join operation but when I try to put a text in subscript directly under the symbol, I get the following error: ...a_{\t{pId}}\t{person}\right)\bowtie\limits {\t{pId}{1}=\t{pId}_{2}... I'm i...

Can MikTeX create tagged PDFs?

Tagged PDFs allow for the easy reflow and accessibility of PDFs. It seems like this would be a natural use case for using LaTeX, which advocates content over style. But as far as I can tell, there is no way to create a tagged PDF with MikTeX 2.8. Does anybody know of any tips, tricks or techniques to get a tagged PDF through LaTeX witho...

validating html files with latex commands

I'm using latex commands in my html code. When I validate the at w3c validator, it is giving me inavlid markup message. Line 105, Column 31: non SGML character number 12 \begin{equation}(x^{2})^{4+(frac{1}{5})}\end{equation} Is there a way to pass validation? Can I ignore this error? ...

LyX - breaking long formula lines

How can I break long formulas in LyX into two (or more) lines? I know how to write several lines of equations in one "math box" but I'm looking for a solution to break lines even in the middle of a parenthesis. I'm using LyX 1.6.4 and currently, when the formula is too big, it doesn't do anything (it just doesn't print the last segment ...

Drawing formulas with Quartz 2d

In my iPhone App I'd like to draw a few formulas. How can I manage that with quartz 2d? Is there a way to build formulas like for example in latex? Or are there any existing frameworks? Thanks. ...

Dual-line bilingual paragraph in LaTeX

An interlinear gloss can be used to layout a translation of a document. http://en.wikipedia.org/wiki/Interlinear_gloss Usually this is done word-by-word or morpheme-by-morpheme. However, I would like to do this in a different way, translating entire paragraphs at a time. The following link and image is an example of what I want done,...

\newcommand / \newenvironment - optional parameters

I'm experimenting with my own commands and environments and now I'm facing those problems: How to create command \foo{parameter}[optional] or environment called \begin{bar}{parameter}[optional]? How to create command \foo[optional_1]...[optional_n]{parameter} I've tried \newcommand{\foo}[3][][]{#1#2#3} - failed \newcommand{\foo}[...

Tripple-wrapping fails: \colorbox → \NewEnviron → \newenvironment fails

Hello! I am trying to wrap an environment created with \NewEnviron (package 'environ') into an old good \newenvironment: \NewEnviron{test}{\colorbox[gray]{0.7}{\BODY}} \newenvironment{wrapper}{\begin{test}}{\end{test}} \begin{wrapper} debug me \end{wrapper} However, this gives me a strange error: LaTeX Error: \begin{test} on in...

How to add changebar in latex?

In Latex, I've created a new command 'changedtext' to mark specifics parts in my document and make it appear blue: \newcommand{\changedtext}[1]{\textcolor{blue}{#1} } Is there any easy way to alter the command to have change bars appear next to the text in the resulting PDF? If not possible, any other suggestion for a visual markup (...

Latex: Listings with monospace fonts

This is what the code looks in Xcode. And this in my listing created with texlive. And yes I used basicstyle=\ttfamily . Having looked at the manual of listings I haven't found anything about fixed-with or monospace fonts.. Example to reproduce \documentclass[ article, a4paper, a4wide, %draft, smallheadings ]{book} % Pa...

Pdflatex for windows

Hi Does anyone know how to convert .tex files to .pdf in windows? I tried cygwin but it said the command "pdflatex" was not recognised Thanks Philip ...

LaTeX, fancyhdr

I'm using fancyhdr package and I wonder if I can change size of the page number. I need 14 pt size but the auto size is about 10. ...

Display frame around an expression in LyX (/LaTeX)

Is it possible to draw a frame around an expression? For example if I presented a calculation, I want to draw attention to the result by drawing a "box" around it. I've seen it done in some articles in LaTeX. Is it possible to do in LyX without ERT? Otherwise, how is it done in LaTeX? ...

Inlining the LaTeX \input Command

I'm looking a program to recursively inline all \input{} commands in a LaTeX file. By "recursively", I mean doing the inlining iteratively until no \input{} command remains in the final LaTeX file. I've already come across the flatten package. But, for some reason, my TeXLive distribution doesn't install it. When I execute the command s...