18
votes
2answers
3k views

How to make longtable respect \nopagebreak in the beginning?

For the book I am typesetting now I need a table environment with the following abilities: Span over multiple pages; Allow \nopagebreak between two lines Do not ignore \nopagebreak before the ...
3
votes
1answer
1k views

Table cell overflow

Consider this document example: \documentclass[a4paper,draft]{article} \usepackage{calc} \usepackage[demo]{graphicx} \usepackage{tabularx,multirow} \usepackage{geometry} \geometry{hmargin=0cm} ...
39
votes
3answers
43k views

Label equation with a symbol

I would like to label an equation with an arbitrary symbol, rather than a number, or letter. Is this possible?
6
votes
2answers
1k views

Unable to use external PostScript pictures generated by TikZ

I'm using external EPS from TikZ figures following the suggestions found in "Export eps figures from TikZ". Images are correctly created but when I get the PS of the main document with dvips I can't ...
36
votes
8answers
14k views

What is the easiest way to draw 3D cube with TikZ?

I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this:
24
votes
1answer
1k views

What is an \if?

I'm reading TeX by Topic, but in little chunks (rather than from first page to last) and just read the stuff on conditionals. I want to be sure that I understand what's going on when TeX starts ...
3
votes
2answers
1k views

Texments/minted not working - Undefined control sequence

I'm trying to add some syntax highlighting to my code and found two packages: texments and minted. I tried to use them, but I'm getting errors while trying to build. I used following code to test both ...
17
votes
1answer
2k views

Automatic newspaper creation in LaTeX

This is a very general question about LaTeX, asked by a 100% newbie! I'm trying to figure out if it's feasible to build an automatic newspaper creation engine, and if LaTeX can help in this field. ...
34
votes
6answers
5k views

How can I invert a 'clip' selection within TikZ?

I wish to draw an arc for a reflex angle on the outside of a triangle with coordinates (A), (B) and (C). If I wanted to draw the arc inside the triangle I could use something like \begin{scope} ...
4
votes
0answers
366 views

How to output multi language documents [duplicate]

Possible Duplicate: Whether it's possible to keep translation together with original text? I'm currently writing my CV using the moderncv package and I'm gonna need English and German ...
3
votes
3answers
2k views

How to customize .bst files

Hi all as I'm trying to make citations according to norm ISO 690-2 I faced "decapitalisation" of BibTeX entries, see: BibTeX loses capitals when creating bbl file. That was for plain style. Now I ...
43
votes
3answers
15k views

Is it a bad idea to use \begin{section} … \end{section} in LaTeX?

In several discussions about relatives merits of LaTeX v. xml, a xml supporter complained that in LaTeX sections, subsections etc are not properly closed, so it is hard to tell where a section ends. ...
11
votes
3answers
2k views

Framing section headings

I'm attempting to put a frame around my section headings. I am using the package mdframed which adds functionality to the framed package. It basically draws a box around an object, in an ...
1
vote
3answers
502 views

Position and scaling with graphicx package

In the good ol' days I drew figures with xfig and generated LaTeX source to directly include in my papers. But I now find powerpoint to be a faster drawing tool and sufficient for most of my needs. ...
4
votes
1answer
598 views

Figure in the table with Tikz

How do I align a figure Tikz item at the top of the table? Its my result. I need the second alignment.
6
votes
3answers
1k views

memoir class - Mixed portrait and landscape pages

Section 4.2.2. in Notes on book design makes a reference to mixed portrait and landscape pages. I am aware of pdflscape, that allows such a mixing, but as this manual is written by the author of ...
9
votes
1answer
7k views

Missing } inserted, yet braces are balanced

Regard the following document: \documentclass[a4paper,reqno]{amsart} \usepackage{amssymb,amsmath,amsthm,fullpage} \begin{document} For each $k$ we denote by $\lambda_k$ the $k$th symmetric ...
2
votes
1answer
1k views

CV in ConTeXt, correspondence - moderncv

How should a minimal example of a CV look when written using the moderncv interface from the correspondence module? I'm still a bit confused about modules and interfaces so some hints on how to ...
6
votes
1answer
1k views

Vertically align two boxes based on their top borders, not on baseline

I have two boxes which to shows text to the left and right of a document. \begin{minipage}[t][1in][t]{2in} {\Huge First line box 1}\\ {\footnotesize Second line box 1} \end{minipage} \hfill ...
2
votes
5answers
977 views

Strange problems in 3D-Plots TikZ: Missing parts and axes

compiling the following example in newest MikTeX or TexLive results in strange problems: Have a look at the plot: There are some missing parts and only the z-axis is drawn. Please try to help. ...
17
votes
1answer
4k views

Verbatim environment and line-breaking

I've been wondering about how to display simple codes. I used verbatim and then found the fancyvrb package which added a lot of nice little features, but then I inserted some code with a long line and ...
3
votes
2answers
1k views

Table of contents problems

I am writing my thesis and I am having a few problems with my format. My thesis structure is as follows: I Introduction II Part 1 chapter 1 chapter 2 III Part 2 ...
18
votes
4answers
2k views

How to determine current page number?

I am adding entries to bookmarks and I want one entry to point to a specific page. However, I don't want to provide it's number, because it may change depending on contents modification before that ...
7
votes
2answers
309 views

How to register a callback in ConTeXt

In ConTeXt mkiv, how do I register a callback? callback.register() does nothing (and IIRC most callbacks are frozen anyway) and somewhere I found tasks.appendaction, but this gives me an error that ...
54
votes
13answers
20k views

What are the benefits of writing resumes in TeX/LaTeX?

Today, I've written my resume in LaTeX and it looks great and all It took me about 2 hours to get everything right But I've been thinking, what benefits do I get from writing it in LaTeX rather than ...
29
votes
1answer
16k views

Automatically scale big and small graphics for beamer presentations

For the next few semesters I'll be making a lot of beamer presentations with a lot slides that are just a frame title and a figure. I am trying to make a command to make a lot faster to code and ...
9
votes
2answers
517 views

percent signs in luacode* environment (LuaLaTeX)

Can someone explain what happens here: \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} tex.print("xx\%a","yy\\%b","zz\\\%c") \end{luacode*} \end{document} The ...
4
votes
1answer
2k views

Measuring height of fixed-width text box

Suppose some text is put inside a fixed width box. The text will then continue in vertical direction. How can you measure the total height of that text? Original text: text text text text text ...
15
votes
3answers
2k views

Why doesn't \settoheight of \parbox work?

Consider the following code: \documentclass[a4paper]{letter} \usepackage{calc} \usepackage{printlen} \newsavebox{\foobox} \newlength{\fooboxheight} \savebox{\foobox}{ ...
7
votes
3answers
554 views

commands in interaction mode?

Q: Which commands can I supply back to LaTeX when it pauses on a line of code during compilation and is waiting for me to give it more information before proceeding? E.g., in the post How do I use ...
8
votes
3answers
1k views

Creating a complex template

I would like to create a complex template for documentation as a document class. I should be able to define my text fields (for instance, \documentNumber, \projectTitle). My class should be flexible ...
5
votes
1answer
1k views

Creating tables with spanning rows/columns

I'm trying to create a table which looks like but I'm not really sure how to incorporate multiple spanning rows and columns together (to add 'Organism 1' and 'Organism 2'). I've gotten to this ...
4
votes
1answer
1k views

GUI framework error after Update [duplicate]

Possible Duplicate: How can I fix the error "GUI framework cannot be initialized" with TeXnicCenter and MiKTeX? Yesterday I updated all packages via the Miktex 2.8 update ...
7
votes
4answers
562 views

How to type “<<test>>” in ttfamily?

I'm trying to produce <<test>> text in \ttfamily, but it looks like: «test» Which is not what I'm looking for. When I'm trying $<<$test$>>$ the result is not correct as well ...
14
votes
2answers
418 views

Automatically add quotes

I would like to create a new environment which will behave similar to quote, but with quotes added. I tried something like this: ...
5
votes
1answer
663 views

biblatex, addcategory

I have asked the following in several boards, but without any success. Please consider biblatex commands to define Categories and assign a Category to a .bib entry: \DeclareBibliographyCategory{AAA} ...
10
votes
2answers
715 views

\def taking next word as argument?

This question is a variant of my previous question requesting a macro that takes the rest of the line as argument. I would like to write a macro that would take the next word as argument, where word ...
6
votes
1answer
1k views

How do I remove keywords in package listings?

Sure enough, there is a morekeywords option, but suppose I need to remove some? A case in point is Pascal, in which Writeln is not (strictly speaking) a keyword, but rather a predefined procedure. I ...
8
votes
1answer
807 views

Baseline shift with fontspec?

Is there a way to manually adjust the vertical position of a font using fontspec (in XeLaTeX)? Such a feature would be quite useful when typesetting Asian text, since different font vendors often ...
19
votes
2answers
3k views

How do I use \show?

Q: How do I use \show to determine macro definitions?. I've followed advice here: The definitions of LaTeX commands and here: \show with fewer lines? and am still struggling. I've naively tried ...
14
votes
3answers
1k views

Google searching LaTeX commands?

Q: How can I best search the web for exact LaTeX commands (e.g., \show as opposed to show)? It appears that Google will not allow us to escape the \ character. So, searches for \show are interpreted ...
12
votes
2answers
1k views

Reduce natbib bibliography to one line

I would like my references to look like Foo et al. 2008, Nature, 100, 200 • Bar & Baz et al. 2010, Science, 300, 400 • Einstein, 1905, New Scientist, 5, 6 where "•" is perhaps some ...
26
votes
1answer
7k views

Draw a diagonal arrow across an expression in a formula to show that it vanishes

I would like to find a way to cross out a term in a mathematical expression with a diagonal arrow pointing from lower left to upper right and with a little "zero" next to the pointy end of the arrow.
12
votes
3answers
16k views

labels for itemize in proposition

I have a Proposition which consists of an itemize with three claims, i.e. \begin{prop} \begin{itemize} \item[(i)] ... \item[(ii)] ... \item[(iii)] ... \end{itemize} \end{prop} I wish to insert ...
6
votes
1answer
802 views

Writing in the same line as the section title

I needed to add some text after some of my section title and it certainly needs to be in the same line, and not to be in ToC or bookmarks. Therefore i decided to create my own subsection-type-thingy ...
4
votes
1answer
667 views

Hyperref breaks my all-caps ToC entries

I started out on this earlier question. I now have a simple and elegant etoolbox solution to making all-caps chapter entries, but leaving appendix entries untouched. Simple, elegant, and incompatible ...
13
votes
2answers
5k views

Where to put a custom macros file?

I have a bunch of common commands I put in document preambles. I don't always use them all, but it makes the preamble too long for my tastes. I want to put them all in an external file (preferably in ...
10
votes
2answers
4k views

Finding a font for XeTeX

I am trying to customize this document, it's a CV template for XeTeX. What I'd like to be able to do is change the main font. I belive the section of the code I need to change is this: %FONTS ...
0
votes
2answers
676 views

How do I make a subject with newlfm

I can't find in the documentation anything about how to make a subject in a newlfm style letter. What I would like is something like the following. Överklagande av Skatteverkets beslut om ...
7
votes
4answers
562 views

LaTeX equivalent to R's `help foo`?

From the R command line I can do help foo -- where foo is some R command-- and return a .html help file on foo. This holds even if foo is from some non-standard library I just loaded. Q: What's the ...

15 30 50 per page