# All Questions

2k views

### XeTeX and XeLaTeX in TeXworks editor

In TeXworks editor in the Typeset dropdown menu among others I can select XeTeX or XeLaTex typesetting formats. If I understand correctly XeLaTex and XeTex is exactly the same thing, so why does ...
2k views

### Look for a bigger delimiter than \Bigg

\documentclass{article} \usepackage{amsmath} \begin{document} \[\left. \begin{vmatrix} a_{11}&a_{12}&a_{13}\\ a_{21}&a_{22}&a_{23}\\ a_{31}&a_{32}&a_{33} ...
1k views

### Tikz - Marking nodes in a binary tree?

I need help marking nodes in a binary tree. I've tried drawing this using the fitting library in tikz, but the fit would cover other undesired nodes as well. Please help. The code I tried is here ...
1k views

### Creating stackoverflow like tags

I'm trying to create stackoverflow like tags. Currently I'm using an \fbox{text} to create the tags, which works, but not all boxes have the same height (it seems that letters like 'p' make a box take ...
1k views

### How to reduce the space between two footnotes, making them seem more like two paragraphs?

\documentclass{article} \usepackage{lipsum} \usepackage[doublespacing]{setspace} %\usepackage[onehalfspacing]{setspace} \setlength{\parskip}{0pt} \usepackage[b5paper]{geometry} \begin{document} ...
13k views

### Placing Intermediate and Output Files in Another Folder

I am trying to figure out a way to cleanly separate the TEX files from all of the intermediate and output files. Various approaches I've tried, including the one described by ‘Bundle’ TeX output in a ...
2k views

### Typesetting pinyin finals

With the package \pinyin, it is possible to write pinyin using commands such as \bu4. This package produces much better tone marks than are provided by \', \v, etc. The package \pinyin includes all ...
51k views

### Reference different places to the same footnote

For example, I want to make footnotes both at Sentence 1 and Sentence 2 (which are on the same page) to the same footnote. Wikipedia's "References" have this effect.
25k views

### Where can I find collections of bibliography styles?

Is there a central 'warehouse' or, perhaps, a 'list of collections', of bibliography styles? My preference is for BibLaTeX, but I'm sure answers for BibTeX would also be helpful. I don't have any ...
2k views

### Why isn't everything expandable?

TeX's macro processor does its work in a process called expansion. For an input stream of tokens, the macro processor repeatedly expands them until non-expandable tokens remain. The resulting stream ...
1k views

### User-defined math functions with pgf

I'm trying to use user-defined math functions with pgf to make a plot. The plot will consist of several straight lines given by a function of three arguments. (I know there are easier ways to do this, ...
1k views

### Figuring out RGB or HEX color from xcolor

I have defined a color using: \definecolor{canvascolor}{rgb}{0.643,0.690,0.843} Then this is used with this command like canvascolor!75!white from xcolor. This is actually done in the beamer theme ...
476 views

### Luatex and unicode math without unicode-math

I'm using fontspec in lualatex to get a OTF main font, but I'd like to use one of the good old math fonts (like the default TeX one). After trying different packages, I didn't manage to make it work ...
2k views

### why does my document fail with sideways from rotating package?

I want to test landscape tables, and started with the sideways environment. However the code does not compile, I get the error: (./content/landscapetable.tex ! LaTeX Error: Something's wrong--perhaps ...
6k views

### How to exclude certain slides from handout

I have a made a quite standard beamer (3.12) presentation. To make my long academic presentation a bit more interesting I have inserted some (really, only two or three) slides with "random" pictures ...
8k views

### Resources for title page and front matter design

I need to create the area between the outer cover and the table of contents for a novel. This will present (at least partially, but preferably at a minimum): the title the author's name the ...
1k views

### Adjusting vertical and horizonal spacing in \stackrel

I have several \stackrel's in my document. See the e.g.: \documentclass{article} \usepackage{stackrel} \begin{document} $\stackrel[\textrm{sand}]{\textrm{A}}{\textrm{B}}$ ...
959 views

I need some table in LaTeX. As you can see, my LaTeX code is following \setlength{\extrarowheight}{7.6pt} \begin{footnotesize} \begin{tabular}{l|m{7cm}} \hline \hline Workloads & Applications \\ ...
911 views

### endfloat, float - use with newfloat types

Does anyone know how I can get the the endfloat package to work with new float types defined using \newfloat (float package), for example: \newfloat{map}{htbp}{lom} \floatname{map}{Map} ...
3k views

### How to use SIrange in math mode

I cannot figure out which of the siunitx font options is the correct to typset the rangephrase when using SIrange in math mode the same way as in text mode. See the MWE \documentclass{book} ...
950 views

### Understanding a \@for loop

I'm having trouble with a \@for loop. I've got a macro that takes a comma delimited list and puts each element into a row of an array. When I do this using a \@for loop, I get an extra row that I ...
231 views

### Package options mtplusscr and mtpluscal don't work in MTPro2 complete

If I use them I don't get the MTMS and MTMSB fonts as described in the guide just the old times new roman. Anyone seen this before? EDIT: Minimal Example: \documentclass[12pt]{article} ...
1k views

### Placing glossary entries inside \section titles

In my document, some glossary entries appear within the section titles. E.g.: \documentclass{article} \usepackage{glossaries} \makeglossaries \begin{document} \tableofcontents ...
7k views

### Latex-Beamer: overprint-environment wobbles

I am new to the beamerclass and I am currently trying to write a presentation containing lots of derivations. On one point I want to overlay a derivation by its conclusion and I use the ...
631 views

### Page margin taking into account line number

I am typesetting an application that has pretty strict formatting requirements, which includes 12pt Times New Roman font and a 1 inch margin on all 4 sides. I have the following in my preamble. ...
867 views

### How to extend TikZ drawing commands

I would like to create a carc path macro (centered arc, that acts like circle, without changing the current position) in a way to be able to write : \draw (0,0) carc(30:90:1) carc(30:90:2) ...
4k views

### How to keep a constant baselineskip when using minipages (or \parboxes)?

When a minipage is used to box a text paragraph, the first line of the minipaged text and the last line of the previous text paragraph are closer than two consecutive lines in a standard text ...
1k views

### Bookmark Title Page

Does anyone know how to hyperref the title page of a pdf file? I mean I want my title to appear as the highest level in the bookmaks and the sections will be the next level etc so that the bookmark ...
235 views

### How to conditionally control the width of a figure with minimal code duplication?

I am using \iftoggle to switch between a for-review (doublespaced, onecolumn) and photo-ready (singlespaced, twocolumn) layout. I want to change the width of figures to be optimal for both, depending ...
252 views

### How to gather (narrow) floats together horizontally?

I have a document with some narrow (less than half the \textwidth) images. Sometimes there's one such image on the page, and then the figure environment is what suffices. But sometimes there are two ...
224 views

### expansion of loop macro

I have a macro that contains a loop using \@for and it works until I try to write its output to a file. The following document shows the problem. \documentclass{article} \makeatletter ...
1k views

### Problematic interaction between fontspec and beamer?

There seems to be some problem in the way fontspec passes font info to beamer. The following example compiles and displays as it it should in XeLaTeX % !Mode:: "TeX:UTF-8" \documentclass{article} ...
915 views

### adding a node to a qroof in tikz-qtree

I need a node in the head element of a qroof in tikz-qtree (using tikz-qtree-compat). I need the 'np' to be a node so I can draw an arrow to it. However, the following breaks: ...
5k views

### How to reduce font size of TOC on lyx beamer

I am using a LyX beamer template which can be downloaded from this link. I'm having trouble with a large TOC, which can't fit on one page. How can I reduce the font size of TOC, so that it can be fit ...
230 views

### Patching a song environment

I'm having some fun with another songbook project, and this one has a particular feature: in the header, the range of song numbers is displayed, in order to ease the searching (similar to a ...
3k views

### How can I put lstlisting block into subfloat block?

I'm trying to compile my document but it's exploding. I've narrowed it down to this section: \begin{figure}[h] \caption{These are my awesome code snippets} \subfloat[This code runs every cycle.]{ ...
3k views

### Drawing an arrow tip to every node of a path

I want to draw an arrow tip to every node/coordinate in a path. But tikz draws them only to the first and last point. Is there an option for that purpose? Or have I to splitt the path into its single ...
2k views

### Use tabularx in LyX instead of default tabular

I recently got into LyX and I’m getting along quite well. The only thing that bothers me is that LyX’s table feature produces really sloppy-looking tables by default, i.e. double borders and stuff ...
130 views

### Possible to use certain delimiters for macros with fancyvrb?

In this document: \documentclass{article} \usepackage{fancyvrb} \DefineVerbatimEnvironment{AVerb}{Verbatim}{commandchars=\\\{\}} \def\foo#1-#2;{} \begin{document} \begin{AVerb} \foo x-z; ...
370 views

### Forcing a new page for first chapter only in article style under memoir class

I am using memoir class with article style as I want the short chapters to run continuously. I would like the first chapter alone to start on a recto page. \newpage does not force an extra blank left ...
4k views

### Axis with trigonometric labels in PGFPlots

How do I make the axis labels use multiples of \pi in PGFPlots?
811 views

### Setting up the appendix with memoir [closed]

I need some help setting up the layout for the appendix of a Thesis template I am working with Memoir Class. Before the appendix all the document have the following format Top, right and bottom ...
25k views

### Add a new empty page

I have a .tex file which is like my main, \documentclass[spanish]{article} \usepackage{times} \usepackage{amsmath} \usepackage{graphicx} ...
416 views

### How can I convert a TeX document to Texinfo format?

I have a straight TeX document, and I'd like to produce from it a Texinfo document. Does there exist a tool that does this, or a set of guidelines? TeX and Texinfo seem to be closely related, so it ...
30k views

### How to understand the LaTeX warning “there were undefined references”?

I am running this LaTeX file through pdflatex and getting these warnings: latex warning: there were undefined references. latex warning: label(s) may have changed. Rerun to get cross-reference ...
3k views

### TeXworks: synctex works only partially

I've got a document that compiles without error or warnings (and looks about right) but for some segments of the document synctex doesn't seem to be working. What could be wrong? The document ...
2k views

### renewcommand pendant for DefineMathOperator

I'd like to change the definition of one of the predefined math operators (\hom). Is there an equivalent to the \renewcommand statement for operators?
1k views

### tables across page (ltxtable vs ltablex)

In the past I worked with the ltxtable package, which unfortunately require the table in a separate file. Now I found the ltablex package which claims to be a rewrite (or it rewrites) the tabularx ...