{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
2answers
65 views

Vectorization operator

How can I represent the vectorization of a matrix A (i.e, vec(A))? I am talking about this simple operator:
1
vote
1answer
32 views

How can I indent the second line of a linguistic gloss with gb4e.sty?

In accordance with the documentation, I've been happily plodding along making interlinear glosses. So far so good! But things get ugly when I make a longer gloss. Looking at example (5) on page (6) ...
2
votes
2answers
50 views

Chemfig - Name some compounds under a single label

I know within the chemfig package compounds can be named with the command \chemname. Is there a way to label some compounds under a single label? For example, put a label "Reactants" under the ...
5
votes
1answer
41 views

Formatting a comma separated list of values

I'm creating a set of mathematics worksheets, and I'd like to have an upside down "answer key" below a set of enumerated questions. Here is what I have at the moment: \usepackage{graphicx} Answers: ...
8
votes
1answer
206 views

How do I enter ὅπερ ἔδει δεῖξαι in TeX?

How do I typeset this statement if I'm using \usepackage[default]{frcursive} and \usepackage[T1]{fontenc} in my TEX file?
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} ...
7
votes
1answer
97 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 ...
5
votes
2answers
83 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.   ...
1
vote
1answer
44 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 ...
2
votes
2answers
131 views
+50

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
67 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
47 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
134 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
51 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
74 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
80 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
32 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
34 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
34 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
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
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
263 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
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} ...
5
votes
3answers
79 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
43 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
40 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
286 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
58 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
133 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
88 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
60 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
49 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
86 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
43 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
125 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
82 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
79 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
36 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
75 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
49 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
74 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 2 3 4 5 19