1
vote
1answer
328 views

Is it possible to make a macro sensitive to \\?

I have the following macro: \newcommand{\INFERRULE}[3][]{% \ensuremath{\inferrule{\mathstrut #2}{\mathstrut #3}\ifx\\#1\\\else\enskip(#1)\fi}} I want to make it sensitive to \\ so that I can ...
16
votes
1answer
3k views

Declare nodes in pgfplots as overlays

The Background In pgfplots, it is possible to make plot elements such as axis labels, ticks and legends overlay, which means they will not be considered when determining the bounding box of the plot. ...
2
votes
1answer
164 views

Complex alignments of blocks

How could the kind of layout below be achieved in LaTeX, without using a letter document class? At first, I thought of tables, but it would be impossible to align the first line of the second block ...
10
votes
1answer
4k views

Hanging references using \fullcite

I need APA style hanging references using \fullcite. For example I need \fullcite because I want the reference cited where I want in the document, unlike at the end of the document using \cite. ...
5
votes
2answers
522 views

Open a file whose name start with a dot and other strangely named files?

The syntax of TeX's \openout command is rather simple: \openoutN=filename where N is a four-bit number, but what is filename? How do you open a file whose name stars with a dot? More generally, how ...
15
votes
3answers
3k views

A package template using xkeyval?

I would like to write a package offering a number of commands. The package should accept options, and some of these options should be available as command options. Usage should be as follows: ... ...
6
votes
1answer
2k views

Vertical space around theorems

I'm working in a document that has double-spacing (yuck!), and I want to establish some standards in order to make the thing look "presentable". Currently, the only environment that has an automatic ...
6
votes
1answer
2k views

Chapter-specific headers using fancyhdr

I would like to use the fancyhdr package to format the headers for my dissertation, and I'm running into some problems. For the introduction, I would like the even pages to have the page number and ...
3
votes
1answer
8k views

How to use \sffamily for the whole document [duplicate]

Possible Duplicate: Simplest way to typeset entire document in sans serif (Helvetica) How to use \sffamily for the whole document?
4
votes
2answers
841 views

Problem with \bordermatrix inside array

When a \bordermatrix is placed inside an array, the spacing between rows will be wrong (see the MWE below). What is causing this problem? Is there a solution? \documentclass{book} \begin{document} ...
3
votes
1answer
1k views

Table: Caption is centered but table itself not

I have another problem with a table in my document. The following code centers the caption but not the table itself. Any hints why? \begin{table}[htbp] \begin{tikzpicture} \node (table) [inner ...
1
vote
1answer
304 views

Times (or Termes) with protrusion/hanging in ConTeXt MkIV

On the ConTeXt wiki, http://wiki.contextgarden.net/Protrusion#MkIV, some examples are given of how to use Termes fonts and how to use microtypographical extensions. The bottom example works, but I ...
6
votes
1answer
277 views

Using ted (or another package) instead of etoolbox for patching commands in memoir?

Another question related to my university's odd ToC style requirements. Regular chapters in the ToC need to have all-caps titles, and appendices need regular-case titles. I have a perfectly elegant ...
2
votes
3answers
2k views

Center text in a table column?

I have the following table \begin{tabular}{ll} \includegraphics{tag.png} & bla bla bla.\\ \includegraphics{tag.png} & \\ \includegraphics{tag.png} & Store project\\ ...
3
votes
1answer
3k views

How to use images in a table?

I want to use a table where the first column contains images and the second column contains text. Ideally the first column should have the width of the image and the rest of the pagewidth should be ...
5
votes
1answer
941 views

Jobname of inputted file?

\begin{filecontents}{foo.tex} \def\foo{\jobname} \end{filecontents} \documentclass{article} \begin{document} \input{foo} \foo \end{document} This outputs the jobname of the main file not "foo". How ...
5
votes
1answer
451 views

Use variant glyphs from Mac OS X fonts under Linux

I would like to get the variant option from fontspec working under Linux. Unfortunately, this option which works with the AAT font system is not compatible with the OpenType font mechanism used under ...
26
votes
4answers
2k views

Test success of write18

For the new version of my package and class standalone I like to call external programs: further (pdf)latex runs to optionally compile included standalone files, and to convert the resulting PDF to ...
2
votes
3answers
2k views

How to use a link as footnote that has special characters inside?

I want to use the following footnote: \footnote{http://msdn.microsoft.com/en-us/library/ee804826%28Surface.10%29.aspx} But the problem is since there are % symbols in the link, it is recognized as ...
14
votes
3answers
27k views

How to number slides in the beamer theme Hannover ?

I used the package beamer outer theme split numbered to make it for themes with navigation. But the theme Hannover is different. Is re-defining the footline the only choice, or is there some other ...
4
votes
2answers
1k views

How to change looks of margin notes using memoir?

I have spent some time now trying to figure out how to change the looks of the margin notes produced by the memoir class. I would like to try ragged right and ragged left in italics (so they align ...
15
votes
3answers
3k views

Political map in LaTeX

Is there a package that can be used to make political maps in LaTeX? Like a world map or a map of Europe?
0
votes
1answer
2k views

How to install a new font in TexWorks?

I'm using TexWork to write my documents. For one document I use a template that requires the font Frutiger. I have the font but I'm not able to install it. So anybody knows where to find a guide how ...
11
votes
1answer
998 views

Can I make the page as big as my picture?

This is the reciprocal to How can I create a pdf document exactly as big as my tikz picture?. My understanding of all the answers there is that they extract a picture from a TeX document and strip ...
40
votes
3answers
56k views

How to add text under symbol in equation ?

I was trying to make something like this (something similar to \substack in \sum) in equation. How to do this ?
4
votes
2answers
1k views

How to increase vertical spacing between entries when using glossaries long style?

I am using the glossaries package with long style. However I don't want the entries to be so tight one to another. Minimal code: \documentclass{book} \usepackage{glossaries} ...
1
vote
1answer
303 views

Beamer and Google Earth (how to call a vi)

I did a movie using Google Earth and I would like to call this video via my PDF presentation constructed by the beamer class, so how can I proceed? I know that it is very easy to call videos like ...
8
votes
4answers
7k views

Is there any way to get LaTeX in OneNote?

Any thoughts on how to get LaTeX in OneNote?
12
votes
1answer
453 views

How can I extract equations from one document for use in another?

I have a LaTeX document that includes many equations. I would like to create a separate "quick reference" sheet that includes many of these equations. Instead of copy-and-pasting the equations from ...
5
votes
1answer
553 views

Missing lines in tabular with minimal.cls

If I replace the class by minimal in the code below for a very simple table, the vertical line disappears. Why? \documentclass{article} \begin{document} \begin{tabular}{c|c} a&b\\ c&d ...
24
votes
2answers
606 views

Benchmarking various operations of TeX

TeX offers plenty of ways of doing some things, and it is sometimes difficult to predict which one will be quickest. For instance, how do a macro assignment a toks assignment a macro expansion a ...
3
votes
2answers
904 views

Recommended directory structure for separating presentation and content

For my bachelor thesis I am going to structure the files for my LaTeX document in a more sophisticated way, which means I would like to use different folders for different file types. Is there a ...
89
votes
3answers
4k views

Is there some way to embed LaTeX source code in a PDF file?

Several times now I have inadvertently lost the .tex file that generated a PDF file with pdflatex. Given what I know of the internal structure of PDF files, it should be possible to embed a text file ...
7
votes
2answers
309 views

Options for building multiple documents from the same content with different layouts

I need to produce two document layouts using the same content. I'm going to be making heavy use of the input{} command to do this, but it is more complex than just this. I'm looking for suggestions ...
13
votes
1answer
1k views

LaTeX: Textbox within article

I'm not completely new to LaTeX but I'm not used to work with special layout schemes, so that's why I thought it was a good idea to post my question here. Momently I'm trying to create an article ...
0
votes
1answer
950 views

Table works for one page, but not for multiple

I have a longtable, that is inputted to the main-file using LTXTable, but it does not work, when the longtable is more than one page long. The latex-code for the table can be found here: ...
3
votes
1answer
2k views

LaTeX doesn't pick up changes to style file

I installed the widetext package and was happily using it until I decided to edit the style file widetext.sty. Happily, LaTeX immediately picked up the changes and compiled correctly. I then decided ...
26
votes
2answers
5k views

What are vertical and horizontal modes?

Yiannis's answer to a question introduced me to the notion of "vertical mode". Doing a search on the internet turns up relatively little about the different modes of operation; all I've managed to ...
2
votes
1answer
1k views

How to change the position of underset?

In the command: \underset{t \rightarrow x}{\limsup} f(t) = \underset{t \rightarrow x}{\liminf} f(t) I get the {t \rightarrow x} lower under the limsup then the liminf (due to the "p" in limsup). ...
25
votes
3answers
1k views

Detect which TeX engine is used

How can I detect inside a TeX file which engine (pdftex/xetex/luatex) is used to compile the file? Is there a LaTeX package that provides this functionality?
6
votes
1answer
4k views

Positioning signature on left in letter

I have this letter template, I found online. \documentclass[11pt,stdletter]{newlfm} \usepackage{charter} \widowpenalty=1000 \clubpenalty=1000 \newlfmP{headermarginskip=15pt} \newlfmP{sigsize=25pt} ...
11
votes
3answers
6k views

How to prevent page numbers from appearing on glossaries?

I am using the glossaries package to make a glossary. However I don't want the page numbers where the entry is referenced to be shown after the description in the glossary. How can I do that? Actually ...
5
votes
2answers
562 views

soul's \ul{} breaks wrapfigure and textflow?

Please, I have a nice picture without that \ul{...}, but i need that. \documentclass{article} \usepackage{wrapfig} \usepackage{soul} \begin{document} \begin{wrapfigure}[3]{l}{30mm} \Huge 1 ...
5
votes
1answer
894 views

How to show glossary entry name in bold when using long style?

I am using the glossaries package in order to create a glossary. If I use: \printglossary[type=main,style=list] I get entry names in bold, but the layout won't be the one I wish. If I use: ...
13
votes
1answer
5k views

How to makeglossaries with TeXworks?

I am using TeXworks to edit my LaTeX files. I currently use the pdfLatex+MakeIndex+BibTeX which calls the texify (it is the standard configuration). How to configure this option to call the ...
4
votes
2answers
9k views

Subfigures with TikZ on the same line?

I am trying to get my subfigures on the same line. Right now I successfully use the subfigure and TikZ packages to have a Fig. 1 (a) and Fig 1. (b). However, no matter what I have tried they are ...
3
votes
3answers
4k views

Darker fonts for TeX output to PDF

Sources for darker fonts for math fonts and AMS math symbols for PDF output via, say, dvipdfm.exe? (1st response -- copied from by moderator) Many thanks for the help. I'm just using TeX and not ...
5
votes
5answers
4k views

IDE with AutoCompletion?

I was looking for an Latex editor that has an auto completion function. Is there any available? I thought about auto complete suggestion for common commands like for example defining chapters and ...
2
votes
1answer
1k views

Memoir: no space after section heading

How do I set zero space after a section heading using memoir.cls? If I use the following: \setbeforesubsubsecskip{-\baselineskip} \setaftersubsubsecskip{0pt} I get a run-in heading. This is only ...
5
votes
1answer
424 views

svn-multi: committed PDF always has an offset in revision number?

I'm using the svn-multi package to keep track of different versions of my PhD thesis. One problem (I did not find anything about it in the manual or in the web, but maybe I overlooked it): I have ...

15 30 50 per page