All Questions

1answer
3k views

Using \frac within tabular [duplicate]

Possible Duplicate: Using \frac within a table I'm trying to do that within CodeCogs renderer, but it don't work: \begin{tabular}{cc} \hline \frac{x}{2} & \frac{2}{x} \\ \hline ...
2answers
704 views

Display math deadly sin in l2tabu

As a follow-up to Why is $...$ preferable to $$?, what really is wrong with the vertical spacing as stated in l2tabu introduced by using$$... instead of $...$? As there does not seem to be ...
3answers
579 views

Mutually exclusive options in packages

Is there a standard way to define mutually exclusive options in a package? Could someone provide a simple example? Currently I am mostly intrested in LaTeX2e but it would be nice to see a LaTeX3 ...
1answer
293 views

How to position the destination of the link generated by hyperref in the center of the page?

I'm using the package hyperref, and it works perfectly. But I want that when I click in link generated by the package, the destination of the link, the figure or the equation, stays centralized on the ...
2answers
13k views

Customization of the title slide in a beamer presentation

I'm using CambridgeUSnew beamer theme. And I need to add additional information between author text and date text. At this point I found only one working solution: add this text into author text, ...
1answer
4k views

How to set a fixed size for a shape

I want to draw a circle of 4mm with minus sign inside it. I have set the m style: \tikzstyle{m}=[circle, thin, draw=red, fill=red, minimum size=4mm] however the minus sign extends the circle. I ...
1answer
681 views

Breaking formulas before and after binary operators

Page 195 of the TeXBook reads: Although formulas within a paragraph always break after binary operations and relations, displayed formulas always break before binary operations and relations. ...
1answer
1k views

Removing list margin

I have an enumerate in which the items are paragraphs (sometimes more then 1 per item) and the paragraphs are indented after the label. How can I change the behaviour so that from the second line of ...
2answers
950 views

Make glossary defined terms bold

I have defined a lot of terms with the glossaries package and use them in my text with the \gls{} command. However, I'd like terms called with \gls{} to appear bold, so people know that it is a term ...
2answers
6k views

Coloring a multirow

i have currently this code in LaTeX \begin{footnotesize} \begin{center} \begin{longtable}[c]{ll} \caption[API da listagem de um docente]{API da listagem de um docente.} \label{relStruct}\\ ...
1answer
804 views

Using the displaymath shorthand  for equation or align instead

I want to be able to use the $...$ shorthand to enter either the equation or align environment instead of the displaymath environment. Is it possible to do this? I know you can define new ...
2answers
2k views

Tricky pagebreaking problem

I have a problem with some pagebreakings in my thesis. I have used a recursive \afterpage{\clearpage} based macro in order to alternate text and figures, which works fine, most of the time. However, ...
2answers
250 views

can I fix the following problem with multiple theorem statement?

I am using the theomac.sty file for being able to have the same theorem appear in several different places in the .tex file without having to copy it, and while still having the same numbering (so for ...
2answers
2k views

How to visualize the underfull box in final output PDF files

I am finalizing a document. There are a few underfull vbox I just cannot figure out where they are. Sometimes it is easy to figure out which page is underfull vbox from the log file, but sometimes it ...
2answers
2k views

Using non-numeric ((sub)sub)sections changes the way of how \ref is displayed

I have some issue with LaTeX and I haven’t found a solution yet. So hopefully some of you can help me. I'm writing a big article with four levels of sectioning (so I'm using paragraph for the lowest ...
1answer
540 views

Missing text from boxes in block diagram (pst-sigsys/pstricks)

I am trying to make a block diagram using pst-sigsys/pstricks. The text however isn't in the boxes but is stashed on the left. I absolutely run out of ideas what might be causing it to happen. Any ...
2answers
2k views

How to use Adobe fonts

I stumbled onto several folder named "Adobe" in TeXLive distribution, and it seemed like they are ready to be used. So, is there a way to use Adobe fonts in pdftex,like adobe symbol font for math and ...
4answers
8k views

How to compile a document with EPS images using TeXnicCenter?

I have all my input images in EPS format. I am using TeXnicCenter. When I use latex->dvi output profile, all of the EPS images show up fine. However when I want to take the final output by using ...
1answer
400 views

Rotate a placetable/placefigure plus caption in ConTeXt?

I've a large table, which I want to rotate to fit onto one page. My current solution looks like: \placetable{some text} {\rotate[rotation=90]{ \starttable[...] .... \stoptable}} But ...
1answer
13k views

Adding C++ code in Latex

So I am adding some C++ code snippets in my document using \lstset {language=C++} \begin{lstlisting} for (int i=0; i<iterations;i++) { do something } \end{lstlisting} My issue is that the font ...
1answer
2k views

What is the side effect when hyperref has stopped early?

\documentclass{beamer} \usepackage{lmodern} \usepackage{caption} \begin{document} \begin{frame}{Are you kidding?} No! I am not a good joker. \end{frame} \end{document} The following is taken from ...
1answer
2k views

How to get rid of the table of contents sidebar in LaTeX Beamer ?

I'm making a presentation with Beamer and I'm using the Hannover theme with the table of contents sidebar which is on each slide. I'd like not to show it on the first slide where is the title, the ...
3answers
13k views

How to display cover page alone in the “two page view” mode

For some pdf ebooks, Adobe Reader displays the cover page alone even though the display mode is "two page view". Other than the cover page, the rest of the pdf content is displayed as two pages at ...
2answers
394 views

Adding TikZ code to TOC

Friends, I've been successfully using the tocloft package to manage custom indices. But now I have some doubts on a tricky part, whether is possible or not. Consider the following code: ...
3answers
761 views

How to get rid of these excessive rules?

\documentclass{article}%cannot be minimal \usepackage{longtable} \usepackage{ifthen, xspace} \newcounter{xyz} \setcounter{xyz}{1} \def\and{&\xspace} \begin{document} ...
2answers
2k views

How to make a box containing LaTeX output?

I am writing a short introductory book on LaTeX and I would like to implement nice looking code example boxes. Using this answer: Source code listing with frame around code? I made the boxes with the ...
1answer
742 views

latex flashcard problem

I use a package to make flashcards which has the formatting \card{#1}{#2}, where #1 and #2 represent the front and back side. The package works great. I like to block out text, so I have made ...
2answers
1k views

How to change / to be horizontal?

I like to change a/b to be a - b how to do that?
2answers
2k views

Why do pdflatex and latex LNCS outputs look different?

I've found that using embedded postscript (eps) with the pdflatex command, as opposed to the latex command, may require more effort; and potentially insecure write18 permissions with cygwin. No ...
1answer
4k views

How to keep font preferences in TexWorks 4

The default font is too small on my screen at the resolution I have it, so I like to reset the font to size 12, but it appears I have to do this everytime I launch the program. How do I make it ...
1answer
2k views

Align top with multirow tables in Lyx 2.0

I'm having trouble doing vertical alignment in tables with multirow in Lyx. I have data that is in a 'tree' format that I need to present in tables. I would like Category 1, Subcategory 1.1 and Value ...
3answers
3k views

Fill a grid with TikZ

How do I fill a grid in TikZ? I want to do something like: \draw[draw,fill=red!20] (0,0) grid (2,2); instead of manually drawing 4 rectangles.
2answers
2k views

Typesetting arabic with LuaLaTeX

For typesetting arabic with LaTeX there are arabtex and arabi; for typesetting arabic with XeLaTeX there are arabxetex and polyglossia; but how to typeset arabic with LuaLaTeX, since neither of ...
1answer
1k views

In TikZ when is “line join=miter” the preferrable over “line join=round”?

The solution to How to fix TixZ corners in 3D was to use line join=round instead of line join=miter. But I am trying to understand why that is not the default. Under what circumstances would "line ...
4answers
560 views

left, right, and center alignment with hfill

this problem is driving me nuts. I need a line of text formatted as follows: Avian Influenza Tamiflu Jan 2, 2011 * This is a random description, note that it spans mult. cols. * ...
1answer
737 views

How to fix TikZ corners in 3D

Am trying to draw a simple rectangle and there seems to be minor issue with two of the endpoints (f and d in the following). I tried line cap=rect as suggested by Bad intersection of lines in TikZ but ...
1answer
840 views

XeLaTeX and missing spaces in PDF text

I use xelatex to compile a PDF from this tex-file: \documentclass[14pt]{scrartcl} \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{polyglossia} \usepackage{lipsum} ...
1answer
727 views

Using \frac within a table

Does \frac not work from within a table? I need to reproduce the formulae for various methods on this page - here. I for example use Normalized Square Difference & \frac{\sum_{x',y'} ...
1answer
642 views

How to put fixed-height shading around text (inline)?

I have a chunk of code in an alltt environment and I want to highlight elements that are auto-generated (two colours for different methods): \newcommand{\gen}[1]{\colorbox{DGray}{#1}} ...
3answers
19k views

How to change Appendix chapter name

I have a long appendix which includes a lot of equations and figures. My document class is report. In order to have a separate appendix section, I used: \appendix \chapter{The first appendix} ...
2answers
1k views

Change XeTeX fonts automatically depending on Unicode blocks

I would like to move from p(La)TeX (which was a TeX system specifically tailored to Japanese in a pre-Unicode era) to Xe(La)TeX, and I'm having a problem. In p(La)TeX, Japanese fonts are only used ...
1answer
461 views

How to move figure title to caption when using \subfig

This is my first time using \subfig because I have a figure (Figure 8) that contains two parts, and it was better to put them each on separate pages but one after the other, since they are related ...
2answers
3k views

Typeset in TextMate has a PATH error

I downloaded Textmate (1.5.10) on a new MacBookPro (MacOSX 10.6.7) after using it to typeset LaTeX on my old MacBook. I saved my document folders on my new computer in the same document folder ...
3answers
1k views

Obfuscating TeX

Given TeX's system of catcodes, I imagine that one can obfuscate TeX to a remarkable degree. With a view to learning more about the internals of TeX, I ask: How might I go about adding a block of ...
2answers
313 views

Creating lists of figures based on groups

Friends, consider the following code: \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \listoffigures \newpage \lipsum[2] \begin{figure}[h] \centering ...
1answer
3k views

algorithmicx: shorten algorithm

My algorithms takes up too much space in the document. I would like to do 2 things: set the width bigger, so the lines which does not fit to a single line would do remove lines with end keywords ...
4answers
9k views

What is the difference between 'fil' and 'fill'?

TeX provides the commands \vfil and \vfill (and their corresponding horizontal versions \hfil and \hfill). These commands are actually defined as: \vskip 0cm plus 1fil \vskip 0cm plus 1fill where ...
2answers
504 views

Text containing math above and below equilibrium sign won't compile (using mhchem)

Why won't this compile? I suspect the math inside the []s are preventing compilation. If so how do I make this work? Thanks. \documentclass[12pt]{article} \usepackage[version=3]{mhchem} ...
1answer
343 views

Online manual in “Book” format, like DocBook, but providing collarborative editing like mediawiki?

I have a reference document for some software that I would like to publish online, and to provide a pdf and multi-page html version. DocBook looks idea for this, similar to how subversion publish ...
2answers
5k views

Left-aligning authors section in an article

I want to align the authors section of my article to the left. If there are more than one authors, each author should be aligned left in its own cell. I am using memoir's article class. This is what ...

15 30 50 per page