# All Questions

625 views

### Drawing a chord net with TikZ

I have a problem drawing a chord network with TikZ. This is my code so far: \begin{tikzpicture} \xdef\N{16} \xdef\deltadegree{360/\N} \draw[thick] (0,0) circle (6); \foreach \i in ...
31k views

### XML syntax highlighting

I use the following code to include some XML code: \lstset{language=XML} \begin{lstlisting} <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" ...
51k views

### How do I add a .sty file to my MacTeX/TeXShop installation?

I've searched online, but I have not found any clear instructions how to permanently add .sty files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program). What is the ...
1k views

### Font selection in XeTeX for specific characters

I just ran into another issue, I like to use gill sans very much but the number 1, lower case L and upper case I are almost indistinguisable. On the other hand I like Helvetica numbers. Is there a way ...
37k views

### How to order 3 images horizontally?

I use the following code to include three images: \begin{figure}[h] \includegraphics{delete_gesture.png} \caption{Awesome Image} \label{fig:awesome_image} \end{figure} \begin{figure}[h] ...
22k views

### Table Border Options

\begin{tabular}{|c|c|c|} Column 1 & Column 2 & column3 \\ \hline second row & & \\ \hline \end{tabular} Please help me with table border options. Using | I can draw thin solid ...
2k views

### Problem drawing Kiviat diagram

From this post, I started to play with TikZ/PGF to draw a Kiviat Diagram froma a file .dat Suppose to have two file table1.dat and table2.dat live these %table1 column1 column2 8.109115e-001 ...
3k views

### Breaking long lines using latex with minted and pygments

Since Acrobat obviously isn't able to convert XML to PDF from command line, I'm trying to achieve it using LaTeX. I found the minted package doing a quite good (and simple) job since it uses pygments ...
151 views

### Help with a custom-command: Space should not be inserted

I have a problem with a command i make for a specific glossary: \newcommand{\term}[4]{\glslink{term:#1}{#2}} \makeatletter \def\term#1{\def\tempa{#1}\futurelet\next\term@i}% Save first argument ...
5k views

### Best practice to peer-review a LaTeX document?

I'm currently writing a big document in LaTeX. The language is English and since I'm not a native English speaker, I've found a friend who will review and correct the document for me as soon as I have ...
2k views

### Is there a way to automatically generate \bibitem entries from a bibtex file?

I have a LaTeX document with bibliography done using bibtex (so I have a .bib file). However, looks like my current collaborator is not familiar with bibtex and doesn't want to get familiar (as he is ...
989 views

### TeXworks: How to store spell checker settings?

I'm using TeXworks to write my documents. TeXworks provides the ability to spell check the document, chosing a specific language (english, german or french in my case). But I noticed that every time ...
691 views

### How can I achieve dictionary headers for two page spreads in LaTeX

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the ...
3k views

### Table with rounded corners?

This table I can create with this code: \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{Team sheet} \\ \hline GK & Paul Robinson \\ LB & Lucus Radebe \\ DC & Michael ...
358 views

### Maximizing page usage for a table

I'm printing a table enclosing 4 other data tables, one per page, and would like to maximize the space available by reducing the margins as much as possible. I still need the page number, but wonder ...
1k views

### listings in a footnote

This code won't compile: \documentclass{article} \usepackage{listings} \lstset{ language=C, basicstyle=\small } \begin{document} lorem ipsum\footnote{% \begin{lstlisting} // some C code or ...
473 views

### How do we do hierarchical includes with local paths?

I need to generate an appendix with hundreds of tables. I put several tables on a page, as an earlier question established. The first level consists of pure tables, created as ...
227 views

### The cross-reference boxes in TeX: the program

You know those boxes at the bottom of the right-hand pages in Volume B? Well, I managed to weave mf.web by stealing the weave binary from a distribution where it actually works (it doesn't in ...
361 views

### Removing and storing the head of a token list/\toks

I am given a token list (parameter-less macro) \myTokenList, defined, e.g. by \def\myTokenList{$(x + y)^2$, \ie, $$x^2+y^2+2xy$$} and I want to split it as the first token, and the rest, obtaining ...
2k views

### Stable alternative for http://docs.latexlab.org/

I'm looking for an alternative for http://docs.latexlab.org/ which is stable. Is there any?
493 views

### Counting tokens

Is it possible to count the tokens/macro parameters. For example: \def\foo#1{...} $\foo{\alpha\beta}$ % => \somecounter = 2
5k views

### Last step in moving to XeTeX: Font shape problems

I am trying to move to the XeTeX distribution. My current problem is the following: If I leave these packages I have no problems with the Helvetica. \usepackage[portuges,english]{babel} ...
2k views

### biblatex: Putting thin spaces between initials

This question led to a new feature in a package: biblatex Robert Bringhurst, The Elements of Typographic Style, rule 2.1.5 states "Add little or no space within strings of initials." If ...
629 views

### Inlining BibTeX bibliography in LaTeX file

I am collaborating with another author using email to exchange latest version of the document. Is it possible to include the bibliography in the LaTeX file, so that we don't have to keep two files in ...
15k views

### In beamer slide, view notes on computer only while presenting with a projector? [duplicate]

Is is possible to make a PDF in Beamer such that notes are visible only on computer and not on the projector?
39k views

### How to define a list with custom symbols?

I'd like to define a list like the following: The nearest I found while googling was this: \begin{itemize} \item[-] foo \item[*] bar \end{itemize} But how can I now use a cross or a check ...
2k views

I would like to achieve table of contents with additional description for chapters/sections (see screenshot). What way would you go to achieve this? I'm wondering if it is possible to wrap the ...
240 views

### Brown paper strip on page 125 of The METAFONTbook

I've borrowed a copy of The METAFONTbook from my school's library, and I'm wondering why there is a brown paper strip glued to page 125 between the text and the rings. I couldn't help but wonder if ...
2k views

### Weekday captions with the TikZ library “calendar”

I use the TikZ library calendar to produce a week list. The code looks like this: \documentclass{article} \usepackage{pgf,tikz} \usetikzlibrary{calendar} \begin{document} ...
1k views

### Change font colour of bringhurst chapterstyle in memoir

I would like to change the colour of chapter titles in bringhurst chapterstyle. The following should work, but apparantly I have misunderstood something and am not able to get it to work, and would ...
69k views

### Using \footnote in a figure's \caption

Maybe this is an easy one, but I struggled with this now too long :) I want to have a footnote in a caption of a figure, see the example. \begin{figure}[!ht] \caption{a figure ...
917 views

### How to include font into document?

I have a template that use Frutiger Font. But I think the font is not correctly included because while generating the document I get various font errors and the last one: LaTeX Font Warning: Some ...
6k views

### How to avoid link higlighting when using package hyperref?

I'd like to include some http links in my document. So i Included the hyperref package so that i can use the command \url{} Microsoft Surface\footnote{\url{http://www.microsoft.com/surface}} This ...
4k views

### How to use parameter numbers and \foreach

Is there a way to use the TikZ \foreach command to do operations with parameters? E.g. I would like to be able to write (just a silly example): \newcommand{\foo}[9]{ \foreach \x in{1,2,...,9}{ ...
2k views

### How do I position pairs of arrows in TikZ to make 'harpoons'?

I wish to use left-right 'harpoons' to show a reversible reaction in a kinetic scheme. I can get part of the way, but how can I vertically shift the horizontal arrows so that I have them separated (to ...
1k views

### Grouping the list of listings by chapter

I am using the listings package. I want to print out a list of listings, which I can do. The thing is that in the other listings the typesetter "groups" figures/tables by chapter. Is it possible to ...
12k views

### Syllabus in LaTeX

I need to produce a syllabus for a course I'm going to teach at the University. Could you suggest me any example (or template) of a well-designed syllabus in LaTeX? Are there any useful packages? ...
888 views

### XeTeX + hyperref + glossaries + glossary-superragged = Margin mess

I am using the glossaries package in my dissertation. I am trying to apply the superragged3col to my acronym list, which requires an extra package glossary-superragged. The thing is that while using ...
22k views

### How to prevent lstlisting from splitting code between pages?

Is it possible to prevent lstlisting from splitting a code between pages if it does not fit on one page? Instead splitting I would like to have the code on the next page. I tried to put all ...
2k views

### Several symbols — check with box etc.

I have several symbols I don't know how to make. I have already gone to http://detexify.kirelabs.org/classify.html to try to get answers, but I failed. Please help me. ☑☒ For the check with a box ...
2k views

### texdiff for multi-file documents in subversion

I've been looking for a convenient way to highlight changes between subversion revisions of my Latex document in the generated PDF. I am working on a reasonably complex document that pulls together ...
23k views

### Use the values of \title, \author and \date on a custom title page

I am trying to create a title page of my own. Is there a way to make use of the \title, \author and \date commands inside the title page? For instance: ... \title{Something Cool} \author{Cool Dude} ...
5k views

### Two-sided document: reverse page margins for hardcopy

Background Wrote a manual in LyX. The PDF is two-sided. Using KOMA Script v2. The pages are 8.5" x 11". Problem The spacing on the margins is not printer-friendly, it is reversed: Since this ...
11k views

### Defining my own proof environment?

How would I define a proof environment that is basically used with \begin{proof} some proof here \end{proof} and it would be equivalent to: \paragraph{Proof:} some proof here \hfill \box ?
11k views

### bordermatrix with blocks

I need to write a complicated matrix, that has a structure as in the attached picture.
18k views

### How to make double cline in tables?

I want to draw a double cline in a table where the first column is multirow With double \hline I can draw a full double horizontal line but double \cline{i-j} seems to have the same effect with ...
26k views

### Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...
1k views

### unicode-math and amsmath environments

I'd like to use unicode-math but I've run into some problems. The following mwe, compiles without problems. The aligned environment is used \documentclass{article} \usepackage{amsmath} ...