latex

Latex floating and text wrapped image

I have a LaTeX document with an image in it. There is a section, four subsections, the latter 3 having just some text, and the first having a description environment with some stuff. I want to have an image on the top right and have everything text wrap nicely around it. The wrapfig package takes an entire column away (so text below th...

Why does LaTeX start a new line when making a reference

I just created a LaTeX document and compile it to a PDF using pdftex. Every time I make a reference using the \ref command, the reference is put on a new line. Why does this happen and how do I prevent this? ...

Equivalent of LaTeX's \label and \ref in HTML.

I have an FAQ in HTML (example) in which the questions refer to each other a lot. That means whenever we insert/delete/rearrange the questions, the numbering changes. LaTeX solves this very elegantly with \label and \ref -- you give items simple tags and LaTeX worries about converting to numbers in the final document. How do people de...

Problems with Latex and fancyhdr

Hi, I hope also Latex questions are welcome here on Stackoverflow since it's not really programming related. I have a problem in defining the correct style for the header using the fancyhdr package. What I'd like to achieve is to have On odd pages on the left side the following text "My paper title" On even pages on the right side th...

Technical documentation with deeply nested enumerated lists

I'm stuck in a software documentation culture I can't change, and software documentation is expected to have deeply nested sections that look like this: 2.1.5.3.2.1 Some section This paragraph has some text. 2.1.5.3.2.2 Some other section This paragraph has more text. 2.1.5.3.3 Higher-level section Blah, blah, blah. Anyway, I'd li...

How do I "fake" slanted text in LaTeX?

A font I am using does not have the slanted/oblique variant to it in LaTeX (NB: not italics), and I would like to have slanted text in places. Is there an easy way to slant text without having to generate entirely new font files and such? One suggested solution was to do: \renewcommand{\textsl}[1]{\tikz[baseline=(X.base)] \node[xslant...

Latex command line line length

When running latex, the command-line output it cut after 80 characters: LaTeX Warning: Reference `fig:assign-by-x' on page 76 undefined on input line 2 41. Any idea how I can stop this? Version is: pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6) kpathsea version 3.5.6 on Ubuntu Linux 9.04, bash shell. ...

Manipulating line spacing in LaTeX

Hello everyone, I have a block of text in a quotation. Some of that text will be in very small font (\scriptsize) and some much bigger (\Large). My problem is that the letters in the big font push right up against the letters in the line above. This effect is unacceptably distracting to the reader. (Trust me; for my use, it is.) My...

Mac Tex Environment

I'm looking for a TeX environment for Mac OS, a bit like TeXnicCenter for windows. Any ideas? Thanks in advance. ...

LaTeX Failed to Parse(Unknown Error) on MediaWiki

On my wiki implemented by the MediaWiki interface, I am receiving a Failed to Parse (Unknown Error) for the LaTeX in the page. I checked the LocalSettings.php file, and I have set the proper variable($wgUseTeX) to true. If it helps, the error message before this was a Failed to Parse(Missing texvc executable), but I "fixed" it to the be...

Highlighting a Chunk of Code within a lstlisting

I have a bunch of code in a lstlisting environment. How can I highlight (color background) just a particular chunk of code within the environment? ...

Citation formatting and the hyperref package

I'm using the hyperref package in my document. One of the things that it does is create bookmarks in my pdf, based on the table of contents. Some section titles contain a reference to a citation \section{Some title \citep{BibTeXkey}} The label of the bookmark then looks like Some title BibTeXkey But I would like it to be Some tit...

LaTeX: Avoid new paragraph?

I use the \todo command from the \todonotes package. I'd like to layout my source to put \todos separately from the previous paragraph: Some text. \todo{make note} But I don't want \todo to start a new paragraph, or it screws up the spacing of the document. Is there a command to avoid this? If there were a command/package to consum...

latex tabular: align lstlisting top or bottom

Hi, Im trying to put lstlistings into a table. Those listings have different lengths and unfortunately they are vertically aligned within their table cell - but i want both of them to have vertical alignment top. | A| |A A| So i get|A B| instead of |B B| |B C| | C| | D| | D|...

How do I change the amount of whitespace between sections in Latex?

How do I modify the distance between the end of a section and the header of the next section in a Latex document? ...

How to represent class names in LaTeX?

Hi, what do you see as best way of presenting class names in LaTeX documents (writing about a piece of software). I'm currently using \texttt (monospaced typewrite font) which otherwise works fine but my class names end up goind "over" the margins. So, I'm asking for either an alternative (good-looking) way of representing the class...

Using Regexp to replace math expression inside Latex File

Hello, I am trying to replace characters inside a math environment with their boldface versions. Unfortunately, these characters occur inside the rest of the text, as well. My text: text text text text Gtext G G text .... \begin{align} f&=gG \\ G &= tG \end{align} text textG text $G$ text. Every G inside \begin{align} \end{a...

To escape many _ in LaTeX efficiently

How can you escape _ without the use of \_? This is the example of the question word_a_a_a_a_a_b_c_dd There is one function which you can use for this. However, I cannot remember its name. ...

How to interrupt/resume a list in LaTeX?

I want to produce output something like this: 1. List item 2. Another list item Paragraph of comments on list items 1 and 2. 3. Further item 4. Final item I'm sure I've seen a nice way to interrupt and resume lists in this way (without explicitly setting some counter), but I can't reprodu...

Escaping _ efficiently in Tabular environment, LaTeX

How can you escape underscores only in the tabular environment without the use of \_? This thread discusses about underscore in general. I cannot use the environment verbatim nor the package underscore. Sample data \begin{tabular}{| l | l | p{5cm} |} \hline ...