{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

1
vote
1answer
14 views

specifying a longtable not to split

I am using longtable in my report as I have many tables that are longer than a page. To make it consistent, I am using longtable for all the tables. Many times because of page settings, a small table ...
1
vote
2answers
45 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
44 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
119 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 ...
5
votes
1answer
48 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 ...
4
votes
1answer
63 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. ...
0
votes
0answers
57 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
52 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
30 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} ...
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
25 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 ...
2
votes
1answer
82 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
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 ...
11
votes
2answers
232 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. ...
1
vote
2answers
31 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
74 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} ...
5
votes
3answers
77 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.} ...
4
votes
2answers
30 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 ...
0
votes
1answer
36 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 ...
7
votes
5answers
241 views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?
3
votes
2answers
56 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 ...
4
votes
0answers
131 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 ...
2
votes
2answers
86 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
58 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 ...
4
votes
1answer
47 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
48 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
82 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
39 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. ...
5
votes
1answer
114 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 ...
5
votes
1answer
65 views

Is it possible to use the listings package incrementally in beamer?

Given a frame that has code rendered in a \begin{lstlisting}...\end{lstlisting} environment, is it possible to use beamer's incremental frame building feature to highlight code snippets? Here is an ...
4
votes
1answer
109 views

Customizing a biblatex style - can I start with lockstep's post?

I want to customize a biblatex style based on authoryear (and thus based on standard as well). So when I read this, does it mean I have to work with the cumulated paste of both .bbx-files or can I ...
9
votes
2answers
76 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 ...
9
votes
1answer
76 views

siunitx and engineering 'E' notation

Is it possible to use the siunitx package to typeset numbers with the "E" notation so that the output might look like 1E3 instead of 1 x 10^3
0
votes
0answers
34 views

Chapters titles and sections are not added to the contents page for any sections on page 21 or later [closed]

I am currently writing a report in Latex from a template I was given. However formatting such as adding chapter headings to the contents or referencing figures does not work beyond page 20. This is ...
6
votes
1answer
72 views

Format long numbers with a thousand separator?

In most language, long numbers are split into groups of three digits, to increase readability. In Dutch (my native language), 1000000 is usually written as 1 000 000. In English, this would be ...
0
votes
1answer
47 views

Customize 'appendix' heading

My appendices are rather small and I want them to come one after another (like \section) without the blank page before \chapter{} (due to openright option). Another problem is that chapter headings ...
5
votes
3answers
60 views

Know the width of the widest section label in memoir

I'm using memoir class to write my master's thesis, and my university asks to align all section labels to the left. I say section, but I really mean all levels, as chapters, sections, subsecs and so ...
1
vote
1answer
61 views

Proper way to format text when not using a lot of math

I'm confused about text formatting, I see almost everywhere the \text command, which I believe is part of the amsmath package? If I'm doing mostly writing with just a bit of math here and there, is ...
5
votes
2answers
183 views

Format time span for CV

I would like to add the month to the time span of moderncv. I order not to occupy much more space and still having a beautiful solution, I would like to do the following: Year - Year Month - Month ...
2
votes
0answers
60 views

radical of polynomial A rad A [closed]

Do we have something like \rad for the radical of a polynomial in LaTeX? I am writing in the equation mode within the theorem environment and everything is in italics. If I use \text{rad}, then I get ...
0
votes
0answers
44 views

How to define a custom formatting “style”? [closed]

Within the tablenotes of threeparttable I'd like to manually include a source like so: Source: Rumors of Oz, 2013 (unpublished / forthcoming). so that "Source" is either in \textit{Source} or ...
3
votes
1answer
96 views

How can very long algorithms be automatically split over multiple pages?

I have a very long algorithm than spans several pages. I can not get Latex to make it span across several pages. I know that several questions similar to this one have already been asked, but I ...
1
vote
2answers
24 views

Misplaced label mixing list environments

I am hacking the dramatist package. My aim is to get speech-prefixes to align with speeches for the verse environment, as they do for the prose environment. I've got it working except for a problem ...
3
votes
0answers
60 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 ...
3
votes
1answer
43 views

How can I set single line spacing for \enumerate amd \section?

I want to set \enumerate and \section to use single line spacing and small font like the table of content in this document. How can I do that? Thank you.
11
votes
4answers
130 views

Aligning the long equations

I have read all of the different solutions for fitting long formulas in a page, yet I am still not satisfied with the output I get. The formulas are right aligned which does not look good. Would you ...

1 2 3 4 5 19