# All Questions

98 views

### Problem reading the value of \@itemdepth

I am a new LaTeX user. I am trying to format a generalized list. I have mush of it working. I am trying to get the value of the \@itemdepth so I can determine the amount of indenting being used at ...
1k views

### How to add author an affiliation and their email address and all left aligned

How to add author an affiliation and their email address and all left aligned? title author 1, author 2, author 3 Authors affiliation author1 's email address abstract I'm using a single column ...
18k views

### Table caption should be left aligned

How to make table caption left-aligned. I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error: \DeclareFloatFont ...
635 views

### How to pick a plane inside a cube in pst-3dplot?

I want to pick and highlight a diagonal plane of a cube. I do not want to color it but use some kind of fill-style so that I can print it on a black and white printer. The following is my solution ...
9k views

### Changing oneside and twoside layout

Is there any solution to use different layouts according to the oneside or twoside specification? The first part of my report (abstract, ToC, LoF, LoT) should be in oneside mode and the rest of the ...
947 views

### Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the ...
953 views

### Linux Libertine and pdfTeX: glyph `a' undefined

I have little doubt, usually, in the Linux Libertine font with LaTeX / pdflatex, but a couple of weeks ago, the following happened to me: I have the file with the following test.tex ...
2k views

### Why does \movieref not work under XeLaTeX? [closed]

I have a long-standing problem with the button produced by the \movieref command from movie15 package. Briefly saying, it does not work at all if my document is compiled with XeLaTeX whereas the ...
920 views

### ToC: How to no-indent the second line of large entries?

ToC: How to no-indent the second line of large entries? I'm using the scrreprt class, typesetting a book with only 120mm of paperwidth.
7k views

### Handwritten font with math support

Friends, I've been looking for a handwritten font with math support. In The LaTeX Font Catalogue, there are great handwritten fonts available, but unfortunately I could not find one with proper math ...
1k views

### Random asterisk when using BibTeX and res.cls

I am using res.cls and commented out \nofiles. However when I use BibTeX for my publication list, I get this random * above the references. How do I remove this *? \documentclass{res} ...
553 views

### Adjust vspace between multiple align environments

I am using some independant align environments directly one after the other one and it produces some nasty space between them. Is there any workaround to shrink the size of the space a little bit? ...
45k views

### Continuous v. per-chapter/section numbering of figures, tables, and other document elements

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)? And vice versa: Some ...
393 views

### Improving code to draw several cycles trigonometric

How can I improve this code to generate three cycles varying the height of the trigonometric tangent? Note that I managed to correctly draw the red line, but could not improve the green line. What I ...
2k views

### Convert any number to corresponding word

This is a wild one: can anyone write a code that converts a number into the corresponding word? e.g.: 4 -> 'four' 31 -> 'thirty-one' and so on. Obviously, it is not enough to build an array ...
3k views

### How to generate QR code for iCalendar event?

I would like to include in a pdf file a QR code containing information from a iCalendar event. Here it is the code to generate a simple event for an iCalendar: BEGIN:VEVENT SUMMARY:event ...
232 views

### How to change appearance of a particular line when using \lstincludelisting?

I'm using the listings package and include code into my document through \lstincludelistings. The problem is that I want to set some code lines to bold to indicate changes from previous code segments. ...
397 views

### thmtools: theorem VI.2.1* = dual of theorem VI.2.1

I'm writing out a collection of theorems and their proofs corresponding to several theorems that appear without proof (or with only minimal proof sketches) in a published book. I am using thmtools to ...
513 views

### Usage of \lastbox

As part of our LaTeX3 work, we provide a consistent interface to TeX programming through the expl3 package. We've recently been discussing the TeX primitive \lastbox, which is used to inspect or ...
2k views

### Different paper orientation in a document lyx

I have to change the orientation from portrait to landscape in the middle of a document. Only for 1 until 3 pages after that it have to portrait again. I use this code in texmaker and running well ...
390 views

### Conflict between amsmath and pdfcomment

I use both amsmath and pdfcomment in one document. This leads to the references produced by (\ref{}) to appear like (zref@1) instead of numbers like (1). Without amsmath or pdfcomment this problem ...
1k views

### How do I get fontspec to work with text color white in XeLaTeX

In a previous question ( How do I globally set the text color in XeLaTeX ), I've asked how to globally set a text colour in XeLaTeX and got some excellent answers. However, while the proposed ...
3k views

### Figure breaks listing, how to avoid that?

I have a listing in my document and some lines before it I'm inserting a figure, doing the following: \begin{figure}[htbp] \begin{center} \includegraphics[scale=0.7]{filename.png} \caption{Caption} ...
2k views

### Insert Image from multipage pdf file in Lyx

I am writing a report and I have all the images in a pdf file with very high resolution. With limited skills in editing, I am loosing the quality of the image when I try to save the individual images. ...
342 views

4k views

### Include MATLAB code via package mcode [closed]

I am trying to include MATLAB code in my thesis using a very handy package called mcode.sty, http://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package This package works great on ...
438 views

### Tutorial for emp package

I really like the idea of the emp package - you write your MetaPost sources directly in LaTeX source. However, I can't make this package work. I read the official readme, but to no avail. Some of my ...
748 views

I am having trouble understanding how the panel table of contents of the pdfscreen package works. The only thing that I got from the documentation was that in an article-type document, the section ...
111 views

### reference other reported works in the form of [-]

how to reference other reported works in the form of [-]? I tried the following trick but didnot work out. \cite{IEEE:Zhu - IEEE:Nguyen} I'm using article document class.
1k views

### LaTeX - Multiple pages on a code listing inside a beamer frame

I'm trying to put some Python code on a beamer slide. I would like to take one big file and print it with lstinputlisting. I've tried to set the frame fragile with: \begin{frame} [fragile] ...
190 views

### What's wrong with my file? Equations aligning right, symbols not showing half way through

OK, this is my first attempt at writing my homework in LaTex, and it's frustrating as hell. First, I defined unit vectors "uv" and bold vectors "bv" like so: \newcommand{\bv}{\mathbf} ...
404 views

### Break line inside \proc?

I'm using clrscode to typeset my algorithms. This package provides the \proc command in order to typeset the name of a procedure with some nice small-caps. In a text paragraph I refer to some ...
8k views

### Too much space at the top of a beamer block when using multilined math environment

I would like to place two math lines in a beamer block, as two separately centered lines. I know that I could do this using two distinct equation environments, but it would be nicer to use a single ...
498 views

### Align words in cells of a table

Consider a table like this: | text1 | text2 | |------------|--------------| | a b c | AAA BBB CCC | |------------|--------------| | | aa bb cc | ...
244 views

### Biblatex: ifx inside DeclareFieldFormat

I'm not having any luck using an \ifx command inside a \DeclareFieldFormat block with biblatex (v1.6). Is there something I'm missing? A minimal (non-)working example: \documentclass{article} ...
448 views

### Convert all \subsection to \subsection*

I want all of my \subsection behave like \subsection* Instead of adding * everywhere, I like to add a few lines in the preamble. What should I do? Can I just \renewcommand?
15k views

### Extend a language with additional keywords?

I'm using listings and I want to extend a language with additional keywords for highlightning. I know there is an option morekeywords available, but that only works for a particular lstset declaration ...
2k views

### node names and nested loops in TikZ

I'm trying to draw a (part of a) lattice. To achieve that I use two nested foreach loops, like this: \foreach \x in {-1, 0, 1} { \foreach \y in {0, 1, 2} { \path node (\x.\y) at (\x+\y-1, ...
906 views

### Why does xunicode not provide true backward compatibility?

As it is said in xetex mailing list Xunicode is mostly about backward compatibility, providing sensible general definitions for macros that have been defined in older packages which now ...
177 views

### Is there a “proper” way to fix alignment of text in a \framebox?

The \framebox command aligns its contents vertically centered, but this has a tendency to produce results that are extremely visually displeasing. Case in point: \documentclass{article} ...
2k views

### Unknown options for package siunitx

I'm getting an error when I try to specify an option with the siunitx package. I have the following line in my preamble: \usepackage[load-configurations=si-abbr]{siunitx} And I get the following ...