7
votes
1answer
831 views

Get “Wilson and Milton's (2010) work…” using BibTex [duplicate]

I'm using BibTex to write an academic paper, and want to write something along the lines of: Wilson and Milton's (2010) work showed that... How can I do this when using BibTex with natbib. I've ...
2
votes
2answers
570 views

Beamer and newenvironments

I'm trying to combine beamer overlays and newenvironments: \newcounter{scount} \setcounter{scount}{0} \newenvironment{sitem}[1] {%before \def\data{#1} \stepcounter{scount} \onslide<\...
8
votes
1answer
3k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
6
votes
2answers
1k views

Repeating a block of text until it fills a page

Might I please have some help with writing a loop that repeats a block of text as many times as there is remaining space for it on the page? I would like to produce an notebook in TeX which is ...
3
votes
1answer
1k views

Def in renewenvironment

I redefine a custom environment of mine that uses "local variables": \newenvironment{asdf}[3]{ \def\argi{#1} \def\argii{#2} \def\argiii{#3} %.... } { } But when I do: \renewenvironment{...
5
votes
1answer
1k views

Beamer overlay and counter

I have a counter that I want to use for the beamer \onslide command. Using \newcounter{coun} %.... % \onslide<\coun ->{ ....} doesn't work. What is the correct way to do this?
8
votes
1answer
1k views

Disable environment contents

I want to prevent the content of a custom environment from being shown. I've tried: \newenvironment{asdf}[3] { %some stuff happens here %...... \begin{comment} }{ \end{comment} } but this ...
3
votes
2answers
3k views

AMS align: Left aligned text/math plus multicolumn align

This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question). What I ...
3
votes
1answer
4k views

Xelatex / Fontspec how to load fonts directly from diskfile (Postscript Type 1 fonts)

I have a directory containing a Type 1 Sabon font I want to use in Xelatex. I want to use the font by specifying the filenames using the fontspec package. I specifically define the bold and italic ...
8
votes
1answer
815 views

How to prevent a jumping picture when using tikz overlays

I have the following tikz picture in Beamer \usetikzlibrary{fit,calc,positioning,matrix,decorations.pathmorphing} \begin{tikzpicture}[scale=0.8,system/.style={draw,rectangle,rounded corners=3,minimum ...
2
votes
2answers
2k views

Ligatures with Century Schoolbook L in xetex [Ubuntu]

I don't get any ligatures, like the fi ligature. I'm using: URW Century Schoolbook L (afai can determine anyway) XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) Ubuntu 10.04 This is ...
8
votes
1answer
2k views

How do I add custom beamer actions that change an argument?

The beamer manual says: You can easily add your own actions: An action specification like ⟨action⟩@⟨slide numbers⟩ simply inserts an environment called ⟨action⟩env around the \item or ...
7
votes
4answers
2k views

[Optionally] Specifying arbitrary numbers for sections and subsections

I'm working on a package to simplify writing my homework and assignments. Unfortunately, not all of my professors assign problem sets with sequential numbering. Thus, I'd like to optionally be able ...
18
votes
1answer
5k views

How can I distribute beamer overlayareas in handout mode across multiple frames?

I have a beamer frame with an overlayarea environment. Inside that environment are some bits marked \only<n> so that they appear on consecutive slides. \begin{frame} \begin{theorem} ...
4
votes
2answers
292 views

Adding symbols to glossary entry and limit to description field?

I used an answer provided by Geoffrey Jones regarding how to create a Lexicon of sorts (unmodified code): \documentclass{article} \newcommand*{\glossaryname}{Dictionary} \usepackage[nonumberlist]{...
15
votes
1answer
13k views

Table captions are always placed below

I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the \...
14
votes
1answer
6k views

AMS align / Align multiple “=”, too much space

I asked this question at stackoverflow and have been kindly redirected here. I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be ...
1
vote
2answers
710 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
212 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 the ...
26
votes
3answers
6k 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
765 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
542 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
11k 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 ...
5
votes
1answer
2k 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
2k 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 ...
12
votes
2answers
999 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
817 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
564 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 ...
9
votes
3answers
2k 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
403 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 column....
12
votes
1answer
2k 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
3k 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
922 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
323 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
666 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
506 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} \usepackage[T1]{...
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 ...
17
votes
5answers
2k 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 ...
4
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
1k 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 ...
18
votes
2answers
804 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 ...
15
votes
7answers
3k 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 ...
17
votes
1answer
9k 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 ...

15 30 50 per page