# All Questions

586 views

### How can I get rid of an Underfull \hbox message in my macro?

I can't find the reason for getting this message: Underfull \hbox (badness 10000) in paragraph This is my test case: \newcommand{\ruler}{\noindent\rule[1ex]{\textwidth}{1pt}\\} ...
640 views

### Pgffor and the alignment character (&)

I need to construct a table that looks like: \begin{tabular}{ccc} a(1,1) & a(1,2) & a(1,3)\\ % <--- a(2,1) & a(2,2) & a(2,3)\\ % <--- I need this a(3,1) & a(3,2) & ...
5k views

### Where can I put biblatex style modifications?

Guidelines for customizing biblatex styles says: Finally, assuming that I'll want to use my style adjustments in a multitude of documents: Where do I put the relevant macro stuff? The ...
379 views

Possible Duplicate: Change \textwidth and \textheight in mid-document is there a way to adjust the vertical margins, i.e. left and right, on a single page / a certain region (the table of ...
228 views

### Installed Luximono is not working

I am using MacTex-2011 on a mac 10.7. Recently, I have installed luximono using getnonfreefonts. Everything went ok, but when I was compiling the document (pdfLaTeX) with the packages: ...
3k views

### tikz: a big box with fixed width containing smaller boxes

I want to render with tikz something like : The surrounding big box should behave somehow like a minipage : the width is fixed, and the height should grow if we add sufficiently small boxes inside. ...
250 views

### Getting to a command definition [duplicate]

Possible Duplicate: Where do I find out how a command/environment is defined? Is there a more or less general and (hopefully) convenient way to learn what is a command encountered in a ...
330 views

### Theorem-like environments in Latexit?

I want to use Theorem-like environments in Latexit. How can I do this?
884 views

### Create a verbatim mdframed environment

I'd like to use and mdframed environment with verbatim in it. I've read the both documentations, googled but I've found nothing regarding this matter. MWE below: \documentclass[10pt]{article} ...
3k views

### Opposite poles battery in circuitikz

This might be a simple question, but I would like the battery positive pole to be to the left, and to the right as the default, (0,0) to [battery, v=$\varepsilon$] (2,0) Also, is there an option ...
6k views

### IEEEtrans template requires not to use algorithm package?

During the IEEEtrans.tex, there is a comment below package algorithmic saying that Do NOT use the algorithm floating environment provided by algorithm.sty (by the same authors) or ...
263 views

### How can I reverse the order of letters/tokens?

I want a simple way to have: \reverseit{abc defg \mycommand} yield \mycommand gfed cba ? (Yes, the original motivation is related to Hebrew and RTL languages, but that can sort of be solved ...
8k views

i want to add urls in my reference i am using the following code in my .tex file \bibitem{bl}Business Logic layer, \url{http://en.wikipedia.org/wiki/Business_logic_layer}, 23 12 2011. however, ...
1k views

### List of Figures: How do I get a vertical space between figures from my final chapter and my first appendix?

I'm using tocloft with the report document class. I have four chapters and some appendices. My List of Figures produces vertical spacing between figures from different chapters, but it does not add ...
9k views

### How to specify variant tau? [duplicate]

Possible Duplicate: How to look up a symbol? How can I get the "hooked" form of lowercase tau (see below) to show in posts in SE (Math, Theoretical CS, etc.)? P.S. I tried the "obvious" ...
9k views

1k views

### Colored Small Caps [duplicate]

Possible Duplicate: Small Caps and Bold Face I'm trying to get some bold, colored, small-cap text. I've tried different variations, including: {\bf \textcolor{blue}{\textsc{text}}} and ...
227 views

I don't get page numbers of sections in the table of content correctly when I use the package lstlisting. I'm using the documentclass article. I need to use this class, not report. Any ideas how ...
1k views

### How to typeset elementary combinatorics?

How would one typeset basic combinatorics, like variation and combination? For example, when using $$V'_n^k$$ for variation with repetition, n and k are not vertically aligned. Something like ...
8k views

### Sort bibliography file according to order of appearance of citations in LaTeX document

I am asking this question, because there does not seem to be an easy way in LaTeX to solve this problem: two documents sharing same reference numbering. My question: Is it possible to order a ...
731 views

### Graph of dependencies from LaTeX file

This is inspired by the MO question here. Suppose I'm writing a math paper, with theorem and proofs, etc. At the end of writing, I want to design a graph of dependencies, that is, a graph containing ...
20k views

### Aligning text in LyX: left/center/right

How can I center/right/left align text in LyX? In Microsoft Word, I can just click the 3 buttons on the toolbar.
2k views

### tikz : how to refer to a node, in nested nodes

The following MWE displays 2 nested boxes. The alignment is done by refering to the inside box, through the name of the node "inbox" \documentclass[12pt, a4paper]{scrartcl} \usepackage{tikz} ...
3k views

### Stop bibtex from complaining about an empty note

When I bibtex foo.tex the following foo.tex \documentclass{article} \usepackage{natbib} \bibliographystyle{plainnat} \begin{document} \cite{citation1} \bibliography{foo} \end{document} with this ...
9k views

### Problem with the header/ footer width

I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this? ...
1k views

### Transliteration of sanskrit or devanagari texts using polyglossia or other packages

I wanted to know if there is a way to transliterate devanagari texts within LaTeX itself. I have been using the wonderful polyglossia package, and I am able to enter Unicode devanagari texts into ...
71 views

### Wrapping a long \numprint number [duplicate]

Possible Duplicate: How to typeset large numbers I need to write the decimal expansion of a very long number (more than 100 digits) that I'm typesetting using the numprint package. ...
538 views

### bigfoot: only break footnotes across double-page spread

The bigfoot handles the breaking of footnotes across pages quite well, but personally I don't like it if I have to turn the page to read a complete footnote. Therefore my question: Is it possible to ...
8k views

### How can I get no header but still get “page x of y” in footer?

I'd like to get "page x of y" in a footer on each page, and the way I've found is to use: \usepackage{fancyhdr} \usepackage{lastpage} \pagestyle{fancy} \cfoot{Page \thepage\ of \pageref{LastPage}} ...
755 views

### Problem inserting a figure in LaTeX

I am writing a research paper using LaTeX. I have certain images to insert. Now when we observe the images from the research paper, they have the following format: image its caption I am ...
227 views

### Getting an error when trying to use 'xstring' commands in my macro

When I try to compile the minimal example below, I get an error: ! Argument of \@xs@StrLeft has an extra }. <inserted text> \par l.33 \setInSCCF{abcdef} If I switch the ...
73k views

### Math symbol question: Vertical bar for ''evaluated at …''

How do I insert the line "|" after the equation in LaTeX (see image below)? I'm using LyX so if you can point me to the symbol of that line is also OK. I don't know if this line has a proper name ...
6k views

### How to draw a Sankey Diagram using TikZ

I would like to draw something similar to this (not exactly): using TikZ. Ideally I would be able to set the width by variables and rejoin two flows into one again. Is there a good way to do this? ...
923 views

### Remove dots from TOC, have page numbers right after titles

When looking for some inspiration for how to come up with a template for my thesis, I came across the wonderful classicthesis package. Since I'm working on some very progressive material, however, I ...
921 views

### Equation Labeling and xypic

Suppose I have the following TeX code for a diagram using xymatrix: \begin{align}\label{diagram} \xymatrix{ C\ar[r] & D &\\ B\ar[u] & & \\ A\ar[u] & &} \end{align} This ...
625 views

### Crossing bonds in chemfig

Sometimes, molecular structures have crossing bonds, and we want to indicate which bond is in the foreground. In the chemfig example below, I have done this by first drawing a thick, white bond to an ...
1k views

### How to insert the author of a quotation using natbib and lyx?

Hello all: have a small issue, (btw, i am quite new to LaTeX, so please be gentle :)) When I create a quote in lyx and add a reference to it: % Preview source code for paragraph 52 \begin{quote} ...
3k views

### Wrap a wrapfigure and text by a border?

Is it possible to wrap a wrappicture with some text nearby by a frame?
13k views

### how to use \input{file.tex} correctly?

Suppose I have two latex files file1 and file2 with the same preamble and so on. Then I want to create a file called bigfile which just puts the two files together. This is not working for some ...
2k views

### Compiling a BIG matrix

I have a large matrix (say, 100x100) in LaTeX code and I want to view it in a human-readable form. Obviously compiling the TeX code (of the matrix and nothing else) is the best way (much better than ...
3k views

### Caption package: bold numbering indents caption text - how to avoid that?

I ran across this problem and fail to find an answer even after thorough searching: I use \usepackage[bf]{caption} in my LaTeX document, as I want the "Figure 1"-Part of the caption to appear ...
1k views

### Settings options doesn't seem to work with the achemso document class

I'm submitting a paper to a non-ACS journal that nonetheless follows most of the ACS formatting guidelines. So I'm trying to use the achemso document class and setting a few options to meet the ...
1k views

### Htlatex and Tikz creates sometimes incorrect svgs

I have a document with a large number of Tikz pictures and I need to generate a html page from it. I have declared a driver to have TikZ pictures as SVGs (after this question) and run htlatex ...
4k views

### Change \abovecaptionskip for some floats only

I'd like to change the \abovecaptionskip (space between figure and caption) for the listing floats of the minted package only. How can I do that?
136 views

### how to define a newcommand with several optional arguments? [duplicate]

Possible Duplicate: More than one optional argument for newcommand Is it easy to define a new command with several optional arguments, that one would call as follows : ...
7k views

### amsmath - multiple labels in one equation

I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
1k views

### Creating process table figure in TikZ

I'm teaching operating systems course and I have to create many "process/memory map/inode table" structures for the course. For those who don't know (not sure if any of them would be here), See the ...
3k views

### How to reduce hspace between columns in align environment

With the following MWE, I have 2 columns: \documentclass[12pt, a4paper]{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} 4 &= 4 && \text{yes}\\ 0 &= 0 && ...