{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

9
votes
1answer
1k views

Subsubsection: remove the newline (like paragraph)

Using the article document class, how can one remove the newline at the end of a subsubsection title? I am using \documentclass{article}; I do not currently use titlesec or any of the alternatives; I ...
7
votes
2answers
1k views

Changing the formatting of equation numbers

How can I change equation numbering so that the chapter number is outside the parenthesis like this: 1(1) instead of (1.1)
5
votes
1answer
386 views

format special words in text

Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold ...
5
votes
1answer
2k views

Using \scshape and \bfseries together

A very obvious one I suspect, but when I try to do the following the small caps are over-ruled by the boldface, so I get lowercase rhubarb rhubarb. Is there an easy way to get \scshape\bfseries? ...
2
votes
1answer
230 views

How to have bold font in mdframed environment?

I did not find bold word in the manual. My tex is: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \newtheorem{question}{Question} \mdfdefinestyle{que}{ linecolor=cyan, ...
8
votes
1answer
916 views

Cursive text after _

I would like to write H2O with a small 2 below the H. H_2 O (water) However, all text after _2 becomes cursive. It appear that something obvious is wrong but, I cant find what it is. Anyone how ...
6
votes
2answers
2k views

Modify default memoir chapter style

I'm using memoir and using its default chapter style. what I'm looking to do is to change the format from chapter 1 chapter title to something like this: chapter 1: chapter title I'm ...
5
votes
2answers
79 views

How can I show codeboxes?

I am in the process of writing a simple manual. In it, I explain how to set up the files and programs necessary to run a pipeline I have written. I would like to include command line commands in that ...
5
votes
1answer
2k views

Make volume bold in custom bibliography style .bst

Since I could not find the style that met my teacher's requirements for the bibliography I have to do, I created my own bst with latex makebst on my mac. I had chosen to make the volume bold but it ...
4
votes
1answer
133 views

Small caps in section but not in ToC

With LaTeX, I would like to set all my section titles in small capitals but I need the \textsc to be 'cancelled' in my table of content. Is that possible somehow ? I currently do this : ...
4
votes
3answers
1k views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
3
votes
2answers
443 views

Adding extra lines/spaces in source, *not* affecting semantics

I'm editing a file with quite huge interleaves of text and formulas like this lorem ipsums \begin{align} foo & bar\\ qux & rofl\\ & toto \end{align} lorem ipsums … And I face ...
1
vote
1answer
2k views

Non superscript citations for figures

Is it possible to reference figures like so taken from \emph{ref. \cite{reference}} with non superscript numbers, while leaving the rest of the references in the bulk of the document untouched? ...
41
votes
2answers
3k views

Styleguide for LaTeX similar to the Google styleguides?

Even though I don't work at Google, the Google Styleguides have been very helpful for me in adopting consistent, readable style conventions for my code. Unfortunately, there is no Google Styleguide ...
24
votes
1answer
2k views

Book layout Contents, Chapter, Section,

my goal is to get new style of Table of Contents, new style of Chapter and new style of section. I there is one more: how to change itemize native symbol for a black square? Table of Contents: text ...
16
votes
5answers
3k views

How can i add a “field” for handwritten text?

I need to add a bunch of fields for a handwritten text to my document that look like this: Your Name ___________ Your Age ___________ As an example, I can show you the form that I have to ...
30
votes
2answers
47k 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 ...
14
votes
2answers
2k views

Pretty formattings for warning and info blocks

I'm looking for pretty formatting for warnings, and others for some info or tips. For the moment, I use the following formatting but maybe someone has one better idea. To obtain this, I use the ...
32
votes
1answer
28k 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 ...
22
votes
3answers
1k views

Automatic bold for every first character of a line

It's possible to do this Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis ...
22
votes
2answers
3k views

Colored underbraces for annotating equations

I am trying to implement my previous Powerpoint presentation in beamer. I have a figure like I want to create something like this in beamer. I wrote a equation as follows but I couldn't write the ...
46
votes
3answers
92k views

How can I underline a single word with LaTeX?

Given a simple paragraph, how do I underline a word in that paragraph? (Note: I post this here because it wasn't really obvious using google or this site and my TexNicCenter is somehow missing this ...
35
votes
3answers
573 views

Strategies for corrections in book typeset with TeX

I have typeset a long book using TeX and now it is time to re-print it. This is an opportunity to incorporate corrections to the errata discovered in the initial printing. Unfortunately TeX may ...
27
votes
3answers
44k views

Change bullet style / formatting in Beamer

I like the Boadilla layout for Beamer presentations, but I find its enumerate bullet points illegible, as illustrated below (from the Beamer Theme Matrix). How can I change the formatting of the ...
23
votes
1answer
3k views

CSS based LaTeX formatting?

I've done ab bit of web-searching and found nothing. Are there any attempts on using CSS for LaTeX formatting? For example: body { font-family: Helvetica,Arial,sans-serif; } section { font-size: ...
20
votes
1answer
557 views

Chronicle of email correspondences

I'd like to collect all my old private email correspondences in a LaTeX document. The document should become a kind of "diary". (I also want to bind it to a book someday.) So what I want to create ...
21
votes
3answers
22k views

Using section sign (§) for cross-references to sections

In some papers and books you see that author uses §1.3 instead of section 1.3. How § sign can be added before section (or part, chapter, ...) number automatically? Please mention any useful tip about ...
10
votes
4answers
7k 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 ...
7
votes
1answer
5k views

Make a LaTeX document look like it was written in Microsoft Word [duplicate]

Possible Duplicate: Making a LaTeX document appear as though it were typeset in MS Word I know this is a travesty in the world of TeX, and an affront to all decent TeX-believing people out ...
14
votes
1answer
605 views

TikZ - Placing several numbers in one cell of a Sudoku grid

I've put at the end of this post one code coming from this page which is a pretty easy way to display Sudoku grid. I would like to have help so as to add the possibility to indicate several entries ...
8
votes
1answer
339 views

Formatting an array of complex numbers with pgfplotstable

Say I have two csv files representing the real and imaginary part of a complex matrix. I would like to nicely display this matrix in LaTeX. The difficulty is to correctly round numbers and not ...
7
votes
1answer
574 views

How can I create a table that spans across the width of two vertical (and opposite) A4 pages?

I have a large (wide) table to typeset. I usually use the code below for my tables which enables me to specify the width of each column in the table. However, it is up to me to make sure that the sum ...
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: ...
4
votes
1answer
739 views

Enclosing Page Numbers using the `Backref=Pages` Extension of `Hyperref`

I'm using the backref=pages extension of the hyperref package, as I'd like to have a list of back-reference pages after my bibliographic items. Is there a way to enclose these page numbers in brackets ...
23
votes
2answers
6k views

How to type a Backus-Naur form in LaTeX

I need to type Backus-Naur form in LaTeX document. I found several packages on CTAN: ebnf seems to not work with TeXLive 2009 latex-bnf does not align the declaration, etc. There is a module for ...
22
votes
2answers
38k views

\Rightarrow with text above it [duplicate]

When using the command \Rightarrow is there any way to put text above it? I have tried \overbrace but is there a way to do it without this?
22
votes
5answers
15k 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?
17
votes
5answers
474 views

Highlight every occurrence of a list of words?

In order to revise a draft, and identify related sections, I would like to identify similar words (by color of text, highlight, underline, or otherwise) according to topic. For example, I would like ...
17
votes
2answers
1k views

Fancy cross-referencing

As an extended idea of Using section sign (§) for cross-references to sections, how can we use See ⚙5.2 and ☰5.3 in ☞123. instead of: See figure 5.2 and table 5.3 in page 123. ...
17
votes
4answers
516 views

Frame with only crosses in two opposite corners

Is there one package to produce frames looking like the one above in the following ASCII example ? I don't want dashed lines. | ...
13
votes
5answers
910 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
10
votes
1answer
239 views

How to create Windows-8-styled menus?

I'm writing a technical documentation and I want to explain step-by-step how to go through various menus. For example I used to write Open with > VLC media player. That's how it looks in Windows ...
10
votes
2answers
9k views

How to create a signature, date page?

I need to create a signature page as shown in the image below in LaTeX. I have no clue on where to start and the commands that I would need. Could someone please help me.
9
votes
1answer
175 views

Align/avoid numeration and labels in a custom biblatex format

I need list references with a custom format, with a label showing the type of entry (@article, @book, etc.) and labeling fix/variable fields in a tabular environment. I have successfully obtained ...
9
votes
1answer
1k views

Independent left and right columns

I'm trying to write something with two columns that spans multiple pages. I want to put one thing in the left side and one in the right side. Is there ``proper'' way of doing this, or should I just ...
8
votes
1answer
2k views

Index with an initial letter of the group [duplicate]

Possible Duplicate: package makeidx: print first letter for each group of keys I'm trying to adapt the index of my contribution such that each group of words (starting with the same letter) ...
8
votes
2answers
7k views

How do I keep a string of text together without it doing a line break?

I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
5
votes
1answer
2k 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, ...
4
votes
2answers
243 views

Enumerate with different first line?

I want to do an enumeration, but the first line should be bolded, see e.g. this picture: What is blue I want to have in bold. In addition, I don't know how to generate a new line for the other text ...
3
votes
1answer
2k views

Add paragraph symbol to section

I would like to ask how can I add the paragraph symbol § so that it will be displayed as below: §4 First section §5 Second section By default it is generated as below when a ...