# All Questions

2k views

### Enumerated text and formula with background color

I want to have an enumeration with text and formulas with a background color, but \colorbox does not work, here's my code: \documentclass{book} \usepackage{xcolor} \usepackage{shadethm} ...
362 views

### How would I code the following using enumitem?

I would really (really) appreciate it if someone could give me the code in enumitem that does the following: I need just one indexing set (roman numerals) and the flexibility to change space between ...
2k views

### How to insert title in mdframed?

How to insert title in mdframed? In my example does not work. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[framemethod=TikZ]{mdframed} \begin{document} ...
6k views

### How to use achemso bibliography style without achemso package?

I tried to use the achemso bibliography style for a document which is not an article I want to submit to a journal. Thus I do not use the achemso class neither the achemso package. It works but ...
260 views

### Hyperref problem with mdframed+pdflatex

I'm encountering a problem when I use hyperref with mdframed and pdflatex. Below is a MWE which gives the following error: ! Missing \endcsname inserted. <to be read again> ...
2k views

### Include figure (from macro) with underscore in filename

I have a system of where a .tex is generated from a program. The final .tex file has a (simplified) structure like this: \newcommand{\PlotFrame}[1]{% \begin{frame} \frametitle{...} ... ... ...
298 views

### \refsegment in biblatex broken since update to TL2012

I'm writing my thesis and I'm using biblatex with a biber back-end to create a per-chapter bibliography. I recently updated to TL2012 and since then the references to the refsegments have broken down ...
1k views

### program package ! Extra }, or forgotten \endgroup

I took the STY files(elsarticle.zip) from the following link - http://www.elsevier.com/wps/find/authorsview.authors/elsarticle#models I am using program package and I want to include the keywords in ...
953 views

### How to make footnotes left-right and the numbers in English in Persian documents?

The document is compiling in Xelatex and the whole document is Persian using the package xepersian. The footnotes are all in English but they are aligned right and the numbers are persian. I want the ...
1k views

### Beamer poster citations at wrong place due to use of minipage

I want to add a couple citations to my poster but I face a problem regarding the place where the citations appear. In the code that follows (minimum example which for some reason I cannot understand ...
2k views

This question is essentially the same as How can I fit my table of contents into a single page? "When I use \tableofcontents I get all my contents in a single page except for a line that goes on the ...
358 views

### How to set a image background and tile on page in ConTeXt?

That's it. I want to use a image pattern, let's say this image. But I can't figure how to do this on ConTeXt, 'cause neither \setupbackgrounds or \setupframed have an option to tile backgrounds. I ...
191 views

### How do I specify two default options for an arara identifier?

(Apologies if I have the terminology incorrect.) I want to write a directive for arara that can take an argument. The directive should set the name of the output file according to the following ...
1k views

### How to expand linear regression fit to the full x-axis range while using semilogyaxis

Since I was asked in another post: Trend line or line of best fit in pgfplots to ask this question explicitly, I'm now doing so: How can I expand the linear regression fit, generated with for ...
1k views

### Space after itemize only if no text follows [duplicate]

My problem with the following example: If there is text after a list (itemize), everything looks just fine. If there isn't, there is a blank line after the last list item which I would like to ...
452 views

### “This page was left intionally blank” on center of page [duplicate]

Possible Duplicate: How do I make pages which were “intentionally left blank”? Assuming I am forcing amount of pages to be even using Raphink's solution : ...
1k views

### Forcing even number of pages in output (LaTeX — pdflatex) [duplicate]

Possible Duplicate: How to keep the last page number even? Is there a way of forcing an even number of pages in output ? What I mean is to make pdflatex document "intelligent" it will add ...
163 views

### Get the stem width (i, T) of a Font in ConTeXt Mk IV

In the TiKz-Manual it says: ... that LaTeX has two commands called \thinlines and \thicklines and that \thinlines gives the line width of “normal” lines, more precisely, of the thickness that, ...
638 views

### Insert a block comment title in Kile [closed]

I would like to know whether it is possible in Kile to define a script to insert a centered commented block. I often mark different parts of my code with those kind of titles: ...
7k views

### Distinguish even/odd pages in header with oneside option

See the MWE below. How can I achieve (in the standard book class) that despite the oneside option odd and even pages are distinguished in the header? I would like to have that, also with oneside ...
494 views

### How to redefine default macros of document class

When choosing a document class, I find they all generate some unwanted change to my document, but I'm having trouble changing the default macros to set the formatting right. In my preamble I'm ...
182 views

### Inserting statistics of a resulting PDF file back into the document on the next run

This is an example of what I want to do: After a run of pdflatex, calculate and store (into an auxiliary file?) the size of the resulting PDF file, as obtained from the Terminal command "du -h ...
124 views

### English References in mainly Persian Document (XeLateX, BibTeX)? [closed]

I am compiling my document in Persian using XeLaTeX, but the references are all in English and I'm appending them using BibTeX. At the end of the document, the references are all unknown characters, ...
2k views

### \thepage vs floats

I'm writing a report and I want to make sure that each new chapter starts in an odd page. So I wrote the following script which I put before each chapter: ... %-- to make sure that a new chapter ...
1k views

### Fontspec setmonofont line spacing

I am currently using using fontspec to set the mono-space font for my document using \setmonofont[Scale=MatchLowercase]{Monaco} The scaling is used to get the font size to match the rest of the ...
57 views

### Tikz arrow head same as arrows in latex? [duplicate]

Possible Duplicate: Matching arrowheads in TikZ with math mode arrowheads How do I make the arrow head in latex same (or at lest very similar) to those that e.g. \leftarrow produces? ...
27k views

### Two different calligraphic font styles in math mode

I have been succesful in using the calrsfs package together with the standard CM type1cm font. I have been able to obtain in separate documents different calligraphic symbols in math mode with ...
598 views

### Filter table rows for regression

I have a table containing a flag and x and y values. I'd like to have a regression for all rows with 1 in the first column. How can I do this? \documentclass{article} \usepackage{array} ...
3k views

### Jenor chapter style

Is it possible to get the Jenor chapter style available with the memoir documentclass in the scrreprt documentclass (Koma-script)? Here is a link to Jenor style.
454 views

### Using dashes with siunitx with pgfplotstable

I have a table setup that is mostly numerical columns. However, there are occasionally some cells that have a blank entry, currently the in the excel csv file output as "---". Everything worked ...
244 views

### pgfmath expression containing a \newtoks defined via a \def

This must be another of those expansion related issues as I don't know why the following \def\MaxValueOfTok{8}% \newtoks{\SomeTokDefinedViaDef} \SomeTokDefinedViaDef={\MaxValueOfTok} ...
349 views

Possible Duplicate: Use “default” figure if file is missing? I use LaTeX to take notes during my math classes. When the professor draws an image, I jot it down quickly in a ...
201 views

### Linebreak after \lstinputlisting

Is there any way for me to insert a linebreak after a \lstinputlisting? At the moment text proceeding the code in the lstinputlisting follows directly after but I'd prefer to have a linebreak but ...
113 views

### Tie an inline math environment to be in the same line

How should I put command so that my inline math environment could be together. For example 0<x<1 is break up into two parts, 0< and x<1 in the next line.
3k views

What would be the preferred way to export the Table of contents I use in a .tex file to a separate .pdf? Currently I have a my-report.tex file and I wish to pair the result of pdflatex ...
798 views

### TeX4ht: \includegraphics[page=10]{foo.pdf}

I have a long LaTeX document with lots of figures that were included using commands of the form \includegraphics[page=10]{foo.pdf} Everything compiles fine with pdfLaTeX. I planned to convert the ...
321 views

### fancyhdr: Title don't match title number

Some of my titles in the header don't match the number. This happens in page 3 in the example. What can be a solution or a work around? \documentclass[twoside]{report} \usepackage[ansinew]{inputenc} ...
916 views

### Customized summation symbol

I am interested in defining some customized math symbols out of existing ones. For example I would like to distinguish between different types of sums, so beside the usual symbol I would like to ...
455 views

### biblatex continuous reverse numbering through categories

The answer to Citing a certain type of reference ... almost perfectly solves my problem, but I would like to have the my cv sorted with continuous counting: **Articles** [5] great Article 2 [4] great ...
136 views

### Wrong width of environment after includegraphics

I have created an own environment with the mdframed package. My problem is, if I insert a picture in the self defined envrionment, the width of the color box is wrong. Here is the code: ...
2k views

### I want to indent the next line by an exactly specified position

I am typesetting an entire math lecture script, where readability often requires me to indent just a line or two for a certain amount, which is ALWAYS different. I would like to have some way of ...
416 views

### Non-trivial table in LaTeX

I want to convert this OO table into latex: This is what I have so far: \begin{table} \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} %p{4cm} \hline \multicolumn{7}{|c|}{Czas ...
284 views

### Center Formula in self created environment

I use a environment called loesung which I created by myself. Now I have a formula in that environment, but I want to have that formulas centered. Not left aligned, here is my code: ...
710 views

### Manually add a literal column to a table loaded from a file

I would like to use pgfplotstable to typeset some numbers stored in a text file. I have used \pgfplotstableread to achieve that and it worked all right. Now I want to add a column to the said table ...
290 views

### Style-independent way in BibTeX to cite a web page as a source [closed]

I know how to cite a web page in BibTeX, but the method proposed is not style-independent. That is, it suffers from not having metadata for the access date and URL (it's a hack to put the access ...
710 views

### Single double-logarithmic axis

I'm trying to make a plot which has a double logarithmic y-axis. Is this possible? This should change the distance of each logarithmic increment, for I want to plot so called Bit-error rates. To have ...
316 views

### AUCTeX style for siunitx

Is there any AUCTeX style for siunitx? If not are there any simple tricks which make it more easy to type siunitx commands in emacs. For example if I type C-c C-m SI it inserts just \SI{} with one ...
13k views

### Set limit to one author when using “et al.” in biblatex

In the header of my document I set the maximal author names to 2: \usepackage[style=authoryear-icomp, maxbibnames=9, maxcitenames=2, backend=biber]{biblatex} Now, when I cite texts with two ...