{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

4
votes
1answer
2k views

Format nomencl in table style

For my thesis I wwant to format the nomencl in the same style as the rest. Simply put this means I want the nomencl to appear as follows: Symbol Quantity Unit t Time s rest ...
6
votes
2answers
937 views

Listings language definition keyword suffixes

I'm trying to create a listings language definition for ARM assembly and many of the instructions have prefixes/suffixes (i.e. BGT, BLE, BNE, BEQ branch instructions). Is there a way to define B with ...
3
votes
1answer
306 views

A way to change how the header of a AMS-LaTeX file is presented?

I'd like to change the way the header is presented in an AMS-LaTeX file... I based my file on testmath.tex. First, I'd like to allow my header, or represented by \markboth, to show up in the first ...
16
votes
2answers
15k views

Math inside tables and formatting

I'm trying to make a little summary of mathematic analysis, useful for my university, in LaTeX. I'm stuck in the problem of creating nice table, with alternate colouring containing equations with ...
13
votes
2answers
2k views

What's the proper way to write a vector with a single character subscript?

I've always(-ish) thought that the proper way to typeset a vector which is labeled by a letter with a single character subscript, like v1, was to set the arrow over just the letter, like \vec{v}_1 (I ...
3
votes
1answer
1k views

How to replace a hyphen (-) with an en-dash (–) automatically?

I would like to set up my LaTeX (XeTeX) document in such a way so that I could type a hyphen (-, the one on the keyboard) and it would get replaced with an en-dash (–, the "longer" dash) in the ...
14
votes
1answer
5k views

Globally customizing the style of figure captions [duplicate]

Is it possible to globally alter the way figure captions are rendered? For example, I might want to wrap all captions in \textit to better distinguish captions from regular text.
5
votes
2answers
3k views

Can you change lstinline without changing the global lstset?

Consider that I want to be able to write: \inline{some code or keyword} and just have it distinguished from the rest of the paragraph text, I've done that like this: ...
24
votes
4answers
7k views

How to make the optional title of a theorem bold with amsthm?

I use the code mentioned in Title of the theorem: \begin{theorem}[The title] Some statement \end{theorem} However with amsthm the optional title -- above: "The title" -- is neither bold nor italic, ...
4
votes
1answer
3k views

KOMA-Script: caption, subfig, and captionlabel

My problem is best illustrated with an example: \documentclass{scrreprt} \usepackage{caption} \captionsetup[subfigure]{font={sf,md,sl,small}} \setkomafont{caption}{\itshape\sffamily} ...
5
votes
1answer
504 views

Emacs LaTeX formatting paragraphs

I like the Format Paragraph function of Auctex/LaTeX in Emacs but it seems to move markup commands around. Is there any way I can format a buffer but only the plaintext sections of it so that it ends ...
0
votes
2answers
192 views

SO-style Markups for References in the Bottom of the Page in Bibtex-ed Document?

I often have a long bibliography and then later I find that I should have a notice like this buying-list in a project (not that important so not wanting them to the bibtex). I find it overkill to ...
21
votes
2answers
11k views

How to add a navigation window to a LaTeX generated PDF document?

Some ( if not most ) pdf ebooks have the option to view the table of contents in a left navigation window. I would like to add this option to my document as well. Question: How to add a navigation ...
2
votes
2answers
4k views

Formatting a LaTeX article to look really good [closed]

I have been using LaTeX to write scientific articles for about 6-months now. I know quite well now how to manipulate and create great content but don’t really understand the formatting/style side to ...
6
votes
2answers
2k views

How to create attendance sheets?

Is there a package for creating sheets you fill out by handwriting? Like for example attendance sheets, a list of key borrowers, a sign-off sheet for dangerous stuff etc. Basically some sort of ...
1
vote
1answer
649 views

Keep Format Settings in Lyx

I currently have a resume written in Lyx. I want to make some minor changes to it and just change its content. However, I want to keep the same format (i.e. the same margin, same indentation, etc.) I ...
6
votes
1answer
3k views

Nested enumerate list style

If I have a nested enumerated list style that I would like to use throughout my document, what's the best way to do it in LaTeX that will make it easy to change the style of all the lists in the ...
3
votes
3answers
2k views

Labels of list items CAPITALIZED + bold style

Is there a possibility to make the labels of description list items always appear CAPITALIZED and bold?
3
votes
2answers
355 views

Line ending with e.g. \\ \\* or \\[10 mm]

I am looking at some LaTeX source, trying to find out what different things mean. I am also reading the memoir manual. I have stumbled upon two backslashes being used at the end of lines, optionally ...
4
votes
2answers
199 views

Refer to some equation number in different environments

I hope there is a solution for this. When I refer to some equation I always get something like 37, but I would like to have (37). I could make a new command but the problem is I use many kind of ...
10
votes
2answers
872 views

Replacing all dots in a document

I want to replace all dots in a LaTeX document with a call to a macro. Just doing a search and replace on '.' won't help as this will not replace the dots generated by LaTeX, e.g. in section numbers, ...
16
votes
3answers
12k views

How do I get “et al.” to appear in italics when using \textcite or \citeauthor with biblatex

I'm using biblatex with the chem-rsc package option. I sometimes make use of the \textcite{<key>} or \citeauthor{<key>} commands to put the authors' name into text. When there are many, ...
5
votes
3answers
2k views

Placing text and equations inside a box

I have a paragraph that contains text, inline equations and centred equations, and I'd like to put the whole thing in a box that's centred horizontally in the page. It's a key paragraph, so I wanted ...
4
votes
1answer
1k views

Customizing Multiple Choice Questions in EqExam Package

I use eqexam for creating Multiple Choice Questions with randomized answers. Let's take the following example: \documentclass{article} \usepackage[allowrandomize,nopoints,proofing]{eqexam}% ...
4
votes
2answers
675 views

Representing D- and L- in chemical names

Using LaTeX, how does one typeset the D- and L- prefixes, which refer to dextrorotatory and levorotatory isomers. I have tried \footnotesize~D\normalsize and it looks okay, but didn't know if there ...
6
votes
1answer
468 views

Best way to display percentages in Sweave?

What is the best way to display percentages in Sweave? A simple example: The number 4 is \Sexpr{4 / 7} of 7. What is the best way to get the document to display: The number 4 is 57.1% of 7.
4
votes
1answer
986 views

How to color digits with the listings package

For my project, I've been using the listings package in order to color the keywords, comments, strings, and digits in the code. The thing is, I've managed to color the keywords, comments and strings, ...
8
votes
1answer
24k views

Matrix equation (esp. row vectors)

I'd like to write the matrix equation A = (x y) B (x y)^T, where (x y)^T is written as a column vector and B is a 2x2 matrix written as such. I can (almost) do this by, for example, the following: A ...
7
votes
1answer
4k views

Format page numbers

How can I control look of the page numbers? For example, in the MWE below: \documentclass[12pt]{article} \usepackage[backend=biber]{biblatex} \usepackage{fancyhdr} ...
7
votes
5answers
1k views

Disappearing Footnote

Goals: I would like to have the title, author, date, and the table of content on the same page. I also want the capability of being able to have a footnote to the author. What I have done so far: I ...
11
votes
1answer
246 views

xindy: formatting the first letter of the first entry of a letter group

How do I format the first letter of the first entry of a letter group in an index generated with xindy? The result should look something like this: ... \indexspace \item \textbf{b}athroom\quad{}1 ...
3
votes
0answers
126 views

sansmath and boldmath--mutually exclusive? [duplicate]

Possible Duplicate: Make mathfont respect the surrounding family This question is similar to the Bold, italic math (\bm) and sansmath question, but with a few more requirements. I am ...
20
votes
3answers
4k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
7
votes
3answers
1k views

Is it possible to change .ist (index style) file parameters mid-document?

Apart from the general document layout, the layout and formatting of indexes depend on two things: The parameters of .ist (index style) files that are used by makeindex when transforming raw index ...
7
votes
1answer
1k views

\textbf inside a lemma

I have defined lemma and use it as follows: \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} ... \begin{lemma} abc_\textbf{indice} \end{lemma} It turns out that the indice ...
3
votes
1answer
670 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: ...
16
votes
4answers
17k views

Diagonal dots spanning multiple lines/columns of a matrix

I'm filling in large sparse matrices, for example \begin{bmatrix} 0 & -2 & 1 & & -1 & 2 \\ 2 & \ddots & \ddots & \ddots & & -1 \\ ...
4
votes
0answers
94 views

Create boxes to indicate keyboard keys [duplicate]

Possible Duplicate: Keyboard Font for LaTeX How would I create boxes around keyboard keys, similar to Ctrl? I'm using TexMaker on Windows, but have got Linux (Ubuntu) based alternatives ...
8
votes
1answer
1k views

Books, Parts, and Prologues

I'm trying to nicely format a fairly large novel, with the following structure: Preamble Prologue Book I Part I Chapter 1 ... (etc.) Epilogue Postamble I'm using memoir and ...
5
votes
1answer
349 views

Non-italicized text in a \newfixedcaption

This is a very specific follow-up question to this answer given to this question. I want to insert a picture, and use overpic to label it, in between two paragraphs of text in a thm environment ...
8
votes
4answers
541 views

Long Underscore to Divide Sections of Text

Is there a way to write an underscore that extends along the full length of the page, to represent a break in sections? As of now, I'm using the \blank{?cm} command explained in this answer, but with ...
12
votes
5answers
11k views

Makeindex - Styling the \printindex?

I have two questions: Is it possible to change the titel of the printindex command? It is "Index" by default. How can I format the index as a multi column, alphabetic sorted list?
3
votes
1answer
530 views

How to change formatting of \part in a .cls file?

I'm using an external .cls file, which is based on the report.cls template. I need to change the formatting of the top-level parts (i.e. \part objects) in the table of contents, and on the \part ...
30
votes
3answers
26k views

Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes ...
3
votes
1answer
758 views

Changing subfig \subfref format

I'd like to know how to hack subfig in order to change the format of \subref. The current format, when subfig is initialized with listofformat=parens yields output like 4.5(b) . I'd like to add a ...
4
votes
1answer
232 views

How to put side notes in available whitespace, not just in margins

I'm creating a document that shows a template of a documentation standard. I'd like to put in some miscellaneous notes for the template placeholders. Something like [date1] [COMMENT: Please use ...
3
votes
2answers
323 views

Having all one single line with black background and text in white

I want to have one line of text with black background and the text in white. The line is alone and so it can be one paragraph. I would like the coloration for the full width of the line and not only ...
3
votes
1answer
67 views

Formatting text using `…` only in one specific environment

I would like to make the character ` active in one environment so that `some text` will be formatted using black background and white for the text. This feature must be activated only inside the ...
3
votes
3answers
5k views

\normalfont in new theorem-like environment

How can I get universal in my new environment normalfont instead of italic (default)? I thought it was something simple like \newtheorem{exercise}{ \normalfont}[chapter] ` but doesn't work. I could ...
7
votes
4answers
641 views

Apply formatting to outermost parentheses

I have some text information where I need to apply a text format to all the outer most parentheses such as making them larger and/or bold. In a sense I want to process text like ...