{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

0
votes
0answers
14 views

A Babylonian Massacre

How do I typeset this statement if I'm using \usepackage[default]{frcursive} and \usepackage[T1]{fontenc} in my TEX file?
5
votes
2answers
81 views

Start next paragraph on this line

TL;DR: Can I convince LaTeX to start the next paragraph on the same line as the current one? The format I’ve chosen for my résumé looks something like this: EXPERIENCE Doctor Midos, Inc.   ...
0
votes
0answers
35 views

My TeXworks platform is presenting me with \end{document} problems

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[american]{babel} \usepackage{geometry} \title{text} \author{text} \date{\today} ...
5
votes
0answers
52 views

Single/Double side environment with different backgrounds

I'm having trouble aligning some of the elements. I would like align Check Box and Cross Box to be same size so that they look nicer below is what i got so far. Also it would be great if they can ...
1
vote
1answer
40 views

Chemfig - Proper Vertical Aligning in Chemical Reactions

I have the following chemical equation in Chemfigs: \documentclass{article} \usepackage{chemfig,chemmacros} \begin{document} \schemestart 2 \chemfig{-[:30](=[:90]O)-[:-30]OH} \arrow ...
0
votes
0answers
36 views

Insert a character in the beginning of each line in a special verbatim environment

How can I insert a special character or a symbol in the beginning of each line in a verbatim environment? In particular, there is a constraint that applies to the verbatim environment: it must be of a ...
1
vote
2answers
66 views

How to remove the self-reference of the ToC in Latex book class

I want to remove the self-reference of the ToC in Latex book class as in the picture below Can you help me?
1
vote
1answer
45 views

Chapter heading at the right-hand side

I want a specific chapter heading as in the picture below (Chapter heading at the right-hand side, but section heading at the left-hand side) Can you help me?
3
votes
3answers
127 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 ...
8
votes
1answer
137 views

Is there a workaround against loss of precision in pgfplots axis?

I am generating a bunch of plots automatically using pgfplots. For some datasets the span of data in one axis (y) is relatively small (relative to the absolute value) and therefore pgfplots when ...
11
votes
2answers
252 views

Format a verbatim paragraph

How can I format a verbatim paragraph? I.e. break, fill and join input lines to produce globally balanced output with the lengths of each line approaching the target \textwidth as closely as possible. ...
4
votes
1answer
67 views

How do I get the table of contents, list of figures and list of tables to have the header I specify

I used \renewcommand\contentsname{\Large{TABLE OF CONTENTS}} (similar for list of figures and list of tables) to obtain headers that were centered at the top of the page, not bold and capitalized. ...
5
votes
1answer
50 views

Emphasizing some parts of string in lstlisting

I need to stress out some parts of string in lstlisting. I tried with \emph{}, but I got the verbatim result. Is there any way to that? \begin{lstlisting}[frame=single] Array1: 78 54 31 54 92 86 23 ...
0
votes
0answers
71 views

Dedication and Quote in my thesis [closed]

I want to dedicate my master thesis to my parents, my brother and my sister. Additionally, I want to include a famous quote. My first question is about the grammar, since I am not native english ...
4
votes
1answer
53 views

Smaller font for < sign

I have a table where i report times. Some elements are very small and I would like to write $<1\mathrm{ms}$. However, if I do so, the < 1ms will occupy even more space than a three digit number ...
2
votes
1answer
31 views

How do I center my title (both horizontally and vertically)?

I'm trying to create a centred title, both horizontally and vertically on the page. I'm rather new to latex - so far, I've tried the code below without success: \begin{center} \title{Title} ...
2
votes
1answer
83 views

Default Table Style [duplicate]

How can I create a default table style, which remains throughout the course of my document, lets say, for example, I want grid-lines and a gray shading behind the header-row, without having to ...
0
votes
1answer
43 views

A seemingly canonical preprint style in mathematics

There seems to exist a style for preprints that is common on arxiv.org. A completely (!) random example which I have picked up just now illustrates that style. http://arxiv.org/pdf/1305.2775.pdf ...
5
votes
1answer
33 views

How do I prevent \cellcolor from over effect of \hline

I'm trying to add HTML code based color to my table, like so: \usepackage[table]{xcolor} \begin{tabular}{ |>{\columncolor[HTML]{F2FAF8}}c| p{11cm} |} \hline CELL 1 & CELL 2\\ \hline CELL ...
4
votes
1answer
28 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 ...
6
votes
1answer
140 views

How to format subsection title (without packages)?

I'd like to change the format for \subsection{} without using special packages. On report.cls we find its definition \newcommand\subsection{\@startsection{subsection}{2}{\z@}% ...
0
votes
0answers
41 views

transform text from one template to another

I use laTex for formatting my papers and I use GIT for version controlling the papers i write, once i have a final cut of the paper i go hunting for suitable conferences. most of these have their own ...
17
votes
2answers
12k views

Change caption name of figures

How can I modify the caption name of a figure? For example I have \caption{This is a figure.} and by default the caption appears as Figure 1: This is a figure. However I want Fig.1 - This ...
1
vote
2answers
32 views

Table doesn't fit to page width properly

The table produced by this code always goes out off the width of my page. I want the table to fit within the width of the page. I tried giving extra \\ in between but it made it worse only. ...
5
votes
1answer
76 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} ...
16
votes
2answers
276 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 ...
5
votes
3answers
78 views

Use sans-serif in a verbatim environment?

What is the right way get fancyvrb’s verbatim environment (or any other variation) to use \textsf as the font? I can do it with: \begin{Verbatim}[commandchars=\\\{\}] \textsf{Here’s some textsf.} ...
12
votes
2answers
1k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
4
votes
2answers
36 views

How can I avoid the gap between \cellcolor-colored cells created by \tabucline?

I'm trying to partially separate rows from one another using \tabucline. The line encompasses column 3-6. Since the line's width is neither part of the upper, nor the lower row, there is going to be ...
7
votes
5answers
266 views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?
0
votes
1answer
37 views

Changing the format of figure, algorithm and equation numbering [duplicate]

This is a follow-up to this question. That allowed me to format references to an equation/figure/algorithm so that they started with an 'S'. What if I want to change the format in the original ...
2
votes
2answers
87 views

package for parallel columns randomly omits pages (paracol) [closed]

I've been using paracol for a few days now. I think it is a nice package for parallel columns. There is one problem, however, which strikes me. Sometimes (only sometimes) the pdf that results from my ...
4
votes
2answers
236 views

Representing D- and L- in chemical names

Using LaTeX, how does one typeset the D- and L- prefixes, which refer to dextrorotatory and levorotatory isomers. I have tried \footnotesize~D\normalsize and it looks okay, but didn't know if there ...
4
votes
0answers
132 views

Formatting of matrices

I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago. I have the same problems mentioned there, and I'd ...
3
votes
2answers
57 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 ...
0
votes
0answers
12 views

How to get rid of italic in the table of contents? [duplicate]

I formatted the titles of section and subsections in italic, and it appears italic in the Table of Contents, I want no influence on the Table of Contents. For example \subsection{\textit{The RGE for ...
7
votes
1answer
2k views

How can I get \maketitle to create a separate title page with the article class?

I am working on a maths assignment and new to using LaTeX. I have written the assignment up but I would like the title page to be its own page. Currently my title page is a few lines generated by ...
14
votes
4answers
466 views

Convert a novel typed in Word (just dialogue text,no math) to LaTeX

I know many of you will think this elementary - but I would like opinions. I need to know if I'm doing it horribly wrong before I continue doing 45+ chapters! I apologize if this isn't the proper ...
64
votes
6answers
4k views

Prettiest way to typeset “C++” (cplusplus)?

Writing "C++" in plain text results in an ugly setting, as the '+' signs are too big and too spaced: I've seen around the web several marcos for typesetting the "C++" symbol, ranging from mild ...
5
votes
1answer
345 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
2answers
59 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 ...
6
votes
1answer
55 views

Change display style in xlop multiplication

When I use xlop for multiplication for example like this: \documentclass{article} \usepackage{xlop} \begin{document} \opmul{0.436}{0.35} \end{document} I get the following output: However I ...
8
votes
2answers
662 views

Changing the font for equation numbering

I know that I can change the font for the equation numbers by redefining the \theequation command by, say, \renewcommand{\theequation}{{\sffamily\arabic{equation}}} I am wondering if there's a ...
4
votes
1answer
48 views

Write lowercase in Section (IEEEtran class)

I want to write lower case in a section, I've tried using \MakeLowercase but its not working. Here is what I tried: \section{Experiment I: T\MakeLowercase{he effect of changing the distance}} I'm ...
3
votes
2answers
49 views

Formatting equations and text in amsmath [duplicate]

I'm working on a document on how to solve some basic integral problems. However, I'm having difficulty getting \begin{equation}\end{equation} to do what I need it to do. I would like all of my ...
0
votes
0answers
30 views

Cutting the size between caption and image [duplicate]

Basically is the title of the question possible if i am using a standard figure is it possible to cut the size between the figure and its caption?
5
votes
1answer
84 views

Adding a “take away” box to a beamer slide

In Powerpoint presentations (especially with slides produced by consultants), it's common to add a box at the bottom of a slide that indicates the main point. What would be some LaTeX code for adding ...
4
votes
1answer
42 views

Algorithm2e - Permanent fix for no italics if-clause

I am using algorithm2e to create pseudocode for my document. However, it has it so that the conditions in if clauses are italicised. This solution suggests putting an \upshape in each if condition. ...
9
votes
2answers
247 views

Two code blocks working syncronously

I need two code blocks in my beamer frame. One will be the code and other will be the output for each line of code. I want to uncover each code line and corresponding output line. So, first it will ...
5
votes
1answer
119 views

Making advanced tables [duplicate]

I am trying to generate tables like the one above I found in a textbook in LaTeX. In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be ...

1 2 3 4 5 19