# All Questions

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 ...
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}} ...
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 ...
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 ...
603 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 ...
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 ...
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 ...
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 ...
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} ...
880 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 ...
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} { $$\sum F_x = 0$$ ...
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 ...
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} ...
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 ...
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 ...
336 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 ...
1k views

### Signature in preface

I would like to make a signature field in the preface which looks like this: City(#1) \today ___________________ ______________________ ...
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 ...
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 ...
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} ...
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 ...
949 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{ ...
833 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 ...
3k views

### multicols not wrapping to 2nd column properly?

This question led to a new feature in a package: multicol I am having problem with multicol package, I created a sample demo to show it. When I put 3 minipages of certain height in the ...
1k views

When using \include{file}, if the including file is a complete LaTeX document, with documentclass{}, \begin{document}, etc., it generates an error. It doesn't generate the error if I remove everything ...
1k views

I have problem with creation of table contents. A part of my code: \documentclass[a4paper]{amsbook} \usepackage[cp1250]{inputenc} \usepackage{polski} \makeatletter ...
287 views

### pgfplots: correlation for data values from file works, but with errors

maybe I do not to see the wood for the trees, but I'm always getting error messages for compiling the following pgf code, while the output looks like the way it should. Does anyone see whats wrong ...
5k views

### Change alignment for individual table rows

Is it possible to change alignment for individual rows? Example: +------------+--------------+--------------+ | Left | Center | Right | +------------+--------------+--------------+ ...
2k views

### How to place in a document a VCard using a psbarcode?

I would like to put a QRCode that contains contact information (VCard). However I don't know how to encode the newline character so VCard is correctly read. Here is a sample document with QRCode ...
728 views

### URL containing a question mark with hyperref [closed]

I have a Bugzilla URL, that looks like this: http://host/bugzilla/show_bug.cgi?id=1234] And I would like to include it using \href: \href{http://host/bugzilla/show_bug.cgi?id=1234}{issue \#1234} ...
2k views

### biblatex short title and long title in bibliography

Is it possible to customize the bibliography (at the end of the document) so that references are shown as follows: Author_A short_title Author_A long_title Short titles are used ...
699 views

### How to change header to list first section on page and not last section

The standard use of header/footer is to display the chapter/section information, which normally begins on a new page. What I would like to do is to have the header show the first question that is on a ...
1k views

### PGF/TikZ error when using chains

I'm trying to learn how to use PGF/TikZ to draw pictures, in particular a chain of nodes. I have the following picture: \begin{tikzpicture}[start chain, node distance=5mm] \node [on chain,join] ...
8k views

### What is the best symbol to use for the d'Alembertian?

Normally, most people use the symbol $\Box$ to represent the d'Alembert (wave) operator (including the linked to Wikipedia page). Recently I wanted to use \hat\Box and \tilde\Box, but they do not ...
2k views

### multicols package set column width

Iam having trouble making my text evenly distribute over the entire width of the page \oddsidemargin -0.3in \evensidemargin -0.3in \textwidth 7.3in \textheight 9in \begin{multicols}{2} my text ...
398 views

### Commutative Diagrams in Table of Figures

Should one treat commutative diagrams as figures within the figure environment? If not, is there a way to add a label/caption and have the page number and caption show in the Table of Figures (without ...
362 views

### Lightbox in Latex

Is there a package or simple code for a lightbox in LaTeX? (I'd like to display the solutions of some math problems in a clever way.) Could hyperref be used to prompt a small pdf or jpeg and have it ...
2k views

### Drawing different tikz shapes parameterized by data from a file

I have a file with three columns of data, x, y, r. # x y r 1 1 0.1 2 2 0.5 3 3 1.2 and so on. I'd like to loop over the rows, and draw a circle at x,y with radius r for each row. I first thought ...
1k views

### French typography recommendations

This question led to a new package: impnattypo The French government publications office (Imprimerie Nationale) publishes a list of recommendations for French typography. I'm wondering how to ...
1k views

### Help with figures in TikZ

How can we make Figures 1 and 2 below with TikZ and LaTeX? In Figure 2, I want to give different colors to different quadrants.
438 views

### Removing footer on last pages of a chapter

Using scrpage2 with scrbook, how can I make it so that there is no footer on the last pages of a chapter (so that the white is not interrupted)?
1k views

### Why does MS Word's algorithm for vertical positioning of super- and subscripts not conform to TeX's ?

Microsoft Office has, since 2007, used a formula layout algorithm based on the algorithm Knuth described in appendix G of the TeXbook. But there's an apparent divergence in the final output from the ...
3k views

### lstlisting, tt fonts, and alignment.

I (mostly) love the listings package, which I have started migrated to from verbatim for code listings. I prefer to continue to use teletype for code, and so I changed my default listing configuration ...
2k views

### URLs with % signs in them in bibtex files: how to get corect links after compiling with biber/biblatex

I have a bibtex file entry with a URL field so: url = {{http://links.jstor.org/sici?sici=0025-570X\%28198912\%2962\%3A5\%3C291\%3AHRATQS\%3E2.0.CO\%3B2-8}} where I have manually escaped each ...
664 views

### Draw a box around each element of the xy-pic

How could I draw lines (like those in a tabular environment drawn by \hline and |c|c|c| in the following code? \resizebox{\textwidth}{!}{ \xymatrix{ x_0 \ar[dr] & x_1 \ar[d] ...
2k views

### How can I manually choose the size of a wide accent? (math mode)

I would like to replace the usual \hat in maths with a larger one, but I do not want it to stretch. The size I want is "the smallest \widehat" (as in $\widehat{.}$). Is there a way to put that one ...
1k views

Do you know of any latex example or a package that I could use to print a pocket sized paper? All records will have a format like this: | name | phone | e-mail | It would contain only 15 records ...
1k views

### Draw a longitudinal wave in TikZ

I'm trying to obtain this longitudinal wave with TikZ: Here's my code \documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{decorations.pathmorphing} ...
2k views

### Uppercase pagenumbering (roman) using \frontmatter

I am using \frontmatter, \mainmatter and \backmatter so my pagenumbering is correct. However, i would like my roman pagenumbering in \frontmatter to be uppercase. Is there any easy way to do so? ps: ...
379 views

### Combine expandafter, setlength, csname and define@key

I try do define a command \tes@define@key@length. Everything work but when I use the following line: \expandafter\setlength\csname test@#1@length\endcsname{\csname testl@#1\endcsname}% I get an ...

15 30 50 per page