7
votes
3answers
5k views

XOR and II (concatenation) summation symbols

In Latex, in math mode, if I want to express summation over a range I can use the following expression \sum_{from}^{to}. I can do the same for the product. What is the name of the symbol that does ...
7
votes
3answers
590 views

Define Macros depending on argument

I'd like to draw some linear Systems with tikz. The problem is the orientation of the Systems. Some have input on left - output on right input on right - output on left input above - output below ...
2
votes
1answer
615 views

Spaces within a set of tuples

I want to have a set of tuples spaced with ":". I tried the following: $\{1:1, 1:0, 0:1, 2:1, 1:2, 2:2\}$ but in the output, there is a space between the number and the colon. How can I get rid of ...
4
votes
1answer
3k views

How to get correct rendering for \dh \TH (ð þ Þ)?

I have some references containing \dh and \TH. When using these symbols in either the LaTeX source or the .bib file I only get a black box. Neither \dh nor ð works. According to the documentation, T1 ...
6
votes
1answer
366 views

\StrLeft has no effect on \citetitle

\footfullcite uses too much space so I decided to define a own command. I called it \footshortcite. It only display a pre- and a post-Option and the Author with Year. However, I don't like that most ...
17
votes
2answers
2k views

Difference between \relax and % for ending a line

when would I use one over the other? Are they the same?
21
votes
2answers
2k views

Typesetting Right-to-Left math

UPDATE: I've managed to produce something that is aesthetically correct, however with a lot of "hardcoding" and trial and error to manually measure my spaces. Not to mention that I have to write my ...
5
votes
1answer
417 views

Inverse PDF Search in beamer

Can you please help in fixing a problem with inverse PDF search in beamer documents beamer does not work correctly with SyncTeX. Inverse PDF search (in Sumatra, Texworks, etc. I’ve tried all windows ...
36
votes
2answers
14k views

How can I split a beamer bibliography across two slides?

I have several citations in a beamer-based presentation. Is it possible to split the bibliography across two slides? I'm using natbib / bibtex. And I currently just have: \begin{frame} \tiny ...
26
votes
4answers
4k views

How to undo a \def (i.e., Need a \undef capability)

I thought the way to undo a \def was to define it to \relax, but that does not appear to work. Also, am not sure why this produces no output if I try to use \def instead of \let in my attempt to do ...
10
votes
3answers
5k views

Length between nested lists in beamer

How do I adjust the length between nested lists? For example, in the following, I would like to adjust the distance where it states "distance here" \begin{itemize} \item one %% distance here ...
12
votes
5answers
6k views

Diagonal strikeout starting too low and ending too high

I want to strikeout an equation with diagonal line but I've not managed to get the diagonal line to draw as I want. The closest I've gotten is via the first example in Frédéric's answer of \cancel ...
78
votes
4answers
91k views

How to add border for an image?

I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find ...
20
votes
1answer
2k views

How to test if a directory exists

The command \IfFileExists works great to test is a file exists. Is there an equivalent to test if a directory exists? \IfFileExists does not seem to work for directories. \documentclass{article} ...
11
votes
1answer
1k views

biblatex : which style for a footnote once then nothing?

Ok sorry for this not so clear title. I'm having trouble to express & find what seems so simple :s I'm biblatex and I would like to know which citation style/bibliographical style and/or option I ...
3
votes
2answers
333 views

Why wasn't \fbox defined to enclose its contents based on the most left, right, bottom, top parts of its contents?

Case 1: \fbox cannot enclose characters tightly Why don't \fbox and PSTricks \psframebox enclose its contents accurately? In my opinion, every edge should exactly touch the outer part of its ...
2
votes
1answer
897 views

Wrapfigures beneath section headings misbehave

I'm writing a chemistry thesis and my experimental basically consists of section headings (naming the compound), followed immediately by a wrapfigure (an eps of the compound structure), followed by ...
5
votes
2answers
680 views

line break aware custom environment

I have a use-case where I would like to specify some special formatting for the text being input via the \input command. This text is customer's address being printed in some sort of a form. Ideally ...
4
votes
0answers
926 views

Drawing tri-axial ellipsoid and intersecting it with a sphere [closed]

I would like to draw a tri-axial ellipsoid (that is, an ellipsoid with three different main axes). I'd also like to draw a sphere in the same picture, showing the curves of intersection between the ...
3
votes
1answer
189 views

Linking text nodes in a page

I'd like to know what package can link nodes in different parts of a page. To simplify my question I uploaded an example extracted of tkz-linknodes manual (AlterMundus). Please note that the page ...
5
votes
2answers
475 views

Height of sparkline

I'm trying to place a sparkline in a ctable using the sparklines package. \documentclass[11pt]{article} \usepackage{ctable} \usepackage{sparklines} \begin{document} \ctable[ caption = ...
9
votes
3answers
11k views

Strikeout in math mode

How can I strikeout words in math mode (similar to \sout with \usepackage{ulem} in text mode)? I've tried \usepackage{cancel} and \(\cancel{1+1=2}\) but that draws a diagonal line.
3
votes
2answers
228 views

Hyphenating a verse range

I am typesetting verses using bibleref and sometimes verse ranges get cut in the end of lines. For example, in: Jean 3.16-18 the cut might happen right after the "-" (which is actually typeset as ...
0
votes
0answers
145 views

Export Latex to an png/pdf file [duplicate]

Possible Duplicate: Compile a latex document into a png image that's as short as possible. I once found a class on the Internet which allowed to export an latex image to an ...
6
votes
3answers
1k views

biblatex: is it possible to combine two styles?

Ok so after my first question yesterday Clickable, bottom page reference ?! Possible ? and based on the received answer I decided to head for biblatex, install biber and all. But the documentation is ...
0
votes
0answers
110 views

How can I restrict the placement of images? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned It is there any chance to stop the auto-inversion of the images from a pdf (generated with MiKTeX 2.9) file? ...
11
votes
2answers
2k views

Biblatex: How to suppress same author of multiple citations?

I need to use the features of biblatex's verbose citestyle but I don't want it to repeat the author's name in multiple citations by the same author (like the authortitle-comp option). Currently, ...
12
votes
3answers
3k views

Horizontal row separation line in tikz matrix (like \hline in tabular)

In this question tikz-matrix-as-a-replacement-for-tabular a nice solution was given to let the matrix in tikz behave like tabular. In this solution cell/.style={rectangle} was used to draw lines ...
9
votes
4answers
4k views

beamer & TikZ: gradually unveil trees

Imagine a simple tree: \begin{tikzpicture} \node {Selbstregulation} [edge from parent fork down] child {node {Kognition}} child {node {Metakognition} child {node {Planung}} ...
2
votes
4answers
1k views

Dynamic stretching of text

For the needs of a running title (in header), I would like the text of a running title (in header) to be stretched over the page. So far, I stretch it manually (using LetterSpace and WordSpace in ...
5
votes
1answer
377 views

biblatex: What's the first character of a field?

I would like to know, what's the first character of the value of the editor field. If the character is a curly bracket "{" the value should be printed for example bold, if the first character is ...
4
votes
2answers
604 views

Space after lettrine

When using the lettrine package, there are often additional spaces after the small caps: It can get even bigger than that actually. It seems to me that this is because lettrine uses an mbox to ...
1
vote
1answer
455 views

Is it possible to force auto-pst-pdf to use --hires option when it internally invokes pdfcrop?

What is --hires for? To obtain a better result when cropping a pdf image produced by PSTricks, I use --hires option as follows latex filename.tex dvips filename.dvi ps2pdf ...
2
votes
1answer
296 views

bibtex: editor field: how to clasp a none-name value?

For compiling a bibliography I'm using BibLaTex and for managing the bib-file I'm using BibDesk. The names-sequence is surname before given name(s) separated by a comma. For example: Müller, Peter ...
9
votes
2answers
2k views

Fixing an overfull box

I have an overfull box in a French text which looks like this: The sequence at the end of the line is: d'Ananias~: \og Vous "Vous" cannot be hyphenated and \og inserts a non-secable space, so ...
19
votes
3answers
5k views

How to enable ligatures for emdash/endash in LuaTeX ?

I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file: % !Mode:: "TeX:UTF-8" \documentclass{article} \usepackage{fontspec} ...
22
votes
1answer
882 views

Tex Capacity Exceeded (if remove % after use of macro)

I don't understand why this simple (but lengthy) iteration results in TeX capacity exceeded, sorry [main memory size=3000000], if I remove the last % following the call to \DoNothing. I thought that a ...
6
votes
2answers
3k views

Reduce white space before and after multicols environment

I wonder how to reduce the vertical space before and after a multicols environment. I have something like below \begin{multicols}{3} { \begin{equation}\sum F_x = 0\end{equation} ...
19
votes
1answer
3k views

Passing \newenvironment parameters to the end block?

I am attempting to construct a new environment which will allow me to format arbitrary list types (itemize, enumerate, description etc.) with the new environment. As such I am passing it as a ...
27
votes
2answers
56k views

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider \documentclass{article} ...
6
votes
1answer
2k views

Clickable, bottom page reference ?! Possible ?

I'm new here but I see the place looks hyperactive. I guess I'll ask a lot in the next months. So new to LaTeX and starting my PhD thesis redaction. I got this template for a PhD thesis at ...
8
votes
1answer
5k views

Vertical Alignment of Minipage

I have a question, I'm using the following setup for a title page: \begin{titlepage} \begin{center} \textsc{\LARGE University Name}\\[1.5cm] \textsc{\Large Bachelor thesis}\\[2cm] { \huge \bfseries ...
2
votes
1answer
337 views

How to compile a ConTeXt input file that contains PSTricks code?

I can compile the following input file using context filename unless I un-comment the PSTricks code. \usemodule[pstricks] \setuphead[title][style={\ss\bfd}, before={\begingroup}, after={John ...
9
votes
2answers
1k views

Signature in preface

I would like to make a signature field in the preface which looks like this: City(#1) \today ___________________ ______________________ ...
54
votes
5answers
12k views

A cookbook in LaTeX?

I am interested in making a cookbook in LaTeX. Each page will contain a recipe, including ingredients, instructions, and a photo of the finished food. Has this been done previously? Where do I ...
9
votes
3answers
4k views

Excluding chapters from ToC in amsbook

I'm writing a book using the amsbook class, and I've included a page for acknowledgements using \chapter*{}, thinking it wouldn't show up in the ToC. However, it does (and for some reason it's ...
5
votes
1answer
903 views

Line with transparence changing with TikZ

I'd like to have a colored line that starts with transparent 100 and ends with trasparent, let's say, 30. I tried this code: \documentclass{standalone} \usepackage{tikz} ...
47
votes
3answers
33k views

What is the right order when using \frontmatter, \tableofcontents, \mainmatter, \part, \chapter, \backmatter, \appendix etc?

I am using the book documentclass and want to know the correct order when arranging \frontmatter \maketitle or \begin{titlepage}...\end{titlepage} a page that contains copyright, ISBN, edition ...
5
votes
3answers
952 views

Non-vertically-centered TikZ matrix of nodes cell content

How can you make the matrix cell contents aligned to the top? I am using plain format with XeTeX. \input tikz \usetikzlibrary{matrix} $$\hbox{I'd like for the cells to be top-aligned}\cases{ ...
4
votes
2answers
834 views

TikZ: arrange trees block by block

I use TikZ to create trees. Now I've to arrange four trees in a matrix like this: Tree A Tree B Tree C Tree D I already tried the \matrix command. This works, but it leaves absolutely no space ...

15 30 50 per page