{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

14
votes
2answers
2k views

Define an “escape underscore” environment

I am writing a text document in LaTeX where I need a lot a words with underscores: foo_bar_1, more_bar_2_long_expression_3. I know about the underscore package, but for some reason the [strings] ...
3
votes
1answer
3k views

appendix formatting: section number before \appendixname

Here is my situation: Source code in preamble: \usepackage[title,titletoc]{appendix} \renewcommand{\appendixname}{priedas} in document: \begin{appendices} \section{Tekstai} Nemo enim ipsam ...
3
votes
2answers
302 views

“Problem description” to look like abstract

I would like to have my "Problem Description" to have the same look/layout as abstract. Any way I can "clone" the the abstract command? preamble: \documentclass[pdftex,10pt,b5paper,twoside]{report} ...
5
votes
1answer
376 views

biblatex: What's the first character of a field?

I would like to know, what's the first character of the value of the editor field. If the character is a curly bracket "{" the value should be printed for example bold, if the first character is ...
9
votes
2answers
2k views

Double strikeout

I'm using the ulem for strikethrough, but need two formats of strikethrough. I'm currently using \dout{text} which looks good, but the second\xout{text} makes the base text a little too unreadable. ...
7
votes
2answers
475 views

How to show a placeholder instead of an equation?

I am looking for functionality similar to the endfloat package but for equations. Instead of displaying an equation I would like to display a placeholder such as [equation 1 here] Does anyone know ...
4
votes
3answers
3k views

Style individual epigraphs or leave default?

I am writing a doctoral thesis and I have a fair few epigraphs after each of my chapter titles. I can't decide whether it is better to style each of the individual epigraphs, or have a generic styling ...
3
votes
1answer
429 views

glossaries: different appearences for long and full displayed acronyms

Consider the following minimal example: \documentclass{article} \usepackage[acronym, shortcuts]{glossaries} \makeglossaries \newcommand{\abbr}[1]{\underline{#1}} ...
15
votes
4answers
975 views

How can I make (La)TeX prefer to fill centered lines

My thesis formatting requirements ask for multiline chapter and section titles to be a maximum of 4.5 inches wide with any subsequent lines being wrapped such that they are sucessively shorter, ...
4
votes
1answer
270 views

How do I re-use the book's text for different document formats?

Any ideas how I could re-use the book's text that I have written (it's in chapter1.tex, chapter2.tex, etc.) in various document formats (a4, letter, mobile device format, etc). The problem I am facing ...
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 ...
2
votes
1answer
378 views

Changing the style of index levels

I would like to change the style of the levels in an index. For example, let's say I have an index like: Foo bar, 1 barbar, 2 Bar foo, 5 and I would like the first level to be ...
7
votes
4answers
6k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
6
votes
3answers
2k views

paralist: how to format the counter

I use the following code to obtain a listed item \documentclass{article} \usepackage{paralist} \begin{document} \begin{inparaenum}[(a)] \item first item, \item second item, \item last item ...
7
votes
1answer
284 views

siunitx package, doesn't seem to format imaginary numbers correctly

If I use the siunitx package to generate an imaginary number e.g. \SI{120i}{\per\centi\meter} then it places a 0 before the 120 (probably some artifact of expecting complex notation with a real number ...
3
votes
1answer
747 views

Underlining a coloured DNA sequence

In the posts to the question of Timtico (here) several ways have been proposed to colour the As,Ts,Cs and Gs differently within a DNA sequence. What I want is also to be able to underline some ...
3
votes
2answers
2k views

How do I add text to the bottom left of each page?

I'd like to add text "Prepared for Name, Surname" at the bottom left on each page of the PDF document. Anyone knows how to do it easily?
7
votes
1answer
2k views

Theorem formatting

\theoremstyle{remark} \newtheorem{example}{Example} Then: \begin{example} Some text \end{example} Output is: Example 1. Some text What is the way to automatically obtain without indent: ...
2
votes
1answer
163 views

Same style over the whole document for a specific word

I am writing my thesis and I'm looking for a way of displaying the project name with the same style all over the place. More specifically, when I'm writing 'MyProjectName' it should always be printed ...
27
votes
3answers
6k views

German language: use of comma in numbers

In German the comma rather than the period is used as a decimal separator and the dot is used as a thousands separator: 12.345,67. The comma creates some unwanted space when used as in $12.345,67$. Is ...
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 ...
1
vote
1answer
844 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. ...
4
votes
3answers
743 views

Tex like formatting on blog posts

When I write reports for school I usually use an IEEE formatted LaTex document these days because I feel like it just looks so much better then anything I can seem to do in Word. I have a blog and ...
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 ...
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) ...
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 ...
4
votes
2answers
703 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 ...
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. ...
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?
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?
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]$ ...
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, ...
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
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 ...
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 ...
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}} ...
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 ...
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 ...
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 ...
4
votes
1answer
313 views

Adding a label on a margin (instead of line number) in latex algorithmic package

I would like to mark (e.g. with a *) a line in a pseudo-code typeset with the algorithmic package. I would like the label to appear on the left margin, instead of the line number. Is that possible? I ...
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 ...
10
votes
1answer
1k views

Changing number format in ToC

I'm using the tocloft package to alter the looks of my table of contents, but there's one thing I can't find in the documentation: splitting the number by level, to insert other delimiters than ".". ...
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?