5
votes
1answer
253 views

Onecolumn vs. Twocolumn: spuriously different header spacing

In the following example, there's a spurious space in the one-column variant. The problem seems to be that in two-column mode, the \section command is at the "beginning of a column" and no space is ...
4
votes
2answers
379 views

Sourcecode on the left, Nassi–Shneiderman on the right (float?)

I’d like to place a Nassi-Schneiderman diagram into my LaTeX document but also to have the source code for the shown algorithm beside it. Drawing the diagram worked just fine using the StrukTeXpackage,...
1
vote
1answer
110 views

Can not insert a figure in the text [closed]

This may be a very rudimentary question, but I am new to LaTeX and trying to learn. When I want to inset a pdf image in LaTeX through the Insert menu in TeXnicCenter, I get the following warning: ...
4
votes
1answer
476 views

Horizontal chart-style arrows between nodes

I have five nodes defined and positioned as following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, fit, calc, shapes, arrows} \renewcommand{\figurename}{Figure} \begin{...
9
votes
1answer
577 views

Can I define a new unit that behaves like \ang in siunitx?

The siunitx package provides support for "astronomy style" placement of the degree symbol using the angle-symbol-over-decimal switch, and for simple entry of degree-minutes-second values using the ...
4
votes
5answers
436 views

Double solution in equation mode

I Want to do give two solutions to an equation, and do something like that: / 0 If c = 0 => x = \ -b/a Edit: I've tried the cases environment ...
1
vote
1answer
481 views

ctable position in classicthesis with lyx

I'm using the classicthesis package with ctable. Normally it works just fine, but I have one file (chapter file) where I placed the following table with ctable: \ctable[ cap = {Übersicht der ...
4
votes
1answer
338 views

Preserve line breaks/newlines when parsing bib file with biber

Since the answer to the original question is "This is not possible", my new question is: How do I write a shell script, in which I can define the original bib file, the fields in which new line ...
4
votes
1answer
590 views

Beamer with ignorenonframetext ignores \maketitle command too. Why?

I am trying to follow workflow from BEAMER manual (ref. 21.2.2). I want to use the same TeX code to produce both presentation and article. So, I have created three files as advised: main.tex, main....
7
votes
1answer
297 views

Can you make the “graphic” option of LTXinputExample able to render all pages of a multi-page PDF file?

I have a source code named source.tex which produces a PDF file consisting of more than one page. The source code will be displayed by LTXinputExample as a formatted text and the corresponding output ...
1
vote
1answer
221 views

Move ylabel with pgfplot

My ylabel is to far from ticks and I would like to make it closer. Especially ylabel of the right plots. \begin{tikzpicture} \begin{axis}[% view={0}{90}, width=5.5cm, height=4.5cm, scale only axis, ...
12
votes
1answer
3k views

Double sum over i and j with i \neq j

I would like to represent a double sum with i\neq j. So I want two capital sigmas with text i\neq j underneath them. How can I achieve this?
10
votes
1answer
3k views

Am I using textcomp correctly?

In a previous question of mine I was told to use the textcomp package if I wanted Old Style Numbers with tgtermes. I wanted to know if there were options I could use with it, so I went to it's ctan ...
1
vote
0answers
98 views

URL with % won't display in bibliography [duplicate]

Possible Duplicate: URL for “article” (and other) entries of the bib file? URL of cited web site in bibliography I am trying to put a long URL into my bibliography. In the preamble I have ...
3
votes
2answers
272 views

list environment to set different paragraphs within an item

I'm trying to create a document with exercies and solutions. Since exercises often come in different parts (such as (a), (b) and so on), I want to use lists for the solutions. However, solutions are ...
29
votes
1answer
601 views

Bifurcating a PDF: choosing a “Plan B” during a talk

I think this is a greenhorn's question, but anyway. It is sometimes difficult to measure time for a talk, according to unknown places and audiences.By this and other reasons I'd like to subtly launch ...
1
vote
1answer
56 views

How to resize a graphic attached to LTXinputExample?

I want to attach a PDF output of a source code using graphic option of LTXinputExample. Shortly speaking, how to resize the attached graphic? \documentclass{article} \usepackage{filecontents} \...
3
votes
1answer
2k views

Right flush text in math environment

In my align* environment I have a bunch of lined up equations, but I would like to put some explanations of the steps done to the right of the equations. Currently it looks bad: \begin{align*} P(...
4
votes
1answer
94 views

How do I prevent the second \subsubsection in my document being indented [closed]

The problem I'm having is that my second subsubsection is being indented. Probably something which is being done automatically. However, I'm new to LaTeX and don't have a clue how to fix it, so can ...
5
votes
2answers
566 views

Different macro behavior when supplied an argument

I want to define a macro, call it \func, so that \func will output\phi, and \func[i] will output \phi(i). what is the easiest way to achieve this? I know there are other questions that address this ...
4
votes
2answers
815 views

How to refer a word to another section?

Suppose I have a text like this Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim ...
2
votes
2answers
395 views

Paragraph line break alignment in table

I'm doing the following: \begin{tabular}{ p{0.20\textwidth} p{0.20\textwidth} p{0.20\textwidth} p{0.20\textwidth} } 2009 & 2010 & 2011 & 2012 \\ \hline ...
3
votes
1answer
99 views

Get error when I add “pos=x” to the node[] command for the last edge using cycle

Why this code works \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (pi,.5)--(pi,-.5)--(-pi,-.5)--(-pi,.5)--cycle node[above]{vv} ; \end{tikzpicture} \end{...
2
votes
0answers
173 views

Highlight keywords in math mode? [duplicate]

I am using Emacs+Auctex. I need additional highlighting in math mode. How can I force Emacs to highlight braces and some commands (like \quad) inside math mode with different color?
2
votes
1answer
362 views

left side margin in landscape the rest of paper is normal.

I need to type an exam, but the first page must have its left side margin, from top to bottom, be in landscape, but the rest of the exam is normal. The left side margin will run the entire length of ...
12
votes
2answers
8k views

LaTeX in CorelDRAW

What is a good way to get LaTeX formulas into CorelDRAW figures? I will provide a solution below, based on a rather old macro adapted to work on 64 bit systems as well as 32 bit - it works well, but ...
0
votes
1answer
86 views

How do I set the margins of a centered math expression? [duplicate]

Possible Duplicate: How to globally change the spacing around equations? For example, this is a paragraph \[ \frac{1}{2} \] this is a paragraph as result, I want something like this is a ...
5
votes
1answer
479 views

How to change the font shape in the body of theorem environments?

\documentclass{article} \usepackage{amsmath,amssymb} \newtheorem{defn}{Definition} \newtheorem{pro}{Problem} \newtheorem{thm}{Theorem} \begin{document} \begin{defn} This is the first definition \end{...
3
votes
4answers
625 views

How can I draw a right angle with MetaPost?

I want to use MetaPost to draw a right angle BAC. A = (20,30), B = (0,0), the top of the angle is point A. How can I compute the coordinate of point C?
5
votes
2answers
422 views

Generating an author index with author names only, not dates, using natbib

I'm generating an author index using natbib, makeidx, and \citep and \citet in the document, with \citeindextrue. This works, but the author entries are of the form: Hegselmann (2001), 142, 190 ...
3
votes
1answer
309 views

Highlighting of latex code in emacs

I am absolutely new to Emacs and lisp, but I am considering a possibility to start using it for LaTeX code editing. What I have learned about Emacs (and it fascinated me) is that it has almost ...
0
votes
1answer
499 views

ams bibliography style rationale [closed]

I have come to like the ams bibliography style. Is there a rationale for the style available? In general, are there guidelines for typesetting bibliographies you can recommend? Lastly, what are your ...
5
votes
1answer
167 views

keep svninfo package from overwriting \today?

I use the package svninfo to put the svn revision on my title page so that I know which version people are looking at when they give me feedback. My titlepage also contains the current date though ...
15
votes
1answer
6k views

Two columns in legend in pgfplots

I know how to create a legend in a pgfplots plot. See Legend in tikzpicture and Using a pgfplots-style legend in a plain-old tikzpicture. But I do not know how I can create a legend with two ...
4
votes
2answers
232 views

controling padding using the xstring package

in order to pad some text with a predefined padding, im using the xstrings package my current code is \documentclass{minimal} \usepackage{xstring} \newcommand\padfrom[2]{\StrGobbleLeft{#1}{\StrLen{...
2
votes
1answer
643 views

algorithm2e - Unwanted vertical space

Last days I met a strange behavior with algorithm2e which produces an unwanted space after an IF-block. I put here one MWE which shows that the problem really comes from my customization and not from ...
6
votes
3answers
4k views

\thanks not creating footnote in twocolumn article

I am trying to use \thanks inside \author in a twocolumn article. The document shows an asterisk next to the author's name, but the footnote is not appearing at the bottom of the first page or ...
13
votes
1answer
1k views

Draw a cylindrical volume

I am trying to draw this image My code is \documentclass[11pt,a4paper]{book} \usepackage{kerkis} \usepackage{tikz} \definecolor{Darkgreen}{rgb}{0,0.4,0} \definecolor{Darkblue}{rgb}{0,0,0.4} \begin{...
0
votes
1answer
448 views

How to Get The Output Like This [closed]

Appendix A: Table A.1 Table A.2 Appendix B: Table B.1 Table B.2 Appendix C: Table C.1 Table C.2 How to Get output like this
6
votes
3answers
1k views

Clipping a formula to make a nice compliment

I just found a nice cartoon and wonder if this is possible with LaTeX as well. If you draw "128 \sqrt{e 980}" on the blackboard (sqrt written with the root character) and erase the approximately ...
2
votes
1answer
1k views

Putting multiple algorithm2e procedures in figure

I want to put some algorithm2e procedures into a figure like: \begin{figure} \begin{procedure} some code \; \caption{abc (n).} \end{procedure} \begin{procedure} some code \; \caption{abc (n).} \end{...
4
votes
1answer
739 views

How to use color by number?

I'm trying to use Bettini's QSource Highlight IDE to colorize my python code. Generated LaTeX output is something like: \noindent \mbox{}\textcolor{#121b28}{a}\textcolor{#0000de}{=}\textcolor{#0da344}...
8
votes
1answer
630 views

Displaying a book or thesis's number of pages in biblatex differently

Is there a way to format the output of biblatex's citations to a book in a different way? When you cite a paper, the pages usually refer to the page range of the paper in the proceedings or journal, ...
2
votes
1answer
483 views

Global footnote counter in Koma-script book class [duplicate]

Possible Duplicate: Continuous footnote numbering How can I achieve that footnotes have a global numbering scheme, and not a per chapter numbering? I am using the book class from the koma-...
1
vote
1answer
809 views

Graphics preview in Lyx gives `Error loading file into memory`

When I add a pdf figure into lyx the preview works only for the current session. When I restart Lyx I get an error: Error loading file into memory. This only seems to occur with .pdf files (i.e. not ...
7
votes
2answers
184 views

Method for aligning nodes of different sizes at specified sections

I'm trying to make a tikz diagram in which I can place nodes with long pieces of text, one above the other, such that I can specify sections which are to be centered (things outside these sections are ...
1
vote
0answers
64 views

Customize citation style to include notes field [closed]

I would like to include a table in my document that pulls in all the notes from the bibitems in my bibliography. So each row in the table would have a column for the citation \cite{myitem} and for ...
9
votes
2answers
196 views

Identification of an empty macro from pgfplots using \ifx

Consider following MWE and the output thereafter. I have defined an empty macro and used \ifx to identify it as such. However, when an empty macro is received from \pgfkeysgetvalue, \ifx doesn't work. ...
4
votes
0answers
207 views

How to generate PDF/A using XeTeX? [duplicate]

Title says it all. I need to generate PDF/A compliant documents, and I'm using XeTeX. I couldn't find anything about this; here there's only info about pdfLaTeX (using pdfx) and ConTeXt. Any help is ...
3
votes
2answers
792 views

bibliography style for Journal of Financial and Quantitative Analysis

Does anyone know which bibliography style meet the following formatting requirements? The followings are the format required by Journal of Financial and Quantitative Analysis, I have spend a long ...

15 30 50 per page