## Top new questions this week:

### Viewer-independent copyable spaces at the beginning of a line?

I need to include a couple of Python code listings, where the indentation of the lines (using some number of spaces) is significant. I would like for the code listings to be copyable, so the spaces at …

{spacing} {pdf} {verbatim} {copy-paste}
 asked by Jake 28 votes
 answered by David Carlisle 6 votes

### How to plot a lattice of points on the surface of a torus?

I am doing a report on the Ising model, without going into the complex details of the model, in its two-dimensional form it involves a lattice of points. Which, when periodic boundary conditions …

{tikz-pgf} {graphics} {pgfplots} {diagrams} {pstricks}
 asked by NictraSavios 19 votes
 answered by g.kov 17 votes

### What causes the following gaps?

I have tried to remove any possible white spaces by appending % but the gaps still exist. What causes these gaps? \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{graphicx} …

{graphics}
 asked by Donut E. Knot 16 votes
 answered by egreg 15 votes

### Why characters UTF-8 encoded are ISO-8859-1 encoded when written in an external file

For an UTF-8 encoded file as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \newwrite\outtmp \immediate\openout\outtmp=out.tmp % \begin{document} …

{pdftex} {unicode} {input-encodings} {auxiliary-files}
 asked by Denis Bitouzé 15 votes
 answered by egreg 16 votes

### Writing musical pitches

Is there a package or macro that allows me to easily typeset musical pitches, like the following: ? Indeed I would like to have subscripts for the octaves. Let's say $\mathrm{E}\flat_3$ How …

{macros} {music}
 asked by Emit Taste 15 votes
 answered by Steven B. Segletes 17 votes

### Problem typesetting a Prisoner's Dilemma table

I am going to create a table, which should look like The Prisoner's Dilemma, but I can't create it. It should look like this: My preamble look like this: …

{tables} {multirow}
 asked by A. F. 12 votes
 answered by Claudio Fiandrino 11 votes

### TikZ picture wrecks page on Adobe Reader

The following MWE contains the offending code. The page that this code is on does not show up when the PDF is seen in Acrobat Reader. I do not use Acrobat myself, but my advisor does, so my thesis has …

{tikz-pgf} {pdf} {viewers} {acrobat}
 asked by Mr. V 11 votes
 answered by Jake 11 votes

## Greatest hits from previous weeks:

### Cannot determine size of graphic

I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from …

{graphics} {errors} {png}
 asked by Calle 27 votes
 answered by Martin Scharrer 35 votes

### Multi-line (block) comments in LaTeX

In LaTeX, % can be used for single-line comments. For multi-line comments, the following command is available in the verbatim package. \begin{comment} Commented code \end{comment} But is there a …

{comments}
 asked by Arindam Pal 23 votes
 answered by Yiannis Lazarides 15 votes

## Can you answer these?

### 3d graphics/diagrams

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to …

{tikz-pgf} {diagrams} {3d}
 asked by johnny 6 votes

### Combining different projects into one (papers into PhD Thesis)

My question is similar to this one, but I have a problem with relative paths when including files. Assume I have three projects which all start with \documentclass[12pt,a4paper]{article} …

{input} {include} {paths}
 asked by cherep 3 votes

### multiline bitbox

I have the following figure \begin{bytefield}{31} \bitheader{0-31} \bitbox{120}{Head} \bitbox{8}{Tail} \end{bytefield} Is it possible to make the Head bitbox line-break at 32 bytes so it fits …

{bytefield}
 asked by bitboxer 3 votes
 Subscribe to more Stack Exchange newsletters Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com. Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails. Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3