{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
242 views

How to make all quotes italicised

I want to italicise all the quotes in my paper. By that I mean that everything in the quote environment is italicised to help differentiate it from the main text. I've seen a few threads talking ...
3
votes
1answer
32 views

Adding subsubsection to smoothtree outertheme

I would like to make the name of the subsubsection appear in the presentation. Here is my MWE: \documentclass[dvipsnames,svgnames,table]{beamer} \usetheme{Warsaw} ...
4
votes
0answers
63 views

Distinguish between upper index and power [closed]

I am currently writing the scriptum of our theoretical physics lecture. I always have trouble with the notation. Our professor uses lower indices like m_i for the i-th mass, upper indices like ...
18
votes
3answers
23k views

How to format the chapter heading?

How can I change the chapter heading of the book class to typeset centered chapter names as shown in the image above?
1
vote
1answer
56 views

Getting large braces in MathJax [closed]

In answering this question on math.se I used the expression {{{|}|}|} and wanted to enlarge the outer braces to show the pairing. I tried \left \{ \left \{ \{ | \} \right \} \right \} (with ...
2
votes
1answer
64 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
1
vote
2answers
38 views

Put image in column

Is there a way to cover a column of a two column page with an image (all the page height, no caption)? This should leave the rest of the page as is - just move the text of the column a bit further ...
3
votes
2answers
41 views

Text too long for the cell?

I am doing this table, but my the phrases are out of the limits of the cells. How can I adjust them in two or three lines instead of one? \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
38 views

format for all a table?

I have a table like this: \documentclass[12pt,a4paper,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{here} \begin{document} \begin{table}[H] \centering ...
2
votes
1answer
27 views

How to add multiple authors on IJCAY format

I'm writing a paper to IJCAY conference (hopefully it will be accepted), and I'm having a bit troubles on inserting a second author. I know how to do this in general, but I must play by their rule ...
2
votes
0answers
66 views

Refrange in \ref Endash

Here is a minimal example: \documentclass{article} \begin{document} \begin{figure} \caption{Figure 1.\label{figa}} \end{figure} Figure~Sample Text follows Figs~\ref{figa} \ref{figa,figb,figc} and ...
4
votes
2answers
57 views

Hide counter for exsheets solution environment

I am using counter-format=se.qu. for my questions which gives the following output In my case I want to hide the counters from solutions (so that I only get Lösungsvorschlag. there without the 3.1) ...
1
vote
0answers
34 views

Personalize document headerwith a table - Lyx

I am trying to put a table as header of every page of my document. This is the cose I put in the Latex preamble setting of LyX: \usepackage{eso-pic} \AddToShipoutPicture{% \AtPageUpperLeft{% ...
2
votes
1answer
119 views

highlight glossaries entries on page

I want to highlight my glossaries entries with bold or italic formatting. I have used the following command but then the whole document is very colorful what I didn't want to have it like this. ...
1
vote
2answers
23 views

Minted “underfull \hbox (badness 10000) in paragraph” when using bgcolor [closed]

When I use minted to highlight BASH code like this \documentclass[a4paper, 11pt, twoside]{article} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[svgnames]{xcolor} ...
2
votes
2answers
31 views

How to get continuos line numbers for minted code blocks

I use minted in following way: \documentclass[a4paper, 11pt, twoside]{article} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[svgnames]{xcolor} % Syntax higlight ...
2
votes
1answer
32 views

How to add background for texttt (and allow line breaks)

I use texttt{} to write names of software, commands etc. within the text. Sometimes the texttt text is longer and there is a line break within it. It works well, no problem here. I wish to add ...
32
votes
4answers
8k views

German language: use of comma in numbers

In German the comma rather than the period is used as a decimal separator and the dot is used as a thousands separator: 12.345,67. The comma creates some unwanted space when used as in $12.345,67$. Is ...
6
votes
3answers
84 views

Alphabetical ordering of items composed of macros in itemize

This is a continuation of the topic: Alphabetically display the items in itemize But sadly I don't have the necessary reputation to comment there. Method proposed by @Werner works perfect, even when ...
1
vote
1answer
57 views

Insert two horizontal lines above and below Contents and List of Figures

I would like to know how to insert horizontal lines above and below the Contents and the List of Figures. I managed to do it for the title of the chapters but not for the TOC and List of Figures. ...
2
votes
2answers
130 views

how to create a triangle with text

I want create a triangle with the text inside, I'm able to the write the text but how I can create the triangle? My code for the text is \documentclass{article} \usepackage[english]{babel} ...
79
votes
3answers
20k views

Does it matter if I use \textit or \it, \bfseries or \bf, etc

I typically use \textit{Some italicized text} while some of my colleagues use {\it Some other text} Should I bother changing one or the other, or does it matter?
2
votes
2answers
69 views

Why does Latex add arbitrary spacing between equations when using multicolumn?

After using multicolumn to divide up the page into three columns, some of my equations massive space in between the texts For example: The left most column, we see that there are spaces between the ...
1
vote
0answers
36 views

Why is there a blank line at the top of the slide? [duplicate]

Currently, I have a blank line appearing at the top of the page. However, I haven't inserted anything here to produce this line, nor is it a standardized format because other slides don't have this ...
4
votes
5answers
95 views

How do I center a \Large equation in display mode?

I have an equation in display mode and would like to make it bigger using \Large, but the equation runs off the right side of the page while there is much room on the left side of the page. The ...
20
votes
1answer
2k views

Changing the appearance of equation numbers with amsmath

For equations in my document, I use the facilities of the amsmath package. In order to make the equation numbers more eye-catching, I want them to be in boldface and a little bit indented to the ...
7
votes
3answers
5k views

Numbering paragraphs in latex

I would like to number paragraphs for a covering report I am writing. Paragraphs should increment and not reset with new sections. The text should not be bold. Here is what I have tried \makeatletter ...
1
vote
0answers
28 views

Beamer citation formating in definition

I'm trying to insert a citation after a definition/theorem in the beamer class to resemble the following: Definition [1] Here is my definition. I can partially accomplish the above using ...
2
votes
1answer
23 views

Problem in the definition of a different layout style for the examples in a document

I'm writing a document in which I defined a structure for the example in order to automatically enumerate them. This is my code: \documentclass[tikz,border=10pt]{standalone} \usepackage{amsmath} ...
1
vote
0answers
34 views

Figures displacing text in two column layout

I have a two column layout (set in the document class) with text and a figure. I've stopped the abstract being split by using: \twocolumn[ \begin{@twocolumnfalse} \maketitle ...
3
votes
1answer
59 views

Redefining glossaries style: grouping and capitalization issue

I'm trying to redefine the style of my glossaries list, and base it on the altlist. When executing the new style however, I notice that there is an empty line when two glossary items are grouped, even ...
97
votes
8answers
14k 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 ...
0
votes
0answers
7 views

In the beamer presentation, how do I make a standalone line in the top of the page? [duplicate]

I want to make a single lone line in the new frame saying just "Proof:". I would like it to be blank otherwise, so then I have space to physically write down the proof. However, if I do this ...
1
vote
0answers
10 views

figures and tables in left side of report

I am new to Tex and I am preparing laboratory manual in which figures and tables should be printed in left side and theory part should be printed in right side. Please help me to do it.
0
votes
2answers
218 views

Table of contents with visual/graphic mark reference to all pages of chapter (no numbering)

I'd like to make a table of contents that uses some visual mark that links graphically the toc to the text: with no numbering, but still having another type of reference available. The toc could use a ...
14
votes
5answers
3k views

How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R ...
2
votes
2answers
41 views

vertical space after \hrulefill

I use the following as a title for my draft document: \documentclass[12pt]{article} % Various packages \begin{document} %%% Title \begin{center} \hrulefill\\ \textit{\bfseries \Huge The name of ...
0
votes
0answers
43 views

Why this fatal error occurs? (trying to align a text in tikzpicture) [duplicate]

I would like to print a code in my document in the format that is very common to see online in many websites like this: But when I try to compile, a fatal error occurs. The problem is in the ...
1
vote
1answer
2k views

How to create Double spacing single column in IEEEtrans template

I am using IEEEtrans template for writing an article. I have prepared the document which is double column single spacing IEEE format. However, as per journal guidelines I also need to upload the ...
0
votes
1answer
25 views

rename theorem environment to proposition

How can I rename the theorem environment to proposition? In other words, I would like to print: Proposition 1 instead of Theorem 1/Lemma 1, etc Thanks in advance PS: I am using koma-script article ...
2
votes
1answer
28 views

Formatting S columns with percent

Why in the following tables the results of formatting of S columns are different, i.e. dependent on, where the column is in table? Consequently those tables have different width. ...
2
votes
1answer
45 views

How can I reduce references to show only subsection numbers?

I use cleveref package to format a special type of labels. Can I also use a special counter or counter formatting sequence in \cref. This is my example: \documentclass[10pt,a4paper,twoside]{article} ...
7
votes
1answer
2k views

Two plural forms for acronyms

Is it possible to have more than one plural form for acronyms? I want to use the following german term for revision/version control system: VVS for Versionsverwaltungssystem the normal plural would ...
0
votes
1answer
51 views

Number formatting in the table with spreadtab

I am using spreadtab for the calculation in a table. In the same time, I use numprint package for number formatting as advised in the documentation of spreadtab. To get thousand separator as , and ...
7
votes
1answer
131 views

scrbook - Three extremely simple questions about adjustment and font-styling

I have some (probably) really simple questions about a few adjustments in a scrbook-documents. Let's take the following minimum-example as the basis for my questions. Working minimum-example: ...
1
vote
1answer
92 views

Koma script line above and below chapter title

I'm using koma script and I want to add a line above and below the chapter title. So the upper line should be between the Chapter and the title. I did this with \documentclass{scrbook} ...
2
votes
2answers
59 views

How to change column width on each row?

I am trying to create a table layout such that my first row has different column spacing than the rest of the table. It's a header (well, part of a pair of headers) for a table of names. The layout ...
2
votes
1answer
72 views

How to Enter Address in LyX in this form

I am currently in article AMS document class. In LyX I'd like to enter my name and address in the following form: Note that there's not a large gap between the author's name and the address. I ...
1
vote
1answer
39 views

The first page of the bibliography does not follow page number format

Apology for asking a simple question (I couldn't find a direct answer from searching). The first page number inside the bibliography looks like The other pages have the page number bolded, How ...
3
votes
1answer
40 views

Formatting Large Equations with Matrices

I am currently working with some pretty big matrices and was wondering how I could better format them to make my final proof appear less sloppy. What formatting techniques can I use to better present ...