latex

Easiest way to center tables and other elements?

Okay so what is the best way to make things center properly? Once i start messing around with tables, things ether start shifting left or right, destroying the balance. How can i make it so everything is always centered? Right now this will lead to the table being messed up, and have the right edge go off the screen. What can i do? Her...

Collapsible minibox environment in LaTeX

I'm trying to learn LaTeX, currently because otherwise, my professors will be nearly unable to read my homework assignments. I've come across something I want to do, but don't seem to be able to, ie. I have searched google (possibly with a poor keyword set) and not found a solution. The specific case is as follows: I want to put an ...

How do I convert LaTeX to plain-text (ASCII)?

Scenario: I have a document I created using LaTeX (my resume in this case), it's compiling in pdflatex correctly and outputting exactly what I'd like. Now I need the same document to be converted to plain old ASCII. Example: I have seen this done (at least once) here, where the author has a PDF version and an ASCII version that matche...

LaTeX with ASP.NET

I need to dynamically create mathematical expressions in ASP.NET much like: This I have seen mimeTeX however, was curious if anyone knew of other solutions? I would like to use TeX without needing LaTeX on the server. Thank you for your input. ...

How to prevent Vim indenting wrapped text in parentheses

This has bugged me for a long time, and try as I might I can't find a way round it. When I'm editing text (specifically latex, but that doesn't matter) files, I want it to auto-wrap at 80 columns. It does this, except if I happen to be in the middle of a parenthetical clause, it indents the text which is very annoying. For example, this...

How do I determine file encoding in OSX?

I'm trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn't seem to understand them. Running cat my_file.tex shows the characters properly in Terminal. Running ls -al shows something I've never seen before: an "@" by the file listing: -rw-r--r--@ 1 me user...

Tips for collaboratively editing a LaTeX document.

My default setup is to put the tex source in a subversion repository and insert notes to each other as comments in the source when making changes to other people's content. It all feels pretty sub-optimal, especially when there are subversion conflicts where all it tells you is "these two versions of this huge paragraph are in conflict....

How do I get emacs to fill sentences, but not paragraphs?

I've seen at least two recommendations on StackOverflow to insert newlines between sentences when editing LaTeX documents. The reason being that the practice facilitates source control, diffing, and collaborative editing. I'm basically convinced, but I'm lazy, and I don't want to have to think about it. So I'm searching for some emacs ...

What are the necessary plugins in VIM for Latex?

What are your favourite plugins in VIM for Latex editing? Is there some ready variant of VIM for Latex? ...

No indent for paragraphs after figures?

The default style for my document is that paragraphs are indented. That's fine. But I need no indentation for paragraphs that follow a figure or other objects. Using \noindent manually does not work well, because you don't know which paragraph will follow the figure in the final output (LaTeX places figures automatically). So I need pa...

How can one number paragraphs in LaTeX?

Given a bunch of paragraphs: Para. A ... Para. B ... Para. C ... How can one have LaTeX automatically number them, i.e. 1. Para. A. ... 2. Para. B. ... 3. Para. C. ... I've seen the following suggested: \newcounter{parnum} \newcommand{\N}{% \noindent\refstepcounter{parnum}% \makebox[\parindent][l]{\textbf{\arabic{parnum...

Editor showdown: Maintain newlines at the ends of sentences.

When editing non-WYSIWYG (LaTeX, HTML, etc) prose you probably want to have newlines at the ends of your sentences. This has several advantages: Easier to rearrange sentences. Easier to comment out sentences. Easier to spot run-on / overly long sentences. Easier to comment on sentences. For example: % The following isn't strictly ...

How does one change the \paragraph formatting in LaTeX

This stems out of How can one number paragraphs in LaTeX?, which I asked earlier today: Running with Brent.Longborough's suggestion for how to number paragraphs in a document: \setcounter{secnumdepth}{5} ... \paragraph{If we want to} \paragraph{do something} This results in LaTeX producing something likeso: 0.0.0.1 If we want to 0....

Abstract margins in LaTeX

Hi, I'm new to LaTeX and I've got a \begin{abstract} ... \end{abstract} section and I want to change the margins so the text looks more condensed and centred on the page. I need some code that will do this, without stuffing up the margins for the rest of the document. ...

Excluding a chapter from TOC

In my LaTeX document I've got a table of contents that is automatically generated by collecting everything that is of the form \chapter. However, I've got an acknowledgements chapter before the table of contents and I don't want it to be automatically labelled "Chapter 1" or captured in the table of contents. Should I be avoiding \chapt...

Remove boxes from hyperlinked ToC in LaTeX

How do I remove the red boxes from my hyperlinked table of contents created by using the hyperref package in LaTeX. ...

In LaTeX, is there a way to put a float automatically after where it is first referenced?

I am currently writing a long one-column document that contains a lot of floats (figures and tables). I know the usual b/h/p/t options for placing floats in latex. However, I was wondering if there exists a package or macro that would let me do the following automatically: place a float automatically right after it was first reference. S...

Incorrect hyperlinking in LaTeX

So far the hyperref package in LaTeX has automatically linked all the items in my report correctly. But there is one that did not get linked properly, possibly because I manually added it to the table of contents like this: \addcontentsline{toc}{chapter}{Bibliography} How do I fix this? ...

How can I make clickable Table of Contents in LaTex?

I need links for Table of Contents, so that I can navigate fast to different sections. I apparently need some package. I tried the package url unsuccessfully. ...

PostScript files from latex blurred

I use Mac OS X's Preview to view pdf and PostScript files. However some ps files generated with latex appear blurred, for example, Is there a way to solve this issue? ...