10
votes
4answers
6k views

Coding an equation with description

I want to code this equation in LaTeX: I'd like to know how to code the equation and the description below it with a reference as well.
11
votes
2answers
2k views

Quotations spanning multiple paragraphs in csquotes

I have a quotation which extends for multiple paragraphs. The literary convention is that there is no end-quote at the end of each paragraph, except for the last one. However, this seems to be ...
3
votes
3answers
2k views

How do I use “John et. al. 1990 ” citation for more than two authors?

I am trying to use natbib for citation. Whenever I am trying to use more than two authors for citation instead of using "et. al. " , citation becomes number format instead of author year citation. I ...
8
votes
1answer
375 views

calc package incompatible with \setlength in \g@addto@macro?

I want to systematically have some indentation in \parboxes and minipage environments. To do this, I add the following code in the preambule of my LaTeX file: \makeatletter ...
42
votes
2answers
2k views

How to draw spherical geometries with TeX?

I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
3
votes
1answer
1k views

Bullet points do not appear (in \itemize environment with Hebrew font David CLM)

I am writing Hebrew using the David CLM font (from Culmus). Using this font there are no bullet points in \itemize environments. I do not understand why. It works as it is supposed to work with other ...
7
votes
2answers
930 views

How to check if a font exists in XeLaTeX

Is there a way to check if a font exists in XeLaTeX? I am aware of Check for missing fonts/characters in XeLaTeX?, but sadly the one answer only refers to the log. I am interested for a test via code. ...
3
votes
0answers
48 views

biblatex suppression of label after year [duplicate]

Possible Duplicate: Suppressing em-dashs for recurrent authors and letter suffixes for years when using biblatex-chicago I'm compiling my CV in latex using a slightly modified version of ...
4
votes
1answer
554 views

Asana Math calligraphic capital R with XeTeX

I am having problems getting a calligraphic ‘R’ with Asana Math. This is my minimal: \font\asanacal="Asana Math:script=math;mapping=script;+salt" \font\asanascr="Asana ...
4
votes
1answer
296 views

Paretheses should match same height on single line in multiple arrays

Given is following formula: \[ a^{(k)}=\left(\begin{array}{c} a_1^{(k)}\\ \vdots\\ a_n^{(k)} \end{array}\right)\to\left(\begin{array}{c} a_1\\ \vdots\\ a_n \end{array}\right)=a \] The first ...
8
votes
1answer
1k views

Memoir chapter styles

I'm designing a book collection using the memoir class. I want chapter titles to have a page for themselves (before the chapter proper). I'm using the following code for that: ...
3
votes
0answers
2k views

LaTeX Error: “cmap.sty” not found [closed]

Could anybody help me with my situation. When I try to see my Lyx document in pdf Lyx write this Error note "LaTeX Error: "cmap.sty" not found" and in description "*** (cannot \read from ...
2
votes
1answer
823 views

Redefine a built-in math command [duplicate]

Possible Duplicate: Can I redefine a command to contain itself? I'm trying to redefine the \int command so that it will always do \int \!. So here's my attempt at that: ...
2
votes
1answer
1k views

How to create a PDF with two A5 pages placed on A4-sized paper in ConTeXt?

I am trying to create a PDF where the text is placed on pages of A5, but two A5 sheets are placed on one A4 sheet which is in landscape mode, e.g.: _______________ | | | | | ...
2
votes
1answer
399 views

PSTricks and documentclass

I have a problem using PSTricks for elsevier journal. As you may know, preprints and review versions of papers usually use a different documentclass in LaTeX than the one used for the final version ...
7
votes
1answer
105 views

make index started with mathcal mode in the right order

I want to make index something like: $\mathcal{P}$-vector\index{$\mathcal{p}$-vector} but when indexed it comes before words started with 'A' instead of being after 'O' words.
14
votes
5answers
7k views

Inserting figures using loops

I have a set of pictures in my working directory and I want to make a PDF report using these images. I want to include all of them, but the number of the pictures changes in each case. I would like to ...
31
votes
4answers
16k views

Using a good non-default font [closed]

A while back, I read large portions of the KOMA book and it in the authors talk about how most people can't recognize typography or type-setting in general. People shouldn't be allowed to change ...
93
votes
3answers
117k views

What is the LaTeX command for “em dash” (—)?

I am trying to insert the symbol in the title of the question, which I copied from a PDF article, but it appears as space in the output file. What is the corresponding LaTeX command?
3
votes
1answer
47k views

Include graphics in LaTeX

I am newbie to LaTeX and I have a simple problem including graphics to the text. When I run \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} ...
1
vote
1answer
904 views

\hrule screws up minipage right indent

\documentclass[12pt]{article} \usepackage[ top=0.75in, bottom=0.75in, left=0.75in, right=0.75in, textheight=8.75in ]{geometry} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} ...
0
votes
0answers
70 views

How can I keep less blank space on two sides? [duplicate]

Possible Duplicate: How do I change my margins and spacing to fit the PhD thesis requirements of University XYZ? My Latex file looks like the following:e ...
10
votes
1answer
4k views

Is it necessary to escape underscores in \href with dollar signs or \?

The tutorial LaTeX/Hyperlinks shows that the following should be compilable. \documentclass{article} \usepackage{hyperref} \begin{document} \href{mailto:a_b@c.def}{a_b@c.def} \end{document} ...
19
votes
3answers
1k views

Customizing LaTeX - create a document class or a package?

Are there general rules for when to create a document class vs. creating a package to customize LaTeX? Does one have benefits over the other? My specific need is to create a customized page layout, ...
2
votes
0answers
66 views

Centering all images [duplicate]

Possible Duplicate: How can I automatically center image? How can I align center all picture : \begin{figure}‎ ‎‎\centering‎ % I want do not use this line for every images ...
122
votes
8answers
45k views

“Inspirational” quote at start of chapter

I recall seeing a package to make quotes like that of the following image at the start of a chapter, but I can't seem to find it again. (This image is from the book Combinatorics and Graph Theory ...
6
votes
1answer
1k views

right-justified column and bold-face rows

I'm new to latex but I'm trying to learn and am piecing together various pieces of code from different postings, so I apologize if this code is "messy". In a table, I would like to have the widths of ...
4
votes
2answers
125 views

How can I render a large number of tables in succession?

In the following code an error !h' float specifier changed to !ht` I think because my tables span multiple pages. How can I get them to display properly one after the other? ...
4
votes
1answer
649 views

New line in code with no white space in output?

I would like to put my \footnotes{} on a separate line in code, to make code easier to maintain and read. But I don't want any whitespace in between the foot note, and the preceeding word in the ...
14
votes
4answers
4k views

How to create text with shadows?

This question led to a new package: shadowtext I used the following code: \documentclass{article} %\usepackage{pst-all} \usepackage{pstricks} \usepackage{pst-3d,pst-text} \usepackage{soul} ...
1
vote
1answer
81 views

How do I do table alignment?

I have the following code: \section{Database Design} \begin{center} \begin{table} \begin{tabular}{ | l | l |} \hline Field & Type \\ \hline id & Primary key \\ \hline ...
3
votes
2answers
556 views

How can I suppress the header for the first page in a chapter

I'm trying to implement a macro that begins a chapter. I don't want to use latex or fancyhdr but only plain tex (for pedagogical reasons). The code is the following ...
3
votes
1answer
1k views

When I prevent hyphenation using an \mbox, the box gets pushed into the right margin

I've used \mbox to prevent LaTeX from breaking certain long words into hyphenated pairs. Now I have a new problem: the unbroken words are extending into the right margin. Here's some minimal sample ...
4
votes
1answer
8k views

Switch cases in algorithmic

How can I use switch cases in algorithmicx? For example a code like this: switch s do --case a ----assert(1) --case b ----assert(0) etc. Is is possible to define it as a command?
6
votes
2answers
433 views

Spacing for \listtheorems in ntheorem

Q: How do I get my theorem number and name to not overlap each other in my list of theorems? This is basically the same question as "Spacing control for listtheorems". But the solutions mentioned ...
3
votes
1answer
331 views

Problem to compile the pgfmanual with lualatex

The next link gives the pgf_2.10-CVS.tds.zip, pgf_2.10-CVS.pdf and pgf_2.10-CVS.ChangeLog pgfmanual CVS with the version I found today (25/04/2012). First the file pgfmanual-en-main.tex looks ...
10
votes
1answer
30k views

Creating a table in two column style page

I want to create a table, in a two column style page (IEEEtran) which will range in both columns. Any idea about this issue?
9
votes
1answer
2k views

Moderncv with moderntimeline - how do I typeset positions that only lasted for one year?

I'm using the package moderntimeline which originated here on TeX.sx to typeset my CV. It looks great! However, I have a bunch of positions (mostly for volunteering positions within our student ...
5
votes
3answers
508 views

English minitoc entry within a Greek utf8 document

In a document set up as shown in the question Greek pdf bookmarks, the interesting bits are: \documentclass[greek,english]{scrbook} \usepackage[LGRx,T1]{fontenc} % define LGR and T1 encodings ...
4
votes
1answer
378 views

Incorrect line spacing when using \Large in a center environment

When I enclose text with line breaks within a center environment, there is extra space after the first line, but only if the font size has been changed. The following working example prints the same ...
29
votes
3answers
54k views

Reducing spacing after headings

I've searched many sites but I couldn't get any answer. Here is this mystical question: How can i reduce the spacing after headings? Here is my code. \documentclass[12pt,a4paper]{article} ...
1
vote
1answer
574 views

APA formatting and changing the parameters

So my teacher is being really picky with the APA formatting of my paper and I decided to use LaTeX to typeset my paper (currently its 21 pages). I used the package \usepackage[man]{apa} which has ...
0
votes
1answer
160 views

problems with tkz-linknodes

doesn't this example work because? \LinkNodes doesn't work \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[upright]{fourier} \usepackage{amsmath,tkz-linknodes} ...
3
votes
1answer
504 views

mdframed package + align gives extra vertical space

I think I may have stumbled upon a bug in the mdframed package. I have an mdframed environment with just one align environment inside it. Consider this minimum working example: ...
18
votes
2answers
2k views

Programming simple functions using TikZ arithmetic?

How do you do program simple functions using the TikZ arithmetic engine? I love the idea of using TikZ in order to “program” my pictures, being able to write code once and reuse, get precise ...
8
votes
1answer
1k views

Superscripts and bold math

I'm writing the transpose of a matrix that is denoted by a bold capital letter. This looks fine when the matrix is denoted by B, but when the matrix is denoted by A, the transpose superscript is too ...
6
votes
3answers
327 views

How do I get an uppercase ordinal to number with memoir class?

The memoir class has a number of macros for converting a number to words. For example \numtotoname{113} will print one hundred and thirteen. Is there an equivalent macro for all caps? ...
8
votes
2answers
316 views

Why are some macros undefined inside an if case?

I'm trying to check if a string is only of one char, and I ran into this problem: LaTeX complains that \StrLeft in the comparison takes and additional argument: ! Argument of \@secondoftwo has an ...
7
votes
4answers
446 views

How to check if a datatool db has an existing member

I would like to suppress duplicated entries in a list. The lists are comma separated lists defined in a macro as in my earlier question on Sorting Comma Separated Lists defined with, or without ...
4
votes
1answer
1k views

Placement of graphics in a triangular orientation

How is it possible to import figures into a somewhat triangular orientation? By triangular orientation I mean having one figure and then a further two figures underneath where all figures have a ...

15 30 50 per page