{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

34
votes
6answers
6k views

How to output a counter with leading zeros?

I can output the value of a counter in a LaTeX document via: \setcounter{mycounter}{1} \arabic{mycounter} Which inserts a 1. But how do I format the output by, for example, adding a leading zero if ...
0
votes
1answer
956 views

Changing the chapter style [duplicate]

Possible Duplicate: How to format the chapter heading? How do you change the style and margins of the chapter title in latex? I'm looking through the style file and can't find anything.
14
votes
5answers
4k views

How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R ...
48
votes
4answers
42k views

Footnote without a marker

I am new to LaTeX. I am trying to write a paper using latex. I want a footnote about the funding source of my work in the first page without marker. I tried below approaches: \footnotetext{text ...
0
votes
1answer
735 views

Display FASTA File in LaTeX [closed]

Is there a proper way to show a FASTA file in LaTeX? So far I tried $'s or listings and TeXshade but this does not seems to work.
4
votes
1answer
318 views

figure/table caption formatting without packages

I am writing a document which needs to have tables and figures. Normally for formatting the caption of figures/tables I use \renewcommand{\@makecaption} But it affects both tables and figures ...
8
votes
1answer
1k views

Change nameddest default name

Adobe defines parameters that allow you to open a PDF document with a command or URL that specifies exactly what to display (a named destination or specific page), and how to display it (using such ...
4
votes
1answer
2k views

Edit page headers

I am trying to edit my page titles with fancyhdr package. I want the top left of the page to present [section number]. [section name] in boldface and small caps. for example: 3.2. PYTHAGORAS THEOREM ...
5
votes
2answers
4k views

Switching between single- and multi-column format

I'm trying to create a pdf for a journal where the authors are in multiple column format but the rest of the document/text is not. How can I get this to work? It auto formats the rest of my document ...
9
votes
1answer
664 views

How to create a good document structure in advance for a book to be typeset using sanskrit fonts

I am taking up a task for typing an old text which is over 1200 pages. I am attaching a sample page. I am new to TeX, I still did not get the hang to create a good structure so that it will give me ...
9
votes
4answers
2k views

Addition and subtraction of chemical equations

Is there a package that supports the addition or subtraction of chemical equations, perhaps with automatic tabbing and a alignment. Whilst it is obvious I could set up tables or use mathmode's align ...
8
votes
2answers
176 views

mhchem formatting interrupted

\documentclass[12pt,a4paper]{article} \usepackage[version=3]{mhchem} \begin{document} \ce{K_a \times K_b = K_w} \end{document} In \ce{} all text is supposed to be regularized. See how the K_a is ...
126
votes
5answers
8k views

Consistent typography

When working with large documents, or even across multiple (smaller) documents, I often find that I forget which typographical consistencies I should stick to. With TeX being inherently consistent in ...
10
votes
3answers
21k views

Multiple authors in one row with refmark, multiple affiliations in separated columns in another row

I wonder how we can list author names in the following format in LaTeX. I have 5 authors with 3 different affiliations. I am trying to list all author names with refmark in one row, and 3 ...
5
votes
1answer
2k views

Font style for page number for chapter in ToC

The page numbers in the ToC appear in different styles. For sections and subsections in normalsize and for the chapter in bold and slightly larger (I think). How can one change the fontsize/fonttype ...
7
votes
1answer
4k views

Header problem with book class

It seems I have a problem with the headers using the book class. On every chapter when the text is too long the chapter text and the section text merge. Also I don't know how I could make them lower ...
7
votes
2answers
521 views

Is it possible to customize only the section and subsection numbers or titles in memoir?

Like the question title says, is it possible to customize only the section and subsection numbers or titles in memoir? I know how to change the font for the entire block, but I would like to make the ...
4
votes
1answer
5k views

A package for formatting Linux terminal excerpts?

I know about minted and listings, but either of those are intended for formatting of programming languages excerpts. Is there a package that would do the same for Linux terminal excerpts? Such as: ...
6
votes
2answers
1k views

Environment with first paragraph in bold and no pagebreaks

I would like to setup a new environment which typesets the first paragraph in boldface, the following paragraphs in normal text, and with (possibly) no pagebreaks between the first paragraph and the ...
22
votes
1answer
22k views

How can I get \maketitle to create a separate title page with the article class?

I am working on a maths assignment and new to using LaTeX. I have written the assignment up but I would like the title page to be its own page. Currently my title page is a few lines generated by ...
9
votes
1answer
5k views

How to suppress typesetting of section title?

I would like to suppress the typesetting of the section title in the document altogether, but still setting it for purposes of subsections, section mark / header, and table of contents. What I tried ...
19
votes
2answers
7k views

How to typeset “evaluated at” vertical bar with two conditions instead of one?

I would like to typeset the differential of a multivariate function evaluated at a point where two of the variables take precise value. I typeset the "evaluated at" using a vertical bar, at the bottom ...
20
votes
1answer
3k views

Changing the appearance of equation numbers with amsmath

For equations in my document, I use the facilities of the amsmath package. In order to make the equation numbers more eye-catching, I want them to be in boldface and a little bit indented to the ...
61
votes
4answers
28k views

Multiple footnotes at one point

I'm trying to create multiple footnotes referencing from one point, that look like this: lorem1,2 Searching for "multiple footnotes" shows up almost exclusively solutions for multiple references ...
11
votes
5answers
1k views

Formatting Decimals

Suppose I have a long decimal (assume it is ~6 inches long when written out in 12 point font in LaTeX when I center it, so something like ...
4
votes
1answer
247 views

How to change appearance of a particular line when using \lstincludelisting?

I'm using the listings package and include code into my document through \lstincludelistings. The problem is that I want to set some code lines to bold to indicate changes from previous code segments. ...
10
votes
3answers
347 views

“Escaping” Linux kernel version in latex

I'm trying to include a kernel version info (i.e. \texttt{2.6.40.4-5.fc15.x86_64}) in my LaTeX document. However, LaTeX keeps trying to put it into "math-text" ("Missing $ inserted" and so on). How ...
4
votes
2answers
3k views

enumitem: How to change label on enumerate* when inline option is enabled?

I'm using an inline enumerate list in my document, and I want to make that label slightly different (prepend with a () compared to the normal enumerate environment. However, since enumerate* share ...
5
votes
2answers
3k views

\bgroup and \egroup?

So I've been looking to expand on the following bit of code (a hack to not screw up the margins when using oversized figures): \noindent\makebox[\textwidth]{% \begin{tabularx}{1.5\textwidth}{XX} ...
22
votes
3answers
3k views

Formatting FAQ lists in LaTeX

I want to format a list of "Question + Answer" pairs in a TeX-document. In HTML I use the <dl> command: http://www.w3.org/TR/html401/struct/lists.html, e.g.: <dl> ...
3
votes
1answer
435 views

Horizontal lines are showing up as low-resolution images

I'm trying to prepare a print-ready pdf file for a book. The publisher is complaining that horizontal lines (in particular, the lines separating headers and footers from the body, but I think it also ...
0
votes
1answer
1k views

Acronym - Bold abbreviation without bold citation number

I am using the acronym package and let it create a footnote with the explanation on the first use of my abbreviation. However, at some parts I am using \textbf{\ac{ISO-TP}} which also makes the ...
4
votes
1answer
4k views

algorithm2e with 'ruled' but with caption underneath?

I would like to present an algorithm in my article. For that I am using the algorithm2e package (and I have used it for many years). I want to use the ruled option, i.e., I load the package like ...
7
votes
1answer
251 views

How to put one cartoon in the background of one book

I would like to add one cartoon in the right margin of odd pages in one book. More precisely, ... ... the page #1 must contain the picture #1, ... the page #3 must contain the picture #2, ... the ...
3
votes
1answer
691 views

Footnote with right parenthesis

I want to put a closing round parenthesis next to a footnote. I use \footnotemark and \footnotetext, since the footnote is part of a caption. \begin{center} ...
1
vote
1answer
1k views

sig-alternate class, and twocolumn unbalanced bottom alignment problem

EDIT: turns out the below is not really a requirement for ACM - but still a good Latex exercise, I reckon :) I have bumped into a problem with the Alternate ACM LaTeX2e Style File V2.4 (APRIL 2009 ...
45
votes
2answers
73k views

How do you get \mathbb{1} to work (characteristic function of a set)?

I am trying to get the digit one printed the \mathbb{} font in math mode, however the command \mathbb{1} outputs some rubbish. I certainly saw the character I am after in some pdf's generated from ...
1
vote
2answers
2k views

How to create better dots in continued fraction

Consider $$\left( a_1, a_2, \cdots a_m \right) \mapsto a_1 + \frac{1}{a_2 + \frac{1}{\cdots + \frac{1}{a_m}}}$$ I want to change the cdots into three dots like the following dot space dot ...
8
votes
4answers
2k views

Can my LaTeX (maths) code be improved?

I feel that my code isn't written very efficiently. \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{wasysym} ...
7
votes
4answers
10k views

Create a table with two parts with different tabular features

I'm trying to build a table that has two panels with different numbers of columns. For example: Table 1: An interesting table Panel A: Some stuff First name Last name Product ...
3
votes
0answers
928 views

Pseudocode, special formatting [closed]

I want to write an algorithm in LaTeX. It's not any programming language, it is pseudocode with a very mathematical style. Furthermore it is divided in a main function and some subfunctions. I also ...
1
vote
1answer
216 views

Transaction Report Advanced Formatting

I am in the process of transitioning internal reports to latex from manually created PDF files. And, for the most part I can get the information on the page, but formatting is proving to be more ...
1
vote
1answer
129 views

Names and terms

Are there any packages that would help to handle titles and names in the text? formatting: italics, quotation marks index generation: removing articles, rearranging names to Last, First in the index ...
4
votes
1answer
223 views

converting documentclasses into environments: is it possible?

Rewritten question. For my phd-project i need to quote screenplays. I would like to keep the screenplay layout in my thesis. I know there is the document class called screenplay. Now i am wandering ...
42
votes
7answers
5k views

Fit text into given box by adjusting the fontsize

I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text. Clarification edit: The given dimensions are ...
3
votes
1answer
1k views

quotchap: Changing formatting and number size

I am using the quotchap package to format chapter headings in a document. I know how to change the default font size for the chapter headings, but I don't know how to make it bold. I would like also ...
16
votes
2answers
7k views

KOMA-Script: change font of sectioning headings to serif

How to change the default KOMA-Script font that is used for chapter/section headings etc. to the Computer Modern font that is used in text body?
2
votes
2answers
445 views

Change subsubsection to medium series

I am using Lyx on Windows. How do I get the formatting of the whole document to look like: \subsubsection{\textmd{Blah blah blah}} without manually setting it for each line?
2
votes
2answers
196 views

Modifing bibliography and citation display

I put all my references in a file PaperBib.bib, and call \bibliography{PaperBib} in the end. I have several questions: For the references part, is it possible to make my own style? For instance, I ...
8
votes
2answers
622 views

Solid black boxes in multiline chaper titles

Me again... very close to the layout I'm looking for already, but not quite there yet. ;-) For chapter headers, I am trying to get this look for chapter headings: I.e., \thechapter centered, ...