6
votes
2answers
3k views

How can the \textmu symbol be used in math mode and resize correctly?

I wish to use an upright mu character in various places in my document, and so I've put the following in my preamble: % textcomp, for its upright mu \usepackage{textcomp} % some user macros ...
3
votes
1answer
219 views

What is the “simplest” to install restructured-text to TeX software (for windows)

I am looking for a simple software (for windows) that can turn the reStructured-text format into TeX. "Simple" to install means that you can basically unzip a file with the software, and you could ...
1
vote
1answer
169 views

In a tabular, how do I reduce the vertical space in a wrapped text?

In a tabular, I am using the commands that allows you to wrap your text: \begin{tabular}{m{5cm} m{13cm} m{5cm}} but I would like to change the vertical space between the different lines of the ...
37
votes
3answers
3k views

Is there a package that provides graphing in the style of Ed Tufte?

I have recently started using the tufte-latex package for various science writing and, while I love the package generally, am dismayed that it does not include the ability to produce graphics (charts, ...
3
votes
1answer
580 views

How to make Bourbaki's style remarks

I like my remarks comes in the fashion of Bourbaki's. Lines and the "Remark" are indented inwards equally, and the font is one size smaller. I used these simple lines of code: ...
7
votes
1answer
2k views

\input{…} is ignored with beamer option ignorenonframetext

I'm using beamer to create my slides and wanted to use beamerarticle to create written paper which is not just printed slides 3 on 1 page. The option ignorenonframetext for the beamer class forces it ...
3
votes
1answer
1k views

sectionbib option for natbib doesn't work with scrreprt

The natbib package has an option sectionbib, that causes the bibliography to be typeset as an unnumbered section, as opposed to the default unnumbered chapter. However, when using the scrreprt class, ...
11
votes
1answer
297 views

Create arbitrary sorting of index entries

How does one go about setting an arbitrary sorting order in an index? For example, I would like to create an index of citations to Roman and canon law, which should not be sorted alphabetically. ...
6
votes
2answers
692 views

What are the different applications of LaTeX?

I am in the research field and am new to the world of Tex and find it really fascinating. I never knew about this, until I was asked to write my research results as tex files, that is in the LaTeX ...
5
votes
2answers
4k views

Problem using package acronym

I am using acronym package to create the list of Acronyms. I am using Acronym1.tex containing the definition of all the acronyms. However here is the list of problems I am facing. I have to sort the ...
6
votes
2answers
5k views

pgfplot: Customize the axis wide scientific notation multiplier

Hy Guys, I'm experiencing two problems with ticklabel formats. First, if I explicitly set scaled y ticks = true, the base ten notation still appears at every tick. Here's the diagram: Here the ...
3
votes
3answers
606 views

Visualization backend for simple diagrams

Could someone recommend a solution for coding this kind of diagram into a TeX document? Background: Looking for further ways to make everything in my papers replicable or at least communicable in ...
2
votes
4answers
1k views

Letter prefix for “sections”

Between chapter and section level I sometimes need another level, which is indicated by a letter prefix. The table of contents might look like this: 1 1.1 1.2 2 A.2.1 A.2.2 B.2.1 B.2.2 3 3.1 Now I ...
6
votes
5answers
5k views

Aligning pseudocode in LaTeX

My algorithms class is following strict guidelines for pseudocode. Let's say I have something like the following: y = 0 for i = n downto 0 y = a_i + x * y I want this to appear left-aligned on ...
17
votes
1answer
3k views

How to zoom a portion of TiKZ picture?

I want to draw a small rectangle within a tikz picture, then zoom it out somewhere. I skim through the PGF manual but I couldn't find a way to put the logic together. So far I've just drawn the ...
0
votes
1answer
959 views

How to fix the location of tables when they're imported with \input? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I'm using MiKTeX and TexMaker 2.2.2. Using the latabstat command in Stata I create small tex files of some ...
0
votes
1answer
5k views

How do I speed-up latex compile time? [duplicate]

Possible Duplicate: Speeding up LaTeX compilation Currently am using Miktex and TexNicCenter to create pdf files including vector(.eps) and raster(.png) images. Compile time is about 6 ...
2
votes
1answer
4k views

Explain “Please type another output file name: ”

Please, explain why it asks something like this. $ latex full.tex ... l.5 \begin{document} (Press Enter to retry, or Control-D to exit; default file extension is `.tex') Please type another output ...
4
votes
3answers
560 views

Problems with chapter headings going from dvi to pdf.

I want to redefine the chapter headings using some code that I took from a friend. It works fine when I create a dvi and I see it in Okular (it doesn't look fine using Evince), but when I try generate ...
2
votes
1answer
2k views

Aligning nodes with TikZ

Consider this: There are several problems: The \exists operator is not horizontaly aligned with the following node (a,b). There is too little space between foobar and the node below it and ...
8
votes
2answers
1k views

Expandable Nested Boxes with TikZ

Could someone please post a minimal tikz example to draw this: I am currently doing this with nested tables, but would like to see how it can be done with tikz. The nodes would ideally have a ...
5
votes
1answer
758 views

Auto-displaying a large image on multiple pages

I have a long UML diagram, I use the following code. The figure is about two and a half page long, but only the first page is showing, and the lower part of the figure is missing. How do I display the ...
2
votes
1answer
807 views

How to debug hanging xetex compilation

I'm experiencing a weird problem. After updating my MikTeX installation my thesis document no longer compiles. Compilation (with xelatex) hangs and takes up all of one of my CPU's cores. However, if ...
11
votes
2answers
2k views

Making arrows not touch in TikZ

I'm trying to make a fairly simple diagram using TikZ, along the lines of the following examples: \begin{tikzpicture} \draw [->] (0,0) node[anchor=south]{A} -- (1,-2) node[anchor= north]{D}; \draw ...
5
votes
1answer
706 views

Automagically scale Tikz-Picture AND use Externalization

I need to scale Tikz pictures automatically, and I do this using the following custom environment: % Automagically scale a Tikz picture, so it has the desired (given) width. % Does NOT scale line ...
3
votes
1answer
820 views

How to get the domain for the line of best fit w/pgfplots to be all real numbers?

Although I already worked around this problem by finding the x-intercept with the linear regression equation I calculated w/gnuplot, I'm still curious to know how pgfplots can do it without me ...
2
votes
1answer
3k views

Errors thrown when trying to use the mdframed package

I am running Ubuntu, so unfortunately I don't get the nice Console way of installing new LaTeX packages, I have to install them manually. From CTAN, I found the mdframed package, downloaded and ...
3
votes
1answer
302 views

Controlling text position

I'm writing a document and I want to put in a contact section with an e-mail address and a phone number. To signify that, I'm using wasysym and bbding for \phone and \Envelope symbols respectively. ...
7
votes
1answer
4k views

How to suppress typesetting of section title?

I would like to suppress the typesetting of the section title in the document altogether, but still setting it for purposes of subsections, section mark / header, and table of contents. What I tried ...
10
votes
2answers
8k views

How to globally adjust horizontal spacing in table? @{length}

I want to adjust the horizontal spacing between vertical lines and the cell content in a tabular table. I could do it for each column with @{length}l@{length} (e. g. with \,), but there must be a ...
3
votes
1answer
805 views

Reference to something in a different file, in a different directory?

I'm working on a text that has to be split up in 4 parts, with each part containing it's own table of contents and it's own appendix. Four separate pdf's are needed. The page numbers and section ...
5
votes
1answer
4k views

Specifying a domain and pgfplots

I'm making a graph with pgfplots with a specific domain, but the graph's domain (both x and y) are not changing. I'm reading through the pgfplots manual and I think I'm doing the right thing except ...
11
votes
2answers
940 views

Statistics about LaTeX use in the world

Are there any statistics about the use of LaTeX in the world? In which countries? In which journals/fields of research? Number of articles using LaTeX? etc.?
2
votes
1answer
377 views

Tabs and columns in LaTeX

I'm looking for a way to do something like this in LaTeX: 2006-now good years had a lot of fun 2002-2005 not good years I just wish I knew how to do this ...
6
votes
1answer
2k views

How can I change the @ symbol in e-mail addresses?

I use \documentclass{article} \usepackage{hyperref} \begin{document} \href{mailto:e.xmaple@example.com}{e.xmaple@example.com} \end{document} This way I can write an email address, but I don't like ...
20
votes
1answer
29k views

TikZ Adding Text

I'm a recent convert to TikZ from xy-pic, and am still trying to get a hang for it. I see that one can add labels to the end of arrows and the like using \node. Is there a way to add an arbitrary ...
1
vote
1answer
4k views

the limit arrow: its label too high

My question is an extension of this one. I have the command \documentclass{article} \usepackage{amsmath} \begin{document} $a_n \xrightarrow{\scriptscriptstyle n\to\infty} 0$ \end{document} which ...
8
votes
1answer
1k views

Sweave generating invalid LaTeX

I've encountered a problem when I'm using Sweave to convert an .Rnw file into a .tex file. Sweave is replacing three options from hyperref's \hypersetup block with the value NA. This is the section ...
8
votes
2answers
3k views

How to get marginnote to use the whole margin space?

I'm typing up a document where I'd like to add notes to myself on the side margin. I'm using marginnote and using the geometry package for specifying customized margins, I've allocated 5 cm for the ...
4
votes
2answers
750 views

Vertical spacing issue on box

I'm trying to get the resheading box to be shorter in vertical space. Right now it appears that I have about 2 cm vertical space on the top and bottom of the text. How can I fix this? Everything I ...
14
votes
6answers
7k views

ToC numbering problem

My LaTeX document is acting strangely. Here is a simplified version of it: \documentclass{article} \begin{document} \tableofcontents \newpage \addcontentsline{toc}{part}{A Part of My Document} ...
11
votes
2answers
2k views

Undocumented useful commands in Tikz

\tikzstyle{...}=[...] This command seems to be extremely useful since it allows to re-use the same style in multiple TikZ pictures. Is is used in a few places in TikZ manual (pgfmanual.pdf), but ...
5
votes
1answer
240 views

Differences in texlive implementations

I run the same input file in two computers, one having TeX Live/Debian under Ubuntu, the other with TeX Live/opensuse under SUSE 11.1. The second one fails to handle the file properly. In ...
7
votes
2answers
701 views

Using \nameref within \path

Background Looking to apply a consistent style to file and directory names. The book's appendix has a subsection for every file referenced by the book. Every subsection has a label whose value is ...
4
votes
3answers
1k views

Reduce line spacing in minitoc package

I am using the minitoc package to add chapter TOC's in a thesis. The entire document (including the main table of contents) is doublespaced, but I want the chapter toc's to be single spaced. I specify ...
9
votes
2answers
21k views

Fit a table into one page

I have a table that is very wide. Now I want to force it into one landscape page. I already set the page orientation to landscape but now I don't know how to force it into one page with scaling. Any ...
4
votes
2answers
264 views

TeX evaluates 'document' code in preamble

I have the error ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.30 \AddDemo{text}{Sample Text} in ...
31
votes
2answers
896 views

Why do we need eleven expandafters to expand four tokens in the right order?

In Appendix D - Dirty Tricks Knuth gives an example of expanding four tokens in the right order by using eleven \expandafter commands. Here, is the code slightly adapted for to-morrow! ...
3
votes
2answers
484 views

Expand directory names using nested macro definitions

Background Would like to use values from macros that reference other macros (n-levels deep) and apply their values to the \path command. Problem (Scenario A) The following works: \usepackage{url} ...
15
votes
2answers
2k views

How to add a hook to a macro

LaTeX uses hooks extensively, one method employed is the command g@addto@macro. It is defined in source2e as: \long\def\g@addto@macro#1#2{% \begingroup \toks@\expandafter{#1#2}% ...

15 30 50 per page