1
vote
2answers
644 views

Where is this shortcut coming from?

I am writing a report on robot wars (as funny as it sounds). One major section in my report is on EMP Cannons. Whenever I type EMP I get this: \begin{minipage}[]{<+width+>} <++> ...
1
vote
0answers
211 views

Sorted and brief bibliography format [duplicate]

Possible Duplicate: Is it possible to get unsrt + abbrv bibliography? I am looking for a setting for a bibliography with two properties: Items appear in the order of citation, so that in ...
18
votes
3answers
4k views

Best practice for maintaining change history in tex

Whenever I write a collaborative document, it undergoes a lot of draft changes. Apart from maintaining the change history in svn, how can I maintain the change history in the tex document itself? I ...
11
votes
1answer
647 views

What is the right way to set a dimension parameter?

In the TeXbook Knuth set parameters for dimensions mostly as follows: \parskip=3pt Other package authors define such parameters without using the equal sign \parskip30pt Many later authors use ...
1
vote
2answers
457 views

Is it possible to call an external application prior to latex.exe to prepare a new file to be imported from within the (La)TeX input file?

I need to execute an external application prior to executing latex.exe to prepare a new file to be imported from within the (La)TeX input file. From another topic, I got an rough info that we can ...
2
votes
1answer
10k views

Two double spaces between paragraphs

How can I set two double spaces between all paragraphs in a report? I have already set double spaces between lines with this command: \usepackage{setspace} \doublespacing
3
votes
2answers
2k views

How to print low resolution (96dpi) raster images correctly?

Possible duplicate of this. But this is a detailed and specific sub problem of that topic. I know I should use vector images whenever possible, or 300dpi images. Since I am dealing with computer ...
3
votes
1answer
1k views

Where is \textunderscore defined ?

I just started TeX recently and I'm reworking a legacy TeX-piece (book , second edition). I create lots of TeX-tables (with SAS) and do \input them. The tables contain many \textunderscore s. All ...
3
votes
0answers
1k views

Can one make 3-column alignments with amsmath? [duplicate]

Possible Duplicate: Align two inequalities I'd like to make an {align} with three columns, with an [rcl] type alignment, to typeset something like a < b < c a < bb < c a ...
2
votes
1answer
2k views

How to include all files within a directory relative to the edited *.tex-file?

I am writing my reports which need to reference complete *.java files with latex. I am using the Texlipse Eclipse plugin to do the editing. Right now I am referencing the complete path to each ...
4
votes
1answer
1k views

Change float background colour

Background Including images within Algorithm floats. The images are trimmed to size automatically by a batch file. Problem In the following portion of the PDF, Listing 1.1 has a lot of space to the ...
11
votes
2answers
935 views

How do I tweak the output of tex4ht's latex-to-openoffice conversion?

Every now and then I am required to circulate a document in Word format; I write in LaTeX, of course. I use xelatex because I frequently need Unicode; I do bibliographies with biblatex; and I ...
3
votes
2answers
551 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
3
votes
1answer
4k views

Two matrices side by side

I'm trying to typeset two matrices side by side, somewhat like: A = (matrix) B = (matrix) I tried to next the matrices inside an align environment: \begin{align*} A &= \begin{pmatrix} ... ...
1
vote
1answer
553 views

Apply a vertical rule beside graphics within Algorithm floats

Background Using LyX to write a book. The source code listings shown in the book are graphics. The graphics should have a vertical rule beside them. But only graphics that are embedded within an ...
8
votes
3answers
1k views

Is there a package to create Optical Mark Reader answer-sheets?

Is there a package to create Optical Mark Reader answer-sheets (aka bubble sheet)? EDIT 1: No choice. I think I must use PSTricks and \multido to make it.
3
votes
3answers
391 views

Is it possible to separate the input and output of LTXexample such that I can put each in a table cell?

My objective is to create a long tabular list of PSTricks inputs and their corresponding outputs side by side. The table consists of 3 columns, i.e., Number column, Input column, & Output ...
11
votes
1answer
1k views

Newline/linebreak in \message

I want to prompt some messages to my console. I used \message{Hi out there!} Now i want some more Text but with an linebreak. \message{Hello World %some line break here Salut monde } Well i ...
2
votes
1answer
2k views

How to edit the environment variable TEXINPUTS in winedt for adding different search paths ?

I want to edit the environment variable TEXINPUTS but i dont know how in windows platform with Winedt. I googled it many times but i didnt get what i need. I found how to reach TEXINPUTS by: options ...
4
votes
1answer
792 views

Creating wysiwyg preview for a custom math functions on lyx

Let's say I want to create a "macro" called \limx that will be defined as: \newcommand{\limx}{\displaystyle{\lim_{x\to\x_{0}}}} How can I make LyX recognize it and make an auto-prieview of it? ...
1
vote
0answers
320 views

Problem installing MathPSfrag [closed]

I am trying to install MathPSfrag and I'm going through the MathPSfrag-Test.nb included in the download. The notebook asks me to input the paths to certain executables. My input looks like this: ...
3
votes
1answer
616 views

multiple (concurrent) TeXLive installations on Windows XP and with WinEdt

I have been a long user of TeXLive (TL) for many years on my Windows XP machine. I currently have TeXLive 2008 installed and I would like to install the new TL2010. I have heard of the possibility to ...
4
votes
2answers
479 views

using \frontmatter kills my {geometry} definitions

I use a the jura package to write some home work in Law (to be honest, I'm just helping my girlfriend ...). Anyways, I the header of the document I have: \documentclass[a4paper]{jura} ...
6
votes
2answers
2k views

How to control the left margin for the formatted text produced by LTXexample?

I want to use both LaTeX code snippet using LTXexample and C# code snippet using lstlisting in my book. If you see my screenshot below, lstlisting behaves well but LTXexample does not. How to prevent ...
4
votes
1answer
3k views

Override \centering to left justify an image

Background Dozens of source code snippets inserted into a document as images inside of Algorithm floats. Other images are screen captures, inserted as Graphics floats, to make a distinction. All ...
16
votes
5answers
1k views

Best script for automatically copying references from a centralised bib file based on aux file [duplicate]

In a previous question I asked about best practices when managing multiple bibtex files. One strategy involves having a single centralised bibtex file. Then, citations in a particular article are ...
3
votes
2answers
3k views

Running BibTex from TextMate

I'm trying to run bibtex from TextMate, but it doesn't seem to be working. After I run pdflatex from Textmate, I click "Run BibTeX" to which I get the following This is BibTeX, Version 0.99c (Web2C ...
6
votes
2answers
817 views

Footnote marker placement in heading of theorem/definition/etc.

I have a definition, and a footnote which refers to the whole definition.  So I’d ideally like an output looking something like: Definition 1.53.   A footnote is a small aside, usually ...
3
votes
2answers
2k views

XeLaTeX, WinEdt 6.0 and UTF-8

I'm using WinEdt 6.0 and need to write German umlaute. Using XeLaTeX, i need to save the tex-file in utf-8 to have native support for this - does anyone know how to tweak WinEdt so that it saves in ...
16
votes
2answers
580 views

The scope of LaTeX commands

This is a very basic question. However, I didn't find simple rules for it, so I asked it here. Some LaTeX commands (like \noindent) affect the whole paragraph. Some of them (like \emph) affect their ...
14
votes
7answers
2k views

Can I see a plain TeX source file please?

all the LaTeX-tutorials tell me how LaTeX is an extention simplifying the building of TeX documents. Understandably, no one uses plain TeX anymore, right? But I seem to learn better when I grasp the ...
14
votes
1answer
7k views

Split the Table of Contents in two pages

Let's say I'm writing a document with 6 chapters. I want to force the table of contents to be split between two pages. The first page would list the first 4 chapters, the second page would list the ...
13
votes
2answers
1k views

Two-Headed Arrow Over Formula

I have a quantified formula. I want to show what happens when the order of quantifiers is reversed. To do this, I like to use a two-headed arrow over the formula, like this: Is it possible? I don't ...
7
votes
2answers
3k views

Setting up a LaTeX document using the Uggedall or tufte-latex templates

I’ve used LaTex before for a while, but (1) it’s been ages, and (2) I’ve only really had to import minor packages for a basic template. Having come across templates/classes like Uggedal’s and ...
3
votes
2answers
1k views

rectangles in beamer background canvas

I am trying to create a custom title page in Beamer, and I've tried many things, but I'm just helpless with all the solutions I found. I would like to create only in the title page, the following ...
18
votes
5answers
4k views

New figure environment

I am writing my PhD thesis. In my manuscript I have Figures in the text and Photographic plates (a figure of figures) in the annexes. The two elements are different and I would like create a new ...
45
votes
3answers
20k views

\parbox vs. minipage: Differences in applicability

Lamport, LaTeX: A document preparation system, states on p. 104: There are two ways to make a parbox at a given point in the text: with the \parbox command and the minipage environment. They can ...
10
votes
2answers
2k views

Why does fit not scale? (tikz)

I have a problem with the fit library in TikZ. When I scale the figure (with the tikz scale command), the fit box doesn't! Why is that? Could I somehow change it? Example: \documentclass{article} ...
11
votes
4answers
660 views

Is there a package for warning about unbalanced delimiters?

I'm copy-editing a rather lengthy set theory book. One thing I'd like to check systematically is whether all left-right unambiguous delimiters (parentheses brackets curly, square and angle) are ...
14
votes
2answers
2k views

Why couldn't (La)TeX's layout model be as simple as CSS's layout model?

I feel CSS's layout model is simpler than (La)TeX's layout model. At the time Knuth developed TeX, the idea leading to CSS model is a "difficult" things? Or the CSS layout model is not appropriate to ...
25
votes
3answers
532 views

Saving a 100 tokens worth, is it worth it?

The LaTeX kernel defines a number of tokens that are used throughout the LaTeX source and the standard LaTeX classes. For example: \def\hb@xt@{\hbox to} This particular one is commented as: ...
8
votes
3answers
2k views

Take 2: How do automatic overlay specifications work in Beamer (in a nested situation)

I had previous asked a question about this, but I feel that it wasn't focused enough and the answers got a little confused...so instead of editing that question, I've opted to start a new one....I ...
14
votes
2answers
734 views

Set a global policy for floats positioning

I have a document with many floats (figures, specifically). I want to be able to change the global floats positioning policy from htbp to just h (or even H with the floats package). For my-own ...
4
votes
2answers
1k views

Fit around nodes and edges

I know that I can use the fit library of tikz to get a fitted background behind some nodes. How can I get the fit to be around edges as well? My current code: \begin{tikzpicture}[prefix=fig/, ...
7
votes
2answers
4k views

customizing TOC

I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like Chapter 1.XXXXXX (1-15) 1.1 ...
38
votes
4answers
2k views

What is the difference between font encoding and input encoding?

From list of obsolete packages and classes we must avoid, I found 2 terminologies, i.e., font-encoding and input-encoding. What is the difference between them?
8
votes
2answers
2k views

Should I always specify -sPAPERSIZE=a4 when invoking ps2pdf for paper size other than A4?

When I compile a document with paper size other than A4 as follows: \documentclass{scrbook} \usepackage[A6paper]{geometry} \begin{document} something \end{document} using latex-dvips-ps2pdf ...
17
votes
1answer
4k views

Preventing itemize environment to insert initial vertical space

I'm using itemize and tables like the following \begin{tabularx}{\textwidth}{>{\ttfamily}llX} \toprule \textbf{\rmfamily Operator} & \textbf{Typen} & \textbf{Regel} \\ \midrule = & ...
15
votes
1answer
365 views

Conditioning behaviour of a macro on whether on top of a new page

Is there a way to find out, whether the currently typeset material will go to top of a page? I am trying to write a macro which, when invoked, typesets a horizontal divider to separate the subsequent ...
15
votes
2answers
7k views

Raggedleft and raggedright simultaneously

This seems trivial, but I'd like a single line to have some text with left-justification and right-justification at the same time, eg. left text here ...

15 30 50 per page