# All Questions

530 views

### Chapter number in Lenny and roman numerals to Old Style

Is there a way to change the chapter number in fncychap as well as the roman numerals in the \frontmatter to be old style figure style? \documentclass{amsbook} \usepackage[osf]{mathpazo} ...
3k views

### Watermark on the first page only

I'm modified the following code from this post to add a couple of vertical watermarks on a page. However, the code places these watermarks on every page. Is there a way to restrict watermarking to ...
2k views

### Shaded with “continue on next page”

I am using the shaded environment in the framed package to wrap some text lines that may go across two different pages. If there is a crossing of pages, I'd like to automatically add a line "(continue ...
3k views

### What are good advanced LaTeX books?

I've been using LaTeX for about 3 months, and I'm hooked. My background is programming, so for the basic, google is sufficient. I did some research on amazon.com and found these two books with many ...
3k views

### ps2pdf -dEPSCrop input.eps cannot crop input with \pagecolor{<non-white>}

If I set \pagecolor{} to any color other than white, I will get a strange result. rem batch.bat takes a file name without extension. latex -interaction=nonstopmode %1 dvips -E %1 -o %1-temp.eps ...
1k views

### Theorem decorations that stay with theorem environment

I am typesetting a document using the memoir documentclass. Currently, my theorems have the following definition (using macros provided by the ntheorem package): % THEOREMS ...
1k views

### MinionPro and beamer: figure selection

MinionPro package options for figure selection don't appear to work under beamer. I'd like text figures in text mode (textosf) and lining figures in math mode (mathlf). In the example below, the ...
577 views

### Why does hyperref bookmark work?

The \appendix command resets the section counter to zero: *\documentclass{article} *\show\appendix (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h ...
289 views

### LuaTeX nil value errors

I tried to lualatex a document and got the following error: ! LuaTeX error ./luasseq.lua:377: attempt to index field 'wd' (a nil value) stack traceback: ./luasseq.lua:377: in function ...
6k views

### Converting MS Word mathtype to LaTeX

Does anyone know of an easy, effective, and preferably free way to convert Word documents with Mathtype 5.2 equations to the LaTeX format?
1k views

### Is there a nice way to make a strikethrough for the square subset character in LaTeX?

I am working on some math that uses the square subset notation. I need a good way to strikethrough the character in LaTeX. I have tried using the package "cancel" but the strikethrough it produces ...
2k views

### In tikz \node's text, how to use \multiinclude to include several pictures?

This code tries to use \multiinclude from xmpmulti inside a tikz node text to include for example a series of files pic-0.pdf, pic-1.pdf,..., etc. and doesn't compile and throws out error listed ...
10k views

### how to insert multi line equation in the tabular environment?

How can insert multi line equation in the tabular environment? For example see the following code that can show my request. \begin{tabular}{rrr} &a &b\\ &u=\begin{cases} 0;& ...
8k views

### How to properly resize a matrix?

Apparently text is resized in one way and math in other way. However, the commands to resize math do not work well on a matrix; it appears barely smaller and unexpectedly shifted down. The commands to ...
168 views

### Is there a built-in PSTricks macro to get the value of \pslinewidth in the current unit?

I need the value (without trailing unit) of \pslinewidth in \psunit. I have done as follows but I am disappointed with the accuracy. \documentclass{article} \parindent=0pt \usepackage{pstricks} ...
241 views

### Aligning images in the marginal notes based on a specific paragraph height rule

Friends, I have to put some images in the marginal notes of a text. Unfortunately, I have some issues with the image alignment. Consider this minimum example: \documentclass[oneside]{book} ...
2k views

### TeX memory size error when using TikZ foreach children in trees

Nearly Identical: How to expand TeX's “main memory size”? (pgfplots memory overload) I'm getting the same error as the other question, but the answer there is not handling my issue. I believe the ...
29k views

### Start new chapter on same page

I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears. I want to be able to start new chapters on the same page as the ...
5k views

### Roman numerals with over- and underline

This question led to a new package: romanbar (using a variation of egreg's code, and stating this in the manual; the package isn't really new now, sorry for the delayed announcement) I have ...
1k views

### How to not increment algorithm numbers when using \againframe in beamer

As is known, algorithms and equations in latex are automatically numbered. When using \againframe though, incrementing such number is undesired. How to avoid this? (I still want numbering, but it will ...
619 views

### How to remove a single section from the header of a beamer presentation? [duplicate]

Possible Duplicate: LaTeX Beamer: Frame outside sections? I am using Beamer with the Warsaw theme, and all sections show up in my headline. Is there an easy way to remove them? I have tried ...
481 views

### I failed to use \newenvironment and \newcommand

1k views

### How to fix the location of tables when they're imported with \input? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I'm using MiKTeX and TexMaker 2.2.2. Using the latabstat command in Stata I create small tex files of some ...
282 views

### Ghostscript questions [related: preview package to print standalone PDFs]

Using the preview package to generate individual PDFs of images within your document has been covered, for example, in this thread. However, I am trying to understand how you can use Ghostscript to ...
435 views

Possible Duplicate: Where do I place my own .sty files, to make them available to all my .tex files? How to include additional packages like for glossary, font, etc… in LaTeX? I am using ...
528 views

### Listing, zebra effect and broken lines

In Creating a zebra effect using listings, I've found one solution to produce a zebra effect for listing. Unfortunately, this only works if the lines are not broken. Is there a way to fix this? Here ...
292 views

### Place TikZ coordinate or \zlabel at every (base)line

I'm currently adjusting the code shown in Test if a paragraph has a page break in it? to support underlining and highlighting using TikZ similar as shown in Cool Text Highlighting in LaTeX, but ...
1k views

### sub- and superscripting together in text mode

I want to use sub- and superscript together in text mode. I've found this macro to solve the problem \def\textsubsuperscript#1#2{\rlap{\textsubscript{#1}}\textsuperscript{#2}} But it doesn't works ...
3k views

### How to enter symbol for inexact differential in xelatex?

The LaTeX symbol list document recommends this: \def\dbar{{\mathchar’26\mkern-12mu d}} Compiling this gives an error about mathcar being undefined. A minimal example follows: ...
1k views

### Fixing a code to highlight formulas and text on several lines

In this post I've found the following amazing code to highlight text on several lines. The problem is that code dosen't work well with formulas : for example, fraction using the mode display are ...
17k views

### Typeset mathematical symbols also in sans serif font?

For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by \renewcommand\familydefault{\sfdefault} However when I use ...
712 views

### Image is not showing full width and height [duplicate]

Possible Duplicate: Image from \includegraphics showing in wrong image size Image is not showing full width and height, it is showing 100% as single dot, when you zooming view this picture ...
1k views

### What is the unit of the coordinate system in PSTricks?

If I use the following code, there two different kinds of units. One for the coordinate system used to declare \begin{pspicture} with (0,0) to (20,10), and the centimeter used in 4.2cm. ...
3k views

### Which LaTeX IDE has Vi plugin?

I'm looking for a LaTeX IDE which has Vi plugin, but I haven't found any. I tried out vim-latex, but I couldn't find a way to install it. Thanks in advance.
248 views

### How do I create a loop based on a series of points in TikZ as in the Graph style?

I am currently working on a project to create a translator from Frank Drewes' graph style into TikZ. As an example, I am trying to recreate the following diagram from the graph style manual into a ...
335 views

### Is it OK to define a macro before document class?

\def\A{E=mc^2} \def\B{% I can find a tool to convert PDF to EPS in my neither bathroom nor kitchen.} \documentclass{article} \begin{document} $\A$ is my favourite equation and the following is my ...
633 views

### PDF printer decreases filesize of pdflatex output considerably. Why?

This is probably not exactly a TeX question, but I assume many people concerned with TeX might also have ideas about this issue. If I compile the following "minimum" example with pdflatex on Windows, ...
250 views

### Is it feasible to using data binding within Latex?

A year ago, I worked for a company doing .NET to create a customer report. They use DevExpress to generate a report based on customers' requirements. However, I realized the way it works is just ...
414 views

### Question regarding add node with text within TkiZ package? [closed]

I followed an example from TikZ manual, and modify mine to add an extra node with text below a given node. This is the example from TiKZ manual, And here is the code, So I modified my code to fit ...
183 views

### Wiki to Latex conversion [duplicate]

Possible Duplicate: How to convert mediawiki syntax to latex? A couple of months ago I came across a tool/system for converting Wiki marked up text to latex. I did many searches with ...
1k views

### Turning off font subsetting in pdftex?

I give pdf files to a print-on-demand house (lulu.com) that is very picky about fonts. They want all fonts embedded, no multiply embedded fonts, and no subsetting. Recent versions of pdftex seem to ...
4k views

### How to draw two Tikz pictures that are parallel to each other?

I want to draw two automaton figures next to each other; however I can't put them in one \begin{} \end{} tag because the node distance can be changed, further the distance between two pictures is also ...
36k views

### How to add caption for a TikZ picture?

I'm drawing a automaton figure, and I want to name it says 'M1' below the figure? A minimal example would be greatly appreciated. Thank you. \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on ...
564 views

### I do not know the key '/tikz/insert path'

Trying to compile this example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture,overlay] % A path that follows the edges of the current page ...
1k views

### How to get the list of predefined colors in xcolor such that the list can be used in foreach looping?

I need to get the list of predefined colors in xcolor. Hard-coding as follows is not a good coding practice. \documentclass[dvipsnames,cmyk]{minimal} \parindent=0pt \usepackage{pstricks} ...
1k views

### Use first row of a table as legend entry in pgfplot graph?

I'm using pgfplots extensively and I'd like to avoid having to write legends every time, since all the text files I want to plot have explicit headers. As a comparison, \pgfplotstabletypeset makes a ...
192 views

### Defining a command that distinguishes between greek and roman letters?

I'm using pdftex and I want to define a command for the typesetting of quantum mechanical operators that produces upright letters with a \hat accent. The problem is that the obvious solution ...
781 views

### Is there a simpler way to do arithmetic in PSTricks?

I want to animate PSTricks diagram, so looping is intensively used. I have 3 global variables \START, \STOP, \DELTA that should be declared in the preamble. The remaining variables in the body will ...