5
votes
1answer
2k views

Undefined reference: autoref points to section instead of figure or table

Here is a minimum working example (an image 'test.png' needs to be in the working directory. I used this one.) % Created 2011-05-23 Mon 15:21 \documentclass[11pt]{article} \usepackage{graphicx} ...
6
votes
2answers
1k views

How to prevent text generated with `Sweave` from running off the right margin?

I am using Sweave to generate output for some R analysis. Some of the code generates long lines that are run off the right margin when the .tex file is compiled. I have pasted an example Schunk ...
4
votes
2answers
2k views

Block Diagrams Multi Input - Multi Output Components in TikZ

My problem is to define blocks (mainly rectangles) that has labels in them in terms of matrices (mostly block diagonal) such that the n-many arrows that goes in this rectangle visually is at the same ...
7
votes
2answers
2k views

multipage pdf as separate image in LaTeX [duplicate]

Possible Duplicate: pdflatex, \includegraphics, and multi-page PDF files Sometimes I create a multi-page pdf as output, e.g. graphs from R. Is there a possibility which allows me to select ...
13
votes
1answer
3k views

Increment loop variable in inner foreach loop

I need the following pairs of numbers: 12 13 14 23 24 34 My first attempt was to use two nested foreach loops: \foreach \x in {1,...,4} { \foreach \y in {\x+1,...,4} { % This would be very easy in ...
-2
votes
3answers
486 views

why is Tex so dang hard to install. [closed]

I'm very new to LaTeX and even though I do understand the power of the system, why is there no single downloadable installer that I can run and install like any other application?
16
votes
2answers
952 views

Attach displayed image to the PDF without storing it twice

If one and the same image is included in a PDF multiple times it is only stored only once as an PDF object. Now I like to also attach an image which is shown in the document to the PDF to allow users ...
45
votes
7answers
3k views

Short names for macros

Often it happens that I would like to define macros that I would use very frequently throughout the document – for example, a special symbol that I use repeatedly in many equations. Ideally, in such ...
32
votes
1answer
5k views

How can I put more space between bibliography entries (biblatex)

My bibliography (made with biblatex) has all items close to each other. I would like to introduce some space between them, e.g. half a line. How can I do this?
10
votes
1answer
1k views

Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} ...
2
votes
1answer
788 views

Framebox and minipage causes white space and is not float

I have a \framebox (I don't insist on using this command) and a minipage that causes whitespace, because the drawn box is not allowing any text before or after and it itself does not break over pages. ...
7
votes
1answer
2k views

Displaying two XML listings side by side. [duplicate]

I have two XML outputs from a program that I would like to include in a LaTeX document. I would like them to appear side-by-side each in its own box. So that a reader can compare the two outputs while ...
8
votes
2answers
7k views

How to get only “Chapter 1. The title of the chapter” in the left of header

I am trying to use fancyhdr, but I can't get it to not show the section and to keep the normal case for title and 'Chapter'. How can I have my heading to be "Chapter 1. The title of the chapter" ...
3
votes
1answer
299 views

How does spreadtab know it is a number?

Using spreadtab with glossaries I define a glossary entry A with a field user1=12. Now, if I call this field in a spreadtab table with \glsentryuseri{A}, spreadtab does not recognize it as a number. ...
2
votes
0answers
49 views

Latex: adding text inform of a graphic [duplicate]

Possible Duplicate: Displaying two XML listings side by side. I have two xml outputs from a program that I would like to include in a latex document. I would like them to appear ...
10
votes
1answer
2k views

“Allowing line break at ',' in inline math mode” breaks citations

In answering another question allowing line break at ',' in inline math mode, Stefan Kottwitz suggested two excellent ways to allow line breaks in inline math mode after ,. One way was to use the ...
5
votes
2answers
6k views

Bibtex entry to cite an article with unknown author?

Which bibtex entry type should I use to cite an article in a professional/popular (i.e. non peer reviewed) magazine. The article does not state an author, and bibtex article entry requires an author. ...
4
votes
1answer
188 views

How to avoid overlapping when using single quotes (German)

when using the following example I get (probably not surprisingly) overlapping between single quotes and the letter at the beginning of a word (for example starting with A) or the end of a word (for ...
5
votes
1answer
80 views

Removing whitespaces caused by separate source files

I have an article which consists of multiple files, a main file with following section includes: \include{Introduction} \include{ProposedProtocol} \include{Comparison} \include{FutureWork} ...
7
votes
3answers
3k views

How to add combined cross-references for two subfigures?

I want to have two subfigures, and then reference them like "as seen in Figure 2a,2b" -- so to combine them. How can I do this? (or if you know a better way in lyx or latex)
9
votes
3answers
8k views

How to vertically center text with an image in the same row of a table

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of ...
21
votes
5answers
3k views

What on earth is iTeX?

Is that an hoax? Or is it a real wish from D. Knuth? (http://river-valley.zeeba.tv/media/conferences/tug-2010/Don-Knuth)
2
votes
1answer
575 views

Use input file in \thanks{}

Is it possible to acheive something similar to \title{\myTitle \thanks{ \input{../acknowledgement} }} (which doesn't work?) in order to load the content for \thanks on the fly?
3
votes
2answers
4k views

Arrow with an asterisk superscript and text above?

I'm trying to create an arrow (or \mapsto) that has text above it and also an asterisk superscript — where the asterisk is only a superscript for the arrow, if that makes sense. I've been trying ...
2
votes
1answer
106 views

Authors being omitted in certain bibliography entries

From the following bib entries, the authors are being omitted. Help, need to submit soon! @article{Fu_2010, authors = "Xiao, T. F. and Sang, M. K.", title = "Agarase: Review of Major Sources, ...
6
votes
2answers
689 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 ...
6
votes
3answers
5k views

File ended while scanning use of \url using Bibtex.

I have a problem with one of my bibtex items and I'm scratching my head to figure out what is wrong. I've narrowed it down to the specific reference, and in partiuclar the specific URL latex is having ...
6
votes
2answers
522 views

Deciding Boolean operation in LaTeX via Linux Terminal

How do I decide a Boolean operation in LaTeX via Linux terminal? That is, I have: %myfile.tex \documentclass{article} if parameter=true is true else is false \begin{document} parameter ...
14
votes
1answer
7k views

single-column revtex4-1 adds a page break after the title section

Using revtex4-1 in single-column mode produces a page break after the abstract. This is not the behavior with revtex4. The minimal example is really simple: \documentclass{revtex4-1} ...
3
votes
2answers
5k views

Undefined control sequence in algorithm package

I am using Ubuntu 11.04 with TeXmaker and TeX Live. There is a \newenvironment definition in my LaTeX file: \newenvironment{algo}[1]{% \begin{algorithm}[#1] \SetTitleSty{textsc}{normalsize} ...
29
votes
6answers
1k views

How do I typeset morse code with LaTeX

I am writing an article regarding the history of the Morse code and I am having difficulties printing the dots and dashed (they get combined when the document is printed). Is it also possible to ...
12
votes
4answers
4k views

PGF Math Function to compute cube root

When I found that a simple x^(1.0/3.0) does not yield a graph in PGFplots for negative values of x, I attempted to define my own function for CubeRoot using pgfmathdeclarefunction as below. But, am ...
3
votes
2answers
977 views

Presentation recommendation

I am a rusty, irregular LaTeX user and I am would like to create a presentation with LaTeX. I am hoping to get good screen, html and pdf output. I dont want anything fancy, mostly just a simple ...
6
votes
1answer
466 views

LaTeX generated alternative to PDF with multimedia support?

Is there some alternative to PDF or PostScript, which is good for publishing documents written in LaTeX and support video and/or audio?
8
votes
2answers
4k views

How do you number theorems but not definitions?

I am using LaTeX theorem style where I have at the top: \newtheorem{theorem}{Theorem} \newtheorem{definition}{Definition} \newtheorem{lemma}{Lemma} and then I use ...
3
votes
1answer
1k views

Sometimes the resulting PDF doesn't allow copy image [closed]

In case it matters I am using TeXnicCenter with miktex, LaTeX => PDF configuration. If I do the following: \includegraphics[scale=0.08]{figure.png} I get a PDF which looks fine in Adobe ...
3
votes
1answer
282 views

I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)

Using the siunitx package. I have a table with column specifier S if I then put an imaginary number in it comes up with a compile time error: ! siunitx error: "table-partial-number" ! ! No space ...
9
votes
4answers
2k views

Are there any server-side LaTeX to HTML-CSS converters?

I'm looking for something equivalent to MathJax, but that does the conversion(s) from MathML or LaTeX to HTML-CSS on the server backend as my site is rendering the page, rather than relying on ...
2
votes
1answer
973 views

Unwanted line-breaking of hyphenated word in bibliography

In .bib file: @article{Kurahashi_Yokota2004, author = "Kurahashi, M. and Yokota, A.", title = "Agarivorans albus gen. nov., sp. nov., a $\gamma$-proteobacterium isolated from marine animals", journal ...
5
votes
2answers
709 views

Passing nodes as parameters to a macro in TikZ

I would like to define a macro which would take two nodes as arguments and "connect" them using a third, predefined node. Like this: \documentclass{minimal} \usepackage{tikz} ...
4
votes
1answer
712 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
10
votes
2answers
6k views

How to draw up a hierarchical tree diagram for taxonomic classification

Please show me the most simple, elegant code for this: How to do it in other words.
4
votes
3answers
2k views

How to include an array in cell of a tabular environment

For an equation that has an array we use \\ for new row as well, and \newline didn't work, and this is understood by the tabular environment as a new row! Would appreciate all the help!
11
votes
2answers
3k views

Embed link to an embedded file

I am embedding a PDF file inside my LaTeX-generated PDF file using embedfile: \usepackage{embedfile} \embedfile{myfile.pdf} I would like to also insert a link that the user can click on to open the ...
1
vote
1answer
1k views

How to make the font a little thicker/bolder?

I typeset a book with some ttf/otf fonts, when printed it seems ok, but it is a little fuzzy when view on screen or on mobile devices. Another problem is one font does not match very well with another ...
28
votes
2answers
19k views

How to place a table on a new page with landscape orientation without clearing the current page?

I'd like to place a table on a new page with landscape orientation. To do so, I use \usepackage{pdflscape} ... \pagestyle{empty} \begin{landscape} \begin{table}[htbp] \begin{center} ...
4
votes
1answer
4k views

Hiding the column separator in multicols

By default, the multicol package produce a line between different columns. Is it possible to disable this line?
1
vote
2answers
240 views

I need a List environment with other indent and hang

I would like to make for formulas a listing, in which I can explain the meaning of the letters. The following code shows how should it look like: {\renewcommand{\arraystretch}{1.3}\tabcolsep0pt ...
1
vote
1answer
226 views

Convert latex conference paper to html with figures and bibliographic references

I wrote a paper for a conference in latex format. It contains figures and bibliographic references. I got the output in PDF format and it looks fine. Now I would like to convert it to HTML. I just ...
15
votes
2answers
849 views

Custom quotation style which depends on length of quotation

I am writing my PhD-thesis and I need to meet certain formatting requirements in regard to quotations. I know there is the quote environment. But in this conditions it doesn't match my universities ...

15 30 50 per page