{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

4
votes
1answer
149 views

Apply Chapter heading style to table of contents/bibliography heading

I am using the following fancy styles for chapter headings \documentclass[12pt]{report} \usepackage{graphicx} \usepackage{natbib} \usepackage[hidelinks]{hyperref} \usepackage[% ...
3
votes
0answers
36 views

Code in listing not formatted correctly [duplicate]

My preamble is as follows: \documentclass{llncs} \usepackage{xcolor} \usepackage{harvard} \usepackage{listings} \usepackage{chngcntr} \makeatletter \lst@InstallKeywords ...
5
votes
1answer
98 views

Format Name of Video codecs

I'm currently writing my Masterthesis for a german University. I used a few different codecs in my work (like H.264). What is the correct/sensible way to write them in my Latex Document? Examples of ...
4
votes
3answers
216 views

How do I split large numbers into groups of five digits? [duplicate]

I need to split a number of 27 digits into groups of 5 digits. I already had a look at siunitx, telprint and numprint. But these just allow me to generate groups of two or three digits. Is there any ...
0
votes
1answer
147 views

Beamer (Latex) Customized Formats [duplicate]

I hereby attached a pdf snapshot of a sample Beamer Copy Will you please suggest me how to get this output in Latex I am looking forward to your support. Thank you
5
votes
2answers
114 views

add () around \ref{}

How can I add [ and ] around \ref{myref} so that I get something like this: [1.1] This does not work: \documentclass{article} \usepackage[colorlinks=true,allcolors=blue]{hyperref} \let\oldref\ref ...
0
votes
0answers
49 views

Formatting is changing spacing

I'm currently working on my thesis, and have come across little problem. If you take a look at the attached images below: Here you can see, that there is clearly a problem in the first one, with ...
3
votes
2answers
143 views

How to format this formula, in particular, the parentheses better?

$$\mathrm{err} \left( h(\vec{\theta}, \vec{x}), y \right) = \delta_{0y} ~ H \left( h(\vec{x}; \vec{\theta}) - \frac{1}{2} \right) + \delta_{1y} ~ H \left( \frac{1}{2} - h(\vec{x}; \vec{\theta}) ...
9
votes
1answer
230 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 ...
2
votes
0answers
59 views

“latex missing } inserted” error message in equation [closed]

I have a slightly complex, long section of equations in my latex document, but from what I can see I think it is programmed correctly. When I compile the document, I get the error ...
5
votes
1answer
41 views

Dealing with Images in a Multiple Column Environment, The Idiomatic Method?

I've been using multiple column formats for a while now. Sometimes it's through the multicol package, sometimes it's using the twocolumn option for the document class. In both cases, dealing with ...
4
votes
2answers
155 views

Add text before “part” number in table of contents

I would like to add "Partie" before the part's number it only appears in the text and not in the table of contents. It works for sections, subsections etc. but not part with renew command. This is ...
2
votes
1answer
193 views

how to avoid a line overflow in the margin?

Here is my problem, an overflow in the right margin, due probably to existing - at this location: I have tried solutions depicted here, but the result is unchanged: \emergencystretch=1em in the ...
4
votes
1answer
235 views

glossaries package - How to format the positions of the columns and width of the glossary?

I am very fond of the glossaries package, since I am able to use multiple glossaries with different styles and so on. However, I have a problem with formatting it. I would like to use the predefined ...
9
votes
3answers
262 views

A phantom-like command that instead replaces the text with a horizontal line?

I'm trying to find a way of replacing part of text with a horizontal line. I'd like it to behave like the phantom command which replaces the text with an empty box of the correct width (and height), ...
0
votes
0answers
20 views

How to place text on the same page as title page [duplicate]

\documentclass[12pt,titlepage]{article} \usepackage{setspace} % Single-spacing, double-spacing, e.g., \setstretch{1.0} \usepackage{ifthen} \usepackage{booktabs} \usepackage{array} ...
4
votes
1answer
206 views

How to remove image of tree in beamer progressbar theme

When I run: \documentclass[color=option]{beamer} \mode<presentation> \usepackage[english] {babel} \usepackage{amsmath, amsfonts, graphicx} \usepackage{bibunits, tikz} \usetheme{Antibes} ...
3
votes
1answer
404 views

Change the style of chapter in LyX

I'm trying to change the style of chapter using LyX 2.1.0. Like this style (I have the code TeX but I failed to execute): The class of my document is report. here is the code for the chapter ...
1
vote
1answer
65 views

How to force single word spacing in section headings for two-column articles

I do not know how to force a single space between the words "Discussion" and "and" in the section heading below. \documentclass[12pt,twocolumn]{article} \begin{document} \hyphenation{Conclusion} ...
4
votes
2answers
188 views

Can I change the overall width of the invoice package's table?

I'm using \usepackage{invoice}, and I'm wondering if I can adjust the width of the table? \documentclass{article} \usepackage{invoice} \date{September 1994} \begin{document} \begin{invoice}{USD}{0} ...
1
vote
0answers
67 views

How to change the default top margin for an invoice?

Here is what I've got: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% ...
7
votes
1answer
331 views

How do I remove parentheses from theorem optional argument?

This is a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} \theoremstyle{definition} \newtheorem{Theorem}{Theorem}[section] \newtheorem*{Pythagorean ...
5
votes
2answers
78 views

Missing $ inserted when printing numerical phrase

Thanks for taking the time to reply, I did already search the forums and google and know this is a common problem but none of the suggestions I found worked. When trying to use latex to print the ...
13
votes
5answers
727 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} ...
2
votes
1answer
251 views

beamer: Text indentation within blocks

I want text indentation within blocks. My MWE is below: \documentclass{beamer} \usetheme{Warsaw} \usepackage[english]{babel} \usepackage{lipsum} % For global Justification \usepackage{ragged2e} ...
1
vote
1answer
99 views

How can I create a line with small text below it as in contracts? [duplicate]

I would like to create a line with text below it as it can be seen often in contracts: Ideally, that line would have a fillable element over it. Minimal Working Example The best I could come up ...
2
votes
1answer
660 views

How to do this amsart Table of Contents excluding dots on bold section rows

I am having difficulty combining all the attributes for this kind of Table of Contents in my amsart document. I hope if someone can show me the complete template, it will be useful for many people. ...
3
votes
1answer
107 views

Combination of multirows and multicolumns table [duplicate]

I need to create similar table using LaTeX: I have tried to use tabular and \multicolumn, but every time I get something wrong. Could someone help me? \documentclass{article} \begin{document} ...
3
votes
3answers
85 views

Formatting a large matrix across multiple lines

I have the following latex to create a matrix: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amsthm,amssymb} \usepackage{graphicx,ctable,booktabs} ...
2
votes
2answers
101 views

How can I change the default \\ spacing?

So, I have a definition which takes in data like this: ...{apple\\orange\\cat\\imperial green tea\\left-handed president}... In the document I get the following after compilation: apple orange ...
2
votes
1answer
45 views

How can I get the center of a scaled image wherever I want it---(x,y)---in the document? [duplicate]

According to some coordinate system, whatever that may be, how can I position a scaled image where I want it in the document using the center of the image as the point of reference? For example, ...
3
votes
0answers
145 views

How to use LaTeX fonts to format the text? [closed]

Are there fonts in LaTeX equivalent to those of Microsoft Office ("Times New Romans, Veranda, Courrier ... ") ? If yes, how can we use them ? Which package contains them?
1
vote
0answers
98 views

What is the best book with american typography rules? [closed]

There is russian book Reference book of editor and author which is well-known and considered the best comprehensive guide to typography and writing of text in russian (formatting, margins, font sizes ...
2
votes
3answers
82 views

How can I get a centered comment 2cm above the bottom of the page?

Just as the title states, how can I get a centered comment 2cm above the bottom of the page?
1
vote
0answers
31 views

How to format a large text containing special Characters and breaklines? [duplicate]

I have this rather long text which is the output of a several console inputs. I'd like to have the text as it is as of right now. Here a link to the raw text since I didn't want to include it in this ...
1
vote
0answers
108 views

Colored Text in PostScript Files [closed]

I am using \textcolor command in the body of my TeX file. I need to generate Postscript file. When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can ...
4
votes
2answers
215 views

Change Verbatim Font To PCR

I'm writing a document using LaTeX, and I would like to use the PCR font inside of a verbatim block. This question is almost identical to mine, but when I try to apply it to use PCR, I can't get it ...
5
votes
1answer
151 views

How to print negative value with currency

At the moment my report print currency values with siunitx with \$\numprint{12} But negative values displayed as $-12.00 I would like to display it as: -$12.00 Or you think $-12.00 is ok too for ...
3
votes
1answer
163 views

How to write sentences in an algorithm in latex?

Hi I am trying to write an algorithm which looks something like the image below: I was wondering how to write the "Step 1 (Update)" and also the rest of the line which says "When an edge e...." ...
2
votes
1answer
165 views

Tabular seems to create huge white space between lines

I am having a strange problem with a document I write. When I insert a table latex produces huge white gaps between the text lines and sends the table to the next page. I thought two possible ...
3
votes
1answer
150 views

Meeting Minute with supervisor

I want to make a table of Meeting Minutes with supervisor. The format is as follow; ------------------------------------------------------------------------------------- ...
8
votes
0answers
294 views

Document Blending: An Analysis of the Sex Appeal of Business Instruments

Here is what I'm working with so far: \documentclass{letter} \usepackage{background} \usepackage{lipsum} \backgroundsetup{% scale=4, %% change accordingly angle=0, %% change ...
2
votes
2answers
129 views

Misalignment chapter titles with hang option of titlesec package and redefined \cleardoublepage

When I redefine the command \cleardoublepage to include the words "This page has been intentionally left blank", the titles of the chapters are misaligned. \documentclass{book} \usepackage[a4paper, ...
1
vote
0answers
25 views

Subsection is unevenly alligned [closed]

I'm working on an outline for my general psych class, but I came across this error. I'm new at LaTeX so I'm not sure how to go about fixing it. Thank you so much for your help!
3
votes
1answer
89 views

How to blend two different documents?

Below is document one with its associated .lco file: .lco \ProvidesFile{standard.lco}[% 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option] \usepackage[english]{babel} ...
2
votes
2answers
77 views

How to write things on two columns?

I am going to try to explain my situation. I have a document that has a small font and prints in code. Unfortunately it only uses one side of the document, leaving a big white space on the other. I ...
4
votes
1answer
257 views

Define word with mixed case letters (upper/lower)

I am using some acronym-like words in my text that actually do not have a phrase but have a standard way of writing, like a "brand". (for ex. MyWorD) Is there a library for this or a way to define ...
4
votes
1answer
107 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 : ...
1
vote
1answer
438 views

Mathematica logo in LaTeX?

Is there any command for inserting the Mathematica logo, in the same way Matlab's can be inserted with \Matlab?
3
votes
1answer
81 views

Numprint gobbles row-terminating command

I use ctable for my tables, and I'd like to use numprint's autoformatting column types as well. Unfortunately, if the last column of the tabular is a numprint column, it breaks ctable's convenient ...