# All Questions

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 ...
950 views

### How to save and restore chapter's heading format

I am writing my thesis using a template provided by the university. It requires using the report class. To format the headings in the front matter, it uses the titlesec package and redefine the format ...
166 views

### ascii and siunitx packages collide

I want to load both the ascii package and the siunitx package. The problem is that both define a symbol \SI. Is there any way to make both packages work together?
674 views

### Tikz Graph Example – all nodes stacked

I try to reproduce the \graph example of the pgf manual 2.10 page 208: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \tikz \graph {a -> { b , c } -> d}; ...
795 views

### column separator in header line in column with dec sep align

I'd like to have a column with vertical bar separators. When I set the number format to 'dec sep align' the vertical separators disappear. Here is a MWE: \documentclass{article} \usepackage{array} ...
1k views

### How to fill an area bounded by grid lines and axes?

With pgfplots one can for axis use the options minor xtick and minor ytick together with grid=minor to manually produce grid lines. If one use such grid lines one may want to emphasize a certain ...
146 views

### Howto hide a Listings or Verbatim environment using a \newif enable command

Due to make life easier I want to create a Exercise sheet for a lecture including the corresponding solutions. Therefore I defined a \newif to control whether the solution should be included or not. ...
775 views

### The GPL and LaTeX packages [closed]

The GPL is viral. How does this apply to the LaTeX eco system if one uses a package licensed under the GPL2++? If I use it in a document, must the document also be licensed under the GPL? If I use ...
3k views

### Sqrt with fraction in root argument [duplicate]

Possible Duplicate: Nice-looking p-th roots How can I move the root higher for this formula ? The fraction in the root is typeset to low: \documentclass{minimal} \begin{document} ...
200 views

### How do I create this text delimiter?

I want to create a delimiter between two regular paragraphs of text as in the end of page 6 of this pdf. One way out could be the Vmatrix environment but then I dont know how to make the right ...
686 views

### PgfPlots duplicate x-axis labels

I have some repeated numbers on my X-Axis. Here is my code- \begin{tikzpicture} \pgfplotstableread{Figures/measurements.dat} \datatable \begin{axis}[symbolic x ...
2k views

### Better way to produce V\llap{--}

Is there a better way to get the symbol produced by V\llap{--}? I need it in math mode. The symbol is someitmes used to represent volume. The above hack is not the right symbol but something close.
407 views

### Unable to copy _ from pdf

\documentclass{article} \usepackage[T1,OT4]{fontenc} \begin{document} Text with \_. \end{document} In PDF there is a correct output: Text with _. But when I select and copy it I get: Text with . It ...
1k views

### Hide subsubsections in toc, but show in PDF

I am hiding subsubsections in my TOC because they got too many. But I would like them to show up in the navigation when viewing the document as PDF anyway. Is there any way to do this, and how? ...
2k views

### Missing tlmgr texlive 2012 [closed]

I just succesfully installed texlive 2012, apart from the fact that tlmgr is missing: it should be in the directory /usr/local/texlive/2012/bin/i386-linux/ but there's not! The only thing with the ...
1k views

### How to modify an existing bibliography style

Having read this answer on how to modify an existing bibliography style if you only want to apply small changes (that is, if you want to avoid defining a completely new style using latex makebst), I ...
7k views

### Removing some lines in table

\documentclass{article} \usepackage{rotating} \begin{document} \begin{table}[h] \centering \begin{tabular}{|c|c|c|c|} \hline & \begin{sideways}ABCD\end{sideways} & ...
792 views

### Removing horizontal lines from the header and footer of the title page

I intend to set two blank pages before my thesis title page. However, the workaround I use does good job for the first page, but introduces horizontal lines in the title page (there were "text ...
1k views

### Change colors/contrast in beamer navigation between active and dimmed section

The code below gives the following output for the head: Here the first section on the left is active and the others not, but the difference is quite small, I would like the active section to be in ...
3k views

### list item multilined ( \newline inside of item label ?)

How to make multiline item label ? Example \documentclass[a4paper,10pt]{article} \usepackage{lipsum} \begin{document} \begin{itemize} \item[Great Item] \lipsum[1] \end{itemize} \end{document} I ...
3k views

### Defining new subsubsection not working

258 views

### \newcommand creates underfull\hbox (badness 10000) in paragraph

I have a 2-column document with repeating boxes. So I created these macros (don't mind the colors and boxheight): % ------------------------------------------------------- % aitparagraph % % gives ...
632 views

### String diagrams for monoidal functors a la McCurdy

Almost surely you don't know who Micah McCurdy is, but here is a sample of his diagrams, on pages 20-21, for example, or page 27 for something fancier. I asked him how he did them, and unfortunately ...
290 views

### Cross reference of a section that doesn't have a section number

I was using ACM CHI latex template in which sections do not have section numbers. For example: BACKGROUND SubBackground SubSubBackground Now I want to cross reference, but I don't ...
370 views

### Customize |<->| arrowhead in Tikz

I am quite happy with the |<->| arrowhead in Tikz but I would like to control the length of the |. Is there a simple way to achieve this? In tikz.code.tex, I could find ...
123 views

### Symbolic functions: changing catcodes and \tl_rescan:nn

The goal is to have the user input (for the sake of argument) a linear function in one variable, for example 2*x+3 along with the variable (this isn't crucial) and a value for the variable. I would ...
541 views

### \newcommand defined for declarative formatting works for \it but not \textit or \emph

2k views

### Statistical significance stars

What's wrong with my code for three stars (***)? It's so ugly compared to my ** and *. \documentclass{article} \newcommand{\oneS}{\ensuremath{{}^{\textstyle *}}} ...
2k views

### Separation of content structure and style in LaTeX?

In HTML, over the last decade or so, there has been a strong push toward complete separation of content structure and style. Most websites are now built using HTML for structural mark-up, and CSS for ...
389 views

### Ubuntu 12.04 biblatex mla style

I've had a good search of internet and unable to find answer. I have Ubuntu 12.04 with all updates, and using LyX for work/study. I need to use mla style for some papers. There is no biblatex-mla ...
4k views

### How can I use the full page width (\textwidth) while importing a table with \includegraphics?

I'm in a 2-column environment. I need to use the entire pagewidth (\textwidth) while importing a table with \includegraphics. \begin{table} \centering \includegraphics[width=\textwidth]{./myfile.pdf} ...
152 views

### Missing <sub> tags in tex4ht output

When processing a LaTeX source with tex4ht, I can't seem to reliably convert subscripts in text mode to <sub> tags in the HTML output. My only solution so far is to switch to math mode. But for ...
529 views

### How to assign values with foreach?

I have trouble to assign values with \foreach. Can somebody help me? The following code is wrong. The purpose is to asing the values: \lx1=1, \ly1=2, \lz1=3, for example. \foreach \x/\y in ...
18k views

### What is the difference between italics and slanted text?

As I understand, LaTeX supports both via \textit and \textsl respectively, but what is the difference between the two?
100 views

### subimport and verbatim packages [closed]

The subimport in the import package does not seem to work with the importing commands in the verbatim package such as VerbatimInput. Is there a workaround or another package that works better? -js
9k views

### Phantom and Align Environment

Is there any way to 'phantom' text within the align environment? I have the following code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \phantom { a & = b \\ ...
9k views

### Natbib package error? Bibliography not compatible with author-year citations

I'm trying to write an article for a journal using it's LaTeX class and there seems to be an issue with the bibliography. I'm getting the following error message: Package natbib Error: ...
2k views

### How to scale a Gantt figure?

Sketch: I was trying to scale a Gantt chart in order to fit in to a Beamer presentation. Suppose I have some gantt chart bigger than the presentation rectangle: \begin{figure} ...
702 views

### How to compute rotated bounding boxes?

Edit: As suggested by percusse's answer, I can use transform shape option. My first question is now solved. But although the second bounding box is now locally aligned, it is not correct. In fact, ...
6k views

### Convert Latex to MathJax-HTML

Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with MathJax? (Obviously, it is fairly easy to hack together a quick Perl script that is able to do ...
114 views

### Aligning problem

Is there a way to align the telephone numbers and email in this example, and how should one go about it? I've not used LaTeX in a really really long time. \documentclass{article} ...
5k views

### Undefined control sequence in align

\begin{align} \label{eq:x} x = \sign{a} \cdotp \sign{b} \cdotp \min(\lvert a \rvert,\lvert b \rvert) \end{align} Above gives me Undefined control sequence. Any ideas would be helpful.
269 views

### How to align five equations on three lines, e.g., 2-2-1, with the last equation centered?

I'm trying to use the alignat environment to arrange five equations on three lines as follows: two equations on the first line, two equations on the second line (aligned with those of the first ...
5k views

### Increase space between listings env. and surrounding text

How can I set the space between a listing (lstlisting) and text that surrounds it? Is there a parameter I can set at the beginning of my document, that controls this? I tried framesep, but it just ...
675 views

### Exclude images for printing pdf

I have a document that has images that are very, very dark. As such, they should not be printed when the user goes to print. Somebody I'm working with loves to print, and they use a lot of toner ...
3k views

### How can I draw snake arrow in automata using tikz?

I find: \begin{tikzpicture} \draw [->,decorate,decoration=snake] (0,0) -- (2,0); \end{tikzpicture} in TikZ manual, but dose not work! How can i draw snake edges in automata using tikz?
1k views

### proof environment in beamer

I would need to move the symbol for the end of proof - a square a little bit up but ONLY on one slide, where the proof is quite long and the square has not seen very much.
3k views

### How do I change footnote in Beamer?

I would like to change footnote sign letter to numbers in my Beamer presentation. How can I achive this?
29 views

### Ruby Code Highlight in Lyx / Latex [duplicate]

Possible Duplicate: Ruby highlighter for LaTeX I am working on a tutorials document / short book and I was wondering if there is a way to use Ruby colour code highlight within Lyx ? I have ...

15 30 50 per page