# All Questions

287 views

### Second Font dedicated for tables

How to put second font in table. First is Utopia Regular with Math Design as a main font. Second - TeX Gyre Heros, for tables. \documentclass{beamer} \mode<presentation> { \usetheme{...
1k views

### Shrink tikz trees

How can I reduce the overall size of trees drawn by tikz-qtree? I've got a huge parse tree that doesn't even try to fit on one page. I'd like to either resize the full tree or tweak the placing ...
982 views

### How can I define a custom listing environment?

I am trying to define an enviroment for a specific programming language, F#. Here's my code: \definecolor{bluekeywords}{rgb}{0.13,0.13,1} \definecolor{greencomments}{rgb}{0,0.5,0} \definecolor{...
762 views

### \rand inside \forloop creates identical values

I try to create a table with random entries... By browsing the random tag, I found some help on random number generators and I tried using lcg. Surprisingly I seem to create the same random number ...
224 views

### Defining commands using two loops

I would like to define a series of command using two loops. For instance I want to create a series of variables that can have YY or NN as subscripts. I would like to define commands \yy and \nn that ...
714 views

### How to emulate titletoc with tocloft

I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one. \titlecontents*{subsection}[5.4em] ...
4k views

### How can I put real notes in the margin?

I'm looking to write a fictional description/discussion by a 'scholar' of an alien race for an RPG, but I can see this being handy elsewhere. I'd like to put his 'notes' in the margins of some text ...
6k views

### \midrule dashed and colored in booktabs — two kinds of midrules in one booktab

Is it possible to make two \midrules in one booktab? The first one should be colored, the second one colored and dashed, as it is shown in the picture. Before each entry is a horizontal space - how to ...
937 views

### Best option to create vector graphics with LaTeX labels

I would like to create some vector graphics for my LaTeX documents. The graphics would often contain mathematical expressions that would should be typeset using LaTeX. As far as I know, my best ...
2k views

### MiKTeX update: a too old babel/frenchb

This question deals with the version of a babel language available after a MiKTeX update (the french one, namely frenchb.dtx). I've just made an update of my (complete) MiKTeX 2.9, especially ...
1k views

### Why are empty and non empty TikZ matrix cells not equally placed?

I wanted to draw an almost empty matrix of nodes with TikZ similar to the left most one below. All nodes would have same size (through minimum width and minimum height) and no separation between ...
262 views

### Changing the font of Eprint fields in biblatex

I would like to have Eprint information displayed in my bibliography, but in the same font as the surrounding text. Changing the verbatim font for the document apparently does not accomplish this. ...
2k views

### Table in cvline using moderncv

I would like to create in my CV, using moderncv, a table with two columns. It should look like: -------- Experience * Item 1 x x ...
2k views

### why does newtxmath fail to work with pdflatex and libertine

There seems to be some sort of incompatibility between the newtxmath package and libertine-legacy; the following code fails to compile: \documentclass{article} \usepackage[libertine]{newtxmath} \...
2k views

### Use tikz external feature with beamer \only

I would like to use the beamer \only with tikz while external is activated. The problem is, that the \only get ignored. (see also the MWE). I would love to cache the tikz pictures, because it would ...
3k views

### Automatic horizontal centering of beamer frame content

I would like to set some global option so that the content of all beamer frames is horizontally centered with respect to the page. In other words, I want to achieve the effect of wrapping all frame ...
1k views

### How to cite a multi-volume book of collected works with BibTeX?

I would like to cite a particular volume within a multi-volume book that is the collected works of some author. The collected works were edited by an editor. I am using a custom .bst file that I ...
459 views

### Table alignment with inner table and hline

There are 3 issues with this table. After much experimenting, I can sort of resolve 1 or 2 of them but never all 3 at the same time. I have a very picky customer (aren't they all) and I have to get ...
834 views

1k views

### Fractions in superscripts are placed too low

I have noticed that "tall" superscripts seem to be placed awkwardly low in math mode; their baseline is so close to the main baseline that confusion has happened. \documentclass{article} \begin{...
135 views

### How to include a long underscore before the \question command?

i am working with a simple question but i can't include underline before the \question. Code documentclass{myclass} \newcommand{\line}{\begin{tabular}{p{2cm}} \\[-.35em] \hline \end{tabular} } \...
815 views

### Write a class with language dependent strings

I am unable to make my class strings language dependent using babel. I have the following minimal example: file test-babel.cls \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{test-babel}[2012/...
154 views

### How to fix the alignment of table cells?

While trying to improve the answer for another question, I am stuck at getting proper horizontal alignment. The alignment problem is evident in second column. It also shows up as difference in spacing ...
787 views

### How Can I Draw a Horizontal Rule on a Beamer Handout?

I have a beamer handout with a 16-on-1 layout via \pgfpagesuselayout{16 on 1}. I would like to draw a horizontal rule beneath each row of slides so that the viewer is more easily led to read left to ...
198 views

### Preamble vs. external style file - same code doesn't work in the later

I'm experiencing the following issue when using todonotes along with TikZ and its externalize library. If my document contains no \todo's then it compiles just fine and seems like the externalization ...