All Questions

Filter by
Sorted by
Tagged with
5
votes
1answer
2k views

Tikz array as argument

Problem I'm drawing flow diagrams in Tikz, and they basically include a header, followed by a list of flow components set below an arrow. I've written functions to take arguments in Tikz before, but ...
3
votes
1answer
2k views

Trouble setting a length [closed]

I'm starting with LaTeX, and there are things that puzzle me. I'm trying to set a length that's the \textwidth minus (let's say for example) two inches. In the preamble, I wrote: \newlength{\bplen} \...
2
votes
1answer
3k views

Autofit table column with booktabs

Background Using booktabs produces the top table in the following image: Both tables reside in floats, but even when outside of the float the same result is produced. The Application and Version ...
12
votes
2answers
946 views

How to use showexpl with an external class?

The showexpl package defines LTXexample environment which allows to define a latex code and shows its result side by side. The problem is that it uses the same document class where the LaTeX code is ...
6
votes
2answers
544 views

Is there a package to pull out Answer Keys from Exercises to the last page? [duplicate]

Possible Duplicate: How can I produce exercises in one part of a LaTeX document with selected answers in another? I am writing a book containing exercises for the readers. To ease writing phase, ...
6
votes
1answer
2k views

Using `easybmat` and `beamer` together

I've written an article using the easybmat package and now it is time to create the beamer slides....however, as you can see here, in order to load both the easybmat and tikz (or pgf?) one needs to ...
7
votes
1answer
1k views

Why noxcolor option with beamerarticle and tufte-handout?

in a previous question there is a solution about how tu use tufte-handout class with beamerarticle. I've tested it and I need to include [noxcolor] option because without it pdflatex complains with !...
11
votes
2answers
6k views

Exit codes of pdfLaTeX

In the script I presented in this question I encountered the following problem. In case of a compilation error, I have to cancel the execution of pdflatex 3 times. This can be very annoying. I would ...
3
votes
3answers
1k views

Vertical alignment in the tables with pictures (epsfig)

I have a table with two columns. The column on the left contains a picture (\epsfig) the column on the right contains the description. The description starts on the same height as the lower end of ...
5
votes
3answers
398 views

Equation tags for parts of alignments

Consider the following example: \documentclass{article} \usepackage{amsmath} \begin{document} \[ 1+2=3 \implies \left\{ \begin{aligned} &a+b=c, \\ &x=y+z. \end{aligned}...
7
votes
6answers
8k views

Nested indentation of text blocks

How can I doubly indent some lines of text? The general idea is... Normal Once indented Once indented Twice indented Once indented ... The following is my attempt but it only indents once. for ...
5
votes
1answer
416 views

Figure-macro with TikZ: account for y-axis labels

How can I account for the space taken by the y-axis labels? Can I somehow \setbox the axis labels, or something similar? Because now, the y-axis labels stick out of the text block width (because I ...
8
votes
2answers
683 views

Typesetting special table formats

I want to typeset Flynn’s taxonomy: | Single | Multiple | instruction | instructions ---------+-------------+-------------- Single | | data | SISD | ...
10
votes
1answer
2k views

How can I define NaN in LaTeX3

LaTeX3 l3fp offers a way to check if a variable has a an infinite value. The following code defines a number and then sets its value to π/2. It then calculates tan(π/2) to get a large result. \...
0
votes
2answers
822 views

How to hide LaTeX commands and keywords in a listing? [duplicate]

Possible Duplicate: How can I highlight some lines from source code? How to hide LaTeX command (keywords) in a listing? When I use for example \textbf{} in the listing it appears as \textbf{}. ...
3
votes
1answer
878 views

How to display caption at the bottom of a figure

I am not able to show the caption at the bottom of figure. I always get in the middle. I would appreciate your help. Below is the code. \documentclass[fleqn,12pt,a4paper]{article} \usepackage{...
7
votes
1answer
968 views

How to write centered multi-line conclusion in inference rule?

I'm using the semantic package to write inference rules and I have trouble with the following: \usepackage[inference]{semantic} \usepackage{amsmath} \begin{equation} \inference{ expr }{ \begin{...
8
votes
1answer
10k views

Paragraph indentation in a list

I'm trying to use LaTeX to produce my homework assignments. They're in the form of answering a question sheet, so the answers are formatted in a similar way to the questions, i.e. (a) foo (b) foo (c) ...
111
votes
7answers
44k views

Cool Text Highlighting in LaTeX

LaTeX has soul. ConTeXt, of course, has beautifully marked up "sharpie" highlighting, where you can put sweet hightligher under your text for free! In the pictured example, you can see highlights ...
43
votes
3answers
4k views

Is hyperref really the best way to add metadata to a TeX file?

So I know one of hyperref's features is that it can add metadata to you PDFs. This is a nice feature and if you're putting stuff online, it's good to include metadata. But is the hyperref package ...
41
votes
2answers
122k views

Bibtex entry for white papers and technical reports.

I have writing my first Latex document so this may be bit of a beginners questions. I have using the natbib package for agsm harvard style bibliography in my report. I have to cite a few reports I ...
125
votes
3answers
249k views

\subtitle doesn't work in article document class

I'm relatively new to TeX but until now I used mostly the beamer class. There I did this: \documentclass{beamer} \title{title} \subtitle{subtitle} \author{name} \date{\today} \begin{document} ...
12
votes
1answer
4k views

Tabbing with automatic line breaks

I want to format text like this: a) Bla bla bla bla lbal bla blablalakasdfdl sdlf sdfl blablalbalasldkfsdflksdf b) b;sdfdfgldfgajs;dflsfsldfk s;dlfskfwopwerkrotkdfpgodfg osdofkdfgk ...
12
votes
2answers
7k views

Minitoc and memoir

I read this question about minitoc but I can't make it work with memoir. Is there an known incompatibility between these two ? Is it somehow possible to make it work ?
52
votes
2answers
34k views

Changing left margin in itemize environment of beamer class

I can't figure out how to line up the symbols of an itemize environment in beamer with the left part of the main text. In other words, I would like to supress the left margin in beamer itemize lists. ...
6
votes
1answer
728 views

Newenvironment and floating figures

I want to create an environment for a list of items, that should look like this for each item: Name Image ....... Image .............. .............. with this environment \begin{cuitem}{...
11
votes
3answers
2k views

How to suppress BOM effect in the output?

When I used listings package to import C# code snippet from within my LaTeX file, I got an output as follows. At the first line, there is an unnecessary white space because of the BOM (Byte Order ...
8
votes
2answers
1k views

A tool for creating bibtex entries from MARC tags?

My library provides citation information for books in several formats, but not as bibtex entries. One standard format is the so-called MARC manual tags, which are human incomprehensible, but at least ...
16
votes
3answers
283 views

Are all package loading conflicts due to conflicting identical control sequence names?

I just ran into a load-order conflict due to identical cs names and realized that this is the source of similar problems in the past that I've seen. Thinking about it, I can't imagine what other ...
7
votes
3answers
2k views

Is there any cryptographic-related graphics drawing package?

For example, fig 4.7, 4.8 shows in http://williamstallings.com/Extras/Security-Notes/lectures/blockA.html
10
votes
2answers
613 views

LaTeX: non-verse text in verse environment.

I'm writing text in LaTeX in the verse environment. But there are some parts the should not be in verse inside the verse. The way I've done it so far is to define a new environment that begins with \...
5
votes
1answer
8k views

How do I use the IEEE bibliography commands?

I'm trying to layout a short article using the IEEE latex style guide. I'm having difficulty with the final part of their bibliography instructions as I want to reference an external .bib file. I have ...
9
votes
2answers
606 views

amsmath align within list

In the code below, the equation within the itemize environment is too wide for the page, but I don't get an overfull hbox warning (which I find annoying because it's sometimes useful to know exactly ...
58
votes
4answers
96k views

How to include PDF pages without a newpage before the first page?

I am using pdfpages which works quite well. But this time, I want to include a 5 page pdf and the first page should be scaled down a bit such that above the first page is enough space for a ...
8
votes
1answer
2k views

Trick LaTeX into doing double superscripts

I have a function in my .sty sheet that does a second partial derivative: \newcommand{\hpartdsq}[2]{\dfrac{\partial^2 #1}{\partial #2 ^2}} But I'd like to pass it something that already has a ...
8
votes
3answers
18k views

Changing the font in the ToC?

I am using the package memoir and I redefined the fonts related to the chapters headings: \renewcommand\chapnamefont{\normalfont\Large\sffamily\scshape\raggedleft\so} \renewcommand\chaptitlefont{\...
21
votes
3answers
3k views

Typesetting LaTeX Source Code with the listings package

I am writing some documentation for a LaTeX package, in which I am going to be including some example LaTeX code. What is the best way to typeset that code? I know I could just use verbatim, but it ...
10
votes
4answers
3k views

How to use the exact same file for handout and presentation modes in beamer

I want to use the exact same file for my beamer presentation and handout. I do not like the need to comment out lines in order to create the handout or presentation (my current solution), nor do I ...
7
votes
2answers
2k views

Are ae and aeguill only needed when using CM fonts?

I am using the memoir class with the option extrafontsizes so as I understood this uses the LM fonts and at the same time set the T1 encoding. If this is correct, are the packages ae and aeguill ...
238
votes
4answers
142k views

LaTeX conditional expression

I would like to be able to set a flag at the beginning of the main flag (say output) that tells if I want to produce a paper document or an electronic document. Then I should check this flag to ...
13
votes
1answer
2k views

What is TeX used for?

I'm a student right now and I'm wondering if it would be beneficial for me to learn LaTeX as of right now and if it would have any use of it to me. I do quite a lot of writing but they don't require ...
4
votes
1answer
866 views

beamer blocks disposal in circle

I am happy with my beamer slides and I think blocks are nice to separate ideas... But I've seen some Cisco presentations (most probably powerpoint) with like an image in the middle and then multiple ...
12
votes
2answers
1k views

Merging Bibliographies

I have several .bib files, which I'd like to merge together into one. Due to the considerable effort involved in doing it manually I am looking for tool support. The only tool I found so far is PyBib,...
13
votes
2answers
3k views

Why does setting the paper size with KOMA-Script require TikZ?

Maybe I am just too tired, but I simply can't explain what is going on. The file \documentclass[a5paper]{scrbook} \usepackage{lipsum} \begin{document} \lipsum \end{document} produces A4 sized pdf ...
6
votes
3answers
414 views

How to skip both the first n rows & the last m rows simultaneously?

I am using showexpl.sty to display side by side the code snippet and its corresponding output. Because of the paper size limit, I intentionally want to remove the "redundant" rows, i.e., the first n ...
6
votes
2answers
250 views

How to get the equation to look in a required format?

I am still new in LaTeX - beginner. How can I have the equation to look like this (the example is shown in ms word): Lexical level: f o x + plural (‘+’ is a morpheme boundary) Surface level: ...
21
votes
3answers
12k views

Is there a way to use a document class/package from another folder?

I am building a document class and a set of packages to be used as templates for various documents. I'd like to aviod having to copy those over to another folder every time I use them, but I'd also ...
2
votes
1answer
742 views

How do I combine formatted page numbers in an index

If I format page numbers in an index, they show up in addition to non-formatted numbers. This minimal example: \documentclass{article} \usepackage{makeidx} \makeindex \begin{document} page 1 \...
2
votes
2answers
4k views

How to view pdf on Windows 7 using Vim with latexsuite plugin?

I sometimes use a Windows 7 laptop and I'm trying to set up Vim and latexsuite. I can compile with \ll and then go view the PDF by manually opening it. I would like to set it up like I've done with ...
23
votes
3answers
16k views

beamer: footnote text collides with navigation symbols

Footnotes in presentations are "usually not a good idea" (beamer manual, p. 130). Suppose, however, I have a valid reason to use the \footnote command in a beamer document (e.g., for printing a full ...

15 30 50 per page