{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

5
votes
2answers
2k views

Strikethrough in Section Title

I am currently using ulem and \sout to do strikethroughs, but what if I want to strikethrough in a section title? I'm using hyperref and receive the following error when I use \section{\sout{..}}: ...
3
votes
3answers
999 views

How to box every digit of an integer ?

What is the LaTeX command for boxing a number like for example 123 as: |1|2|3| I have seen it in a book but can't find it anywhere in TeXnicCenter, which I use.
6
votes
1answer
199 views

Uneven subscripts. [duplicate]

Possible Duplicate: Supremum of the infimum Is there a way to make the subscripts appear evenly in the following code: \sup_{a\in A}\inf_{b\in B}? That is, so that a\in A doesn't appear ...
2
votes
1answer
588 views

siunitx S-column in table: can I combine scientific notation and decimal numbers in one column?

I have a table with values exported from a statistics software, where the values are formatted like this (see example below): Some (very small ones) are in scientific notation, some are in "normal" ...
9
votes
2answers
8k views

Title of the theorem

in my paper the text inside theorem is italic while the word Theorem 1 is bold and not italic. I would like to have a title of the theorem also not italic. The example is here: Theorem 1. (The title) ...
5
votes
3answers
1k views

Glossaries: Make a glossary entry recognizable in printing

How do you make it visible to the reader that the printed word/term is an entry in the glossary? In my PDF on the computer, I just see it because I use the hyperref package and there's a red box ...
10
votes
1answer
385 views

Is there a package for automatically managing table headers and formatting?

Is there a package for automatically managing table headers and formatting? For example I don't want to have to manually embolden every header entry individually, not to mention the extra clutter ...
1
vote
1answer
2k views

How do I convince tocloft to put the word 'Figura' ahead of entries in my List of Figures?

How to customize list of figures, adding word FIGURA to appears in the table of contents? I changed \newcommand{\cftfigfont}{Figura }, but in the summary, it's not linked (hyperref). How to solve it? ...
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
305 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 ...
7
votes
2answers
483 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 ...
31
votes
1answer
27k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
2
votes
1answer
1k views

How do I add parfor in algorithmic environment?

I want to have a parfor loop in my algorithm listing (it should work exactly as standard for loop works). How to either change the displayed name of for loop or add my own loop which will keep the ...
3
votes
1answer
430 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}} ...
18
votes
3answers
2k views

How to set superscript footnote mark in the text body but normalsized in the foot?

I want the footnote mark to be superscripted in the text body (e.g. Footnote mark²), but normalsize in the foot, to be shown like: ________________ 2. Some footnote text Also, it would be nice if ...
15
votes
4answers
990 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 ...
3
votes
3answers
3k views

How to change heading font style in memoir?

Please take a look at the image below. How do I change the heading font style? As you can see it wraps over in two lines because the chapter title is too long. I did read memoir manual but the only ...
2
votes
1answer
379 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 ...
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 ...
5
votes
4answers
346 views

Need help with an equation

I have little trouble with my TeX course. I've already completed all the assignments except one. Yesterday I was up until 4AM and still didn't get it right. Maybe someone could give me some ...
29
votes
6answers
1k views

How do I typeset morse code with LaTeX

I am writing an article regarding the history of the Morse code and I am having difficulties printing the dots and dashed (they get combined when the document is printed). Is it also possible to ...
15
votes
2answers
847 views

Custom quotation style which depends on length of quotation

I am writing my PhD-thesis and I need to meet certain formatting requirements in regard to quotations. I know there is the quote environment. But in this conditions it doesn't match my universities ...
25
votes
2answers
20k views

How to format an inline source code

I have a document where I quiet often refer to source code element, such as class names, I wanted to format these strings differently, but at the beginning I didn't want to fiddle with various options ...
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 ...
10
votes
2answers
5k views

How to fix “Invalid format of field 'X'”

When I'm compiling my tex-files, I'm getting this error: pdflatex> Package biblatex Warning: BibTeX reported the following issues pdflatex> (biblatex) with 'xyz': pdflatex> ...
7
votes
1answer
289 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
753 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: ...
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 ...
16
votes
3answers
3k views

Underline my name in the bibliography

For several documents I'm preparing, I need to highlight (or underline) occurences of my name within the bibliography. Is there an easy way of doing this?
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 ...
10
votes
2answers
3k views

Chapter formatting

I use report document class and the thing is that I would like to remove Chapter x phrase, add chapter number before chapter title and remove blank place between chapter name and top of page. For ...
1
vote
1answer
870 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
183 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
558 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 ...
44
votes
2answers
47k 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
229 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
711 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 ...