{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

1
vote
1answer
846 views

Last sentence broken between two pages [duplicate]

Possible Duplicate: Widow word on a page? I thought LaTeX wouldn't do that. Hello, there is following text: Some text, some text, .... This sentence probably will be broken. And the ...
0
votes
0answers
182 views

Table of contents [duplicate]

Possible Duplicate: Table of contents How will i create a table of contents to have an output look like this? hope you can help me. Sorry for the incomplete data of my question last time. ...
3
votes
1answer
486 views

Personalizing Table of contents

I want to make my table of contents to have the words "Chapter", "Title" and "Page" written in uppercase, like "CHAPTER", "TITLE" and "PAGE". My document class is Book. How can I do it?
2
votes
1answer
9k views

Format chapter's heading

I want all my headings to have these characteristics: 12pt Center aligned Bold Times new roman font But when I write \chapter{Introduction}, I can only manipulate the name of the chapter, not the ...
12
votes
2answers
2k views

printf-style number formatting in LaTeX

Is there a way to use printf-style number formatting strings in Latex like %.3f, %d, etc? I'm loading some data from csv files using the datatool package and would like to have it displayed exactly to ...
3
votes
1answer
3k views

formatting abstract

How do i format the abstract title? Also, i thought this was built into latex, but in LEd it says it doesn't recognize it, so i add \usepackage{abstract}. Is this suppose to be like this. Sorry new ...
3
votes
3answers
539 views

New to LaTeX, want to write recommendation report

I'm just starting LaTeX, but i want to learn how to write documents with it. I have to write a recommendation report and thought this would be as good of a time as any to learn. I started looking at ...
43
votes
2answers
46k views

Change caption name of figures

How can I modify the caption name of a figure? For example I have \caption{This is a figure.} and by default the caption appears as Figure 1: This is a figure. However I want Fig.1 - This ...
6
votes
1answer
6k views

Italics/roman in BibTeX

I use a BibTeX style which automatically italicises booktitles (using \emph). I have certain entries which contain italicised words in the title. I would like these to appear non-italicised (in roman) ...
8
votes
1answer
3k views

Layouting the index-page

I'm using \printindex for my index and I wonder how to have bold page numbers ordering by first character of the indexed word and have dots in between the name and page number like A Apple ...
2
votes
0answers
290 views

Emphasize first line of paragraph in LaTeX [duplicate]

Possible Duplicate: Changing the style of the first typeset line of a paragraph Trying to find out how to emphasize the line of text automatically. The issue here is that I have no idea ...
0
votes
1answer
228 views

How do I format titles that are smaller than \chapter title?

So I am writing a book on AWK, and the first \chapter is called "Line Spacing". In this chapter I a dozen of various line spacing methods, such as 1. Double-space a file. 2. Triple-space a file, etc. ...
4
votes
2answers
704 views

How to typeset a reference to a footnote?

I want to enter in a footnote a reference to another footnote (in this case it's on the same page above). I found out how I can create the reference, so that it is formatted like a "normal" footnote ...
21
votes
5answers
1k views

typesetting different characters with different colors in a DNA sequence

I have created a macro which I used to format DNA sequences, as they should be in the monospaced font and uppercased: \newcommand{\DNA}[1]{\texttt{\uppercase{#1}}} Now I have a column with some ...
3
votes
1answer
646 views

Big Decorative Quotes

I want to make some definition in my thesis very clear, by putting it in its own line, with stylish, decorative (or whatever you call it) quotes. How can I do that in Latex?
13
votes
4answers
7k views

Adding parentheses around subfig references

Say I have a figure with two subfloats inserted using the subfig package. When I reference them with \ref{myLabel} I get this Figure 3.5a and 3.5b. But what I want is this: Figure 3.5(a) ...
9
votes
2answers
2k views

footmisc package - remove star from footnote symbols

I'm using footmisc package for handling footnotes. I want to remove the star (*) from the symbol list? I tried all the combination of \DefineFNsymbols*{}{} and \setfnsymbol{} except the correct ...
9
votes
2answers
4k views

Add text to TOC without dotted-lines and line number

Despite following many suggestions on the net, I have the following issue. I am using TeXnicCenter and MiKTeX. [I have posted the same on Latex Community Forum]. I have not used/tried the tocloft ...
6
votes
2answers
943 views

“Pretty-printing” numbers with significant figures

I like to use LaTeX to display data in figures and tables. I've used arrayjobx.sty and fp.sty to extremely good effect to handle data that comes out of, e.g., Excel or other Windoze-world data ...
2
votes
1answer
276 views

what are the ways to align conditions in cases

For example, the following is not very nice: [f(x)]_N=\begin{cases} f(x) \text{ if } f(x) \le N, \\ \newline N \text{ if } f(x) \gt N. \end{cases} How can I make it nicer?
34
votes
3answers
3k views

How to typeset large numbers

I need to typeset some very large numbers that span a number of lines, is there a way in LaTeX to do this?
7
votes
2answers
638 views

Formatting crystallographic indices

I would like to make a command in LaTeX that can be used like this: \zoneaxis{1 2 -3} \zoneaxis{2 -1 -1 10} and would produce this: $[1\,2\,\overline{3}]$ $[2\,\overline{1}\,\overline{1}\,10]$ ...
8
votes
2answers
812 views

How to get two column references with author-year style

Is there a way to get a two column layout for author-year-citations with a label of "(Wolfram 2002)" in the first column and "Wolfram, S. 2002. A new kind of science. Wolfram Media, Champaign, Ill." ...
11
votes
2answers
2k views

Options and suggestions for hyperref font?

Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text ...
7
votes
1answer
2k views

Line of dots in Table of Contents?

In my ToC, the "Bibliography" entry is treated as a chapter heading, so has no line of dots to the page number. However, as it has no sections, my publishers would like the line of dots. Same for ...
1
vote
1answer
847 views

Change BibTeX output formatting?

I am using the bibliography style "plain", which in a Technical Report, formats "Technical report" in roman font. However, my publishers want "Technical Report" to be capitalised, and in italics. ...
5
votes
1answer
703 views

How to typeset dimensional tolerances (mechanical engineering) with LaTeX?

Is there a package which allows to typeset dimensional tolerances as used in mechanical engineering like: ? I have to use them in the text and wonder how to do that best. So I'm searching for a ...
5
votes
2answers
2k views

Maintaining table format with space between rows

I want to put spaces between rows in a table however my current implementation cuts off the vertical lines. I know I can replace \\with {} \ {} \ {} ..., but is there a more elegant solution? ...
5
votes
2answers
689 views

Line wrapping on narrow pages

I'm trying to format a long paper of mine for the kindle. The following works, but there's a problem. \usepackage[paperwidth=9cm, paperheight=11.5cm, top=0.1cm, left=0.1cm, right=0.1cm, ...
39
votes
4answers
5k views

Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?

I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font ...
4
votes
1answer
81 views

Command for formatting a special term

How can write a new command which formats a certain 2-word-term always in a special font, all uppercase, with the line-height of the uppercase characters being the same as the line-height of down-case ...
2
votes
1answer
866 views

Change the equation number in alignat

I have the following equations with-in alignat environment $\begin{alignat}{4} &p^0\colon\od{u_0(x)}{x} = 0 \quad &\text{with} \quad u_0(0) = 1, \\ &p^1\colon \od{u_1(x)}{x} -u_{{0}} ...
2
votes
1answer
572 views

Caption Formation for Figure

I use the caption package. Somehow I got a period between the type (Figure) and the separator (:) When I wrote listformat=empty, for the Table of Figures, I just got the period and then the ...
20
votes
1answer
612 views

Elisions in mathematics

Knuth incorporated many of the typographical rules for mathematics in the TeX engine. However some rules were left out. One such case is the use of elisions in equations. Sometimes \cdots are used and ...
8
votes
5answers
927 views

Wrap text round brackets

I want to accomplish this effect with LaTeX: I have a slight idea of how to do that using \left{ and \right} on math mode but I’m not sure. If there’s a package that helps to do that, coding would ...
7
votes
2answers
937 views

Spaces behind \textgreater not working as expected

I have the following code: \textit{WMC \textgreater average} But the text looks like this: WMC >average It does not even change if I add even more spaces. So what am I doing wrong?
4
votes
1answer
4k views

Complex Table Layout

I'm trying to display a fairly complex table using Latex. Here is what I want it to look like (formatting, alignment, borders, columnspan, and rowspan). I would also like the columns to be fixed width ...
4
votes
2answers
349 views

Position line in a resume

I am new to LaTeX, and I want to create a command that will display my previous positions formatted appropriately in a resume. The format I am looking for is this: 02.07.2009 - 02.07.2010 ...
12
votes
4answers
1k views

Replace . (period) by , (comma) in numbers

I pass a bunch of numbers into a custom command defined via \newcommand{\mycmd}[1]{...}: \mycmd{1.12} \mycmd{5.32} \mycmd uses the number to draw a certain figure. On top of that, I would like to ...
26
votes
4answers
3k views

How to separate table content and table style

I want to know if there is a way to separate table / content for table style (think CSS). Like to have only data specification \begin{tabular} H1 & H2 & H3 & h4 \\ V1 & V2 & V3 ...
2
votes
1answer
942 views

Is italic + less-space formatting of \subparagraph typographically sensible?

As discussed in Difference between \paragraph and \subparagraph in scrreprt?, my formatting does not make a difference between \paragraph, as the proposed workaround does have no effect, if the option ...
12
votes
2answers
2k views

How to insert code and graphic in textbox

I want to put a graphic and a little linux bash code in a textbox, like the picture blow... with the follow in problem: all in a textbox with yellow backgroud left part is a graphic (a finger)... ...
4
votes
1answer
968 views

Difference between \paragraph and \subparagraph in scrreprt?

I'm using scrreprt for writing and (at least for me without any typographic education) I don't see any difference between a section typed as \paragraph or \subparagraph. My questions: Is there a ...
8
votes
2answers
6k views

Changing the TOC style of an Article document-class

When typesetting an article documentclass, the sections appear as bold in the table of contents, with no leading dots. I would like to change these to non-bold, and insert some leading dots. I tried ...
44
votes
3answers
90k views

How can I underline a single word with LaTeX?

Given a simple paragraph, how do I underline a word in that paragraph? (Note: I post this here because it wasn't really obvious using google or this site and my TexNicCenter is somehow missing this ...
5
votes
1answer
874 views

How to show glossary entry name in bold when using long style?

I am using the glossaries package in order to create a glossary. If I use: \printglossary[type=main,style=list] I get entry names in bold, but the layout won't be the one I wish. If I use: ...
5
votes
1answer
2k views

How to change the way theorems are displayed with LyX?

The theorems are currently all displayed in bold, but I would like to display them in small-caps. My question is much like this one. However, I am using LyX with an AMS style document class, and was ...
25
votes
3answers
19k views

How can I make a horizontal dashed line?

How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.
6
votes
2answers
2k views

Formatting each part/section/subsection

Are there some magic lines to be placed in the preamble that would, like in CSS, specify how each generic section or subsection in the whole document should be formatted?
10
votes
1answer
858 views

Overriding italicized list counters in plain theoremstyles

Using a list environment inside of any theorem defined with \theoremstyle{plain} results in italicized counters. That is, the following example \usepackage{amsthm} \usepackage{enumerate} ...