{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

2
votes
1answer
86 views

How do I ensure that linebreaks in URLs occur at the right position? [closed]

I am writing my survey report using LyX. In my bibliography section, there is unusual behavior in my pdf. One reference breaks the margin. This is the issue You can see that one line is out of ...
2
votes
1answer
64 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
722 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
263 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
66 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
84 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 ...
0
votes
1answer
36 views

How to convert this table to a “long table”

I have the following table that doesn't fit into a single page. How can I get LaTeX to print it on multiple pages. Currently it is being chopped off. \begin{table}[h] ...
-1
votes
1answer
110 views

how can I create a chapter heading like this?

Hi I want to format my chapter of my thesis as shown in the figure. How can I do it? Can you suggest me some fancy latex templates for a phd thesis?
9
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
31
votes
5answers
10k 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?
16
votes
2answers
13k 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
662 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 ...
9
votes
1answer
11k 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?
15
votes
2answers
3k 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.
10
votes
3answers
2k views

University's logo

How to put the logo before the date and after my name in the title? I write it as \begin{document} \title{} \author{} \titlepic{ \includegraphics[width=0.5\textwidth]{logo} \date{} but ...
8
votes
3answers
1k 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 ...
18
votes
3answers
17k 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 ...
17
votes
2answers
4k 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 ...
14
votes
3answers
752 views

Red squiggly imitation

Is there an elegant way to draw red squigglies under text, to emulate what a [source] code editor does when it detects errors (either spelling mistakes, syntactical errors or semantic errors)? Here ...
13
votes
6answers
2k views

Text under a line [duplicate]

Possible Duplicate: dynamic signature/date line How can I make text under line in a form like this: ____________________ name, phone Or Name:____________________ (full ...
12
votes
1answer
1k 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 ...
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
2k 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 ...
9
votes
1answer
9k 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 ...
6
votes
1answer
680 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
854 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 ...
4
votes
1answer
3k 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 ...
17
votes
3answers
854 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
820 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 ...
11
votes
1answer
1k views

Format section titles as white text on black background

I would like to redefine the \section and \section* to produce section titles that look roughly like this: that is, text in white over a black bar that extends from left to right margin. I don't ...
10
votes
1answer
891 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 ...
8
votes
1answer
228 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 ...
8
votes
2answers
502 views

Automatically bold first sentence of a floats caption

How to bold automatically the first sentence of the float caption and second sentence is normal? \begin{figure}[t] \centering \caption{First sentence. Second sentence.} \end{figure} Output should ...
8
votes
1answer
4k views

fancy chapter heading for a book

I would like to change the default chapter heading formatting of book document class. How can I output something like below :
7
votes
2answers
195 views

Hanging section - Memoir

I would like to obtain something like this: So far I have this: My MWE: \documentclass[article]{memoir} \usepackage{lipsum} % Layout \settrims{0pt}{0pt} \settypeblocksize{562pt}{330pt}{*} ...
7
votes
1answer
3k 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 ...
4
votes
1answer
2k 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
9k 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 ...
15
votes
2answers
26k 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
370 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 ...
12
votes
2answers
10k views

Too wide figure caption

I included a figure using the figure environment with a rather long caption. The width of the caption is the same as the page width, which doesn't look so nice. Is there any way to reduce the width of ...
11
votes
1answer
344 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. ...
11
votes
2answers
2k 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 ...
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
448 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) ...
7
votes
1answer
662 views

\usepackage[group-separator={,}]{siunitx} Not working with longtable?

I have a table with very long counts (in the millions), so I would like to add commas. I have tried to use siunitx in a variety of ways in the preamble: \usepackage[group-separator={,}]{siunitx} ...
7
votes
2answers
13k views

How to wrap a long equation in Latex

I have a very big equation and using split or multiline is not helping. How do i wrap it and how do i make sure thatRHS of the eqn is always on the right side of equal to ('=') even when line is ...
7
votes
1answer
5k 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 ...
7
votes
1answer
166 views

Mimic a calculator screen

It was recommended that I post this as a new question. Sometime back, this marvelous solution was posted on this site. \documentclass{article} \usepackage{tikz,xparse} \ExplSyntaxOn ...
7
votes
3answers
418 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 ...