3
votes
1answer
943 views

In ModernCV, how to define a command in the cls style file to allow lines with right-aligned word.

I am using ModernCV for my CV. I want to achieve something like the following example (please note that the address "align2@rightMargin.com" is aligned to the right margin): Please note the last ...
7
votes
1answer
1k views

How to make memoir not put bibliography on next recto page

I am using two columns in a memoir document and when I place a bibliography using bibtex for some reason it ends up on the next recto page. I am writing a book with multiple chapters and I want each ...
2
votes
2answers
655 views

ignorespace and unskip in verbatim/listings?

I am writing a \bashDemo macro that will (a) execute its argument in a shell, e.g., bash, script, and (b) display the argument in a listings. So, \bashDemo ls -ls > myfiles \END will both run ls ...
16
votes
3answers
19k views

How to format the chapter heading?

How can I change the chapter heading of the book class to typeset centered chapter names as shown in the image above?
5
votes
2answers
188 views

Up-to-date TUGboat bibliography database

Where can I find machine-readable bibliographic data for at least all publicly-available TUGboat articles? I've found CTAN:/info/digests/tugboat/t-of-c/, but that doesn't seem to have been updated ...
19
votes
2answers
1k views

Automated age calculation

How can I calculate my age at compile-time in LaTeX? Something like: I'm \myage{day}{month}{year} years old. would be most awesome.
7
votes
4answers
9k views

Missing $ inserted

I am new to latex. I am trying to compile someone else's document. I have all the correct packages installed, but I get the following error: *Overfull \hbox <37.8394pt too wide> in paragraph ...
9
votes
6answers
1k views

Function like macro?

If you have programmed in a high level programming language, you must be familiar with the concept of functions, subroutines which return a value. For example, if you write in C, you can write a ...
2
votes
0answers
470 views

PicTeX files inside a Plain TeX file [closed]

I am using Plain TeX to write my (scientific) texts which usually include many awful equations and graphs (or figures) I am constructing with unsurpassed PicTeX. My big problem is that with my MikTeX ...
8
votes
4answers
5k views

Problem adding subscripts and superscripts [duplicate]

Possible Duplicate: Cursive text after _ I need to have some subscripted and superscripted text in my thesis document. But when I try to do it the way as H_{2O} or S^{2}. I get an error at ...
11
votes
1answer
8k views

Package ifpdf Error

I am trying to use amspset. Here is my minimum code: \documentclass[12pt,letterpaper]{amspset} \usepackage[margin=1in]{geometry} \usepackage{graphicx} % info for header block in upper right hand ...
1
vote
2answers
5k views

Equation too long [duplicate]

Possible Duplicate: How can I split an equation over two lines I have a long equation, $\operatorname{E} (Z_{n+1} - Z_n | X_1,..., X_n) = \operatorname{E} (S_{n+1}^2 - (n+1) \sigma^2 - ...
1
vote
1answer
609 views

Using Sweave to include lattice graphics - issues with colour

I am using Sweave and the R package nlme: when including lattice graphics, (encapsulated in the print() command), the .eps files that are generated are all in black and white. The original graphic, ...
2
votes
1answer
573 views

Flashcards class installed incompletely on MiKTeX

I don't have much experience with low-level LaTeX. MiKTeX (my version is basic-miktex-2.9.3972) always installed needed packages "on-the-fly". Trying to compile a document using 1.0.1 version of ...
6
votes
1answer
464 views

How do I call microtype's \SetProtrusion in the preamble?

In this answer about full justification for italic text, I used microtype's \SetProtrusion to get better-looking margin kerning for italics. It works fine, but I had to call \SetProtrusion after ...
2
votes
2answers
1k views

Starred version of “xtabular” not working

I want to insert a long table in a two-column paper. I tried "tabular" first, but the problem is that it doesn't divide the table among pages. Then people in this post suggested that I use xtab: In ...
5
votes
3answers
1k views

How can I change the increment of the page numbering?

I'm trying to create a somewhat specially formatted document, with some text on the recto (right side) and a graphic on the verso (left side). This is for a brochure of sorts. See below: --------- ...
24
votes
5answers
4k views

Drawing stars/similar with Tikz

I'm writing a review for a book at the moment, and I thought I'd be clever and show off what LaTeX is capable of by adding a x-out-of-y stars graphic. Tikz can do many things so I would have thought ...
8
votes
2answers
166 views

Are \count1, …, \count9 useful?

To quote TeX by Topic, "whenever a \shipout occurs, TeX also writes the values of counters 0–9 to the dvi file and the terminal." Do any dvi viewers or converters (e.g., dvips) make use of ...
32
votes
2answers
11k views

How to repeat top rows (column headings) on every page

I have a big table which contains hundreds of rows. I want to repeat the top two rows on every page of the table. How can I do it in TeX?
2
votes
3answers
275 views

How to set the width of the cell and allow it to take multiple lines?

I have a table below \documentclass[a4paper,12pt]{article} \begin{document} \begin{quote} \begin{tabular}{|c|c|c|c|c|} \hline \multicolumn{4}{c}{Table title}\\ \hline Fuze Type ...
1
vote
1answer
1k views

Running multiple Winedt processes on Windows 7 x64

Is it possible to run multiple versions of Winedt, Build: 20100317 (v. 6.0) on Windows 7 x64 system to edit multiple projects?
9
votes
2answers
823 views

Intersection with rays in TikZ

can anyone tell me how to calculate intersections of rays and objects in TikZ? Normally the syntax is intersection of p1--p2 and p3--p4, but I would like to intersect the line segment from p1 to p2 ...
37
votes
1answer
10k views

Bell Curve/Gaussian Function/Normal Distribution in TikZ/PGF

Can anyone tell me how to plot a gaussian function/bell curve using TikZ/PGF? I'm basically looking to implement something like PSTricks's \psGauss command.
13
votes
2answers
2k views

Lineno - numbering abstract's lines.

The package lineno.sty is not numbering my abstract's lines. Any suggestions? Thanks. \documentclass[a4paper,12pt]{amsart} \usepackage{indentfirst} \usepackage{hyperref} \usepackage{showkeys} ...
42
votes
5answers
35k views

How can I get the figures not to be pushed to the end of the document?

For some reason, my figures get pushed to the end of the document. I tried begin{figure}[t], [h] and other options, but none helped. Any ideas how to get the figures to appear much earlier in the ...
2
votes
1answer
1k views

LaTeX project file system structure and Ouput dir on TeXworks

I am writing a report that contain numerous sub items. For better organizing the report, it is broken in many smaller pieces (around 60), this is done to make it easier for to work distributed with ...
4
votes
2answers
377 views

singly embedded sum and product signs

I deal with a lot of double sums / double products. I would like to be able to massage TeX into producing something like this: (that was made with the gimp) ... and a product in product symbol as ...
2
votes
2answers
823 views

What is the font in this document? [duplicate]

Possible Duplicate: How do I find out what fonts are used in a document/picture? What is the font used in http://www.math.harvard.edu/~kronheim/khovanov-unknot.pdf?
1
vote
1answer
426 views

Table Out of Page [duplicate]

Possible Duplicate: In LaTeX, how can I make a table that takes up more than a single page? I have a big table which one page is not enough for. I would suppose that since LaTeX is WYSIWYM ...
14
votes
2answers
3k views

How do you define your environment such as to use […] for some parameter(s)?

In an environment, say \newenvironment{whatever}[3]{...}{...} you instantiante it (if that's the word for it in LaTeX) by \begin{whatever}{first}{second}{third} ... \end{whatever} But how do ...
17
votes
3answers
2k views

Doing maths with distance values in LaTeX source code

I have a sty file with the command \newcommand{\foo}[1]{\noindent\kern#1} but I'd actually like to have something like \newcommand{\foo}[1]{\noindent\kern{#1 *0.5}} meaning that I'd like to have ...
1
vote
1answer
572 views

Drawing lines in tables?

I use the following code to draw a table: \makebox[\textwidth]{% \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|} \hline & $--$ & $-$ & $-/+$ & $+$ & $++$ &\\ \hline The ...
1
vote
1answer
725 views

Why does my linebreak not work?

I have the following code: \section{Questions} \freequestion What is the largest (LOC) class in the project? \par \makebox[\textwidth]{% \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|} \hline ...
8
votes
3answers
1k views

Macro for figure position?

Why is the following minimal example not working? I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but ...
4
votes
1answer
2k views

Listings package not correctly showing PHP strings

I'm trying to display some PHP code in a LaTeX document using the listings package. Other languages appear fine (HTML for instance) but PHP seems to be ignoring any strings within the code. The rest ...
13
votes
3answers
351 views

Expansion of first token in a tabular cell

Background I currently do some work on the collcell package which collects the content of a tabular/array cell and provides it to a user defined macro, e.g. using ...
16
votes
1answer
2k views

beamer's fragile frame as default

Is there a way to specify fragile mode as default for all frames? Now I know how to define a fragile frame: \begin{frame}[fragile].
18
votes
4answers
7k views

End of paragraph with ornament

How to make a line with ornament like one below {TEX} logo on this site? What is specific term for it?
26
votes
5answers
27k views

How to include a document into another document?

I have two documents A and B. Both of them are separate documents. But document A also has to include document B. Now if I use \include{B} i get the following error: ! LaTeX Error: Can be used only ...
4
votes
2answers
1k views

default font name

how can i get the default font name? \the\font outputted nothing in my case. for the default font, does it use any cmap file?
46
votes
7answers
24k views

Is it possible to produce a PDF with un-copyable text?

Is it possible to produce a PDF with un-copyable text? I mean, when you want to copy text from the PDF, you can't copy it or what you copy is nonsense characters.
9
votes
5answers
9k views

Questionnaire template? [duplicate]

Is there a template available that allows me to create questionnaires like this one? http://www.ergo-online.de/site.aspx?url=html/software/verfahren_zur_beurteilung_der/fragebogen_isonorm_online.htm ...
8
votes
3answers
2k views

Create a series of connected, list-filled boxes (flowchart?)

I would like to create a series of horizontally linked 'text boxes', with arrows between each one. Each box will contain some text (probably a list with a title). I would like it to look something ...
8
votes
1answer
2k views

Multiple figures inside a subsection

I have an x amount of figures that I want to display inside a subsection. The subsection doesn't contain anything else. Currently the images are automagically put on pages from other sections. What is ...
4
votes
1answer
2k views

How to make good bibliography with hyperlink?

I have been struggling to have something like this: 1) In the text: 'It has been shown (Arnold et al., 2011) that space technology is expected to...' 2) In bibliography: Arnold, J. P., S. ...
11
votes
6answers
5k views

Dashed box environment

I am new to LaTeX and I'm having a hard time trying to create a dashed box environment without success. Can someone please share a code for a dashed box environment such as the one in the image? I ...
8
votes
2answers
5k views

How to draw inside a TikZ node, using node style?

I would like to define a node style, so that the node will look like the LaTeX symbol \oplus, i.e. a circle with lines from north to south, and east to west. (I also have more complicated examples in ...
2
votes
1answer
2k views

Adjust spacing of algorithm float caption

Background Using the algorithm package to display source code listings. Problem The LaTeX (LyX) code (test.lyx) is at: http://pastebin.com/QRWDhA7E An example graphics (query.png) file is at: ...
28
votes
4answers
8k views

Faded drop-shadow using tikz-based rounded rectangle?

Background Epigraphs are in a box with rounded corners. The boxes have a drop-shadow. Example Picture #1 shows a shadow, while Picture #2 shows a shadow that fades out (soft blur): Problem ...

15 30 50 per page