# All Questions

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 ...
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 ...
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 ...
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?
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 ...
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.
9k views

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, ...
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 ...
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 ...
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 ...
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: --------- ...
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 ...
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 ...
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?
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 ...
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?
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 ...
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.
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} ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
2k views

### Doing maths with distance values in LaTeX source code

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 ...
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 ...
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 ...
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 ...
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 ...
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].
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?
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 ...
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?
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.
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...