{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

10
votes
2answers
2k views

Why are \listof{}{} and \listoffigures styled differently?

I'm writing my thesis and I have certain code-snippets to show. I'm using the the listings package embedded in a custom float environment to display them. To list them in an index at the beginning of ...
10
votes
1answer
419 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
10
votes
2answers
1k views

Options and suggestions for hyperref font?

Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text ...
7
votes
1answer
636 views

Anyone have some cool/artistic problem set templates?

I have been losing sleep lately as to how to make the most professional looking problem set (math and physics oriented) that is both easy to read and concise (i.e. no title pages), and yet is ...
7
votes
3answers
329 views

Highlight equations by temporary changing the formatting of their number

I am writing a long paper having 100+ equations, and want to highlight a few key equations. Since the journal won't let me use boxes around equations, I am trying to have their label being typeset ...
7
votes
1answer
7k views

LaTeX: splitting the words

I have a quite long text, and I sometimes I have words breaking in a weird way, so I wonder if there is some command in LaTeX which will prevent the splitting of words in the whole document?
6
votes
1answer
1k views

Modifying mini-toc content

I have adapted the pretty table of contents solution written by Gonzalo Medina with the modification to the "blue box style" that Stephan Lehmke helped me with to design a somewhat consistent ...
5
votes
3answers
2k views

Better way to display long division?

I'm currently in the process of trying to create a worksheet for my students with long division problems for them to practice. Unfortunately, the best I've been able to come up with so far in terms of ...
5
votes
1answer
144 views

Background color for inline math with linebreaks?

What's the simplest way to achieve coloured background for the inline equation in the following example: \documentclass{article} \begin{document} Completely unimportant text $ABC_{1234} = ABC_{1234} ...
5
votes
1answer
1k views

Number of lines in double spacing (compared to Word)

I am a newbie to LaTeX. I noticed that my document is almost a page longer in Word compared to LaTeX. (~7.25 in latex, ~8.25 in Word). This seems to be because my Word document has 23 lines per page, ...
5
votes
2answers
268 views

How can I align some text with a logo?

I am trying to right-align some text with a logo, i.e. I would like to place some text to the left of a logo, and centre this text vertically with respect to the logo. I’ve attached a pdf to be more ...
3
votes
2answers
380 views

TikZ draw-Putting old calendar style date in left margin

I'm working on the formatting of a text book. The following picture shows the first thing I would like to do. There are two things to achieve : I would like to "draw" the date using TikZ so as to ...
2
votes
1answer
250 views

How to define HTML keywords in \listings

I'm working on the implementation of a HTML5 code style for \listings. Currently I have the problem that there are different ways to define HTML tags. In my example, I don't get /p in ...
2
votes
1answer
555 views

vim type Display for C Code in Latex

Target Display: My Latex Code: % xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet STARTS xxxxxxxxxxxxxxxxxxxxxx \lstset{ language=C, % choose the language of the code stepnumber=1, ...
0
votes
2answers
404 views

Formatting LaTeX-dump from Mathematica equations for A4-paper without manual adjusting?

I asked this question here in Mathematica.SE but they encouraged to ask also on this site. How can make this writing process easier from Mathematica to LaTeX? Please, note that I have a lot of ...
18
votes
3answers
286 views

Typeset text immediately before \lettrine dropped capital

How do I add 'sidebar' text? I'm aware that 'sidebar' is likely the wrong word to use. Please let me know what the correct term is. I'm referring to the text to the left of the dropped cap ("The ...
17
votes
5answers
11k views

Changing style of Proof

I'm using the \begin{proof} of the amsthm package. And I want to change the style of the Proof word that is added in the beginning. By default it is italic, I want to make it bold. How can I do it?
16
votes
2answers
16k views

How to change the nested itemize bullet characters?

When creating a nested itemize environment in LaTeX as follows: \begin{itemize} \item one \dots{} \begin{itemize} \item Language Models \item Vector Space Models ...
15
votes
1answer
400 views

A center environment for plain TeX

In TeX, one can center a single line of text with \centerline. How would one implement a center justification environment for a single long line of text in plain TeX without the addition of any ...
13
votes
2answers
2k views

Is it possible to italicize journal names and book titles through the .bst file?

I am working on an article for a Springer journal, and the specifications for manuscripts clearly ask to italicize all journal names and book titles. Doing it manually feels stupid, so I wonder if ...
13
votes
3answers
556 views

Remove formatting

I currently use latex newcommand to store (and format) "variables", like so: \newcommand{\someVariable}{\emph{value}} I do this for key words that I want to be formatted a certain way every time ...
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 ...
11
votes
3answers
4k views

Two column code listings in appendix in a one column report

How do I place a two column appendix in a single column report? I want it so that at the beginning of the appendix I'm in single column mode, then I want to place some source code listings in 2 column ...
10
votes
1answer
448 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 ...
9
votes
3answers
356 views

Writing an equation with the units positioned off right

Okay so I have a have a lot of equations in the document I am writing and I am trying to display the units of an equation off to the right. I was wondering how I can achieve this? Right now, all I ...
9
votes
2answers
2k views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
9
votes
3answers
2k views

Problems using `\left\{` in array environment

I am trying to define a matrix in segments by enclosing the entries of the matrix in boxes, and also using the open and closed braces to label those segments. So far I have developed the following ...
8
votes
3answers
178 views

Align matrices problem

I have an equation of matrices and I want to align the dimensions of the matrices below the equation of matrices. However, I produce something very ugly. Can someone advise how to make it look better ...
8
votes
3answers
376 views

How can I number the references in a bibliography irrespective of their order of appearance in a document?

I'm putting together a linguistics bibliography using lsalike.bib and lsalike.sty. I'm generating it by using \nocite{*} and would like the references to be numbered (but kept in the usual order). ...
7
votes
1answer
94 views

Mixing underline and strike-out

Word allows for all kinds of font formatting: The above example combines strike-through/strike-out (like this) and underlining. I'd like to be able to do the same, but neither ulem nor soul allows ...
7
votes
1answer
272 views

Customising theorem style

I wish to customise my theorem style to something like the one shown, but I couldn,t figure a universal definition of parameters. Some suggestions? The code: \documentclass{article} ...
7
votes
1answer
520 views

Cross reference formatting options

I have got a quick question; I am writing a document with lots of sections and figures. Cross referencing works fine. So far so good. However, I would prefer when I reference something to have the ...
7
votes
2answers
2k views

How to make a code fragment in ieeetran class

What I wish to achieve is rectangle around code, with code in the font format as shown. How should I achieve this format?
7
votes
4answers
351 views

Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
6
votes
4answers
1k views

Enumeration with several items per line, several lines and nicely formatted

Based on Alan's answer here, I would like to be able to create nicely formatted "inline" enumerated lists. The issue I have is that the space between items on a line is always fixed, which does not ...
6
votes
2answers
11k views

How do you make numbered equations in latex?

I would like to put in a code that automatically assigns a number to the equations in my documents preferably aligned on the right hand side. How can I go about this? ...
6
votes
1answer
358 views

Modifying \answerline in the exam class

When using the exam class, is there a way to change the formatting of the item answer blanks created by \answerline? For a question, the label is 1. For a part, the label is (a) For a subpart, the ...
6
votes
2answers
3k 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> ...
5
votes
1answer
192 views

Including .tex files that need a different style file than the main text

EDIT: Substantial edit of the original version has been done to clarify the question. Background I've written two small python package manuals with sphinx (http://sphinx-doc.org/) a program that ...
5
votes
1answer
2k views

Remove 'Chapter' text from chapter headings and have chapter number on the same line as chapter title [duplicate]

Possible Duplicate: Chapter formatting Apologies if this is something simple, but I seem to be searching in the wrong place for an answer. I have a document of type report. It is currently ...
5
votes
3answers
212 views

Making tables more prominent

I am working on a long LaTeX document with several tables, which contain mainly text, or text and numbers. The tables are a \begin{table} ... \begin{tabular} environment. It is often difficult to see ...
5
votes
3answers
2k views

How to display e-mail addresses for multiple authors in Beamer?

I have a Beamer presentation with multiple authors and I would like their e-mail addresses to be displayed underneath each author name. The post Email field in beamer class? is simple enough to do for ...
5
votes
1answer
951 views

Biblatex: How to insert dots into abbreviated journal names in bibliography

For example: "Philos Trans R Soc" should become "Philos. Trans. R. Soc."
5
votes
2answers
414 views

Two column trouble - positioning of figures and text

I have following trouble in LaTeX and I need some help. I am preparing a document which has this TeX code: \documentclass [12pt]{article} \usepackage{graphicx} \usepackage[usenames,dvipsnames]{color} ...
5
votes
1answer
6k views

Setting font family for the whole document

This looks like the basic question but it seems like the hardest thing to me. I need to set the whole document's font style as follows : Font Family: Times New Roman or GoudyOlSt BT Font ...
5
votes
1answer
3k views

Easily aligning 'from' and 'to' address fields in LaTeX letters

When you write a letter in LaTeX, you can add your address with the \address block, while you have the possibility of adding the recipient address after the \begin{letter} statement as an extra ...
5
votes
2answers
811 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 ...
4
votes
1answer
64 views

Automatic versewidth

verse package has \settowidth command to center a poetry. Example: \settowidth{\versewidth}{There was an old party of Lyme} \begin{verse}[\versewidth] There was an old party of Lyme \\ Who married ...
4
votes
2answers
254 views

macro for card divider

I tried to adapt these card dividers for my needs, but using office caused me a lot of trouble. So, I tried LaTeX but I am not good enough at it. I got the basic table, but couldn't figure out how to ...
4
votes
2answers
485 views

Replace (change) “Chapter 1” to “Chapter ONE”

I am writing a lab report, and select report class provided by LyX. I use LyX 2.0.3 and MiKTeX 2.9. My question is, how to change the chapter number to display as text? eg: CHAPTER ONE not CHAPTER ...