1
vote
1answer
175 views

Manipulating list items

Is there a way to get the n'th element of a list, e.g. an enumerate? Itemize, enumerate and others are all wrappers for the list environment, defined in the LaTeX kernel. Regardless of the existence ...
9
votes
2answers
811 views

Adding a chapter title for indices (multind) on the same page as the first index is printed

I am trying to add a chapter title 'Indices' before the first multind index is printed. However, printindex flushes the page so if I do it, I will get the title, rest of the page empty, and the first ...
4
votes
1answer
595 views

Resolution (dpi) checks for included bitmaps

When I include bitmap images in my PDF files (created with pdflatex and the graphicx package), I always check manually that the resolution will be suitable (I shoot for something between 200 and 300 ...
4
votes
1answer
9k views

LaTeX install path on OS X

I run the MacTeX 2012 installer and it installed a bunch of apps and tools under /Applications/TeX. However, I can't find the latex executables. There is no /usr/texbin, no /usr/local/texlive. If I ...
11
votes
1answer
198 views

Indefinite Subtrees

While doing tree proofs, sometimes we need to consider a root with some subtrees, but we don't know the exact properties of the subtrees, so we just represent them using triangles. Is it possible to ...
5
votes
3answers
604 views

Can't use utf8 encoding with datatool

I am using datatool to manage tables and I am getting errors when the data.csv file (encoded either as UTF-8 or ANSI) has characters like 'á'. I can get it around by having data.csv encoded as ANSI ...
5
votes
1answer
402 views

Memoir showtrims breaks auto-pst-pdf

I have set of large documents that need to go to printers and I want to show the trim edges. I'm using a large number of pstricks images in the documents (these are science and maths textbooks) so I'm ...
5
votes
1answer
105 views

Incompatibility of zref-perpage and amsmath

If amsmath is loaded after zref-perpage, zref-perpage will not reset counters in each page. What should be done to fix this except changing the loading order: \documentclass{article} \usepackage{zref-...
5
votes
1answer
770 views

pgfplots with 2 x axis, misalignment of upper x xticklabels

I need a plot with two x-axes, on at the top the other at the bottom. I try to do this quite successfully with this example code: \documentclass[12pt,twoside, a4paper]{report} \usepackage[german]{...
6
votes
2answers
588 views

Automatic scaling of kiviat diagrams

\documentclass[twoside,a4paper,12pt]{article} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage[upright]{fourier} \usepackage{tkz-kiviat,numprint,fullpage} \usetikzlibrary{arrows} \...
7
votes
1answer
187 views

Mimic a calculator screen

It was recommended that I post this as a new question. Sometime back, this marvelous solution was posted on this site. \documentclass{article} \usepackage{tikz,xparse} \ExplSyntaxOn \...
3
votes
1answer
2k views

Parenthesis style in bibtex citation

I am using LyX with bibtex and natbib for my citations. However, for some reason when I create the pdf, the citation comes out as Author [year] instead of Author (year). Is there a way to change the ...
10
votes
2answers
424 views

Catcode of \endlinechar when its charcode is less than 1

When \endlinechar is less than 1, how do we access its catcode? The following gives the error shown below: ! Bad character code (-1). l.34 ...ndlinechar\string=\the\catcode\endlinechar ...
13
votes
1answer
231 views

Array functionality in TeX?

I've been using LaTeX for a while, but only recently I made myself a mission to create a class. I needed to learn the details of TeX, and I couldn't find answers to some of my questions. One of them ...
7
votes
0answers
476 views

Myanmar (Burmese) line breaking with XeLaTeX [closed]

I am having trouble getting Myanmar text to break at the end of lines properly. The previous question How do I wrap text that doesn't use SPACE character to segment word would appear to solve my ...
23
votes
2answers
24k views

double perpendicular symbol (for independence)

I found from http://jblevins.org/notes/latex that I could use the independence symbol: \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\...
3
votes
1answer
10k views

algorithm2e - Apply commands to content block of IF … THEN … ELSE

In the following picture, I use a verbose but very pedagogical style for algorithms. I would like to automatically use macros that act on the content of block like in the first example but with ...
3
votes
3answers
13k views

BibTeX and Jabref

I have a bib file in Jabref. Once the .tex file is compiled, the bibliography section appears but it is all empty. Here is an example of my .tex file: \documentclass[a4paper,oneside,11pt]{book} ...
11
votes
1answer
1k views

Store information about which paper tray to use in PDF

Searching here, I found the question Embedding printer settings in pdf - while related, this appears to apply to printer settings for the entire PDF, not for changing printer settings per page. Our (...
6
votes
2answers
1k views

Included pdf (wallpaper, or includegraphics) has different colors [duplicate]

Edit: Duplicate-clickers, please read on - I believe this case is different, for the following reasons: a) As I said in original post, I am not printing with Acrobat, but using Skim and Mac OSX ...
5
votes
0answers
107 views

Capacity of ctangle exceeded [closed]

I'm interested in looking at (and maybe modifying) the code in MetaFont/MetaPost. To generate their C code, I applied ctangle to mp.w, and got an error message saying "token capacity exceeded". ...
18
votes
1answer
29k views

Changing font style using beamer

I want to change font style in my presentation. I prefere Liberation Serif font. This is TrueType font so use XeLaTeX program. I tried to set this font using \usepackage{fontspec} and \setmainfont{...
5
votes
3answers
258 views

Making tables more prominent

I am working on a long LaTeX document with several tables, which contain mainly text, or text and numbers. The tables are a \begin{table} ... \begin{tabular} environment. It is often difficult to see ...
1
vote
1answer
179 views

fonts used in this template [duplicate]

Possible Duplicate: How do I find out what fonts are used in a document/picture? Here it is a latex template to create a thesis: Latex Thesis Template. I would know which font the author has ...
1
vote
1answer
107 views

how to align the following in a table?

I am trying to have the cell on the left be aligned with the three cells on the right, so that they all start at the same height: \begin{tabular}{lp{2.5in}} \multirow{3}{*}{\raisebox{-.1\height}{\...
4
votes
0answers
4k views

Setting default font size to 13pt [duplicate]

Possible Duplicate: How to specify font size less than 10pt (or more than 12pt)? Many questions in this matter has been posted and most of the answers are related to either using KOMA-script ...
4
votes
0answers
3k views

How can I get the ordinary polynomial long division by using polydiv like this? [closed]

I want to get the following polynomial long division like this: But as you know, when I use command \polylongdiv (package polynom), I always get the following: How can I get the result as in ...
2
votes
0answers
68 views

IEEEtran - Large white space between bibliography and author biographies [duplicate]

Possible Duplicate: White spaces around IEEEbiography at IEEE Journal Template I am writing a document using the IEEEtran class. The bibliography spills from the second column on one page over ...
1
vote
0answers
41 views

Vertical align a marginpar with the first line of a paragraph [duplicate]

Possible Duplicate: Align marginpar with beginning of paragraph Is there a way to vertical align a marginpar with the first line of a paragraph, instead of the last?
2
votes
0answers
37 views

Redefining macro with arguments in a macro with arguments [duplicate]

Possible Duplicate: What is the meaning of double pound symbol (##1) in an argument? In the following code, I would like to build one macro \caseWord with two arguments corresponding to Case ...
3
votes
0answers
840 views

Installing AUCTeX on Windows from package-install [closed]

I have Emacs 24 and MikTeX on Windows 7 professional and I have recently installed AUCTeX 11.86 from package-install. The installation seems to have completed successfully, I even succeeded at ...
4
votes
1answer
208 views

No symbols inside a multilevel numbered list in Lyx [closed]

I have some numbered lists in Lyx with 4 levels of indentation. On the first level there are numbers (1,2,3,....), on the second small letters ( (a),(b),(c),...), then Roman numbers (i, ii, iii,...) ...
1
vote
1answer
518 views

Adjust space between entries in LoF and LoT

I am trying to adjust spacing between entries in LoF and LoT. My code is \documentclass[11pt,a4paper]{book} \usepackage[english,greek]{babel} \setcounter{secnumdepth}{3} \usepackage[iso-8859-7]{...
20
votes
2answers
20k views

Option Clash for Hyperref Package

Hi friends i am beginner to Latex. when i run this code i am getting the error "! LaTeX Error: Option clash for package hyperref." Here is the code: \documentclass[11pt,a4paper]{moderncv} \...
12
votes
3answers
954 views

Retrieve length of a character

I'm creating a custom command which basically prints an horizontal line, a character and another horizontal line. The code would be \newcommand{\breaknote}{\noindent\rule[.5ex]{.5\textwidth}{.4pt}\S\...
9
votes
1answer
6k views

How to reference a patent with BibTeX?

What is the best entity to use with BibTeX in order to reference a patent or patent application?
4
votes
1answer
1k views

How to collect all parts in Beamer?

I would like to use \tableofcontents to get contents of all the parts in beamer including only the names of parts, not including sections and subsections, how should I do?
2
votes
2answers
637 views

WinEdt keeps compiling a closed document

I have a simple template whose codes I copy over to a new document each time. But once in a while, when I compile the new document, the old template still shows up as the dvi (despite multiple re-...
6
votes
0answers
1k views

Problem with LuaTeX : can't write on the .aux file at second pass [closed]

I use MiKTeX 2.9 for Windows, format Plain eTeX. I have my own macro package which I've used for years, and I tried recently to use it with LuaTeX (included MiKTeX version) in order to use UTF-8 ...
4
votes
1answer
470 views

How can I align equations to the left?

I looked up a template to put my homework in a nice formatting, but I can't get it to look the way I want. More specifically, I want to: Align to the middle whatever is after: \hspace{1in} .... (I ...
2
votes
0answers
436 views

Incompatibility between currfile and enumitem? [closed]

The MWE below yields: Missing number, treated as zero. <to be read again> enit@cv@currfiledepth \item testing. for the itemize list....
9
votes
1answer
301 views

Wrong positioning of subscripts on bold math letters

I just noticed that for kpfonts and times (and probably other fonts since it does not seem to be font-related), the subscripts on boldface letters like V are (I would say) wrong. Is there an ...
4
votes
1answer
243 views

Tabular* Alignment of Columns

I've read about the tabular* environment, and the same example pops up over and over again. What I'd like to know is when the example is converted, why do columns 2 and 3 lose their centering? I've ...
6
votes
3answers
12k views

Formatting table border and text alignment in LaTeX table

I have the following table in the .tex file: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Distribution of Number of Injured Non-...
11
votes
2answers
2k views

How can I draw annotated braces over and under math expressions?

What LaTeX markup would one have to write to produce a result similar to the image below? Please excuse my Paint-and-mouse drawing skills. :-)
15
votes
2answers
1k views

Computed coordinates are all the same?

It's embarrassing question time. Why are my computed coordinates all showing up at the same location? The larger filled quarter circles are drawn with: current page.\x where \x is south west, ...
1
vote
0answers
3k views

Bibtex fails: Process exited with error(s) [closed]

So, I just installed the latest TeX Live manually from the website on an Ubuntu 11.10 64bit. I left every path on the default one, I installed all the packages. Then I installed the latest version of ...
7
votes
3answers
6k views

Help with drawing a triangle in using tikz

I'm trying to draw a triangle using TikZ. I managed to get it completed, but now I'm having trouble with getting the node to go into the body of the triangle. I've only been using TikZ for a couple ...
6
votes
2answers
326 views

How do I use scopes to apply a style to nodes inside a path?

I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation. However, a scope that I want to use to style the nodes only styles the ...
3
votes
1answer
3k views

Error: Extra }, or forgotten \right in align environment

I'm getting errors in the align environment that I'm not getting for the exact same line that compiles without error in the equation one and I can't figure it out. Can someone shed some light on this? ...

15 30 50 per page