{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

6
votes
4answers
5k 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
2answers
2k views

Disable/toggle smallcaps in the title

I am using the amsart document class. I want to to change the text in the titles (such as in \author) to be written normally and not in small caps. How can I change this globally? That is, so that ...
5
votes
1answer
541 views

Slashbox with tables: Adjusting the diagonal separator for multiple rows

I am using the slashbox package in a table as shown next. However as you can see, the diagonal line in the first cell is not the real diagonal of that cell. This is because of the existence of more ...
5
votes
1answer
1k 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 ...
5
votes
1answer
160 views

Remove Formatting in Table of Contents

I have custom colouring in the section headings, i.e. \section{\textcolor[red]{Heading}}, so when I use \tableofcontents it prints the table of contents including all the unnecessary colouring. Is ...
5
votes
1answer
179 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
5
votes
2answers
954 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 ...
5
votes
2answers
668 views

Spaces behind \textgreater not working as expected

I have the following code: \textit{WMC \textgreater average} But the text looks like this: WMC >average It does not even change if I add even more spaces. So what am I doing wrong?
4
votes
1answer
532 views

Changing formatting of URL in biblatex \footcite

I've switched from bibtex to biblatex due to having to use \footcite based on university's requirements for writing a report. It may be worth noting that I'm also very new to (La)TeX. I'm only having ...
4
votes
2answers
487 views

How to save and restore chapter's heading format

I am writing my thesis using a template provided by the university. It requires using the report class. To format the headings in the front matter, it uses the titlesec package and redefine the format ...
4
votes
1answer
309 views

Biblatex \autocite in case of would-be nested footnotes

I have the same situation as the following user: biblatex: Enhancing \autocite in case of would-be nested footnotes I want to use \autocite within a \footnote. This results in the citation being ...
4
votes
2answers
3k views

Changing the subfigure caption by removing brackets & font of the subcaption

Note that by using \usepackage[bf]{subfigure} I'm able to change the label of the subfigure to be boldface. However, the label appears with brackets, e.g., "(a)". How could I get a subfigure label ...
3
votes
2answers
154 views

How to do \newcommand{\filepath}[1]{\verb!#1!}?

I want to define a command \filepath so that I can use \filepath{foo_bar.cpp} and it is printed in monospaced font. Also, why does this not work? I get strange errors: ...
3
votes
1answer
1k 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? ...
3
votes
1answer
3k views

In Lyx, how to change the “Part” section to “Chapter”?

I am using the default Lyx document "article". My sections range from "Part" to "Subsubsection". When I compile my pdf, I would like to replace "Part 1 Title1", "Part 2 Title2", etc by "Chapter 1 ...
2
votes
1answer
59 views

Rearranging the table and making identical with the attached image

\documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry} ...
2
votes
2answers
216 views

How to remove the chapter number from section number? [duplicate]

I use Roman for Chapter numbers, and I don't want sections to be numbered as VIII.2 (while I still want sections to be numbered within chapters). How do I do that? i.e. instead of VIII.2 sections ...
1
vote
0answers
121 views

creating a db schema

I am trying to create a schema page in LaTeX. It shall look like this. How can I create schema code which look like this image? There should be also a click to go function. When the user clicks on ...
1
vote
1answer
52 views

Why each section is shown in one page rather than in the same page when I use \onecolumn?

I don't know why each section is shown in one separate page when I use \onecolumn rather that the normal (two columns) format. \onecolumn \section{Goals} some text
1
vote
1answer
68 views

Problem with ragged lines

Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
8
votes
1answer
2k views

fancy chapter title page

How can I have a chapter title page like the following? Note that, I'm using book document class
29
votes
3answers
2k views

Date format: YYYY-MM-DD

Currently I put the date in my document using: \date{\today} How do I display the date in the YYYY-MM-DD format?
13
votes
2answers
583 views

Why are these commands considered as bad practice?

I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand. \\ (except inside a special environment like tabular, array, or ...
26
votes
2answers
3k views

What is the canonical way to redefine the \emph command

Question says it all. What is the best way to redefine the \emph command to be bold font and upright?
19
votes
2answers
1k 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 ...
15
votes
2answers
11k 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 ...
14
votes
2answers
2k views

How do I fill a shape with text, like a circle?

How do I confine text within a shape such as a circle or triangle? I don't want text along the perimeter, I would like it to break appropriately at all the inner edges.
12
votes
1answer
900 views

Realistic handwritten document

Is there a template/package that generates realistic handwritten documents? The font should preferably reflect an average handwritting (readable). Letters would follow a handwritting style but would ...
9
votes
1answer
5k views

Adding line by line comments to math proofs

Is it possible to add a line by line discussion of my proof? I'm using the harvey mudd college math template, so the least amount of packages or class editing would be great. I'm looking for the ...
7
votes
3answers
724 views

Write more beautiful math equations, like a professional book

I want to write math equations more "beautiful". My equations are shown as follows: The vector looks ugly and disproportionate. And I like that they look it this way: The vector looks ...
6
votes
1answer
519 views

How to Format C Program Code Block Nicely

I am using the following settings to format my code blocks: % xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet STARTS xxxxxxxxxxxxxxxxxxxxxx \lstset{ language=C, % choose the language of ...
5
votes
1answer
664 views

Page count in LaTeX vs Word

My term paper has fairly strict formatting guidelines - double-spaced & 12pt font. I am currently on page 7 (when previewed in LaTeX). However, when I copy and paste into MS Word, I've hit the ...
16
votes
3answers
655 views

Conflict between microtype, LuaLaTeX, and otf fonts when typesetting material in small-caps

I'm using the microtype package (microtype beta 2.5 build 08) to modify my document and I'd like to retain its functionality across all font shapes with the exception of small-caps (\scshape). How do ...
15
votes
2answers
721 views

Custom quotation style which depends on length of quotation

I am writing my PhD-thesis and I need to meet certain formatting requirements in regard to quotations. I know there is the quote environment. But in this conditions it doesn't match my universities ...
14
votes
2answers
3k views

Formatting a \paragraph to look like a \section

I'm writing a document that contains a rather deep tree of nested lists, and was wondering if how I would go about reformatting the \paragraph macro to format the text contained within it as a ...
12
votes
3answers
9k 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 ...
12
votes
1answer
2k views

Typeset a dialogue?

I need to typeset a dialogue in LaTeX, it's for a translation assignment. The original dialogue does something like this: - I found it, I told him. My finger was in the book, where George Best's ...
10
votes
1answer
785 views

Code readability

I'm getting my head around LaTeX, and I find really awesome the fact that the documents are completely editable with a plain text editor, while getting a really neat and professional output. I'm ...
9
votes
1answer
999 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
180 views

How can I make a custom theorem for a definition?

Looking at the wikibooks article on theorems has me wondering... I'd like to do something, if possible, similar to the default "proof" theorem style, whereby I can add a custom name to each theorem as ...
4
votes
2answers
130 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 ...
4
votes
1answer
2k views

Styling my section/chapter

I'm trying to reproduce this chapter/section style on LaTeX and I would like some insight on how to achieve this. I have been using the secsty package but I haven't come up with any real results. The ...
4
votes
1answer
1k 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 ...
3
votes
3answers
5k views

How to include R output in LaTex? [duplicate]

I am not sure about how to include my r output in the best way in my latex document. Currently I saved my R output (NOT R CODE!) into a txt file: *---------------------------------* * GARCH ...
21
votes
1answer
229 views

Two Columns whose content is positioned relative to each other

In theatre (and film) there's a tendency for actors to let each other finish what they're saying, possibly even making a small pause before starting their turn. But that is not how real life ...
15
votes
2answers
20k views

Adjusting column width in LaTeX with the multicol package

I'm trying to get a two column "academic style" paper layout on my LaTeX paper. I'm aware there are at least two common ways of doing this, either with adjusting \documentclass or with the more ...
14
votes
3answers
284 views

Frac or inference rule with dotted line

I would like to have a \frac or mathpartir-style inference rule with a dotted rather than solid line, so that I can put fractions into inference rules without overloading horizontal bar. The ...
11
votes
1answer
275 views

New list environment: automatic enumeration with “a posteriori” format

This is a follow-up question to Nested enumerate labels with parent label appended plus a single set of enclosing parentheses First and foremost, sorry for my English, I'm learning it currently. ...
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
415 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) ...