{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
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 ...
3
votes
1answer
549 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
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 ...
1
vote
1answer
208 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 ...
7
votes
4answers
7k 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
740 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
124 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 ...
2
votes
2answers
194 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 ...
2
votes
2answers
425 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?
4
votes
1answer
1k views

Custom “online” entry formatting with biblatex+biber: use organisation in place of author when author is missing

I am using the superb biblatex package (with biber as backend) to typeset the bibliography of my thesis (compiled with pdflatex). I would like to customise the formatting of @ONLINE type entries. By ...
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 ...
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?
4
votes
3answers
6k views

Using \MakeUppercase in \@startsection

I was toying a bit with the \@startsection command to change the layout of chapter / section headings. More specifically, I wanted my headers to be converted to uppercase. I was following an example ...
4
votes
2answers
212 views

How can I reformat the lists throughout a document?

Forgive me for asking what I'm sure is such a simple question, but I haven't been able to dredge up an answer off Google. I'm working on a document which contains a series of topic descriptions ...
1
vote
1answer
136 views

Making custom currency

I've been using Prawn (Ruby) to make signs for beer distributors. Working great except that making currency look how I want is becoming extremely cumbersome and I'm afraid of inflexibility (and head ...
1
vote
1answer
780 views

Sphinx in-line math equation alignment

As suggested by the answer to my question here, I am using the Sphinx tool in order to multi-target PDF and HTML output. For HTML, I'm using the pngmath extension. The vertical alignment of inline ...
11
votes
1answer
361 views

Is it OK to use \tt etc. in latex2e if you don't want the text to inherit the font of the containing text?

I want some words to always be in upright teletype (they are defined to be something specific). If the sentence is emphasised and this word appears I do not want the text to be italic teletype, but ...
0
votes
1answer
1k views

Caption does not work with wrapfig

The following code does not output the caption correctly, font appears in normal size, and "Figure" is not boldfaced. \begin{wrapfigure}{r}{0.5\textwidth} \vspace{-50pt} \begin{center} ...
5
votes
1answer
237 views

Shortened page-ranges from \pageref

In some typographic conventions page-ranges are shortened to save space, e.g. writing "1234-35" or even "1234-5" instead of "1234-1235". I would like to have a \pageref{foo}--\pageref{bar} ...
9
votes
4answers
3k views

Word-wrapping page-long polynomials in latex

I know that you can enter multiline equations using the align environment and line breaks (\\). I want to LaTeX multiple polynomials that are very long (up to a page in length, single-spaced and 12 ...
10
votes
1answer
624 views

Styling very long index entries to look more aesthetic

I wrote the following style for makeindex: headings_flag 1 heading_prefix "{\\bfseries " heading_suffix "}\\nopagebreak\n" delim_0 " \\dotfill " delim_1 " \\dotfill " delim_2 " \\dotfill " which ...
5
votes
2answers
3k views

Grey box code and lists

I've got that code from a website to make grey areas in my LaTeX document. % http://www.alfredklomp.com/programming/tex/macros/ \long\def\greybox#1{% \newbox\contentbox% \newbox\bkgdbox% ...
1
vote
1answer
452 views

Enlarge list of listings

I'm using \cleardoublepage \renewcommand{\lstlistlistingname}{Quellcodeverzeichnis} \enlargethispage{\baselineskip} %EITHER \lstlistoflistings \enlargethispage{\baselineskip} %OR THIS ...
0
votes
3answers
814 views

Equation formatting: spacing between characters

I have the following variable: $\omega_{fo}$ which gives [;\omega_{fo};] . The problem with the output is that there is a quite big separation between the letters f and o. Is there a way to make ...
3
votes
1answer
291 views

Formatting the index from the songs package

I've been using the songs package to generate songbooks. I've been tweaking the package for my needs, but one of the remaining issues is the \showindex command. Consider the following code: ...
3
votes
1answer
792 views

How to constrain text to a rectangle in tikzpicture?

I have a list of rectangular blocks that have a text, color, and size (y start, y size, x start, and x size). I want the text to be in the center of the rectangle, such that it does not go outside of ...
4
votes
1answer
891 views

table of contents entries and formating

I am working on a thesis and I am having some problems with the table of contents. I have tried to make a minimal example and the LaTeX files are given at the end of this post. The main tex file is ...
3
votes
2answers
451 views

Is there a way to leave the even pages blank within one chapter only?

I'm writing a thesis and would like the contents to be printed on odd pages only (when using a duplex printer, the rest of the thesis should be printed double-sided). I would also like to have this ...
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 ...
3
votes
3answers
993 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.
2
votes
1answer
586 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" ...
1
vote
1answer
857 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. ...
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)... ...
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 ...
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
304 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
482 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
987 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
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 ...
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
288 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
751 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 ...